@bit-sun/business-component 2.4.5 → 2.4.7

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
@@ -734,19 +734,19 @@ function getLoginHeaderInfo(headerkey) {
734
734
  }
735
735
  }
736
736
  function getGuoyaoshukeCompanyId() {
737
- return getLoginHeaderInfo('COMPANY_ID');
737
+ return getLoginHeaderInfo('gksk-company-id');
738
738
  }
739
739
  function getGuoyaoshukeTenantCode() {
740
- return getLoginHeaderInfo('TENANT_ID');
740
+ return getLoginHeaderInfo('gksk-tenant-code');
741
741
  }
742
742
  function getGuoyaoshukeTenantId() {
743
- return getLoginHeaderInfo('TENANT_CODE') || 1;
743
+ return getLoginHeaderInfo('gksk-tenant-id') || 1;
744
744
  }
745
745
  function getGuoyaoshukeToken() {
746
746
  return getLoginHeaderInfo('gksk-access-token');
747
747
  }
748
748
  function getGuoyaoshukeUscCode() {
749
- return getLoginHeaderInfo('USC_CODE');
749
+ return getLoginHeaderInfo('gksk-usc-code');
750
750
  }
751
751
  //--------国药项目登录信息---------
752
752
 
@@ -10386,20 +10386,20 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10386
10386
  result = {
10387
10387
  treeCheckable: true,
10388
10388
  isChoose: true,
10389
- remoteSource: {
10389
+ remoteSource: _objectSpread2({
10390
10390
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10391
10391
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10392
10392
  initialParams: {
10393
10393
  'orgViewCode': 'administrative-organization-view'
10394
10394
  },
10395
10395
  resKeyValue: ['code', 'name']
10396
- }
10396
+ }, otherRequestConfig)
10397
10397
  };
10398
10398
  break;
10399
10399
  case 'sales-organization':
10400
10400
  result = {
10401
10401
  isChoose: true,
10402
- remoteSource: {
10402
+ remoteSource: _objectSpread2({
10403
10403
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10404
10404
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10405
10405
  initialParams: {
@@ -10407,13 +10407,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10407
10407
  'qp-status-eq': 10
10408
10408
  },
10409
10409
  resKeyValue: ['code', 'name']
10410
- }
10410
+ }, otherRequestConfig)
10411
10411
  };
10412
10412
  break;
10413
10413
  case 'purchase-organization':
10414
10414
  result = {
10415
10415
  isChoose: true,
10416
- remoteSource: {
10416
+ remoteSource: _objectSpread2({
10417
10417
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10418
10418
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10419
10419
  initialParams: {
@@ -10421,13 +10421,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10421
10421
  'qp-status-eq': 10
10422
10422
  },
10423
10423
  resKeyValue: ['code', 'name']
10424
- }
10424
+ }, otherRequestConfig)
10425
10425
  };
10426
10426
  break;
10427
10427
  case 'stock-organization':
10428
10428
  result = {
10429
10429
  isChoose: true,
10430
- remoteSource: {
10430
+ remoteSource: _objectSpread2({
10431
10431
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10432
10432
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10433
10433
  initialParams: {
@@ -10435,13 +10435,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10435
10435
  'qp-status-eq': 10
10436
10436
  },
10437
10437
  resKeyValue: ['code', 'name']
10438
- }
10438
+ }, otherRequestConfig)
10439
10439
  };
10440
10440
  break;
10441
10441
  case 'settle-organization':
10442
10442
  result = {
10443
10443
  isChoose: true,
10444
- remoteSource: {
10444
+ remoteSource: _objectSpread2({
10445
10445
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10446
10446
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10447
10447
  initialParams: {
@@ -10449,31 +10449,31 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10449
10449
  'qp-status-eq': 10
10450
10450
  },
10451
10451
  resKeyValue: ['code', 'name']
10452
- }
10452
+ }, otherRequestConfig)
10453
10453
  };
10454
10454
  break;
10455
10455
  case 'market-area':
10456
10456
  result = {
10457
10457
  isChoose: true,
10458
- remoteSource: {
10458
+ remoteSource: _objectSpread2({
10459
10459
  url: "/channel-manage/tagNode/getTree/10",
10460
10460
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10461
10461
  resKeyValue: ['code', 'name']
10462
- }
10462
+ }, otherRequestConfig)
10463
10463
  };
10464
10464
  break;
10465
10465
  default:
