From 900d9eb0dadf93a798e2cf5720fbb618d2dadb6c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 20 Nov 2024 17:06:39 +0800 Subject: [PATCH] =?UTF-8?q?YT-834WMS=20=E5=AE=A2=E6=88=B7=E6=9C=88?= =?UTF-8?q?=E5=8F=B0=20=E6=96=B0=E5=A2=9E=E6=97=B6=EF=BC=8C=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E6=A0=A1=E9=AA=8C=E4=BB=A3=E7=A0=81=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicDataManage/customerManage/customerdock/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue index d4b08dbb9..d5fae481d 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue @@ -214,7 +214,8 @@ const openForm = (type: string, row?: any) => { // form表单提交 const formsSuccess = async (formType,data) => { - var isHave =Customerdock.allSchemas.formSchema.some(function (item) { + try { + var isHave =Customerdock.allSchemas.formSchema.some(function (item) { return item.field === 'activeTime' || item.field === 'expireTime'; }); if(isHave){ @@ -233,13 +234,16 @@ const formsSuccess = async (formType,data) => { await CustomerdockApi.updateCustomerdock(data) message.success(t('common.updateSuccess')) } - basicFormRef.value.formLoading = false basicFormRef.value.dialogVisible = false if (formType === 'create') { getList() }else{ buttonBaseClick('refresh',null) } + } catch { + basicFormRef.value.formLoading = false + + } } // 查询页面返回