From 5574d972c3194ecb0eff425403a93da56645f00d Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Wed, 6 Nov 2024 12:03:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=A2=84=E7=BA=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=BF=AE=E6=94=B9=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repair/tickets/Components/UserInfo.vue | 19 ++++++++----------- .../repair/tickets/form/UserAndCarForm.vue | 2 +- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/views/repair/tickets/Components/UserInfo.vue b/src/views/repair/tickets/Components/UserInfo.vue index f5475c3..ad1703b 100644 --- a/src/views/repair/tickets/Components/UserInfo.vue +++ b/src/views/repair/tickets/Components/UserInfo.vue @@ -128,7 +128,7 @@ - + @@ -498,15 +498,6 @@ export default { return item.replace(process.env.VUE_APP_FILE_API, "") }).join(",") } - // if (!this.formData.image){ - // this.$modal.msgError("接车图片不能为空") - // return - // }else{ - // const data = this.formData.image.split(",") - // this.formData.image = data.map(item => { - // return item.replace(process.env.VUE_APP_FILE_API, "") - // }).join(",") - // } await createTickets(this.formData) this.$modal.msgSuccess("新增成功") this.init() @@ -760,11 +751,17 @@ export default { ...carRes.data, brandAndModel: car.data.carInfo.brandAndModel } - } + }, // // 权益选择 // handleSelectionChange(val){ // // } + updateBooking(){ + const data = this.bookingList.filter(item => item.id === this.formData.bookingId) + if (data && data.length > 0){ + this.formData.repairType = data[0].repairType + } + }, } } diff --git a/src/views/repair/tickets/form/UserAndCarForm.vue b/src/views/repair/tickets/form/UserAndCarForm.vue index f7721e2..7ab568b 100644 --- a/src/views/repair/tickets/form/UserAndCarForm.vue +++ b/src/views/repair/tickets/form/UserAndCarForm.vue @@ -138,7 +138,7 @@ - +