10466
10466
  result = {
10467
10467
  treeCheckable: true,
10468
10468
  isChoose: true,
10469
- remoteSource: {
10469
+ remoteSource: _objectSpread2({
10470
10470
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10471
10471
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10472
10472
  initialParams: {
10473
10473
  'orgViewCode': 'administrative-organization-view'
10474
10474
  },
10475
10475
  resKeyValue: ['code', 'name']
10476
- }
10476
+ }, otherRequestConfig)
10477
10477
  };
10478
10478
  break;
10479
10479
  }
package/dist/index.js CHANGED
@@ -754,19 +754,19 @@ function getLoginHeaderInfo(headerkey) {
754
754
  }
755
755
  }
756
756
  function getGuoyaoshukeCompanyId() {
757
- return getLoginHeaderInfo('COMPANY_ID');
757
+ return getLoginHeaderInfo('gksk-company-id');
758
758
  }
759
759
  function getGuoyaoshukeTenantCode() {
760
- return getLoginHeaderInfo('TENANT_ID');
760
+ return getLoginHeaderInfo('gksk-tenant-code');
761
761
  }
762
762
  function getGuoyaoshukeTenantId() {
763
- return getLoginHeaderInfo('TENANT_CODE') || 1;
763
+ return getLoginHeaderInfo('gksk-tenant-id') || 1;
764
764
  }
765
765
  function getGuoyaoshukeToken() {
766
766
  return getLoginHeaderInfo('gksk-access-token');
767
767
  }
768
768
  function getGuoyaoshukeUscCode() {
769
- return getLoginHeaderInfo('USC_CODE');
769
+ return getLoginHeaderInfo('gksk-usc-code');
770
770
  }
771
771
  //--------国药项目登录信息---------
772
772
 
@@ -10406,20 +10406,20 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10406
10406
  result = {
10407
10407
  treeCheckable: true,
10408
10408
  isChoose: true,
10409
- remoteSource: {
10409
+ remoteSource: _objectSpread2({
10410
10410
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10411
10411
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10412
10412
  initialParams: {
10413
10413
  'orgViewCode': 'administrative-organization-view'
10414
10414
  },
10415
10415
  resKeyValue: ['code', 'name']
10416
- }
10416
+ }, otherRequestConfig)
10417
10417
  };
10418
10418
  break;
10419
10419
  case 'sales-organization':
10420
10420
  result = {
10421
10421
  isChoose: true,
10422
- remoteSource: {
10422
+ remoteSource: _objectSpread2({
10423
10423
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10424
10424
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10425
10425
  initialParams: {
@@ -10427,13 +10427,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10427
10427
  'qp-status-eq': 10
10428
10428
  },
10429
10429
  resKeyValue: ['code', 'name']
10430
- }
10430
+ }, otherRequestConfig)
10431
10431
  };
10432
10432
  break;
10433
10433
  case 'purchase-organization':
10434
10434
  result = {
10435
10435
  isChoose: true,
10436
- remoteSource: {
10436
+ remoteSource: _objectSpread2({
10437
10437
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10438
10438
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10439
10439
  initialParams: {
@@ -10441,13 +10441,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10441
10441
  'qp-status-eq': 10
10442
10442
  },
10443
10443
  resKeyValue: ['code', 'name']
10444
- }
10444
+ }, otherRequestConfig)
10445
10445
  };
10446
10446
  break;
10447
10447
  case 'stock-organization':
10448
10448
  result = {
10449
10449
  isChoose: true,
10450
- remoteSource: {
10450
+ remoteSource: _objectSpread2({
10451
10451
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10452
10452
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10453
10453
  initialParams: {
@@ -10455,13 +10455,13 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10455
10455
  'qp-status-eq': 10
10456
10456
  },
10457
10457
  resKeyValue: ['code', 'name']
10458
- }
10458
+ }, otherRequestConfig)
10459
10459
  };
10460
10460
  break;
10461
10461
  case 'settle-organization':
10462
10462
  result = {
10463
10463
  isChoose: true,
10464
- remoteSource: {
10464
+ remoteSource: _objectSpread2({
10465
10465
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10466
10466
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10467
10467
  initialParams: {
@@ -10469,31 +10469,31 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
10469
10469
  'qp-status-eq': 10
10470
10470
  },
10471
10471
  resKeyValue: ['code', 'name']
10472
- }
10472
+ }, otherRequestConfig)
10473
10473
  };
10474
10474
  break;
10475
10475
  case 'market-area':
