|
|
@@ -131,18 +131,21 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(ret) {
|
|
|
+ console.log(ret)
|
|
|
if(ret.businessId===undefined){
|
|
|
tools.leftClick()
|
|
|
}else {
|
|
|
this.businessId=ret.businessId
|
|
|
this.type=ret.type
|
|
|
+ console.log( this.type==='2')
|
|
|
if(ret.auditType)this.businessData.audit_type=ret.auditType*1
|
|
|
if(this.type==='1'){
|
|
|
- this.type='任务反馈'
|
|
|
+ this.title='任务反馈'
|
|
|
}else if(this.type==='2'){
|
|
|
- this.type='任务审核'
|
|
|
+ tools.success('ok')
|
|
|
+ this.title='任务审核'
|
|
|
}else {
|
|
|
- this.type='任务冲销'
|
|
|
+ this.title='任务冲销'
|
|
|
}
|
|
|
this.getTaskStage();
|
|
|
}
|
|
|
@@ -277,7 +280,6 @@
|
|
|
})
|
|
|
},
|
|
|
auditTask() {
|
|
|
-
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: this.businessData.audit_type === 1 ? '是否通过当前任务?' : '是否驳回当前任务?',
|
|
|
@@ -286,9 +288,10 @@
|
|
|
auditTask(this.businessData).then((auditRes) => {
|
|
|
if (auditRes.code === 1) {
|
|
|
tools.success(auditRes.msg)
|
|
|
- this.$emit('endTaskSet')
|
|
|
uni.$emit('newTaskList')
|
|
|
- console.log('newReceiving:---------------------')
|
|
|
+ setTimeout(()=>{
|
|
|
+ tools.leftClick()
|
|
|
+ },500)
|
|
|
} else {
|
|
|
tools.error(auditRes.msg)
|
|
|
}
|
|
|
@@ -328,4 +331,4 @@
|
|
|
text-align: right;
|
|
|
direction: rtl;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|