Browse Source

HL-6379 修改拆包支持父子包装

hella_online_20241121
lijuncheng 1 week ago
parent
commit
b68703bed5
  1. 17
      src/pages/package/record/splitPackageRecord.vue

17
src/pages/package/record/splitPackageRecord.vue

@ -10,7 +10,9 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" @removeItem="removeItem(index,item)" <record-com-detail-card :dataContent="item" @removeItem="removeItem(index,item)"
:isShowParentToLocation="false"
@updateData="updateData" @removePack='updateData' :isShowToLocation="false"> @updateData="updateData" @removePack='updateData' :isShowToLocation="false">
</record-com-detail-card> </record-com-detail-card>
</view> </view>
</view> </view>
@ -196,7 +198,12 @@
var itemp = createItemInfo(balance, pack); var itemp = createItemInfo(balance, pack);
itemp.handleQty=0 itemp.handleQty=0
let newDetail = createDetailInfo(balance, pack); // let newDetail = createDetailInfo(balance, pack); //
newDetail.handleQty=0 if(balance.lableQty){
newDetail.handleQty =balance.lableQty
}
newDetail.parentNumber =pack.parentNumber;
newDetail.packingNumber =pack.number
newDetail.scaned=false newDetail.scaned=false
itemp.subList.push(newDetail); itemp.subList.push(newDetail);
this.detailSource.push(itemp) this.detailSource.push(itemp)
@ -214,7 +221,11 @@
}) })
if (detail == undefined) { if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack); let newDetail = createDetailInfo(balance, pack);
newDetail.handleQty=0 if(balance.lableQty){
newDetail.handleQty =balance.lableQty
}
newDetail.parentNumber =pack.parentNumber;
newDetail.packingNumber =pack.number
item.subList.push(newDetail); item.subList.push(newDetail);
this.closeScanPopup() this.closeScanPopup()
} else { } else {
@ -342,6 +353,8 @@
subItem.fromPackingNumber = subItem.packingNumber; subItem.fromPackingNumber = subItem.packingNumber;
subItem.toPackingNumber = subItem.packingNumber; subItem.toPackingNumber = subItem.packingNumber;
subItem.fromParentPackingNumber =detail.parentNumber;
subItem.fromBatch = subItem.batch; subItem.fromBatch = subItem.batch;
subItem.toBatch = subItem.batch; subItem.toBatch = subItem.batch;
subItem.locationCode = detail.locationCode; subItem.locationCode = detail.locationCode;

Loading…
Cancel
Save