|
|
@ -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) |
|
|
|