jufubao-admin-library 1.1.59 → 1.1.61

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.
@@ -24,11 +24,11 @@
24
24
  {{$xdHelper.divisionFloatNumber(inScope.row.volume, 100)}}m³
25
25
  </template>
26
26
  <template slot="jfb_price_ratio" slot-scope="inScope">
27
- <div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_jfb_discount_ratio, 1000)}}</span>折</div>
27
+ <div v-if="inScope.row.purchase_div_jfb_discount_ratio">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_jfb_discount_ratio, 1000)}}</span>折</div>
28
28
  <div v-if="inScope.row.dist_div_jfb_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_jfb_discount_ratio, 1000)}}</span>折</div>
29
29
  </template>
30
30
  <template slot="market_price_ratio" slot-scope="inScope">
31
- <div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_market_discount_ratio, 1000)}}</span>折</div>
31
+ <div v-if="inScope.row.purchase_div_market_discount_ratio">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_market_discount_ratio, 1000)}}</span>折</div>
32
32
  <div v-if="inScope.row.dist_div_market_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_market_discount_ratio, 1000)}}</span>折</div>
33
33
  </template>
34
34
  </xd-table>
@@ -75,6 +75,8 @@
75
75
  datePricesRow:null,
76
76
  sku_name:'',
77
77
  isShowPurchasePrice: false,
78
+ isShowJfbPriceRatio: false,
79
+ isShowMarketPriceRatio: false
78
80
  }
79
81
  },
80
82
  computed:{
@@ -137,9 +139,9 @@
137
139
  {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
138
140
  this.isShowPurchasePrice && {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
139
141
  {"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
140
- {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
142
+ this.isShowJfbPriceRatio && {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
141
143
  {"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
142
- {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
144
+ this.isShowMarketPriceRatio && {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
143
145
  {"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
144
146
  {"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
145
147
  {"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
@@ -165,6 +167,8 @@
165
167
  created(){
166
168
  if(this.productSkuList && this.productSkuList.length && this.productSkuList.length > 0) {
167
169
  this.isShowPurchasePrice = this.productSkuList[0].specs.purchase_price > 0;
170
+ this.isShowJfbPriceRatio = (this.productSkuList[0].specs.purchase_div_jfb_discount_ratio || this.productSkuList[0].specs.dist_div_jfb_discount_ratio)?true:false;
171
+ this.isShowMarketPriceRatio = (this.productSkuList[0].specs.purchase_div_market_discount_ratio || this.productSkuList[0].specs.dist_div_market_discount_ratio)?true:false;
168
172
  }
169
173
  },
170
174
  methods: {
@@ -97,7 +97,7 @@
97
97
  v-if="item.nickName"
98
98
  :style="{
99
99
  color: item.color,
100
- fontSize: item['material_font_size'] + 4 + 'px',
100
+ fontSize: Number(item['material_font_size']) + 4 + 'px',
101
101
  paddingBottom: item['material_p_spacing'] + 'px'
102
102
  }"
103
103
  >{{item.nickName}}</div>
@@ -117,10 +117,10 @@
117
117
  :style="{
118
118
  color: item.color,
119
119
  paddingTop: item['material_p_spacing'] + 'px',
120
- fontSize: item['material_font_size'] + 4 + 'px',
120
+ fontSize: Number(item['material_font_size']) + 4 + 'px',
121
121
  }"
122
122
  >{{item.companyName}}</div>
123
- <div class="iphone-box-content__text-btn" v-if="key === 'detail'" :style="{paddingTop: item['material_p_spacing'] + 'px',}">
123
+ <div class="iphone-box-content__text-btn" v-if="key === 'detail'" :style="{paddingTop: item['material_b_spacing'] + 'px',}">
124
124
  <div>去签收</div>
125
125
  </div>
126
126
  </div>
@@ -675,6 +675,7 @@ export default {
675
675
  let fontSize = 28;
676
676
  let lineHeight = 50;
677
677
  let spacing = 20;
678
+ let bSpacing = 100
678
679
 
679
680
  //详情
680
681
  if(this.mainActive === 'material_detail_config') {
@@ -815,6 +816,14 @@ export default {
815
816
  className: "input100",
816
817
  type:'number',
817
818
  },
819
+ this.mainActive === 'material_detail_config'&&params['material_status'] ==='Y' && {
820
+ label: "按钮间距",
821
+ ele: "el-input",
822
+ value: params['material_b_spacing'] || bSpacing ,
823
+ valueKey: "material_b_spacing",
824
+ className: "input100",
825
+ type:'number',
826
+ },
818
827
 
819
828
 
820
829
  ].filter(i=>i);
@@ -838,6 +847,7 @@ export default {
838
847
  let fontSize = 28;
839
848
  let lineHeight = 50;
840
849
  let spacing = 20;
850
+ let bSpacing = 100;
841
851
 
842
852
  //详情
843
853
  if(params['key'] === 'material_detail_config') {
@@ -849,9 +859,10 @@ export default {
849
859
  fontSize = 32;
850
860
  lineHeight = 60;
851
861
  spacing = 50;
862
+ bSpacing = 100;
852
863
  }
853
- params['companyName'] = (item['material_end'] ||'') .replace('{{company}}','聚福宝福利');
854
- params['nickName'] = (item['material_nickname'] ||'') .replace('{{name}}','李婷夏');
864
+ params['companyName'] = (item['material_end'] ||'') .replace('{{company}}','xxxx');
865
+ params['nickName'] = (item['material_nickname'] ||'') .replace('{{name}}','xxx');
855
866
  params['isText'] = (item['material_status'] || 'Y') === 'Y';
856
867
  params['outHeight'] = (item['material_height'] || defaultHeight);
857
868
  if(params['outHeight'] > 1246) params['outHeight'] = params['outHeight'] - 21*1334/750;
@@ -859,6 +870,7 @@ export default {
859
870
  params['material_line_height'] = item['material_line_height'] || lineHeight;
860
871
  params['material_font_size'] = Number(item['material_font_size'] || fontSize);
861
872
  params['material_p_spacing'] = Number(item['material_p_spacing'] || spacing);
873
+ params['material_b_spacing'] = Number(item['material_b_spacing'] || spacing);
862
874
  params['colorText'] = Color(item['material_color'] || colorValue).alpha(0.9).toString();
863
875
  params['color'] = item['material_color'] || colorValue;
864
876
  params['material_content'] = item['material_content'] || '';
@@ -658,6 +658,7 @@ export default {
658
658
  align-items: center;
659
659
  & img {
660
660
  width: 100%;
661
+ height: 100%;
661
662
  }
662
663
  & i {
663
664
  font-size: 100px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {