登记收款附件bug修改

This commit is contained in:
luojiaquan
2026-09-15 18:06:40 +08:00
parent 73e425b12f
commit 662a09bf16
7 changed files with 50 additions and 13 deletions
@@ -667,9 +667,8 @@ const uploadFileUrl = ref(baseUrl + '/common/upload')
const uploadHeaders = ref({ Authorization: 'Bearer ' + getToken() })
const attachmentTypeOptions = ref([
{ value: '0', label: '附件资料' },
{ value: '1', label: '客户Logo' },
{ value: '2', label: '合同文件' },
{ value: '3', label: '其他' }
{ value: '1', label: '合同文件' },
{ value: '2', label: '其他' }
])
const ATTACHMENT_SIZE_LIMIT = 50
const ATTACHMENT_EXTENSIONS = ['pdf', 'jpg', 'jpeg', 'png', 'doc', 'docx', 'xls', 'xlsx', 'zip', 'rar']
@@ -711,6 +710,7 @@ function handleAttachmentUploadSuccess(res, file) {
form.value.attachmentList.push({
attachmentId: null,
customerId: form.value.customerId || null,
bizType: 'customer',
fileName: file.name,
filePath: res.fileName,
fileSize: file.size,