更新了商品管理批发价

This commit is contained in:
weipengfei 2023-12-01 11:42:20 +08:00
parent 130212a96c
commit 1176e928bf
2 changed files with 27 additions and 5 deletions

View File

@ -45,8 +45,14 @@
<span>销量{{ item.sales }}</span> <span>销量{{ item.sales }}</span>
</view> </view>
<view class="shop_list_item_shop_con_price"> <view class="shop_list_item_shop_con_price">
<span>{{ item.price }}</span> <block v-if="mer_info.type_code=='TypeSupplyChain'">
<del>{{ item.ot_price }}</del> <block v-if="item.attrValue[0]">
<text class='price font-color'>{{item.attrValue[0].procure_price}}</text>
<text class='ot_price'>零售价{{item.attrValue[0].price}}</text>
</block>
<text v-else class='ot_price'>商品规格错误</text>
</block>
<text v-else class='price font-color'>{{item.price}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -87,6 +93,7 @@ export default {
childIndex: 0, childIndex: 0,
menuList: [], menuList: [],
merId: '', merId: '',
mer_info: {},
shopList: [], shopList: [],
loaded: false, loaded: false,
loading: false, loading: false,
@ -110,6 +117,9 @@ export default {
}, },
onLoad(opt) { onLoad(opt) {
let user = this.$store.state.app.userInfo;
if(typeof user == 'string') user = JSON.parse(user);
this.mer_info = user.mer_info;
this.merId = opt.mer_id; this.merId = opt.mer_id;
this.getProductTitle(); this.getProductTitle();
this.$set(this, 'type', opt.type ? Number(opt.type) : 1); this.$set(this, 'type', opt.type ? Number(opt.type) : 1);
@ -420,6 +430,12 @@ export default {
font-size: 26rpx; font-size: 26rpx;
} }
} }
.ot_price {
color: #bebebe;
font-size: 26rpx;
margin-left: 10rpx;
// text-decoration: line-through;
}
} }
} }
&_handle { &_handle {

View File

@ -112,8 +112,14 @@
<text class="num">销量: {{item.sales}}</text> <text class="num">销量: {{item.sales}}</text>
</view> </view>
<view class='money-wrap'> <view class='money-wrap'>
<text class='price font-color'>{{item.price}}</text> <block v-if="mer_info.type_code=='TypeSupplyChain'">
<text class='ot_price'>{{item.ot_price}}</text> <block v-if="item.attrValue[0]">
<text class='price font-color'>{{item.attrValue[0].procure_price}}</text>
<text class='ot_price'>零售价{{item.attrValue[0].price}}</text>
</block>
<text v-else class='ot_price'>商品规格错误</text>
</block>
<text v-else class='price font-color'>{{item.price}}</text>
</view> </view>
</view> </view>
@ -985,7 +991,7 @@
.ot_price { .ot_price {
color: #bebebe; color: #bebebe;
font-size: 26rpx; font-size: 26rpx;
text-decoration: line-through; // text-decoration: line-through;
} }
} }