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) {