|
@@ -56,7 +56,7 @@
|
|
|
<view class="item-detail-text flex_1">
|
|
|
<view @click="openPriceModal(item)">
|
|
|
<text class="item-price" v-if="showCarPrice">¥{{item.price||0}}</text>
|
|
|
- <text class="item-price" v-else>¥{{item.cost||0}}</text>
|
|
|
+ <text class="item-price" v-if="showCostPrice">¥{{item.cost||0}}</text>
|
|
|
<u-icon name="arrow-right" v-if="priceShowVal"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -108,7 +108,7 @@
|
|
|
<view class="flex justify_between">
|
|
|
<view class="item-detail-text flex_1" @click="openPriceModal(item)">
|
|
|
<text class="item-price" v-if="showCarPrice">¥{{item.price||0}}</text>
|
|
|
- <text class="item-price" v-else>¥{{item.cost||0}}</text>
|
|
|
+ <text class="item-price" v-if="showCostPrice">¥{{item.cost||0}}</text>
|
|
|
<u-icon name="arrow-right" v-if="priceShowVal"></u-icon>
|
|
|
</view>
|
|
|
<view class="item-detail-text" v-if="item.currentInven">
|
|
@@ -180,7 +180,7 @@
|
|
|
<view class="flex justify_between">
|
|
|
<view class="item-detail-text flex_1">
|
|
|
<text class="item-price" v-if="showCarPrice">¥{{item.price||0}}</text>
|
|
|
- <text class="item-price" v-else>¥{{item.cost||0}}</text>
|
|
|
+ <text class="item-price" v-if="showCostPrice">¥{{item.cost||0}}</text>
|
|
|
</view>
|
|
|
<view class="item-detail-text">
|
|
|
<u-number-box @change="updateCartNums" @blur="updateCartNums" v-model="item.qty" :index="'cart_'+item.productSn" :min="0" :max="item.currentInven||999999"></u-number-box>
|
|
@@ -323,7 +323,7 @@
|
|
|
getShowPriceType(){
|
|
|
const storeShelf = this.$store.state.vuex_storeShelf
|
|
|
findShelfUserParam({shelfSn: storeShelf?storeShelf.shelfSn:''}).then(res => {
|
|
|
- this.priceShowVal = res.data.carOwnerPrice == '1' && res.data.purchasesPrice == '1'
|
|
|
+ this.priceShowVal = res.data ? res.data.carOwnerPrice == '1' && res.data.purchasesPrice == '1' : false
|
|
|
// 选中了2中价格,则从列表显示价格中取值
|
|
|
if(this.priceShowVal){
|
|
|
// 进货价
|
|
@@ -332,9 +332,9 @@
|
|
|
this.showCarPrice = res.data.priceShowType == 'CAR_OWNER_PRICE'
|
|
|
}else{
|
|
|
// 进货价
|
|
|
- this.showCostPrice = res.data.purchasesPrice == '1'
|
|
|
+ this.showCostPrice = res.data ? res.data.purchasesPrice == '1' : false
|
|
|
// 车主价
|
|
|
- this.showCarPrice = res.data.carOwnerPrice == '1'
|
|
|
+ this.showCarPrice = res.data ? res.data.carOwnerPrice == '1' : false
|
|
|
}
|
|
|
})
|
|
|
},
|