jufubao-admin-library 1.1.104 → 1.1.105

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.
@@ -78,7 +78,7 @@ const storeRouter = {
78
78
  meta: {
79
79
  title: '编辑选店规则',
80
80
  activeMenu: '/store/rule-list',
81
- roles:[store_selection.selectShopRuleUpdate]
81
+ roles:[store_selection.selectShopRuleUpdate,store_selection.selectShopRuleGet]
82
82
  }
83
83
  },
84
84
  {
@@ -30,6 +30,7 @@ module.exports = {
30
30
  rule_id: ['rule_id', 'String', '选填'],
31
31
  },
32
32
  disabled: true,
33
+ role: '@@@@.@@@.SELECT_SHOP_RULE_DETAIL',
33
34
  },
34
35
  {
35
36
  title: "创建选店规则",
@@ -464,6 +465,13 @@ module.exports = {
464
465
  disabled: true,
465
466
  role: '@@@@.@@@.SELECT_SHOP_GET_RELATED_SHOPS',
466
467
  },
468
+ {
469
+ title: "一键更新门店",
470
+ mapFn: "selectShopTaskListUpdate",
471
+ isRule: false,
472
+ disabled: true,
473
+ role: '@@@@.@@@.SELECT_SHOP_TASK_LIST_UPDATE',
474
+ },
467
475
  ],
468
476
  }
469
477
 
@@ -555,14 +555,20 @@ export default {
555
555
  },
556
556
  handleCustom ({ action, data }) {
557
557
  if (action === 'btn') {
558
- if ((data.btn.event==='choose'&&data.row.is_selected!=='can_selected')||!this.isChoose) {
559
- return false
558
+ if (data.btn.event==='choose') {
559
+ if(data.row.is_selected!=='can_selected'||!this.isChoose){
560
+ return false
561
+ }
560
562
  }
561
- if (data.btn.event==='choosed'&&data.row.is_selected==='can_selected') {
562
- return false
563
+ if (data.btn.event==='choosed') {
564
+ if(data.row.is_selected==='can_selected'){
565
+ return false
566
+ }
563
567
  }
564
- if (data.btn.event==='preview'&&!this.isPreview) {
565
- return false
568
+ if (data.btn.event==='preview') {
569
+ if(!this.isPreview){
570
+ return false
571
+ }
566
572
  }
567
573
  return true
568
574
  }
@@ -453,14 +453,20 @@ export default {
453
453
  },
454
454
  handleCustom ({ action, data }) {
455
455
  if (action === 'btn') {
456
- if ((data.btn.event==='choose'&&data.row.is_selected!=='can_selected')||!this.isChoose) {
457
- return false
456
+ if (data.btn.event==='choose') {
457
+ if(data.row.is_selected!=='can_selected'||!this.isChoose){
458
+ return false
459
+ }
458
460
  }
459
- if (data.btn.event==='choosed'&&data.row.is_selected==='can_selected') {
460
- return false
461
+ if (data.btn.event==='choosed') {
462
+ if(data.row.is_selected==='can_selected'){
463
+ return false
464
+ }
461
465
  }
462
- if (data.btn.event==='preview'&&!this.isPreview) {
463
- return false
466
+ if (data.btn.event==='preview') {
467
+ if(!this.isPreview){
468
+ return false
469
+ }
464
470
  }
465
471
  return true
466
472
  }
@@ -18,7 +18,7 @@
18
18
  <div
19
19
  class="app-container__list-table-option"
20
20
  >
21
- <el-button @click="handleTableClick('look',scope.row)" type="text">查看</el-button>
21
+ <el-button v-if="isDetail" @click="handleTableClick('look',scope.row)" type="text">查看</el-button>
22
22
  <el-button v-if="isUpdate&&scope.row.rule_type!=='SY'" @click="handleTableClick('edit',scope.row)" type="text">编辑</el-button>
23
23
  <el-button v-if="isDelete&&scope.row.rule_type!=='SY'" @click="handleTableClick('delete',scope.row)" type="text">删除</el-button>
24
24
  <el-button v-if="isLog" @click="handleTableClick('log',scope.row)" type="text">修改记录</el-button>
@@ -72,6 +72,9 @@ export default {
72
72
  }
73
73
  },
74
74
  computed:{
75
+ isDetail(){
76
+ return checkPermission([permissions.store_selection.selectShopRuleGet])
77
+ },
75
78
  isAdd () {
76
79
  return checkPermission([permissions.store_selection.selectShopRuleAdd])
77
80
  },
@@ -296,6 +296,9 @@ export default {
296
296
  isOffConsume() {
297
297
  return checkPermission([permissions.store_selection.selectShopUpdateConsumeMode])
298
298
  },
299
+ isLookShops(){
300
+ return checkPermission([permissions.store_selection.selectShopGetRelatedShops])
301
+ },
299
302
  headers(){
300
303
  this.tableKey = Date.now()
301
304
  return [
@@ -778,15 +781,17 @@ export default {
778
781
  }
779
782
  }
780
783
  if (data.btn.event==='off') {
781
- if(this.site_business_status==='N'||!this.isDown||(data.row.consume_mode.includes('SELF')||data.row.consume_mode.includes('STOD')||data.row.consume_mode.includes('CODE'))){
784
+ if(this.site_business_status==='N'||!this.isDown){
782
785
  return false
783
786
  }
784
787
  }
785
- if (data.btn.event==='preview'&&!this.isPreview) {
786
- return false
788
+ if (data.btn.event==='preview') {
789
+ if(!this.isPreview){
790
+ return false
791
+ }
787
792
  }
788
793
  if (data.btn.event==='delete') {
789
- if(!this.isDelete||(data.row.consume_mode.includes('SELF')||data.row.consume_mode.includes('STOD')||data.row.consume_mode.includes('CODE'))){
794
+ if(!this.isDelete){
790
795
  return false
791
796
  }
792
797
  }
@@ -795,6 +800,11 @@ export default {
795
800
  return false
796
801
  }
797
802
  }
803
+ if (data.btn.event==='look_store') {
804
+ if(!this.isLookShops){
805
+ return false
806
+ }
807
+ }
798
808
  return true
799
809
  }
800
810
  },
@@ -808,6 +818,8 @@ export default {
808
818
  if (valid) {
809
819
  let params = {
810
820
  filters:this.getParams(),
821
+ tab:this.channelActive,
822
+ consume_mode:this.storeType,
811
823
  export: 1,
812
824
  file_ext: 'xlsx',
813
825
  file_name: this.exportFrom.name,
@@ -4,7 +4,7 @@
4
4
  <div class="app-container__list-pagination">
5
5
  <div></div>
6
6
  <div>
7
- <el-button type="primary" @click="handleExecute">一键更新门店</el-button>
7
+ <el-button type="primary" @click="handleExecute" v-if="isBatchUpdate">一键更新门店</el-button>
8
8
  <el-button type="primary" @click="handleRefresh">刷新</el-button>
9
9
  </div>
10
10
  </div>
@@ -96,6 +96,9 @@ export default {
96
96
  isStop () {
97
97
  return checkPermission([permissions.store_selection.selectShopTaskStop])
98
98
  },
99
+ isBatchUpdate(){
100
+ return checkPermission([permissions.store_selection.selectShopTaskListUpdate])
101
+ },
99
102
  headers(){
100
103
  return [
101
104
  { "type": "normal", "prop": "task_id", "align": "center", "width": 200, "label": "ID" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.104",
3
+ "version": "1.1.105",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {