Browse Source

装配bug

hella_online_20240829
zhang_li 2 months ago
parent
commit
ac00e4b979
  1. 4
      src/pages/productPutaway/record/fgDirectPutaway.vue
  2. 13
      src/pages/productPutaway/record/productPutawayRecord.vue

4
src/pages/productPutaway/record/fgDirectPutaway.vue

@ -22,12 +22,12 @@
onShow() { onShow() {
if(this.$refs.productPutawayRecord!=undefined){ if(this.$refs.productPutawayRecord!=undefined){
this.$refs.productPutawayRecord.refresh(); // this.$refs.productPutawayRecord.refresh();
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.productPutawayRecord.refresh(); // this.$refs.productPutawayRecord.refresh();
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {

13
src/pages/productPutaway/record/productPutawayRecord.vue

@ -142,7 +142,7 @@
}, },
methods: { methods: {
getScanResult(result) { getScanResult(result) {
let label = result.label; let label = result.label;
let pack = result.package; let pack = result.package;
result.balance.forEach( result.balance.forEach(
@ -156,15 +156,16 @@
if (item == undefined) { if (item == undefined) {
var itemp = createItemInfo(balance, pack); var itemp = createItemInfo(balance, pack);
// //
let newDetail = createDetailInfo(balance, pack);
newDetail.fromInventoryStatus = balance.inventoryStatus;
itemp.subList.push(newDetail);
this.getRecommendLocation(balance, res => { this.getRecommendLocation(balance, res => {
itemp.toLocationCode = res.code; itemp.toLocationCode = res.code;
itemp.expectinNumber = res.expectinNumber; itemp.expectinNumber = res.expectinNumber;
this.$forceUpdate(); this.detailSource.push(itemp)
this.$forceUpdate();
}) })
let newDetail = createDetailInfo(balance, pack); //
newDetail.fromInventoryStatus = balance.inventoryStatus;
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else { } else {
var detail = item.subList.find(r => { var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber && if (r.packingNumber == balance.packingNumber &&

Loading…
Cancel
Save