|
@@ -88,17 +88,11 @@
|
|
|
onLoad() {
|
|
|
this.shelfSn = this.hasShelf.shelfSn
|
|
|
this.priceShowType = this.$store.state.vuex_priceTypeList
|
|
|
- this.getPriceCofig()
|
|
|
},
|
|
|
onShow() {
|
|
|
this.getRow()
|
|
|
},
|
|
|
methods:{
|
|
|
- // 获取价格配置
|
|
|
- getPriceCofig(){
|
|
|
- this.priceType[0].show = this.configPrice.shelf_cost_show == '1' || this.configPrice.non_shelf_cost_show == '1'
|
|
|
- this.priceType[1].show = this.configPrice.shelf_price_show == '1' || this.configPrice.non_shelf_price_show == '1'
|
|
|
- },
|
|
|
priceChange(e,item){
|
|
|
console.log(e,item)
|
|
|
const row = item.storeParamList.find(k => k.paramCode == e.name)
|
|
@@ -131,6 +125,10 @@
|
|
|
item.carPriceVal = cop?cop.paramValue:''
|
|
|
const pp = a.find(b=>b.paramCode=='PURCHASES_PRICE') // 进货价值
|
|
|
item.ppPriceVal = pp?pp.paramValue:''
|
|
|
+
|
|
|
+ // 列表显示价格选项判断
|
|
|
+ this.priceType[0].show = pp.status == 1
|
|
|
+ this.priceType[1].show = cop.status == 1
|
|
|
item.priceTypeList = JSON.parse(JSON.stringify(this.priceType.filter(item => item.show)))
|
|
|
// 赋值
|
|
|
item.priceTypeList.map(key => {
|