jufubao-admin-library 1.1.46 → 1.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,41 +67,14 @@
67
67
  XdDialog
68
68
  },
69
69
  data(){
70
- let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
71
70
  return {
72
- uiSkusHeaders: [
73
- {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
74
- {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
75
- {"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
76
- {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
77
- {"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
78
- {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
79
- {"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
80
- {"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
81
- {"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
82
- {"type": "normal", "prop": "product_code", "align": "left", "min-width": 80, "label": "商品编码"},
83
- {"type": "normal", "prop": "product_bar_code", "align": "left", "min-width": 80, "label": "商品条码"},
84
- {
85
- type: "operate",
86
- align: "center",
87
- width: 100,
88
- label: "价格日历",
89
- values: [
90
- {
91
- ui: "text-button",
92
- target: "_blank",
93
- name: "查看",
94
- type: "text",
95
- event: "look",
96
- },]
97
- }
98
- ],
99
71
  //价格日历
100
72
  dialogSetPrices:false,
101
73
  setPricesTables:[],
102
74
  setPricesTablesKey:'setPricesTablesKey',
103
75
  datePricesRow:null,
104
76
  sku_name:'',
77
+ isShowPurchasePrice: false,
105
78
  }
106
79
  },
107
80
  computed:{
@@ -157,10 +130,42 @@
157
130
  label: "售价",
158
131
  },
159
132
  ].filter(i=>i)
133
+ },
134
+ uiSkusHeaders(){
135
+ let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
136
+ return [
137
+ {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
138
+ this.isShowPurchasePrice && {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
139
+ {"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
140
+ {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
141
+ {"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
142
+ {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
143
+ {"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
144
+ {"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
145
+ {"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
146
+ {"type": "normal", "prop": "product_code", "align": "left", "min-width": 80, "label": "商品编码"},
147
+ {"type": "normal", "prop": "product_bar_code", "align": "left", "min-width": 80, "label": "商品条码"},
148
+ {
149
+ type: "operate",
150
+ align: "center",
151
+ width: 100,
152
+ label: "价格日历",
153
+ values: [
154
+ {
155
+ ui: "text-button",
156
+ target: "_blank",
157
+ name: "查看",
158
+ type: "text",
159
+ event: "look",
160
+ },]
161
+ }
162
+ ]
160
163
  }
161
164
  },
162
165
  created(){
163
- console.log(this.uiSkusHeaders,'this.uiSkusHeaders')
166
+ if(this.productSkuList && this.productSkuList.length && this.productSkuList.length > 0) {
167
+ this.isShowPurchasePrice = this.productSkuList[0].specs.purchase_price > 0;
168
+ }
164
169
  },
165
170
  methods: {
166
171
  getTableDataFromResponseData(data = []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {