修改维修开单新增或修改用户、车辆信息必填
This commit is contained in:
parent
1a27dc39b0
commit
93da6e4ac1
@ -308,7 +308,10 @@ export default {
|
|||||||
formRules: {
|
formRules: {
|
||||||
'userInfo.cusName':[{required: true, message: "客户名称不能为空", trigger: 'blur'}],
|
'userInfo.cusName':[{required: true, message: "客户名称不能为空", trigger: 'blur'}],
|
||||||
'userInfo.phoneNumber': [{required: true, message: "联系方式不能为空", trigger: 'blur'}],
|
'userInfo.phoneNumber': [{required: true, message: "联系方式不能为空", trigger: 'blur'}],
|
||||||
'carInfo.licenseNumber': [{required: true, message: "车牌号不能为空", trigger: 'blur'}]
|
'carInfo.licenseNumber': [{required: true, message: "车牌号不能为空", trigger: 'blur'}],
|
||||||
|
'carInfo.brandAndModel': [{required: true, message: "品牌型号不能为空", trigger: 'blur'}],
|
||||||
|
'carInfo.carCategory': [{required: true, message: '车辆类别不能为空', trigger: 'blur'}],
|
||||||
|
'carInfo.carNature': [{required: true, message: '车辆性质不能为空', trigger: 'blur'}]
|
||||||
},
|
},
|
||||||
formLoading: false,
|
formLoading: false,
|
||||||
//折叠面板默认展开
|
//折叠面板默认展开
|
||||||
@ -369,9 +372,11 @@ export default {
|
|||||||
await updateCustomerAndCar(this.formData)
|
await updateCustomerAndCar(this.formData)
|
||||||
this.$modal.msgSuccess(this.formData?.userInfo?.id ? "修改成功" : "新增成功")
|
this.$modal.msgSuccess(this.formData?.userInfo?.id ? "修改成功" : "新增成功")
|
||||||
this.$emit("success", this.formData)
|
this.$emit("success", this.formData)
|
||||||
}finally {
|
|
||||||
this.formLoading = false
|
this.formLoading = false
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
}catch {}
|
||||||
|
finally {
|
||||||
|
this.formLoading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reset(){
|
reset(){
|
||||||
|
Loading…
Reference in New Issue
Block a user