From 58979e533e56b0c3496c0791c0bcc93e31cd7579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 14 Nov 2023 15:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/workorder/workorder.vue | 36 +++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/pages/workorder/workorder.vue b/pages/workorder/workorder.vue index 2c06a0b..430576f 100644 --- a/pages/workorder/workorder.vue +++ b/pages/workorder/workorder.vue @@ -103,6 +103,8 @@ + @@ -125,6 +127,8 @@ ], data() { return { + workshow: false, + worklist: {}, tabslist: [{ name: '全部工单', value: '', @@ -186,6 +190,22 @@ this.info() }, methods: { + workupdata() { + var obj = { + "goodsOrderId": this.worklist.goodsOrderId, + "orderStatus": "COMPLETED", + } + updateStatus(obj).then(res => { + if (res.code == 200) { + this.$refs.uToast.show({ + title: '工单已成功', + type: 'success', + duration: '1500' + }) + this.info(); + } + }) + }, //前往聊天 goseekadvicefrom(item) { uni.navigateTo({ @@ -200,20 +220,8 @@ }, //完成 goconfirmCompletion(item) { - var obj = { - "goodsOrderId": item.goodsOrderId, - "orderStatus": "COMPLETED", - } - updateStatus(obj).then(res => { - if (res.code == 200) { - this.$refs.uToast.show({ - title: '工单已成功', - type: 'success', - duration: '1500' - }) - this.info(); - } - }) + this.workshow = true + this.worklist = item }, //任务退回 gotaskReturn(item) {