Browse Source

WMS bug:HL-5531 打印标签页面点击确定后报错

hella_online_20240821
gaojs 3 months ago
parent
commit
7f4604928e
  1. 6
      src/api/wms/package/index.ts
  2. 2
      src/views/wms/inventoryManage/package/index.vue

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

@ -101,6 +101,12 @@ export const batchPrintingLable = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLable`, data }) return await request.post({ url: `/wms/package/batchPrintingLable`, data })
} }
// 批量打印标签多选
export const batchPrintingLables = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLables`, data })
}
// 打印标签获取包装列表 // 打印标签获取包装列表
export const getLabel = async (id: number) => { export const getLabel = async (id: number) => {
return await request.get({ url: `/wms/package/getLabel?id=` + id }) return await request.get({ url: `/wms/package/getLabel?id=` + id })

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

@ -359,7 +359,7 @@ const formsSuccess = async (formType,data) => {
const labelType = ref('') // const labelType = ref('') //
const handlePoint = async (row) => { const handlePoint = async (row) => {
console.log(row.packingNumber,445555555555555); console.log(row.packingNumber,445555555555555);
PackageApi.batchPrintingLable([row.number]).then(res => { PackageApi.batchPrintingLables([row.number]).then(res => {
console.log('批量打印res',res); console.log('批量打印res',res);
if(res.zzLabel){ if(res.zzLabel){
// //

Loading…
Cancel
Save