jufubao-admin-library 1.1.231 → 1.1.232

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.
@@ -16,6 +16,7 @@ module.exports = {
16
16
  trade_type: ["交易类型", "string", "必填"],
17
17
  main_order_id: ["主订单ID", "string", "非必填"],
18
18
  business_code: ["业务编码", "string", "非必填"],
19
+ site_id: ["站点ID", "string", "非必填"],
19
20
  supplier_name: ["供应商名称", "string", "非必填"],
20
21
  start_time: ["开始时间", "string", "非必填"],
21
22
  end_time: ["结束时间", "string", "非必填"],
@@ -78,6 +79,7 @@ module.exports = {
78
79
  trade_type: ["交易类型", "string", "必填"],
79
80
  main_order_id: ["主订单ID", "string", "非必填"],
80
81
  business_code: ["业务编码", "string", "非必填"],
82
+ site_id: ["站点ID", "string", "非必填"],
81
83
  supplier_name: ["供应商名称", "string", "非必填"],
82
84
  start_time: ["开始时间", "string", "非必填"],
83
85
  end_time: ["结束时间", "string", "非必填"],
@@ -56,6 +56,28 @@
56
56
  </el-select>
57
57
  </div>
58
58
  </template>
59
+ <template slot="site_id">
60
+ <div>
61
+ <el-select v-model="site_id" filterable clearable placeholder="请选择站点">
62
+ <el-option
63
+ v-for="item in siteList"
64
+ :key="item.value"
65
+ :label="item.label"
66
+ :value="item.value"
67
+ >
68
+ </el-option>
69
+ </el-select>
70
+ <el-select v-if="site_id" v-model="namespace" clearable placeholder="请选择业务线" :key="namespaceKey">
71
+ <el-option
72
+ v-for="item in namespaceList"
73
+ :key="item.value"
74
+ :label="item.label"
75
+ :value="item.value"
76
+ >
77
+ </el-option>
78
+ </el-select>
79
+ </div>
80
+ </template>
59
81
  </xd-search>
60
82
  </el-card>
61
83
  <el-card class="app-container__list">
@@ -181,6 +203,9 @@
181
203
  </template>
182
204
  </div>
183
205
  </template>
206
+ <template slot="site_business_code_name" slot-scope="scope">
207
+ <span v-html="scope.row.site_business_code_name"></span>
208
+ </template>
184
209
  <template slot="amount" slot-scope="scope">
185
210
  <xd-table-price :price="scope.row.amount" :key="rePriceKey"></xd-table-price>
186
211
  <div v-if="isShowDeductDetail(scope.row)" style="display:flex; justify-content: center; align-items: center">
@@ -327,6 +352,13 @@ export default {
327
352
  label: "商品信息",
328
353
  },
329
354
  // { "type": "normal", "prop": "category_name", "align": "center", "minWidth": 200, "label": "公式" },
355
+ {
356
+ type: "normal",
357
+ prop: "site_business_code_name",
358
+ align: "center",
359
+ minWidth: 200,
360
+ label: "站点/业务线",
361
+ },
330
362
  {
331
363
  type: "price",
332
364
  prop: "amount",
@@ -401,6 +433,11 @@ export default {
401
433
  supplier_ids: null,
402
434
  supplierList: [],
403
435
  showSupplier: false,
436
+ siteList: [],
437
+ site_id: null,
438
+ namespaceList: [],
439
+ namespace: null,
440
+ namespaceKey: 'namespaceKey',
404
441
 
405
442
  //查看明细
406
443
  dialogTableVisible:false,
@@ -434,6 +471,24 @@ export default {
434
471
  this.showSupplier = this.channelList.find(item => item.value === val).has_supplier==='Y';
435
472
  }
436
473
  },
474
+ site_id(n, o) {
475
+ if(n && n !== o) {
476
+ this.namespace = null;
477
+ this.namespaceList = [];
478
+ getOptions({
479
+ server: 'partner',
480
+ fn: 'business-line',
481
+ path: 'p1',
482
+ params: {
483
+ select_method: 'ALL-SITE',
484
+ site_id: n === '*' ? 0 : n
485
+ }
486
+ }).then(res => {
487
+ this.namespaceList = res.data.list
488
+ this.namespaceKey = Date.now()
489
+ })
490
+ }
491
+ },
437
492
  },
438
493
  created() {
439
494
  this.initSearchForm();
@@ -547,6 +602,12 @@ export default {
547
602
  if(other.rebate_from_partner_list&&other.rebate_from_partner_list.length){
548
603
  other.rebate_from_partner_id = other.rebate_from_partner_list[0]['value']
549
604
  }
605
+ if(this.site_id){
606
+ other.site_id = this.site_id
607
+ }
608
+ if(this.namespace){
609
+ other.business_code = this.namespace
610
+ }
550
611
  return {
551
612
  ...other,
552
613
  supplier_ids,
@@ -609,6 +670,9 @@ export default {
609
670
  loading.close();
610
671
  this.tables = res.data.list.map((item) => {
611
672
  item["created_time"] = baseJsDateToTime(item["created_time"]);
673
+ item["site_business_code_name"] = item["site_name"] && item["business_code_name"]
674
+ ? `${item["site_name"]}<br/>${item["business_code_name"]}`
675
+ : (item["site_name"] || item["business_code_name"] || '');
612
676
  item["product_list"] = item["product_list"].map((prod) => {
613
677
  prod["product_thumb"] = this.getImageFullPath(
614
678
  prod["product_thumb"]
@@ -635,6 +699,8 @@ export default {
635
699
  if(action === "reset") {
636
700
  this.supplier_ids=null
637
701
  this.channel_code=null
702
+ this.site_id=null
703
+ this.namespace=null
638
704
  }
639
705
  this.page_token = 1;
640
706
  this.getList();
@@ -660,10 +726,16 @@ export default {
660
726
  params: {
661
727
  type: 'partner'
662
728
  }
729
+ },
730
+ {
731
+ server: 'idaas-partner',
732
+ fn: 'sites',
733
+ path: 'p1',
663
734
  }
664
735
  ]
665
736
  ).then(res=>{
666
737
  this.channelList = res[0].data.list;
738
+ this.siteList = res[2].data.list;
667
739
  this.searchForm = [
668
740
  {
669
741
  label: "加盟商",
@@ -672,6 +744,11 @@ export default {
672
744
  value: this.partner_name || this.partner_id,
673
745
  placeholder: "请输入名称",
674
746
  },
747
+ {
748
+ label: "业务线: ",
749
+ ele: "slot",
750
+ slot: "site_id",
751
+ },
675
752
  {
676
753
  label: "账户类型",
677
754
  ele: "xd-select-list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.231",
3
+ "version": "1.1.232",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {
Binary file