diff --git a/src/api/wms/supplierinvoiceRequestMain/index.ts b/src/api/wms/supplierinvoiceRequestMain/index.ts index f396d5c73..6309de4ca 100644 --- a/src/api/wms/supplierinvoiceRequestMain/index.ts +++ b/src/api/wms/supplierinvoiceRequestMain/index.ts @@ -95,6 +95,12 @@ export const financerejSupplierinvoiceRequestMain = async (id: number) => { export const genRecordsSupplierinvoiceRequestMain = async (id) => { return await request.post({ url: `/wms/supplierinvoice-request-main/genRecords?id=` + id }) } + +// 打印单挑供应商发货记录 +export const printSupplierRecord = async (asnBillNum:string) => { + return await request.post({ url: `/wms/supplierinvoice-request-main/querySupplierRecord?asnBillNum=`+asnBillNum }) +} + // 导出供应商发票申请主 Excel export const exportSupplierinvoiceRequestMain = async (params) => { if(params.isSearch){ diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 67b6e6bff..0f6e14c28 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -663,10 +663,23 @@ const importSuccess = () => { console.log("点击的按钮",val) if(val == 'print'){ // 打印 + SupplierinvoiceRequestMainApi.printSupplierRecord(item.asnBillNum).then(res =>{ + if(res){ + handleSupplierdeliverRecordPrint(res); + } + }) } } - // 单据打印 + const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL + + //供应商发货单打印 + const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken()) + const handleSupplierdeliverRecordPrint = async (id) => { + window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id) + } + + // 单据打印 const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken()) const handleDocumentPrint = async (id) => { window.open(documentSrc.value + '&id=' + id) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index a8d603ad9..76534660f 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -175,7 +175,6 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.TAX_RATE_DICT, dictClass: 'string', isTable: true, - isSearch: true, sort: 'custom', table: { width: 150