Browse Source

库存余额,打印标签,提示没有包装号 YT-459

intex_online20241111
YEJIAXING-PC\lenovo 1 month ago
parent
commit
94b892c243
  1. 9
      src/api/wms/package/index.ts
  2. 4
      src/views/wms/inventoryManage/balance/index.vue

9
src/api/wms/package/index.ts

@ -126,12 +126,19 @@ export const getLabelDetailPageByRecordId = async (params) => {
export const getProductreceiptLabelDetailPage = async (params) => {
return await request.get({ url: `/wms/package/getProductreceiptLabelDetailPage`,params})
}
// 根据库存余额获取包装信息进行打印标签
export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})
}
// 根据库存余额获取包装信息进行打印标签(英泰)
export const getBalanceToPackageByIntex = async (itemCode: String) => {
const data = {
itemCode: itemCode
}
return await request.put({ url: `/wms/package/getBalanceToPackageByIntex`, data: data})
}
// 根据库存余额获取包装信息进行打印标签--批量打印
export const getBalanceToPackageSelection = async (data: any) => {
return await request.post({ url: `/wms/balance/batchPrintLabel` ,data})

4
src/views/wms/inventoryManage/balance/index.vue

@ -271,8 +271,8 @@ const BASE_URL = getJmreportBaseUrl()
const labelType = ref('') //
//
const handlePoint = async (row) => {
console.log(row.packingNumber,445555555555555);
PackageApi.getBalanceToPackage(row.packingNumber).then(res => {
const itemCode = row.itemCode
PackageApi.getBalanceToPackageByIntex(itemCode).then(res => {
console.log(777,res);
if (res.productionLineCode != null) {
labelType.value = 'zz'

Loading…
Cancel
Save