diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 5acc8e857..67b6e6bff 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -90,7 +90,7 @@ }]" annexAliasLabel="其他附件" :otherHeadButttonData="[{ - label: '打印', + label: '打印明细', name: 'printing', hide: false, type: 'primary', @@ -98,6 +98,26 @@ color: '', float:'left', hasPermi: '' + },{ + label: '打印全部发货单', + name: 'printing-all', + hide: false, + type: 'primary', + // icon: 'ep:operation', + color: '', + float:'left', + hasPermi: '' + }]" + :buttondataTable = "[{ + label: '打印', + name: 'print', + hide: false, + type: 'primary', + // icon: 'ep:operation', + color: '', + float:'left', + link: true, // 文本展现按钮 + hasPermi: '' }]" :isBasic="false" :allSchemas="SupplierinvoiceRequestMain.allSchemas" @@ -110,6 +130,7 @@ :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :Echo="Echo" @buttonBaseClick="detailButtonBaseClick" + @tableFormButton="tableFormButton" /> @@ -632,9 +653,18 @@ const importSuccess = () => { if(val == 'printing'){ // 单据打印 handleDocumentPrint(clicKRowId.value) + }else if(val === 'printing-all'){ + //打印全部发货单 + } } + const tableFormButton = (val, item) => { + console.log("点击的按钮",val) + if(val == 'print'){ + // 打印 + } + } // 单据打印 const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken()) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index b627663e9..a8d603ad9 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1005,7 +1005,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive