@bit-sun/business-component 4.2.1-alpha.4-aiwei → 4.2.1-alpha.6-aiwei

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.
package/dist/index.esm.js CHANGED
@@ -11342,6 +11342,17 @@ function commonFun(type, prefixUrl, parentProps) {
11342
11342
  }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11343
11343
  'qp-status-eq': 1
11344
11344
  }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11345
+ var _x$, _x$$data$, _x$$data$$channelInfo;
11346
+ debugger;
11347
+ // 战区限制一级数据
11348
+ var newData1 = [];
11349
+ (_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
11350
+ newData1.push({
11351
+ code: item.code,
11352
+ name: item.name
11353
+ });
11354
+ });
11355
+ x[0].data = newData1;
11345
11356
  var channelDisabledJude = function channelDisabledJude(data) {
11346
11357
  return data['parentCode'] === '0';
11347
11358
  }; // 所属销售渠道 树节点不能点判断
@@ -11467,7 +11478,7 @@ function commonFun(type, prefixUrl, parentProps) {
11467
11478
  },
11468
11479
  width: 100
11469
11480
  }, {
11470
- title: '所属销售渠道',
11481
+ title: '战区',
11471
11482
  dataIndex: 'channelName',
11472
11483
  defaultSort: 4,
11473
11484
  width: 100
@@ -11550,7 +11561,7 @@ function commonFun(type, prefixUrl, parentProps) {
11550
11561
  }, {
11551
11562
  name: 'qp-channelCode-in',
11552
11563
  type: 'treeSelect',
11553
- label: '销售渠道',
11564
+ label: '战区',
11554
11565
  field: {
11555
11566
  type: 'treeSelect',
11556
11567
  props: {
@@ -11586,7 +11597,16 @@ function commonFun(type, prefixUrl, parentProps) {
11586
11597
  'qp-isMain-eq': 1,
11587
11598
  'qp-type-in': '1,2'
11588
11599
  }, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
11600
+ var _x$2, _x$2$data$, _x$2$data$$channelInf;
11589
11601
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11602
+ var newData1 = [];
11603
+ (_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
11604
+ newData1.push({
11605
+ code: item.code,
11606
+ name: item.name
11607
+ });
11608
+ });
11609
+ x[1].data = newData1;
11590
11610
  var channelDisabledJude = function channelDisabledJude(data) {
11591
11611
  return data['parentCode'] === '0';
11592
11612
  }; // 所属销售渠道 树节点不能点判断
@@ -12389,6 +12409,15 @@ function commonFun(type, prefixUrl, parentProps) {
12389
12409
  currentPage: 1,
12390
12410
  'ctl-withAuth': true
12391
12411
  }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12412
+ var _x$3, _x$3$data$, _x$3$data$$channelInf;
12413
+ var newData1 = [];
12414
+ (_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
12415
+ newData1.push({
12416
+ code: item.code,
12417
+ name: item.name
12418
+ });
12419
+ });
12420
+ x[1].data = newData1;
12392
12421
  var channelDisabledJude = function channelDisabledJude(data) {
12393
12422
  return data['parentCode'] === '0';
12394
12423
  }; // 所属销售渠道 树节点不能点判断
package/dist/index.js CHANGED
@@ -11365,6 +11365,17 @@ function commonFun(type, prefixUrl, parentProps) {
11365
11365
  }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11366
11366
  'qp-status-eq': 1
11367
11367
  }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11368
+ var _x$, _x$$data$, _x$$data$$channelInfo;
11369
+ debugger;
11370
+ // 战区限制一级数据
11371
+ var newData1 = [];
11372
+ (_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
11373
+ newData1.push({
11374
+ code: item.code,
11375
+ name: item.name
11376
+ });
11377
+ });
11378
+ x[0].data = newData1;
11368
11379
  var channelDisabledJude = function channelDisabledJude(data) {
11369
11380
  return data['parentCode'] === '0';
11370
11381
  }; // 所属销售渠道 树节点不能点判断
@@ -11490,7 +11501,7 @@ function commonFun(type, prefixUrl, parentProps) {
11490
11501
  },
