diff --git a/src/api/wms/inventoryinitRecordDetail/index.ts b/src/api/wms/inventoryinitRecordDetail/index.ts index fe2d27f22..ad5e93142 100644 --- a/src/api/wms/inventoryinitRecordDetail/index.ts +++ b/src/api/wms/inventoryinitRecordDetail/index.ts @@ -77,4 +77,9 @@ export const importTemplate = () => { // 批量打印 export const printLabelBatchByIdSelection = async (data: any) => { return await request.post({ url: `/wms/inventoryinit-record-main/printLabelBatchById` ,data}) +} + +// 批量打印 +export const printLabelBatchByIdSelectionForYT = async (data: any) => { + return await request.post({ url: `/wms/inventoryinit-record-main/printLabelBatchByIdForYT` ,data}) } \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue index 21de35179..c7bc2a687 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue @@ -211,7 +211,7 @@ const handleSelectionPoint = async ()=>{ text: 'loading...', background: 'rgba(0, 0, 0, 0.7)' }) - InventoryinitRecordDetailApi.printLabelBatchByIdSelection(rows.join(",")).then(res => { + InventoryinitRecordDetailApi.printLabelBatchByIdSelectionForYT(rows.join(",")).then(res => { console.log('批量打印res',res); getLoading?.close() if(res.zzLabel){ @@ -221,7 +221,7 @@ const handleSelectionPoint = async ()=>{ } if (res.cgLabel) { //采购标签 - const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) + const src = ref(BASE_URL + '/jmreport/view/1022349139354537984?token=' + getAccessToken()) window.open(src.value+'&asn_number='+res.cgLabel) } if(!res.cgLabel&&!res.zzLabel){