|
@@ -13,18 +13,13 @@
|
|
|
<text class="item-name">{{ item.itemName }}</text>
|
|
<text class="item-name">{{ item.itemName }}</text>
|
|
|
<text class="item-price">
|
|
<text class="item-price">
|
|
|
<text class="unit">¥</text>
|
|
<text class="unit">¥</text>
|
|
|
-
|
|
|
|
|
- <text class="price">{{
|
|
|
|
|
- item.itemPrice || getSelectItemPrice(item)
|
|
|
|
|
- }}</text>
|
|
|
|
|
|
|
+ <text class="price">{{item.itemPrice || getSelectItemPrice(item)}}</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-line">
|
|
<view class="info-line">
|
|
|
<text class="item-type"></text>
|
|
<text class="item-type"></text>
|
|
|
<text class="item-count">
|
|
<text class="item-count">
|
|
|
- <text >{{`${item.bigCount}`}}</text>
|
|
|
|
|
- <text >/</text>
|
|
|
|
|
- <text >{{ `${item.smallCount}` }}</text>
|
|
|
|
|
|
|
+ <text >{{`${item.bigCount}`}}扎</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -32,13 +27,10 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="summary-bar">
|
|
<view class="summary-bar">
|
|
|
<view class="operate-view" @click="gobackEvent">
|
|
<view class="operate-view" @click="gobackEvent">
|
|
|
- <text class="iconfont icongouwuche"></text>
|
|
|
|
|
- 重选花材
|
|
|
|
|
|
|
+ <text class="iconfont icongouwuche"></text>重选花材
|
|
|
</view>
|
|
</view>
|
|
|
<view class="describe-view">
|
|
<view class="describe-view">
|
|
|
- 共{{ selectList.length }}种,
|
|
|
|
|
- <!-- 共16扎9支, -->
|
|
|
|
|
- 合计 {{`${selectAllRealityWeight}kg`}} ¥{{ selectAllPrice }}
|
|
|
|
|
|
|
+ 共{{ selectList.length }}种,合计 ¥{{ selectAllPrice }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -106,6 +98,10 @@
|
|
|
<view class="tui-title ">总运费</view>
|
|
<view class="tui-title ">总运费</view>
|
|
|
<view>{{totalFreight}}</view>
|
|
<view>{{totalFreight}}</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <view class="tui-title ">总重量</view>
|
|
|
|
|
+ <view>{{calcTotalWeight}}</view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title ">每公斤运费</view>
|
|
<view class="tui-title ">每公斤运费</view>
|
|
|
<view>{{perKgFreight}}</view>
|
|
<view>{{perKgFreight}}</view>
|
|
@@ -199,7 +195,7 @@ export default {
|
|
|
console.log(this.selectList,'selectList')
|
|
console.log(this.selectList,'selectList')
|
|
|
for (const item of this.selectList) {
|
|
for (const item of this.selectList) {
|
|
|
if (item.itemPrice) {
|
|
if (item.itemPrice) {
|
|
|
- price += Number(item.itemPrice);
|
|
|
|
|
|
|
+ price += Number(item.itemPrice)*Number(item.bigCount);
|
|
|
} else {
|
|
} else {
|
|
|
price += this.getSelectItemPrice(item);
|
|
price += this.getSelectItemPrice(item);
|
|
|
}
|
|
}
|
|
@@ -209,13 +205,11 @@ export default {
|
|
|
this.totalPrice = price.toFixed(2);
|
|
this.totalPrice = price.toFixed(2);
|
|
|
return price.toFixed(2);
|
|
return price.toFixed(2);
|
|
|
},
|
|
},
|
|
|
- selectAllRealityWeight(){
|
|
|
|
|
|
|
+ calcTotalWeight(){
|
|
|
let realityWeight = 0;
|
|
let realityWeight = 0;
|
|
|
if (this.selectList) {
|
|
if (this.selectList) {
|
|
|
for (const item of this.selectList) {
|
|
for (const item of this.selectList) {
|
|
|
- if (item.realityWeight) {
|
|
|
|
|
- realityWeight += Number(item.realityWeight);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ realityWeight += Number(item.weight)*Number(item.bigCount);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
let calcWeight = realityWeight.toFixed(2);
|
|
let calcWeight = realityWeight.toFixed(2);
|
|
@@ -264,7 +258,7 @@ export default {
|
|
|
let localCharge = Number(this.form.localCharge) > 0 ? Number(this.form.localCharge) : 0
|
|
let localCharge = Number(this.form.localCharge) > 0 ? Number(this.form.localCharge) : 0
|
|
|
let pickCharge = Number(this.form.pickCharge) > 0 ? Number(this.form.pickCharge) : 0
|
|
let pickCharge = Number(this.form.pickCharge) > 0 ? Number(this.form.pickCharge) : 0
|
|
|
this.totalFreight = (packingCharge+longCharge+shortCharge+localCharge+pickCharge).toFixed(2)
|
|
this.totalFreight = (packingCharge+longCharge+shortCharge+localCharge+pickCharge).toFixed(2)
|
|
|
- this.perKgFreight = (this.totalFreight / this.selectAllRealityWeight).toFixed(2)
|
|
|
|
|
|
|
+ this.perKgFreight = (this.totalFreight / this.calcTotalWeight).toFixed(2)
|
|
|
},
|
|
},
|
|
|
_getDet() {
|
|
_getDet() {
|
|
|
let data = uni.getStorageSync("modifyShopB");
|
|
let data = uni.getStorageSync("modifyShopB");
|
|
@@ -327,7 +321,6 @@ export default {
|
|
|
bigNum: ele.bigCount,
|
|
bigNum: ele.bigCount,
|
|
|
smallNum: ele.smallCount,
|
|
smallNum: ele.smallCount,
|
|
|
itemId:ele.itemId,
|
|
itemId:ele.itemId,
|
|
|
- weight:ele.realityWeight,
|
|
|
|
|
itemPrice: ele.itemPrice || this.getSelectItemPrice(ele)
|
|
itemPrice: ele.itemPrice || this.getSelectItemPrice(ele)
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|