jufubao-admin-library 1.1.96 → 1.1.97-beta2

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.
@@ -109,6 +109,7 @@ export default {
109
109
  },
110
110
  cookieKey: '',
111
111
  cityData:[],
112
+ marketTagsList:[],
112
113
  }
113
114
  },
114
115
  computed: {
@@ -162,6 +163,10 @@ export default {
162
163
  if (this.JfbParent.market_tag) this.JfbParent.market_tag = market_tag
163
164
  this.productTypeList = product_type
164
165
  this.channelStatus = true
166
+ let tagsOptions = await getOptions({
167
+ server: "product-public", fn: "product", path: "p1", params: { market_tag: 1 },
168
+ })
169
+ this.marketTagsList = tagsOptions.data.market_tag
165
170
  this.initSearchForm()
166
171
  },
167
172
  methods: {
@@ -218,6 +223,12 @@ export default {
218
223
  if (this.custom_category_id && this.$xdHelper.checkVarType(this.custom_category_id) === 'array') {
219
224
  filters['custom_category_id'] = this.custom_category_id[this.custom_category_id.length - 1]
220
225
  }
226
+ if(filters['partner_product_tags_list']&&filters['partner_product_tags_list'].length){
227
+ filters['partner_product_tags'] = {
228
+ includes:filters['partner_product_tags_list']
229
+ }
230
+ delete filters['partner_product_tags_list']
231
+ }
221
232
  return { tab: this.channelActiveName, filters: filters }
222
233
  },
223
234
 
@@ -368,6 +379,24 @@ export default {
368
379
  placeholder: "请选择品牌",
369
380
  multiple: false,
370
381
  },
382
+ this.channelParams&&this.channelParams.scene === 'selected'&&{
383
+ label: "营销标签:", //label
384
+ ele: "xd-select-list", //package 名称
385
+ valueKey: "partner_product_tags_list", //form[valueKey]
386
+ value: [], //v-model
387
+ placeholder: "请选择",
388
+ multiple: true, //多选
389
+ list: this.marketTagsList,
390
+ },
391
+ this.pagesType === 'special'&&{
392
+ label: "状态:", //label
393
+ ele: "xd-select-list", //package 名称
394
+ valueKey: "site_product_status", //form[valueKey]
395
+ value: [], //v-model
396
+ placeholder: "请选择",
397
+ multiple: false, //多选
398
+ list: [{label:'已上架',value:'Y'},{label:'已下架',value:'N'}],
399
+ },
371
400
  (showSupplierIds && this.channelActiveName !== 'all') && {
372
401
  label: "按供应商:", //label
373
402
  ele: "xd-select-remote", //package 名称
@@ -23,6 +23,10 @@
23
23
  <template slot="volume" slot-scope="inScope">
24
24
  {{$xdHelper.divisionFloatNumber(inScope.row.volume, 100)}}m³
25
25
  </template>
26
+ <template slot="purchase_price" slot-scope="inScope">
27
+ <div v-if="inScope.row.purchase_price!==-1">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_price, 100)}}</span>元</div>
28
+ <div v-if="inScope.row.dist_price!==-1">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_price, 100)}}</span>元</div>
29
+ </template>
26
30
  <template slot="jfb_price_ratio" slot-scope="inScope">
27
31
  <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
32
  <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>
@@ -166,7 +170,7 @@
166
170
  },
167
171
  created(){
168
172
  if(this.productSkuList && this.productSkuList.length && this.productSkuList.length > 0) {
169
- this.isShowPurchasePrice = this.productSkuList[0].specs.purchase_price > 0;
173
+ this.isShowPurchasePrice = (this.productSkuList[0].specs.purchase_price > 0 || this.productSkuList[0].specs.dist_price > 0)?true:false;
170
174
  this.isShowJfbPriceRatio = (this.productSkuList[0].specs.purchase_div_jfb_discount_ratio || this.productSkuList[0].specs.dist_div_jfb_discount_ratio)?true:false;
171
175
  this.isShowMarketPriceRatio = (this.productSkuList[0].specs.purchase_div_market_discount_ratio || this.productSkuList[0].specs.dist_div_market_discount_ratio)?true:false;
172
176
  }
@@ -323,7 +323,7 @@ export default {
323
323
  size: "mini", //default/mini/small
324
324
  },
325
325
  {
326
- label: "按号段:", //label
326
+ label: "限制条件:", //label
327
327
  ele: "xd-radio",
328
328
  valueKey: "card_number_type", //form[valueKey]
329
329
  value: params.card_number_type || "ALL", //v-model
@@ -331,6 +331,25 @@ export default {
331
331
  list: [
332
332
  { label: "全部号段", value: "ALL" },
333
333
  { label: "自定义号段", value: "CUSTOMIZE" },
334
+ { label: "卡类型", value: "TYPE" },
335
+ ],
336
+ rules: [
337
+ {
338
+ required: true,
339
+ message: "请选择",
340
+ trigger: ["blur", "change"],
341
+ },
342
+ ],
343
+ },
344
+ params.card_number_type==='TYPE'&&{
345
+ label: "", //label
346
+ ele: "xd-radio",
347
+ valueKey: "card_model", //form[valueKey]
348
+ value: params.card_model || "d", //v-model
349
+ placeholder: "请选择",
350
+ list: [
351
+ { label: "点卡", value: "d" },
352
+ { label: "次卡", value: "c" },
334
353
  ],
335
354
  rules: [
336
355
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.96",
3
+ "version": "1.1.97-beta2",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {