From 790ba975130a7b5091a21e0b4ce2ac8a30bc8b12 Mon Sep 17 00:00:00 2001 From: PQZ Date: Mon, 4 Nov 2024 11:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B7=A5=E5=8D=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=88=E4=BD=9C=E5=BA=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/orderCard.vue | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/components/orderCard.vue b/components/orderCard.vue index b6c8038..4f5e6db 100644 --- a/components/orderCard.vue +++ b/components/orderCard.vue @@ -41,6 +41,13 @@ 服务顾问:{{ order.counselorName }} + + + + + + + 项目派工 @@ -62,6 +69,10 @@ 告知取车 + + + 作废 + 查看详情 @@ -97,6 +108,9 @@ export default { }, data() { return { + show:false, + title:'作废', + voidData:{}, //当前角色是否可以告知取车 roleCanQc:false, //当前角色是否可以接单 @@ -173,6 +187,43 @@ export default { url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id + '&isDetail=' + '1' }) }, + + /** + * 作废 + */ + doVoid(row){ + this.show = true + this.voidData = { + id : row.id, + remark : '', + ticketsStatus : '03' + } + }, + + /** + * 作废请求后台方法 + */ + doVoidConfirm(){ + request({ + url: '/admin-api/repair/tickets/void', + method: 'POST', + data:this.voidData + }).then((res) => { + if (res.code == 200){ + uni.showToast({ + title: "操作成功", + icon: "success", + }) + } + this.doVoidCancel() + this.$emit('childEvent') + }) + }, + + doVoidCancel(){ + this.show = false + }, + /** * 项目派工 */