11491
11502
  width: 100
11492
11503
  }, {
11493
- title: '所属销售渠道',
11504
+ title: '战区',
11494
11505
  dataIndex: 'channelName',
11495
11506
  defaultSort: 4,
11496
11507
  width: 100
@@ -11573,7 +11584,7 @@ function commonFun(type, prefixUrl, parentProps) {
11573
11584
  }, {
11574
11585
  name: 'qp-channelCode-in',
11575
11586
  type: 'treeSelect',
11576
- label: '销售渠道',
11587
+ label: '战区',
11577
11588
  field: {
11578
11589
  type: 'treeSelect',
11579
11590
  props: {
@@ -11609,7 +11620,16 @@ function commonFun(type, prefixUrl, parentProps) {
11609
11620
  'qp-isMain-eq': 1,
11610
11621
  'qp-type-in': '1,2'
11611
11622
  }, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
11623
+ var _x$2, _x$2$data$, _x$2$data$$channelInf;
11612
11624
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11625
+ var newData1 = [];
11626
+ (_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
11627
+ newData1.push({
11628
+ code: item.code,
11629
+ name: item.name
11630
+ });
11631
+ });
11632
+ x[1].data = newData1;
11613
11633
  var channelDisabledJude = function channelDisabledJude(data) {
11614
11634
  return data['parentCode'] === '0';
11615
11635
  }; // 所属销售渠道 树节点不能点判断
@@ -12412,6 +12432,15 @@ function commonFun(type, prefixUrl, parentProps) {
12412
12432
  currentPage: 1,
12413
12433
  'ctl-withAuth': true
12414
12434
  }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12435
+ var _x$3, _x$3$data$, _x$3$data$$channelInf;
12436
+ var newData1 = [];
12437
+ (_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
12438
+ newData1.push({
12439
+ code: item.code,
12440
+ name: item.name
12441
+ });
12442
+ });
12443
+ x[1].data = newData1;
12415
12444
  var channelDisabledJude = function channelDisabledJude(data) {
12416
12445
  return data['parentCode'] === '0';
12417
12446
  }; // 所属销售渠道 树节点不能点判断
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.1-alpha.4-aiwei",
3
+ "version": "4.2.1-alpha.6-aiwei",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1351,6 +1351,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1351
1351
  'qp-status-eq': 1,
1352
1352
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1353
1353
  ]).then((x: any)=>{
1354
+ debugger
1355
+ // 战区限制一级数据
1356
+ const newData1 = [];
1357
+ x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1358
+ newData1.push({
1359
+ code: item.code,
1360
+ name: item.name
1361
+ })
1362
+ })
1363
+ x[0].data = newData1;
1354
1364
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1355
1365
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1356
1366
  formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
@@ -1452,7 +1462,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1452
1462
  width: 100,
1453
1463
  },
1454
1464
  {
1455
- title: '所属销售渠道',
1465
+ title: '战区',
1456
1466
  dataIndex: 'channelName',
1457
1467
  defaultSort: 4,
1458
1468
  width: 100,
@@ -1529,7 +1539,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1529
1539
  },
1530
1540
  } },
1531
1541
  {
1532
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1542
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
1533
1543
  type: 'treeSelect',
1534
1544
  props: {
1535
1545
  multiple: true,
@@ -1559,6 +1569,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1559
1569
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1560
1570
  ]).then((x: any)=>{
1561
1571
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1572
+ const newData1: any[] = [];
1573
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1574
+ newData1.push({ code: item.code, name: item.name })
1575
+ });
1576
+ x[1].data = newData1;
1562
1577
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1563
1578
  formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1564
1579
  })
@@ -2307,6 +2322,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2307
2322
  'ctl-withAuth': true,
2308
2323
  },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2309
2324
  ]).then((x: any)=>{
2325
+ const newData1: any[] = [];
2326
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
2327
+ newData1.push({ code: item.code, name: item.name })
2328
+ });
2329
+ x[1].data = newData1;
2310
2330
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2311
2331
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2312
2332
  formatSource(x,0, 3, tableSearchForm);