|
|
@@ -18,7 +18,7 @@
|
|
|
<text class="item-type"></text>
|
|
|
<view class="item-count">
|
|
|
<input type="number" class="num" v-model="s.xhNum" placeholder="到货数量" />
|
|
|
- <text>¥{{s.xhPrePrice?parseFloat(s.xhPrePrice):0}}</text>
|
|
|
+ <text>¥{{s.xhPreUnitPrice?parseFloat(s.xhPreUnitPrice):0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
let price = 0
|
|
|
if (this.detailInfo && this.detailInfo.product) {
|
|
|
for (const item of this.detailInfo.product) {
|
|
|
- let current = Number(item.xhPrePrice)*Number(item.xhNum)
|
|
|
+ let current = Number(item.xhPreUnitPrice)*Number(item.xhNum)
|
|
|
price = Number(price)+Number(current)
|
|
|
price = parseFloat(price.toFixed(2))
|
|
|
}
|
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
if (this.detailInfo && this.detailInfo.product) {
|
|
|
for (const item of this.detailInfo.product) {
|
|
|
let name = item.name
|
|
|
- if(item.xhPrePrice.length <= 0){
|
|
|
+ if(item.xhPreUnitPrice.length <= 0){
|
|
|
this.$msg(name+' 没有价格')
|
|
|
hasError = true;
|
|
|
break;
|
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
hasError = true;
|
|
|
break;
|
|
|
}
|
|
|
- let price = item.xhPrePrice ? Number(item.xhPrePrice) : 0
|
|
|
+ let price = item.xhPreUnitPrice ? Number(item.xhPreUnitPrice) : 0
|
|
|
let productId = item.productId || 0
|
|
|
let unitType = 0
|
|
|
product = [...product,{productId,price,num,unitType}]
|