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();