From 9d7a48c2185219acedaad9b640d1e73133390d16 Mon Sep 17 00:00:00 2001 From: nyoung Date: Tue, 24 Dec 2024 16:08:12 +0800 Subject: [PATCH] 1 --- components/orderCard/OrderCard.vue | 108 ++++++++++++++++++++++++++--- pages/rescue/historylist.vue | 44 ++++++++++-- 2 files changed, 140 insertions(+), 12 deletions(-) diff --git a/components/orderCard/OrderCard.vue b/components/orderCard/OrderCard.vue index e8cb42e..299e572 100644 --- a/components/orderCard/OrderCard.vue +++ b/components/orderCard/OrderCard.vue @@ -51,14 +51,73 @@ 联系司机 + @cancel="deleteCancel"> + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -76,7 +135,9 @@ status: { type: [String, Number], default: '' - } + }, + brandList: [], + staffList: [] }, computed: { statusStr() { @@ -101,8 +162,17 @@ columns: [], id: '', show: false, - showDelete: false, + showDelete: false, + toRepairShow: false, + pinpaiShow: false, + fuwuShow: false, + formData:{ + brandAndModel:[] + } } + }, + onLoad(){ + }, methods: { hasRole, @@ -129,10 +199,31 @@ return '' } }, - toRepair(id){ - let data ={ - id: id - } + onPinpaiConfirm(e){ + console.log(e) + this.formData.brandName = e.value[0].brandName + this.formData.brandAndModel[0] = e.value[0].id + this.pinpaiShow = false + }, + onFuwuConfirm(e){ + this.formData.adviserName = e.value[0].name + this.formData.adviserId = e.value[0].id + this.formData.userId = e.value[0].userId + this.fuwuShow = false + }, + showRepair(){ + if(this.orderData.connectionName){ + this.formData.name = this.orderData.connectionName + } + if(this.orderData.connectionPhone){ + this.formData.phone = this.orderData.connectionPhone + } + this.toRepairShow = true + }, + toRepair(){ + let data = JSON.parse(JSON.stringify(this.formData)) + data.id = this.orderData.id + console.log(data,'data'); request({ url: '/app/rescueInfo/toRepair', method: 'post', @@ -142,6 +233,7 @@ uni.showToast({ title: '操作成功' }) + this.toRepairShow = false this.$emit('refresh') } }) diff --git a/pages/rescue/historylist.vue b/pages/rescue/historylist.vue index 9272a1a..bbd9cda 100644 --- a/pages/rescue/historylist.vue +++ b/pages/rescue/historylist.vue @@ -26,7 +26,7 @@ - +