jufubao-admin-library 1.1.173 → 1.1.175

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.
@@ -130,7 +130,7 @@ export default {
130
130
  server: this.channelServer || 'supplier-partner',
131
131
  fn: 'supplier-channel',
132
132
  path: 'p1',
133
- params: this.channelParams
133
+ params: {...this.channelParams,from:1}
134
134
  })
135
135
  let all = [];
136
136
  this.isMain = channelTabList.data.list.length > 0;
@@ -428,7 +428,9 @@
428
428
  && policySettingObj.data.formula.options
429
429
  && policySettingObj.data.formula.options.length > 0
430
430
  ) {
431
- commonConfig['sale_price_base'] = policySettingObj.data.formula;
431
+ if(this.channelParams.scene === 'modifyprice'||this.channelParams.scene === 'select'){
432
+ commonConfig['sale_price_base'] = policySettingObj.data.formula;
433
+ }
432
434
  }
433
435
 
434
436
  this.policySettingObj = Object.assign({},commonConfig,policySettingObj.data.conditions) ;
@@ -515,6 +515,18 @@ export default {
515
515
  ],
516
516
  inline: false,
517
517
  },
518
+ this.channelParams.scene === "select" && this.checkConfig('delivery_logistics_company') && {
519
+ label: "配送公司:", //label
520
+ ele: "xd-select-list", //package 名称
521
+ valueKey: "delivery_logistics_company", //form[valueKey]
522
+ value: params.delivery_logistics_company || '', //v-model
523
+ placeholder: "请选择配送公司",
524
+ multiple: false, //多选
525
+ list: [{
526
+ value: 'jd',
527
+ label: '京东物流',
528
+ }],
529
+ },
518
530
  this.checkConfig('sale_price_base')&&(this.is_has_formula||this.adjust_price_type==='new') && {
519
531
  label: '售价调整',
520
532
  ele: 'title',
@@ -684,18 +696,6 @@ export default {
684
696
  // multiple: false,
685
697
  // list: this.modifypriceList,
686
698
  // },
687
- this.channelParams.scene === "select" && this.checkConfig('delivery_logistics_company') && {
688
- label: "配送公司:", //label
689
- ele: "xd-select-list", //package 名称
690
- valueKey: "delivery_logistics_company", //form[valueKey]
691
- value: params.delivery_logistics_company || '', //v-model
692
- placeholder: "请选择配送公司",
693
- multiple: false, //多选
694
- list: [{
695
- value: 'jd',
696
- label: '京东物流',
697
- }],
698
- },
699
699
 
700
700
  ].filter(i => i)
701
701
  },
