From 93da6e4ac17a1c6347954428e3eaca9c46d410c9 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Thu, 31 Oct 2024 14:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=AE=E5=BC=80?= =?UTF-8?q?=E5=8D=95=E6=96=B0=E5=A2=9E=E6=88=96=E4=BF=AE=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E3=80=81=E8=BD=A6=E8=BE=86=E4=BF=A1=E6=81=AF=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/repair/tickets/form/UserAndCarForm.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(){