|
|
@ -696,7 +696,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
labelPrint(row) |
|
|
|
} else if (val == 'documentPrint') { |
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(row.masterId) |
|
|
|
handleDocumentPrint(row.masterId,row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
const footButttondata = ref([ |
|
|
@ -1080,13 +1080,14 @@ const genRecords = async (id: number) => { |
|
|
|
// 发起处理 |
|
|
|
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) |
|
|
|
.then((res) => { |
|
|
|
console.log('res',res) |
|
|
|
message.success(t('ts.处理成功!')) |
|
|
|
// 刷新列表 |
|
|
|
getList() |
|
|
|
getLoading?.close() |
|
|
|
|
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(id) |
|
|
|
handleDocumentPrint(res,id) |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
getLoading?.close() |
|
|
@ -1242,8 +1243,8 @@ const print = async () => { |
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + getAccessToken()) |
|
|
|
// 物料状态是号试显示生准订单的发货单模版 |
|
|
|
const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (id) => { |
|
|
|
await SupplierdeliverRequestMainApi.getItemStatus(id).then(async (res) => { |
|
|
|
const handleDocumentPrint = async (id,stausId) => { |
|
|
|
await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { |
|
|
|
if (res) { |
|
|
|
//号试(生准订单)模板 |
|
|
|
window.open(documentSrc2.value + '&id=' + id) |
|
|
|