|
|
@@ -2072,32 +2072,35 @@
|
|
|
if (item.warehouseLedgerDetails?.length) {
|
|
|
item.warehouseLedgerDetails.forEach((i, index) => {
|
|
|
this.$set(i, 'num', num);
|
|
|
- if (item.measuringUnit == item.weightUnit) {
|
|
|
- this.$set(i, 'weight', item.minPackingCount);
|
|
|
- this.$set(i, 'initWeight', item.minPackingCount);
|
|
|
- } else {
|
|
|
- this.$set(
|
|
|
- i,
|
|
|
- 'weight',
|
|
|
- Number(
|
|
|
- this.$math.format(
|
|
|
- 1 * item.minPackingCount * item.netWeight,
|
|
|
- 14
|
|
|
+ console.log('i---', i);
|
|
|
+ console.log('row---', row);
|
|
|
+ if (row.code == i.code) {
|
|
|
+ if (item.measuringUnit == item.weightUnit) {
|
|
|
+ this.$set(i, 'weight', item.minPackingCount);
|
|
|
+ this.$set(i, 'initWeight', item.minPackingCount);
|
|
|
+ } else {
|
|
|
+ this.$set(
|
|
|
+ i,
|
|
|
+ 'weight',
|
|
|
+ Number(
|
|
|
+ this.$math.format(
|
|
|
+ 1 * item.minPackingCount * item.netWeight,
|
|
|
+ 14
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
- );
|
|
|
- this.$set(
|
|
|
- i,
|
|
|
- 'initWeight',
|
|
|
- Number(
|
|
|
- this.$math.format(
|
|
|
- 1 * item.minPackingCount * item.netWeight,
|
|
|
- 14
|
|
|
+ );
|
|
|
+ this.$set(
|
|
|
+ i,
|
|
|
+ 'initWeight',
|
|
|
+ Number(
|
|
|
+ this.$math.format(
|
|
|
+ 1 * item.minPackingCount * item.netWeight,
|
|
|
+ 14
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
- );
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
this.$set(i, 'weightUtil', item.weightUnit);
|
|
|
|
|
|
this.$set(i, 'packingCount', 1);
|