|
|
@ -46,7 +46,7 @@ |
|
|
|
|
|
|
|
<view class="item-right-price-count"> |
|
|
|
<view class="item-right-price-row" :style="{color:item.erp_goods.stock_num?'#FF873D':'#9A9A9D'}"> |
|
|
|
<view><text>¥</text>{{ item.erp_goods.erp_goods_price }}</view> |
|
|
|
<view><text>¥</text>{{ item.assistant_price }}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="item-right-count-row"> |
|
|
@ -225,11 +225,6 @@ export default { |
|
|
|
url: `/subpackage/retail/pages/search/search?data=${encodeURIComponent(JSON.stringify(data))}` |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 购物车输入确认 |
|
|
|
cartInputConfirm(value, i) { |
|
|
|
this.cartList[i].erp_goods_price = value; |
|
|
|
this.calcTotalPriceAndCount(); // 计算购物车总价跟总量 |
|
|
|
}, |
|
|
|
// 清空购物车 |
|
|
|
clearCart() { |
|
|
|
this.cartList = []; |
|
|
@ -359,7 +354,7 @@ export default { |
|
|
|
let count = 0; |
|
|
|
|
|
|
|
for (let i = 0; i < this.cartList.length; ++i) { |
|
|
|
price = parseFloat(price) + parseFloat(this.cartList[i].count * this.cartList[i].erp_goods.erp_goods_price); |
|
|
|
price = parseFloat(price) + parseFloat(this.cartList[i].count * this.cartList[i].assistant_price); |
|
|
|
count += this.cartList[i].count; |
|
|
|
} |
|
|
|
this.totalPrice = price.toFixed(2); |
|
|
|