|
@ -23,7 +23,6 @@ |
|
|
</view> |
|
|
</view> |
|
|
<u-line color="#D8D8D8" style="margin-bottom: 15rpx;"></u-line> |
|
|
<u-line color="#D8D8D8" style="margin-bottom: 15rpx;"></u-line> |
|
|
<view class="page-main"> |
|
|
<view class="page-main"> |
|
|
{{detailSource[0].qty}} |
|
|
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<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=""> |
|
@ -204,6 +203,7 @@ |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail); |
|
|
items.push(item) |
|
|
items.push(item) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
console.log("数量",item.qty) |
|
|
item.qty = calc.add(item.qty,detail.qty) |
|
|
item.qty = calc.add(item.qty,detail.qty) |
|
|
let newDetail = this.createDetailInfo(detail); // |
|
|
let newDetail = this.createDetailInfo(detail); // |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail); |
|
@ -252,8 +252,7 @@ |
|
|
item.handleQty = 0; |
|
|
item.handleQty = 0; |
|
|
for (let detail of item.subList) { |
|
|
for (let detail of item.subList) { |
|
|
if (detail != undefined && detail.scaned) { |
|
|
if (detail != undefined && detail.scaned) { |
|
|
console.log("数量",Number(detail.qty)) |
|
|
item.handleQty = calc.add(item.handleQty,detail.qty) |
|
|
item.handleQty += Number(detail.qty) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|