Browse Source

包装信息打印功能

intex_online20241228
张立 4 months ago
parent
commit
84a3a81aa6
  1. 11
      src/views/wms/inventoryManage/package/index.vue
  2. 12
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

11
src/views/wms/inventoryManage/package/index.vue

@ -364,8 +364,15 @@ const handlePoint = async (row) => {
console.log('批量打印res',res);
if(res.zzLabel){
//
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res.zzLabel)
PackageApi.getPrintingLableId({packingNumbers:[row.number]}).then(res => {
console.log(res)
window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res)
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
// const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
// window.open(src.value+'&asn_number='+res.zzLabel)
}
if (res.cgLabel) {
//

12
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -624,19 +624,19 @@ const buttonTableClick = async (val, row) => {
return
}
})
ruleApi.getManagementPrecision({
ruleApi.getManagementPrecision({
itemCodes: [item['itemCode']],
locationCode: item.toLocationCode
}).then((res) => {
toManagementPrecision.value = res[0].ManagementPrecision
if ( toManagementPrecision.value == 'BY_BATCH') {
})
if ( toManagementPrecision.value == 'BY_BATCH') {
// row['fromBatchFormItemType'] = 'FormDate'
item['disabled_batch'] = true
} else if(toManagementPrecision.value == 'BY_QUANTITY') {
row['disabled_batch'] = false
} else {
// row['fromBatchFormItemType'] = ''
item['disabled_batch'] = false
row['disabled_batch'] = true
}
})
})
} else if (val == 'mainHandle') {
//

Loading…
Cancel
Save