10476
10476
  result = {
10477
10477
  isChoose: true,
10478
- remoteSource: {
10478
+ remoteSource: _objectSpread2({
10479
10479
  url: "/channel-manage/tagNode/getTree/10",
10480
10480
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10481
10481
  resKeyValue: ['code', 'name']
10482
- }
10482
+ }, otherRequestConfig)
10483
10483
  };
10484
10484
  break;
10485
10485
  default:
10486
10486
  result = {
10487
10487
  treeCheckable: true,
10488
10488
  isChoose: true,
10489
- remoteSource: {
10489
+ remoteSource: _objectSpread2({
10490
10490
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
10491
10491
  headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
10492
10492
  initialParams: {
10493
10493
  'orgViewCode': 'administrative-organization-view'
10494
10494
  },
10495
10495
  resKeyValue: ['code', 'name']
10496
- }
10496
+ }, otherRequestConfig)
10497
10497
  };
10498
10498
  break;
10499
10499
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -10,6 +10,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
10
10
  headers: otherRequestConfig?.extralHeaders,
11
11
  initialParams: { 'orgViewCode': 'administrative-organization-view' },
12
12
  resKeyValue: ['code', 'name'],
13
+ ...otherRequestConfig,
13
14
  },
14
15
  };
15
16
  break;
@@ -21,6 +22,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
21
22
  headers: otherRequestConfig?.extralHeaders,
22
23
  initialParams: { 'orgViewCode': 'sales-organizational-view', 'qp-status-eq': 10 }, // status: 10启用 20禁用
23
24
  resKeyValue: ['code', 'name'],
25
+ ...otherRequestConfig,
24
26
  },
25
27
  };
26
28
  break;
@@ -32,6 +34,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
32
34
  headers: otherRequestConfig?.extralHeaders,
33
35
  initialParams: { 'orgViewCode': 'purchase-organizational-view', 'qp-status-eq': 10 },
34
36
  resKeyValue: ['code', 'name'],
37
+ ...otherRequestConfig,
35
38
  },
36
39
  };
37
40
  break;
@@ -43,6 +46,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
43
46
  headers: otherRequestConfig?.extralHeaders,
44
47
  initialParams: { 'orgViewCode': 'stock-organizational-view', 'qp-status-eq': 10 },
45
48
  resKeyValue: ['code', 'name'],
49
+ ...otherRequestConfig,
46
50
  },
47
51
  };
48
52
  break;
@@ -54,6 +58,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
54
58
  headers: otherRequestConfig?.extralHeaders,
55
59
  initialParams: { 'orgViewCode': 'settlement-organizational-view', 'qp-status-eq': 10 },
56
60
  resKeyValue: ['code', 'name'],
61
+ ...otherRequestConfig,
57
62
  },
58
63
  };
59
64
  break;
@@ -64,6 +69,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
64
69
  url: `/channel-manage/tagNode/getTree/10`,
65
70
  headers: otherRequestConfig?.extralHeaders,
66
71
  resKeyValue: ['code', 'name'],
72
+ ...otherRequestConfig,
67
73
  },
68
74
  };
69
75
  break;
@@ -76,6 +82,7 @@ const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: s
76
82
  headers: otherRequestConfig?.extralHeaders,
77
83
  initialParams: { 'orgViewCode': 'administrative-organization-view' },
78
84
  resKeyValue: ['code', 'name'],
85
+ ...otherRequestConfig,
79
86
  },
80
87
  };
81
88
  break
@@ -38,18 +38,18 @@ export function getLoginHeaderInfo(headerkey: string,storage='cookie') {
38
38
  }
39
39
  }
40
40
  export function getGuoyaoshukeCompanyId() {
41
- return getLoginHeaderInfo('COMPANY_ID');
41
+ return getLoginHeaderInfo('gksk-company-id');
42
42
  }
43
43
  export function getGuoyaoshukeTenantCode() {
44
- return getLoginHeaderInfo('TENANT_ID');
44
+ return getLoginHeaderInfo('gksk-tenant-code');
45
45
  }
46
46
  export function getGuoyaoshukeTenantId() {
47
- return getLoginHeaderInfo('TENANT_CODE') || 1;
47
+ return getLoginHeaderInfo('gksk-tenant-id') || 1;
48
48
  }
49
49
  export function getGuoyaoshukeToken() {
50
50
  return getLoginHeaderInfo('gksk-access-token');
51
51
  }
52
52
  export function getGuoyaoshukeUscCode() {
53
- return getLoginHeaderInfo('USC_CODE');
53
+ return getLoginHeaderInfo('gksk-usc-code');
54
54
  }
55
55
  //--------国药项目登录信息---------