@@ -271,7 +271,8 @@ export default {
271
271
  path: "p3",
272
272
  params:{
273
273
  type:'market',
274
- consume_mode:this.storeType
274
+ consume_mode:this.storeType,
275
+ from:1,
275
276
  }
276
277
  }).then((res) => {
277
278
  this.channelTabList = res.data.channel_data
@@ -130,7 +130,8 @@ export default {
130
130
  fn: "select-shop-channel",
131
131
  path: "p3",
132
132
  params:{
133
- type:'market'
133
+ type:'market',
134
+ from:1,
134
135
  }
135
136
  }).then((res) => {
136
137
  this.channelTabList = res.data.channel_data
@@ -384,7 +384,8 @@ export default {
384
384
  fn: "select-shop-channel",
385
385
  path: "p3",
386
386
  params:{
387
- type:'select'
387
+ type:'select',
388
+ from:1,
388
389
  }
389
390
  }).then((res) => {
390
391
  this.channelTabList = res.data.channel_data
@@ -149,6 +149,7 @@ export default {
149
149
  wallet_type: row.wallet_type,
150
150
  wallet_nnid: row.wallet_nnid,
151
151
  partner_name: row.partner_name,
152
+ is_from_home:'N'
152
153
  }
153
154
  })
154
155
  }
@@ -422,6 +422,9 @@ export default {
422
422
  partner_name() {
423
423
  return this.$route.query.partner_name;
424
424
  },
425
+ is_from_home(){
426
+ return this.$route.query.is_from_home;
427
+ },
425
428
  },
426
429
  watch: {
427
430
  channel_code(val) {
@@ -563,6 +566,7 @@ export default {
563
566
  const other = this.getParams();
564
567
  let params = {
565
568
  ...other,
569
+ is_from_home:this.is_from_home,
566
570
  export: true,
567
571
  file_ext: "xlsx",
568
572
  file_name: this.exportName,
@@ -594,6 +598,7 @@ export default {
594
598
  const other = this.getParams();
595
599
  let params = {
596
600
  ...other,
601
+ is_from_home:this.is_from_home,
597
602
  page_token: this.page_token,
598
603
  page_size: this.page_size,
599
604
  };
@@ -267,7 +267,8 @@ export default {
267
267
  query: {
268
268
  wallet_type: row.wallet_type,
269
269
  wallet_nnid: row.wallet_nnid,
270
- partner_name: row.partner_name
270
+ partner_name: row.partner_name,
271
+ is_from_home:'Y'
271
272
  }
272
273
  })
273
274
  }
@@ -59,5 +59,17 @@ module.exports = {
59
59
  disabled: true,
60
60
  role: '',
61
61
  },
62
+ {
63
+ mapFn: 'getPolicyListSetting',
64
+ isRule: false,
65
+ title: '超管获取规则配置表',
66
+ isPublic: true,
67
+ path: '/product-partner/v1/:xspace/agg-channel-filters',
68
+ params: {
69
+ agg_channel_code: ['聚合渠道', 'String', '必填'],
70
+ xspace: ['xspace', 'String', '必填']
71
+ },
72
+ disabled: true,
73
+ },
62
74
  ],
63
75
  }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div class="app-container">
3
+ <el-card class="app-container__list" style="margin-bottom: 20px;">
3
4
  <div class="main-tab">
4
5
  <el-tabs
5
6
  type="card"
@@ -36,6 +37,7 @@
36
37
  </template>
37
38
  </xd-search>
38
39
  </div>
40
+ </el-card>
39
41
  <el-card class="app-container__list">
40
42
  <div class="app-container__list-pagination">
41
43
  <div style="display: flex; justify-content: space-between; width: 100%">
@@ -370,16 +372,20 @@ export default {
370
372
  xnamespace: this.business_code,
371
373
  scene: "selected",
372
374
  type: "MALL",
375
+ from:1,
373
376
  },
374
377
  }).then((res) => {
375
378
  this.channelTabList = res.data.list;
376
379
  this.channelTabList.unshift({
377
380
  label: "全部",
378
- value: "",
381
+ value: 'all'
379
382
  });
380
383
  this.channelActiveName = this.channelTabList[0].value;
381
- this.initSearchForm();
382
384
  });
385
+ console.log(this.channelActiveName,'this.channelActiveName')
386
+ let setting = await this.getPolicyListSetting({agg_channel_code: this.channelActiveName,xspace: this.business_code});
387
+ console.log(setting,'ssss')
388
+ this.initSearchForm();
383
389
  await this.getList();
384
390
  },
385
391
 
@@ -389,6 +395,7 @@ export default {
389
395
  "sessionAddProduct",
390
396
  "batchSessionAddProduct",
391
397
  "getActivityCodeCount",
398
+ "getPolicyListSetting"
392
399
  ]),
393
400
 
394
401
  /**
@@ -590,8 +597,12 @@ export default {
590
597
  ].filter((i) => i);
591
598
  this.searchFormKey = Date.now();
592
599
  },
593
- handleTabClick(value) {
600
+ async handleTabClick(value) {
594
601
  console.log(value, "apapaapp");
602
+ let setting = await this.getPolicyListSetting({agg_channel_code: this.channelActiveName,xspace: this.business_code});
603
+ console.log(setting,'ssss')
604
+ this.initSearchForm();
605
+ await this.getList();
595
606
  },
596
607
 
597
608
  /**
@@ -723,7 +734,7 @@ export default {
723
734
  ...params,
724
735
  site_id: this.site_id,
725
736
  business_code: this.business_code,
726
- channel_code: this.channelActiveName != 0 ? this.channelActiveName : "",
737
+ channel_code: this.channelActiveName,
727
738
  session_id: this.session_id,
728
739
  activity_id: this.activity_id,
729
740
  page_token: this.currentPage,
@@ -828,5 +839,23 @@ export default {
828
839
  line-height: 40px;
829
840
  }
830
841
  }
842
+ ::v-deep {
843
+ .el-tabs--card > .el-tabs__header .el-tabs__item {
844
+ background: #f8f8f8;
845
+ border-bottom: 1px solid #dfe4ed !important;
846
+ &.is-top.is-active {
847
+ &:first-child {
848
+ border-radius: 2px 0 0 0;
849
+ }
850
+
851
+ &:last-child {
852
+ border-radius: 0 2px 0 0;
853
+ }
854
+ background: $blue;
855
+ border-bottom: 1px solid $blue !important;
856
+ color: #fff !important;
857
+ }
858
+ }
859
+ }
831
860
  </style>
832
861
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.173",
3
+ "version": "1.1.175",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {