根据预约记录修改业务类型

This commit is contained in:
xiaofajia 2024-11-06 12:03:37 +08:00
parent cd7cc4ebc5
commit 5574d972c3
2 changed files with 9 additions and 12 deletions

View File

@ -128,7 +128,7 @@
<template slot="label">
预约订单选择
</template>
<el-select v-model="formData.bookingId" size="small">
<el-select v-model="formData.bookingId" size="small" @change="updateBooking">
<el-option v-for="item in bookingList" :key="item.id" :value="item.id"
:label="item.bookingTime"/>
</el-select>
@ -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
}
},
}
}
</script>

View File

@ -138,7 +138,7 @@
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="注册日期" prop="carInfo.carRegisterDate" label-width="auto">
<el-form-item label="注册日期" prop="carInfo.carRegisterDate">
<el-date-picker clearable v-model="formData.carInfo.carRegisterDate" type="date" value-format="timestamp"
placeholder="选择车辆注册日期"/>
</el-form-item>