Commit d64153e2 authored by 黄媛媛's avatar 黄媛媛

update

parent 73522822
......@@ -29,14 +29,16 @@
{{$t('visa.v_tvisa')}}
<el-dropdown-menu slot="dropdown" >
<el-dropdown-item v-for="item in VisaManagementList" :key='item.Id' v-if="item.IsGroupSigned==1" :command='{id:item.Id,type:2}'>{{item.Name}}</el-dropdown-item>
<el-dropdown-item v-if="LineID!=14" :command='{id:-1,type:2}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item>
<!-- v-if="LineID!=14" -->
<el-dropdown-item v-if="LineIDState==2" :command='{id:-1,type:2}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-dropdown split-button type="primary" trigger="click" @command="bindVisa">
{{$t('visa.v_gvisa')}}
<el-dropdown-menu slot="dropdown" >
<el-dropdown-item v-for="(item,index) in VisaManagementList" :key='index+50000' v-if="item.IsOrderSigned==1" :command='{id:item.Id,type:1}'>{{item.Name}}</el-dropdown-item>
<el-dropdown-item v-if="LineID!=14" :command='{id:-1,type:1}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item>
<!-- v-if="LineID!=14" -->
<el-dropdown-item v-if="LineIDState==2" :command='{id:-1,type:1}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -54,7 +56,8 @@
</tr>
<tr v-for="(item,index) in dataList">
<td width=150 class="text_left">
<input v-if="LineID==14" type="checkbox" :disabled="item.ApplyStatus!=-1" v-model="checkList" :value="item.Id" @change="checkThis">
<!-- v-if="LineID==14" -->
<input v-if="LineIDState==1" type="checkbox" :disabled="item.ApplyStatus!=-1" v-model="checkList" :value="item.Id" @change="checkThis">
<input v-else type="checkbox" :disabled="item.VisaManageStatus>1" v-model="checkList" :value="item.Id" @change="checkThis">
{{item.OrderId}}</td>
<td>{{item.GuestName}}</td>
......@@ -66,7 +69,8 @@
<i v-if="item.IsDataFull==1||item.IsDataFull==0" class="iconfont icon-iconfontremind" @click="UrgeGuestInfo(item.Id,item.EmployeeId)" style="vertical-align:middle;"></i>
</td>
<td>
<span v-if="LineID==14">
<!-- v-if="LineID==14" -->
<span v-if="LineIDState==1" >
{{item.VisaName}}
<span v-if="item.SignStatus==1" class="_radius" >{{$t('visa.v_dan')}}</span>
<span v-if="item.SignStatus==2" class="_radius _tuan">{{$t('visa.v_tuan')}}</span>
......@@ -80,7 +84,8 @@
</td>
<td>
<span v-if="LineID==14">
<!-- v-if="LineID==14" -->
<span v-if="LineIDState==1">
<span v-if="item.ApplyStatus==0">{{$t('visa.v_chulizhong')}}</span>
<img v-if="item.ApplyStatus==1" src="../../assets/img/pass@2x.png" alt="">
<img v-if="item.ApplyStatus==2" src="../../assets/img/fail@2x.png" alt="">
......@@ -102,7 +107,8 @@
<input v-if="item.VisaType==2 || item.SignStatus==2" type="checkbox" v-model="checkList2" :value="item.Id" @change="checkThis2">
<el-button @click="deletelist(item.Id)" type="danger" style="padding:5px" icon="el-icon-delete" circle></el-button>
<!-- <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i> -->
<span v-if="LineID!=14">
<!-- v-if="LineID!=14" -->
<span v-if="LineIDState==2">
<!-- <button v-if="item.VisaManageStatus==1" @click="UpdateGuestStatus(item,2)" style='background:#3EABFF;padding:4px 6px;color:#fff;cursor:pointer'>办理</button> -->
<el-tooltip class="item" effect="dark" content="办理完成" placement="top-start">
<el-button @click="UpdateGuestStatus(item,3)" style="padding:5px" type="success" v-if="item.VisaManageStatus==2" icon="el-icon-check" circle></el-button>
......@@ -151,6 +157,8 @@ export default {
},
],
LineID:14,
LineIDState:0,
LineIDList:{},
}
},
watch:{},
......@@ -222,8 +230,27 @@ export default {
}
},err=>{})
},
getVisa(){
// LineIDState:0,
// LineIDList:{},
this.apipost('dict_get_GetVisaLineList',{},res=>{
if(res.data.resultCode==1){
console.log("res",res.data.data);
this.LineIDList=res.data.data;
// 在集合里
if(this.LineIDList.indexOf(this.LineID)>-1){
this.LineIDState=1;
}else{
this.LineIDState=2;
}
}else{
this.$message.error(res.data.message)
}
this.loading = false
},err=>{})
},
bindVisa(command){ //绑定签证类型
if(command.id>0&&this.LineID!=14){
if(command.id>0&&this.LineIDState==2){
this.$message.error(this.$t('visaT.qxzzzdqzlx'))
return;
}
......@@ -326,7 +353,7 @@ export default {
this.checkListAll2.push(x.Id)
}
})
if(this.LineID==14){
if(this.LineIDState==1){
this.dataList.forEach(x=>{
if(x.ApplyStatus==-1){
this.checkListAll.push(x.Id)
......@@ -348,13 +375,16 @@ export default {
},err=>{})
}
},
created(){},
created(){
this.getVisa();
},
mounted(){
this.id = this.$route.query.id
this.num = this.$route.query.num;
this.LineID=this.$route.query.LineID?this.$route.query.LineID:this.LineID;
this.getVisaManagementList()
this.getData()
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment