From 55bfa5a22dba725a016e0e35573dcbef63fcd1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Thu, 18 Dec 2025 11:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Customer/components/certificateModal.vue | 15 ++++++++++++--- .../sales/Customer/components/createForm.vue | 2 +- .../supplier/Supplier/components/createForm.vue | 8 +++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/sales/Customer/components/certificateModal.vue b/src/views/sales/Customer/components/certificateModal.vue index 5a89e84..06f64ba 100644 --- a/src/views/sales/Customer/components/certificateModal.vue +++ b/src/views/sales/Customer/components/certificateModal.vue @@ -55,7 +55,7 @@ import type { FormInstance } from 'ant-design-vue'; import dayjs from 'dayjs'; import Upload from '/@/components/Form/src/components/Upload.vue'; -const tableName = 'Customer' +let tableName = 'Customer' const columnName = 'fileList' const { t } = useI18n(); const isUpdate = ref(true); @@ -78,7 +78,9 @@ const rules = { docTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], }; const curData = ref() - +const props = defineProps({ + type: String +}) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { curData.value = '' formState.filePath = '' @@ -119,7 +121,14 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data console.log(val, 532, ) } async function getOption() { - optionList = await getDocCpList({'valid': 'Y'}) + let obj = {} + if (props.type == 'cuSign') { + obj = {'cuSign': 'Y'} + } else { + obj = {'suSign': 'Y'} + tableName = 'supplier' + } + optionList = await getDocCpList({'valid': 'Y',...obj }) } const handleCancel = () => { formRef.value.resetFields(); diff --git a/src/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue index b6d9222..2daf203 100644 --- a/src/views/sales/Customer/components/createForm.vue +++ b/src/views/sales/Customer/components/createForm.vue @@ -289,7 +289,7 @@ - + diff --git a/src/views/supplier/Supplier/components/createForm.vue b/src/views/supplier/Supplier/components/createForm.vue index 7f37b3d..ea7cf92 100644 --- a/src/views/supplier/Supplier/components/createForm.vue +++ b/src/views/supplier/Supplier/components/createForm.vue @@ -210,7 +210,7 @@ (上传公司财报等附件) - + @@ -372,6 +372,9 @@ } }); + const uploadListChange = (val) => { + dataFile.value = val + } async function getList(id) { spinning.value = true try { @@ -520,13 +523,12 @@ v.dateFrom = v.dateFrom ? dayjs(v.dateFrom ).format('YYYY-MM-DD HH:mm:ss') : ''; v.dateTo = v.dateTo ? dayjs(v.dateTo ).format('YYYY-MM-DD HH:mm:ss'): ''; }) - let file = await uploadFile.value.getFileList() let obj = { ...formState, lngSupplierBankList: dataBank, lngSupplierDocList: arrCertificate, lngSupplierContactList: dataContact, - lngFileUploadList: file + lngFileUploadList: dataFile.value } spinning.value = true;