|
|
@ -209,6 +209,7 @@ import { |
|
|
|
CurriculumVitaeRules |
|
|
|
} from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data' |
|
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
|
import * as SupplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' |
|
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail' |
|
|
@ -1273,7 +1274,31 @@ const documentSrc = ref(BASE_URL + '/jmreport/view/1019060741381099520?token=' + |
|
|
|
// 品番状态是号试显示生准订单的发货单模版 |
|
|
|
const documentSrc2 = ref(BASE_URL + '/jmreport/view/1019406772438372352?token=' + getAccessToken()) |
|
|
|
const handleDocumentPrint = async (id, stausId) => { |
|
|
|
await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { |
|
|
|
// await SupplierdeliverRequestMainApi.getItemStatus(stausId).then(async (res) => { |
|
|
|
// if (res) { |
|
|
|
// //号试(生准订单)模板 |
|
|
|
// window.open(documentSrc2.value + '&id=' + id) |
|
|
|
// } else { |
|
|
|
// window.open(documentSrc.value + '&id=' + id) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
await SupplierdeliverRecordMainApi.getPoLineType(id).then(async (res) => { |
|
|
|
if (res.isM && res.haveNOM == false) { |
|
|
|
//号试(生准订单)模板 |
|
|
|
window.open(documentSrc2.value + '&id=' + id + '&type=' + 'M') |
|
|
|
} |
|
|
|
if (res.isM && res.haveNOM && res.noMAndItemStatus == '生准订单') { |
|
|
|
//号试(生准订单)模板 |
|
|
|
window.open(documentSrc2.value + '&id=' + id ) |
|
|
|
} |
|
|
|
if (res.isM && res.haveNOM && res.noMAndItemStatus != '生准订单') { |
|
|
|
//(生准订单)模板 M型物料 |
|
|
|
window.open(documentSrc.value + '&id=' + id+ '&type=' + 'M') |
|
|
|
//(补给品订单)模板 |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
} |
|
|
|
if (res.isM == false) { |
|
|
|
await SupplierdeliverRecordMainApi.getItemStatus(id).then(async (res) => { |
|
|
|
if (res) { |
|
|
|
//号试(生准订单)模板 |
|
|
|
window.open(documentSrc2.value + '&id=' + id) |
|
|
@ -1281,6 +1306,9 @@ const handleDocumentPrint = async (id, stausId) => { |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|