This commit is contained in:
曹辉 2023-04-12 10:23:40 +08:00
parent cf20c952aa
commit c85d8901d7
2 changed files with 17 additions and 10 deletions

View File

@ -6,7 +6,6 @@
<button @click="revoke">撤回</button>
<button @click="saveTempFilePath">保存</button>
</view>
</view>
</template>

View File

@ -107,16 +107,24 @@
"taskReturnReason": this.taskReturnReason,
}
orderFallback(obj).then(res => {
this.$refs.uToast.show({
title: '任务退回成功',
type: 'success',
duration: '1500'
})
setTimeout(() => {
uni.navigateBack({
delta: 1
if (res.code == 200) {
this.$refs.uToast.show({
title: '任务退回成功',
type: 'success',
duration: '1500'
})
}, 1500);
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1500);
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1500'
})
}
})
},
},