Browse Source

库存初始化批量打印标签打印的都是制造件标签(采购件应打印采购件标签且如果同时选择了制造件和采购件要分别打印)YT-1448

intex_20241211
叶佳兴 2 months ago
parent
commit
13740c1cd2
  1. 5
      src/api/wms/inventoryinitRecordDetail/index.ts
  2. 4
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue

5
src/api/wms/inventoryinitRecordDetail/index.ts

@ -78,3 +78,8 @@ 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})
}

4
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){

Loading…
Cancel
Save