|
@@ -31,8 +31,8 @@
|
|
|
<text class="iconfont icongouwuche"></text>返回修改
|
|
<text class="iconfont icongouwuche"></text>返回修改
|
|
|
</view>
|
|
</view>
|
|
|
<view class="describe-view">
|
|
<view class="describe-view">
|
|
|
- 共 <text style="font-size:30upx;font-weight:bold;" v-if="Number(totalItemNum.big)>0">{{totalItemNum.big?parseFloat(totalItemNum.big):0}}扎</text>
|
|
|
|
|
- <text style="font-size:30upx;font-weight:bold;" v-if="Number(totalItemNum.small)>0">{{totalItemNum.small?parseFloat(totalItemNum.small):0}}支</text>
|
|
|
|
|
|
|
+ 共 <text style="font-weight:bold;" v-if="Number(totalItemNum.big)>0">{{totalItemNum.big?parseFloat(totalItemNum.big):0}}扎</text>
|
|
|
|
|
+ <text style="font-weight:bold;" v-if="Number(totalItemNum.small)>0">{{totalItemNum.small?parseFloat(totalItemNum.small):0}}支</text>
|
|
|
,{{ selectList.length }}种,合计 ¥{{ selectAllPrice }}
|
|
,{{ selectList.length }}种,合计 ¥{{ selectAllPrice }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -305,14 +305,20 @@ export default {
|
|
|
if (this.selectList) {
|
|
if (this.selectList) {
|
|
|
console.log(this.selectList,'selectList')
|
|
console.log(this.selectList,'selectList')
|
|
|
for (const item of this.selectList) {
|
|
for (const item of this.selectList) {
|
|
|
- price += Number(item.userPrice)*Number(item.bigCount);
|
|
|
|
|
|
|
+ if(Number(item.bigCount)>0){
|
|
|
|
|
+ price += Number(item.userPrice)*Number(item.bigCount);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ price += Number(item.userPrice)*Number(item.smallCount);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
let finalPrice = price.toFixed(2);
|
|
let finalPrice = price.toFixed(2);
|
|
|
finalPrice = parseFloat(finalPrice)
|
|
finalPrice = parseFloat(finalPrice)
|
|
|
this.modifyPrice = finalPrice
|
|
this.modifyPrice = finalPrice
|
|
|
this.totalPrice = finalPrice
|
|
this.totalPrice = finalPrice
|
|
|
- return price.toFixed(2);
|
|
|
|
|
|
|
+ let newPrice = price.toFixed(2);
|
|
|
|
|
+ newPrice = parseFloat(newPrice)
|
|
|
|
|
+ return newPrice
|
|
|
},
|
|
},
|
|
|
calcTotalWeight(){
|
|
calcTotalWeight(){
|
|
|
let realityWeight = 0;
|
|
let realityWeight = 0;
|
|
@@ -585,10 +591,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
.describe-view {
|
|
.describe-view {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
-
|
|
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
- font-size: 24upx;
|
|
|
|
|
|
|
+ font-size:27upx;
|
|
|
.price {
|
|
.price {
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
font-size: 36upx;
|
|
font-size: 36upx;
|