Browse Source

修改拆包组件的显示

hella_online_20240829
niexiting 5 months ago
parent
commit
64371643ef
  1. 2
      src/pages/package/coms/comPackageRecord.vue
  2. 12
      src/pages/package/record/splitPackageRecord.vue

2
src/pages/package/coms/comPackageRecord.vue

@ -18,7 +18,7 @@
<!-- <recommend :dataContent="record" :packageContent="record.package" :isShowStatus="false" <!-- <recommend :dataContent="record" :packageContent="record.package" :isShowStatus="false"
:isShowLocation="false"></recommend> --> :isShowLocation="false"></recommend> -->
<balance :dataContent="record" :packageContent="record.package" :isShowStatus="false" <balance :dataContent="record" :packageContent="record.package" :isShowStatus="false"
:isShowFromLocation="false"></balance> :isShowFromLocation="false" :isShowToLocation="false"></balance>
</view> </view>
</view> </view>
</uni-swipe-action-item> </uni-swipe-action-item>

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

@ -181,12 +181,12 @@
item.subList[0].Records.forEach(function(item1, index) { item.subList[0].Records.forEach(function(item1, index) {
sumQty = calc.add(sumQty,item1.qty) sumQty = calc.add(sumQty,item1.qty)
}); });
if (calc.add(qty,sumQty)> item.subList[0].qty) { // if (calc.add(qty,sumQty)> item.subList[0].qty) {
this.showErrorMessage("扫描数量总和【" + (Number(qty) + sumQty) + "】(当前输入数量【" + qty + "】+已添加数量【" + // this.showErrorMessage("" + (Number(qty) + sumQty) + "(" + qty + "+" +
sumQty + // sumQty +
"】)已超过拆包箱码的数量【" + Number(item.subList[0].qty) + "】!"); // ")" + Number(item.subList[0].qty) + "!");
return; // return;
} // }
item.subList[0].Records.push(temp); item.subList[0].Records.push(temp);
this.$forceUpdate(); this.$forceUpdate();
} }

Loading…
Cancel
Save