diff --git a/src/views/repair/tickets/form/UserAndCarForm.vue b/src/views/repair/tickets/form/UserAndCarForm.vue index bb4b429..f7721e2 100644 --- a/src/views/repair/tickets/form/UserAndCarForm.vue +++ b/src/views/repair/tickets/form/UserAndCarForm.vue @@ -308,7 +308,10 @@ export default { formRules: { 'userInfo.cusName':[{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, //折叠面板默认展开 @@ -369,9 +372,11 @@ export default { await updateCustomerAndCar(this.formData) this.$modal.msgSuccess(this.formData?.userInfo?.id ? "修改成功" : "新增成功") this.$emit("success", this.formData) - }finally { this.formLoading = false this.dialogVisible = false + }catch {} + finally { + this.formLoading = false } }, reset(){