修改
This commit is contained in:
parent
807c197a6d
commit
c3bf2fa4cb
@ -74,28 +74,37 @@
|
||||
}, {
|
||||
name: '其它',
|
||||
checked: false,
|
||||
}]
|
||||
}],
|
||||
requestStatus: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
truetaskReturn() {
|
||||
if (this.list[4].checked && this.value) {
|
||||
this.taskReturnReason += this.value + ';'
|
||||
if (this.requestStatus) {
|
||||
// 利用 return 终止函数继续运行
|
||||
return;
|
||||
}
|
||||
var obj = {
|
||||
orderNo: this.tasklist.orderNo,
|
||||
remark: this.taskReturnReason,
|
||||
}
|
||||
closeHealthConsultationOrder(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '工单退回成功',
|
||||
type: 'success',
|
||||
duration: '1500',
|
||||
back: 1
|
||||
})
|
||||
this.requestStatus = true;
|
||||
setTimeout(() => {
|
||||
if (this.list[4].checked && this.value) {
|
||||
this.taskReturnReason += this.value + ';'
|
||||
}
|
||||
})
|
||||
var obj = {
|
||||
orderNo: this.tasklist.orderNo,
|
||||
remark: this.taskReturnReason,
|
||||
}
|
||||
closeHealthConsultationOrder(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.requestStatus = false;
|
||||
this.$refs.uToast.show({
|
||||
title: '工单退回成功',
|
||||
type: 'success',
|
||||
duration: '1500',
|
||||
back: 1
|
||||
})
|
||||
}
|
||||
})
|
||||
}, 1600);
|
||||
},
|
||||
// 选中某个复选框时,由checkbox时触发
|
||||
checkboxChange(e) {},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user