|
|
@@ -78,6 +78,10 @@
|
|
|
</tui-list-cell> -->
|
|
|
</view>
|
|
|
<view class="module-com input-line-wrap">
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title ">花材重量</view>
|
|
|
+ <view>{{selectAllRealityWeight}}</view>
|
|
|
+ </tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title ">包装重量</view>
|
|
|
<input type="digit" :disabled="!canIEdit" v-model="form.packWeight" placeholder-class="phcolor" class="tui-input" name="floor" placeholder="公斤"/>
|
|
|
@@ -236,6 +240,17 @@ export default {
|
|
|
this.totalPrice = price.toFixed(2);
|
|
|
return price.toFixed(2);
|
|
|
},
|
|
|
+ selectAllRealityWeight(){
|
|
|
+ let realityWeight = 0;
|
|
|
+ if (this.selectList) {
|
|
|
+ for (const item of this.selectList) {
|
|
|
+ if (item.realityWeight) {
|
|
|
+ realityWeight += Number(item.realityWeight);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return realityWeight.toFixed(2);
|
|
|
+ },
|
|
|
canIEdit() {
|
|
|
const { orderSn } = this.option || {};
|
|
|
|