Browse Source

修改翻包支持扫子扣父

hella_online_20240829
lijuncheng 4 months ago
parent
commit
8f4abc38f9
  1. 13
      src/pages/package/record/overPackageRecord.vue

13
src/pages/package/record/overPackageRecord.vue

@ -78,6 +78,7 @@
getBalanceByParams
} from '@/api/request2.js';
import {
deepCopyData,
goHome
} from '@/common/basic.js';
@ -262,6 +263,8 @@
if(balance.lableQty){
newDetail.handleQty =balance.lableQty
}
newDetail.parentNumber =pack.parentNumber;
newDetail.packingNumber =pack.number
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
this.itemCode = balance.itemCode;
@ -281,6 +284,8 @@
if(balance.lableQty){
newDetail.handleQty =balance.lableQty
}
newDetail.parentNumber =pack.parentNumber;
newDetail.packingNumber =pack.number
item.subList.push(newDetail);
this.scanPopupGetFocus()
} else {
@ -415,15 +420,15 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
var subItem = {};
Object.assign(subItem, detail)
var subItem = deepCopyData(detail);
subItem.itemCode = detail.itemCode;
subItem.itemName = detail.package.itemName;
subItem.itemDesc1 = detail.package.itemDesc1;
subItem.itemDesc2 = detail.package.itemDesc2;
subItem.fromInventoryStatus = detail.inventoryStatus;
subItem.fromQty = detail.handleQty
subItem.fromParentPackingNumber =detail.parentNumber;
subItem.fromPackingNumber = detail.packingNumber;
subItem.fromBatch = detail.batch;
subItem.fromLocationCode = detail.locationCode;
@ -469,6 +474,8 @@
this.fromLocationCode = '';
this.dataContent = {}
this.itemCode=""
this.toPackUnitShow ="请选择"
this.toPackQty = ""
if (pointData.length > 0) {
uni.navigateTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}`

Loading…
Cancel
Save