From b1cd0a5168ccc79f11490d9eb20b47555e8fadca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Mon, 1 Dec 2025 13:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=A1=A8=E5=8D=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sales/Customer/components/createForm.vue | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue index 0c9011d..ce69c5b 100644 --- a/src/views/sales/Customer/components/createForm.vue +++ b/src/views/sales/Customer/components/createForm.vue @@ -50,14 +50,14 @@ - - + + - - - + + + {{ item.name }} @@ -407,8 +407,9 @@ const rules: Record = { + cuSname: [{ required: true, message: "该项为必填项", trigger: 'change' }], cuMcode: [{ required: true, message: "该项为必填项", trigger: 'change' }], - di: [{ required: true, message: "该项为必填项", trigger: 'change' }], + dI: [{ required: true, message: "该项为必填项", trigger: 'change' }], cuName: [{ required: true, message: "该项为必填项", trigger: 'change'}], natureCode: [{ required: true, message: "该项为必填项", trigger: 'change'}], classCode: [{ required: true, message: "该项为必填项", trigger: 'change'}], @@ -462,7 +463,7 @@ const dataContact= reactive([]); let optionSelect= reactive({ natureCodeList: [], - diList: [], + dIList: [], validList: [], approCodeList: [], classCodeList: [], @@ -521,7 +522,7 @@ } async function getOption() { optionSelect.natureCodeList = await getDictionary('LNG_ENT_PR') - optionSelect.diList = await getDictionary('LNG_NATURE') + optionSelect.dIList = await getDictionary('LNG_NATURE') optionSelect.classCodeList = await getDictionary('LNG_CLASS') optionSelect.typeCodeList = await getDictionary('LNG_CU_TYP') optionSelect.propCodeList = await getDictionary('LNG_CU_RPT') @@ -723,13 +724,13 @@ v.dateTo = dayjs(v.dateTo ).valueOf() }) const data = await addLngCustomer(obj); - obj.id = data + // notification.success({ // message: 'Tip', // description: pageType.value === 'add' ? t('新增成功!') : t('修改成功!') // }); //提示消息 // formRef.value.resetFields(); - return obj + return data // setTimeout(() => { // bus.emit(FORM_LIST_MODIFIED, { path: formPath }); // close();