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 @@ - +