CRM_25-12-23#story#7473,服务商系统、调度APP新增服务商人员确认的功能
This commit is contained in:
@@ -11,12 +11,6 @@
|
|||||||
@click-left="goBack"
|
@click-left="goBack"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="headerWrap">
|
|
||||||
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
|
|
||||||
<!– <img v-else class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />–>
|
|
||||||
<span>人员信息</span>
|
|
||||||
<div style="opacity: 0;" class="back"></div>
|
|
||||||
</div>-->
|
|
||||||
<div :class="{'tipWrap':true,'yelBg':type==3,'greBg':type==4}">
|
<div :class="{'tipWrap':true,'yelBg':type==3,'greBg':type==4}">
|
||||||
<img v-show="[1,2].includes(type)" src="@/assets/unpass.png" />
|
<img v-show="[1,2].includes(type)" src="@/assets/unpass.png" />
|
||||||
<img v-show="[3].includes(type)" src="@/assets/yelTip.png" />
|
<img v-show="[3].includes(type)" src="@/assets/yelTip.png" />
|
||||||
@@ -114,7 +108,9 @@ export default {
|
|||||||
// console.log('isWebFunc()',this.isWebFunc())
|
// console.log('isWebFunc()',this.isWebFunc())
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
this.id=this.$route.query.id || urlParams.get('id');
|
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()
|
await this.getPersonList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@@ -200,9 +196,15 @@ export default {
|
|||||||
}
|
}
|
||||||
await submitConfirm({supplierId:this.supplierId,infos:this.personList})
|
await submitConfirm({supplierId:this.supplierId,infos:this.personList})
|
||||||
this.$toast('操作成功')
|
this.$toast('操作成功')
|
||||||
|
if(this.isWebFunc()){
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.goBack();
|
this.closeParentDialog()
|
||||||
},2000)
|
},1500)
|
||||||
|
}else{
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.goBack()
|
||||||
|
},1500)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async reviseHandle(){//修改
|
async reviseHandle(){//修改
|
||||||
this.type=2
|
this.type=2
|
||||||
@@ -216,19 +218,16 @@ export default {
|
|||||||
}).then(async() => {
|
}).then(async() => {
|
||||||
// console.log('确认无误')
|
// console.log('确认无误')
|
||||||
await confirm({supplierId:this.supplierId})
|
await confirm({supplierId:this.supplierId})
|
||||||
setTimeout(() => {
|
this.$toast('操作成功')
|
||||||
|
if(this.isWebFunc()){
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.closeParentDialog()
|
||||||
|
},1500)
|
||||||
|
}else{
|
||||||
|
setTimeout(()=>{
|
||||||
this.goBack()
|
this.goBack()
|
||||||
}, 1500)
|
},1500)
|
||||||
}).catch(() => {
|
}
|
||||||
});
|
|
||||||
},
|
|
||||||
handle(){
|
|
||||||
Dialog.alert({
|
|
||||||
message:'message',
|
|
||||||
confirmButtonText:this.isWebFunc() ? '确定' : '拨打电话',
|
|
||||||
showCancelButton:true,
|
|
||||||
}).then(async() => {
|
|
||||||
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user