根据预约记录修改业务类型
This commit is contained in:
parent
cd7cc4ebc5
commit
5574d972c3
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user