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 + }, + /** * 项目派工 */