From 94b892c243db79b31cb402534b61d743b14439bb Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Mon, 21 Oct 2024 17:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D=EF=BC=8C?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8C=85=E8=A3=85=E5=8F=B7=20=20YT-459?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/package/index.ts | 9 ++++++++- src/views/wms/inventoryManage/balance/index.vue | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/api/wms/package/index.ts b/src/api/wms/package/index.ts index 8854a8b3d..b6a1618d4 100644 --- a/src/api/wms/package/index.ts +++ b/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}) diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index 527bfa512..7a08bd37e 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/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'