CRM_25-12-23#story#7473,服务商系统、调度APP新增服务商人员确认的功能

This commit is contained in:
2025-12-22 13:08:10 +08:00
parent e0f90ca3b2
commit 44e1af7262

View File

@@ -11,12 +11,6 @@
@click-left="goBack"
/>
</div>
<!-- <div class="headerWrap">
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
&lt;!&ndash; <img v-else class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />&ndash;&gt;
<span>人员信息</span>
<div style="opacity: 0;" class="back"></div>
</div>-->
<div :class="{'tipWrap':true,'yelBg':type==3,'greBg':type==4}">
<img v-show="[1,2].includes(type)" src="@/assets/unpass.png" />
<img v-show="[3].includes(type)" src="@/assets/yelTip.png" />
@@ -114,7 +108,9 @@ export default {
// console.log('isWebFunc()',this.isWebFunc())
const urlParams = new URLSearchParams(window.location.search);
this.id=this.$route.query.id || urlParams.get('id');
this.supplierId=this.$route.query.supplierId || urlParams.get('supplierId');
// this.supplierId=1128 && this.$route.query.supplierId || urlParams.get('supplierId');
this.supplierId=1128
console.log('1111',this.supplierId)
await this.getPersonList()
},
methods:{
@@ -200,9 +196,15 @@ export default {
}
await submitConfirm({supplierId:this.supplierId,infos:this.personList})
this.$toast('操作成功')
if(this.isWebFunc()){
setTimeout(()=>{
this.goBack();
},2000)
this.closeParentDialog()
},1500)
}else{
setTimeout(()=>{
this.goBack()
},1500)
}
},
async reviseHandle(){//修改
this.type=2
@@ -216,19 +218,16 @@ export default {
}).then(async() => {
// console.log('确认无误')
await confirm({supplierId:this.supplierId})
setTimeout(() => {
this.$toast('操作成功')
if(this.isWebFunc()){
setTimeout(()=>{
this.closeParentDialog()
},1500)
}else{
setTimeout(()=>{
this.goBack()
}, 1500)
}).catch(() => {
});
},
handle(){
Dialog.alert({
message:'message',
confirmButtonText:this.isWebFunc() ? '确定' : '拨打电话',
showCancelButton:true,
}).then(async() => {
},1500)
}
}).catch(() => {
});
},