Browse Source

库存余额

intex
zhang_li 1 week ago
parent
commit
77ae262efc
  1. 5
      src/api/wms/package/index.ts
  2. 29
      src/views/wms/inventoryManage/balance/index.vue
  3. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

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

@ -101,7 +101,10 @@ 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 batchPrintingLableGet = async (params: any) => {
return await request.get({ url: `/wms/package/batchPrintingLable`, params })
}
// 批量打印标签多选 // 批量打印标签多选
export const batchPrintingLables = async (data: any) => { export const batchPrintingLables = async (data: any) => {
return await request.post({ url: `/wms/package/batchPrintingLables`, data }) return await request.post({ url: `/wms/package/batchPrintingLables`, data })

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

@ -481,20 +481,25 @@ const footButtonClick = async (val) => {
} }
} }
const pointLabel = async () => { const pointLabel = async () => {
const array =detatableData1.value.map(item=>{ // const array =detatableData1.value.map(item=>{
return { // return {
packingNumber:item.number, // packingNumber:item.number,
batch: item.batch, // batch: item.batch,
printQty:item.printQty, // printQty:item.printQty,
} // }
}) // })
console.log(array) const obj = {
const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0) itemCode:detatableData1.value[0].itemCode,
if(isHave){ packingNumber:detatableData1.value[0].number,
message.error(`物料号${isHave.itemCode}打印数量不可以为0`) batch:detatableData1.value[0].batch,
printQty:detatableData1.value[0].printQty,
}
// const isHave = detatableData1.value.find(item => parseFloat(item.printQty) <= 0)
if(!parseFloat(obj.printQty) ){
message.error(`物料号${obj.itemCode}打印数量不可以为0`)
return; return;
} }
await PackageApi.batchPrintingLable({pointParams:array}).then(res => { await PackageApi.batchPrintingLableGet(obj).then(res => {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res) window.open(src.value+'&asn_number='+res)
}).catch(err => { }).catch(err => {

8
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -1782,10 +1782,10 @@ export const SupplierdeliverRequestPackageRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'change' }, { max: 50, message: '不得超过50个字符', trigger: 'change' },
{ validator: validateBatch, trigger: 'change' } { validator: validateBatch, trigger: 'change' }
], ],
printQty: [ // printQty: [
{ required: true, message: '请输入打印数量', trigger: 'blur' }, // { required: true, message: '请输入打印数量', trigger: 'blur' },
{ validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' } // { validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }
], // ],
}) })

Loading…
Cancel
Save