From 2bb10d5f686e7afaf4b1454a46cd97e2379b86ac Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 28 Jun 2024 12:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=96=87=E5=AD=97=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Annex/src/Annex.vue | 6 +- src/components/Detail/src/Detail.vue | 2 + .../supplierinvoiceRequestMain/index.vue | 10 +- .../supplierinvoiceRequestMain.data.ts | 108 +++++++++--------- 4 files changed, 68 insertions(+), 58 deletions(-) diff --git a/src/components/Annex/src/Annex.vue b/src/components/Annex/src/Annex.vue index 2c7f75bfe..a9f8b472b 100644 --- a/src/components/Annex/src/Annex.vue +++ b/src/components/Annex/src/Annex.vue @@ -3,7 +3,7 @@
-
@@ -56,6 +56,10 @@ const props = defineProps({ return ['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg'] } }, + fileSize:{ + type:Number, + required: false, + }, showPreview: { type: Boolean, required: false diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index afd300ab9..07411ee65 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -108,6 +108,7 @@ { hasSubDetail:item.hasSubDetail||false, subDetailTableData:item.subDetailTableData, fileType:item.fileType||['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg'], + fileSize:item.fileSize||5, showPreview:item.showPreview||false, // 是否展示预览按钮 showDownload:item.showDownload||false, // 是否展示下载按钮 hiddenDelete:item.hiddenDelete || false, // 是否展示删除按钮 diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 72031bc2e..20bf60358 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -607,17 +607,21 @@ const handleImport = () => { prop: 'Annex', tableName:'contract', hiddenDelete:false, - hiddenUpload:false + hiddenUpload:false, + fileSize:20 },{ label: t('ts.发票附件'), prop: 'Annex', tableName:'invoice', hiddenDelete:false, - hiddenUpload:false + hiddenUpload:false, + fileSize:20 + },{ label: t('ts.货运单附件'), prop: 'Annex', - tableName:'waybill' + tableName:'waybill', + fileSize:20 }]) const openDetail = (row : any, titleName : any, titleValue : any) => { const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index b263eefc0..19d1e1e26 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1204,7 +1204,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive