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;