@bit-sun/business-component 2.0.31 → 2.0.32

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.
Files changed (110) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.gitlab-ci.yml +174 -174
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -0
  9. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +59 -0
  10. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +98 -0
  11. package/dist/components/Business/CommonAlert/index.d.ts +3 -0
  12. package/dist/components/Business/DetailPageWrapper/index.d.ts +9 -0
  13. package/dist/components/Business/DetailPageWrapper/utils.d.ts +9 -0
  14. package/dist/components/Business/HomePageWrapper/index.d.ts +3 -0
  15. package/dist/components/Business/columnSettingTable/index.d.ts +1 -0
  16. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +1 -0
  17. package/dist/index.esm.js +7600 -5508
  18. package/dist/index.js +7597 -5505
  19. package/docs/index.md +21 -21
  20. package/lib/assets/drag.svg +17 -17
  21. package/lib/assets/exportFail.svg +37 -37
  22. package/lib/assets/exportProcessing.svg +28 -28
  23. package/lib/assets/exportSuccess.svg +34 -34
  24. package/lib/assets/label_icon_bottom.svg +25 -25
  25. package/lib/assets/upExport.svg +22 -22
  26. package/package.json +69 -63
  27. package/src/assets/btn-delete.svg +30 -0
  28. package/src/assets/btn-edit.svg +20 -0
  29. package/src/assets/btn-more.svg +18 -0
  30. package/src/assets/btn-submit.svg +20 -0
  31. package/src/assets/close.svg +26 -26
  32. package/src/assets/drag.svg +17 -17
  33. package/src/assets/exportFail.svg +37 -37
  34. package/src/assets/exportProcessing.svg +28 -28
  35. package/src/assets/exportSuccess.svg +34 -34
  36. package/src/assets/fixed-left-active.svg +12 -0
  37. package/src/assets/fixed-left.svg +16 -0
  38. package/src/assets/fixed-right-active.svg +12 -0
  39. package/src/assets/fixed-right.svg +16 -0
  40. package/src/assets/icon-quanping.svg +16 -0
  41. package/src/assets/icon-shezhi.svg +17 -17
  42. package/src/assets/label_icon_bottom.svg +25 -25
  43. package/src/assets/scanning.svg +25 -0
  44. package/src/assets/upExport.svg +22 -22
  45. package/src/components/Business/AddSelectBusiness/index.md +41 -41
  46. package/src/components/Business/AddSelectBusiness/index.tsx +290 -290
  47. package/src/components/Business/BsSulaQueryTable/index.less +220 -0
  48. package/src/components/Business/BsSulaQueryTable/index.tsx +534 -0
  49. package/src/components/Business/BsSulaQueryTable/setting.tsx +817 -0
  50. package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
  51. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -0
  52. package/src/components/Business/CommodityEntry/index.md +70 -70
  53. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  54. package/src/components/Business/CommonAlert/index.less +0 -0
  55. package/src/components/Business/CommonAlert/index.tsx +23 -0
  56. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  57. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  58. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  59. package/src/components/Business/DetailPageWrapper/index.less +80 -0
  60. package/src/components/Business/DetailPageWrapper/index.tsx +325 -0
  61. package/src/components/Business/DetailPageWrapper/utils.tsx +111 -0
  62. package/src/components/Business/HomePageWrapper/index.less +33 -0
  63. package/src/components/Business/HomePageWrapper/index.md +45 -0
  64. package/src/components/Business/HomePageWrapper/index.tsx +150 -0
  65. package/src/components/Business/SearchSelect/BusinessUtils.ts +1448 -1448
  66. package/src/components/Business/SearchSelect/common.ts +53 -53
  67. package/src/components/Business/SearchSelect/index.md +1137 -1137
  68. package/src/components/Business/SearchSelect/index.tsx +51 -51
  69. package/src/components/Business/SearchSelect/utils.ts +99 -99
  70. package/src/components/Business/StateFlow/index.less +130 -130
  71. package/src/components/Business/StateFlow/index.md +60 -60
  72. package/src/components/Business/StateFlow/index.tsx +29 -29
  73. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  74. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  75. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  76. package/src/components/Business/columnSettingTable/columnSetting.tsx +762 -594
  77. package/src/components/Business/columnSettingTable/index.less +247 -247
  78. package/src/components/Business/columnSettingTable/index.md +357 -357
  79. package/src/components/Business/columnSettingTable/index.tsx +225 -216
  80. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +233 -224
  81. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  82. package/src/components/Functional/AddSelect/index.less +367 -367
  83. package/src/components/Functional/AddSelect/index.md +122 -122
  84. package/src/components/Functional/AddSelect/index.tsx +962 -962
  85. package/src/components/Functional/BillEntry/index.less +371 -371
  86. package/src/components/Functional/BillEntry/index.md +37 -37
  87. package/src/components/Functional/BillEntry/index.tsx +547 -547
  88. package/src/components/Functional/DataImport/index.less +63 -63
  89. package/src/components/Functional/DataImport/index.md +44 -44
  90. package/src/components/Functional/DataImport/index.tsx +689 -689
  91. package/src/components/Functional/DataValidation/index.less +63 -63
  92. package/src/components/Functional/DataValidation/index.md +38 -38
  93. package/src/components/Functional/DataValidation/index.tsx +681 -681
  94. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  95. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  96. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  97. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  98. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  99. package/src/components/Functional/SearchSelect/index.less +115 -115
  100. package/src/components/Functional/SearchSelect/index.md +141 -141
  101. package/src/components/Functional/SearchSelect/index.tsx +812 -812
  102. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  103. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
  104. package/src/index.ts +30 -27
  105. package/src/utils/CheckOneUser/index.md +39 -39
  106. package/src/utils/CheckOneUser/index.ts +51 -51
  107. package/src/utils/requestUtils.ts +32 -32
  108. package/src/utils/utils.ts +22 -22
  109. package/tsconfig.json +29 -29
  110. package/typings.d.ts +4 -4
@@ -1,26 +1,26 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>编组 3备份 4</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
- </defs>
7
- <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="单据-详情页(二级页)-下拉" transform="translate(-1858.000000, -1326.000000)">
9
- <g id="编组-20" transform="translate(280.000000, 866.000000)">
10
- <g id="编组-5" transform="translate(1554.000000, 179.000000)">
11
- <g id="编组-3备份-4" transform="translate(24.000000, 281.000000)">
12
- <mask id="mask-2" fill="white">
13
- <use xlink:href="#path-1"></use>
14
- </mask>
15
- <use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
- <g id="编组" mask="url(#mask-2)" fill="#B1BAD4" fill-rule="nonzero">
17
- <g transform="translate(3.000000, 3.000000)" id="形状">
18
- <path d="M5.99072727,0.237481917 C6.50454545,-0.0418576482 6.56509091,-0.0745634228 6.97254545,0.138292264 L7.15527271,0.236945765 C7.31727271,0.445512161 7.34672726,0.483579531 7.3761818,0.664265595 L7.39690908,0.809565049 L7.39690908,17 L5.76054545,17 L5.76054545,2.73974241 L1.15690909,7.26654448 L0,6.12934831 L5.99072727,0.237481917 Z M13.0909091,13.6720525 L13.0909091,15.2805337 L9.81818182,15.2805337 L9.81818182,13.6720525 L13.0909091,13.6720525 Z M14.7272727,9.91892987 L14.7272727,11.527411 L9.81818182,11.527411 L9.81818182,9.91892987 L14.7272727,9.91892987 Z M16.3636364,6.16580723 L16.3636364,7.77428836 L9.81818182,7.77428836 L9.81818182,6.16580723 L16.3636364,6.16580723 Z M18,2.41268459 L18,4.02116572 L9.81818182,4.02116572 L9.81818182,2.41268459 L18,2.41268459 Z"></path>
19
- </g>
20
- </g>
21
- </g>
22
- </g>
23
- </g>
24
- </g>
25
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 3备份 4</title>
4
+ <defs>
5
+ <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
+ </defs>
7
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="单据-详情页(二级页)-下拉" transform="translate(-1858.000000, -1326.000000)">
9
+ <g id="编组-20" transform="translate(280.000000, 866.000000)">
10
+ <g id="编组-5" transform="translate(1554.000000, 179.000000)">
11
+ <g id="编组-3备份-4" transform="translate(24.000000, 281.000000)">
12
+ <mask id="mask-2" fill="white">
13
+ <use xlink:href="#path-1"></use>
14
+ </mask>
15
+ <use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
+ <g id="编组" mask="url(#mask-2)" fill="#B1BAD4" fill-rule="nonzero">
17
+ <g transform="translate(3.000000, 3.000000)" id="形状">
18
+ <path d="M5.99072727,0.237481917 C6.50454545,-0.0418576482 6.56509091,-0.0745634228 6.97254545,0.138292264 L7.15527271,0.236945765 C7.31727271,0.445512161 7.34672726,0.483579531 7.3761818,0.664265595 L7.39690908,0.809565049 L7.39690908,17 L5.76054545,17 L5.76054545,2.73974241 L1.15690909,7.26654448 L0,6.12934831 L5.99072727,0.237481917 Z M13.0909091,13.6720525 L13.0909091,15.2805337 L9.81818182,15.2805337 L9.81818182,13.6720525 L13.0909091,13.6720525 Z M14.7272727,9.91892987 L14.7272727,11.527411 L9.81818182,11.527411 L9.81818182,9.91892987 L14.7272727,9.91892987 Z M16.3636364,6.16580723 L16.3636364,7.77428836 L9.81818182,7.77428836 L9.81818182,6.16580723 L16.3636364,6.16580723 Z M18,2.41268459 L18,4.02116572 L9.81818182,4.02116572 L9.81818182,2.41268459 L18,2.41268459 Z"></path>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
+ </g>
26
26
  </svg>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="34px" height="34px" viewBox="0 0 34 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>scanning@2x</title>
4
+ <defs>
5
+ <path d="M4.55801813,-4.10857923e-16 L27.4419819,1.84149388e-16 C29.0269041,-1.06996098e-16 29.6016352,0.165023309 30.181059,0.474902584 C30.7604829,0.78478186 31.2152181,1.2395171 31.5250974,1.81894097 C31.8349767,2.39836484 32,2.97309593 32,4.55801813 L32,27.4419819 C32,29.0269041 31.8349767,29.6016352 31.5250974,30.181059 C31.2152181,30.7604829 30.7604829,31.2152181 30.181059,31.5250974 C29.6016352,31.8349767 29.0269041,32 27.4419819,32 L4.55801813,32 C2.97309593,32 2.39836484,31.8349767 1.81894097,31.5250974 C1.2395171,31.2152181 0.78478186,30.7604829 0.474902584,30.181059 C0.165023309,29.6016352 2.03054919e-16,29.0269041 -3.49474794e-16,27.4419819 L1.22766259e-16,4.55801813 C-7.13307317e-17,2.97309593 0.165023309,2.39836484 0.474902584,1.81894097 C0.78478186,1.2395171 1.2395171,0.78478186 1.81894097,0.474902584 C2.39836484,0.165023309 2.97309593,2.38720285e-16 4.55801813,-4.10857923e-16 Z" id="path-1"></path>
6
+ </defs>
7
+ <g id="列表功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="画板" transform="translate(-63.000000, -69.000000)">
9
+ <g id="scanning" transform="translate(64.244061, 70.096401)">
10
+ <mask id="mask-2" fill="white">
11
+ <use xlink:href="#path-1"></use>
12
+ </mask>
13
+ <use id="蒙版" stroke="#D9D9D9" stroke-width="0.888888889" xlink:href="#path-1"></use>
14
+ <g mask="url(#mask-2)" fill="#000000" fill-rule="nonzero" id="形状结合">
15
+ <g transform="translate(8.000000, 8.000000)">
16
+ <path d="M5.21873562,9.69278114 L6.28954184,10.7432953 L2.532,14.4997811 L5.24949999,14.5 L5.24949999,16 L1.5,16 C0.671572876,16 0,15.3284271 0,14.5 L0,11 L1.5,11 L1.5,13.4107811 L5.21873562,9.69278114 Z" transform="translate(3.144771, 12.846391) scale(-1, -1) translate(-3.144771, -12.846391) "></path>
17
+ <path d="M10.7898541,9.72266777 L14.4990478,13.4326678 L14.5,11 L16,11 L16,14.5 C16,15.3284271 15.3284271,16 14.5,16 L10.7495,16 L10.7495,14.5 L13.4460478,14.4996678 L9.71904783,10.7731819 L10.7898541,9.72266777 Z" transform="translate(12.859524, 12.861334) scale(-1, -1) translate(-12.859524, -12.861334) "></path>
18
+ <path d="M14.5,0 C15.3284271,0 16,0.671572876 16,1.5 L16,5 L14.5,5 L14.4990478,2.587 L10.779708,6.3074783 L9.71904783,5.24681813 L13.4650478,1.5 L10.75,1.5 L10.75,0 L14.5,0 Z" transform="translate(12.859524, 3.153739) scale(-1, -1) translate(-12.859524, -3.153739) "></path>
19
+ <path d="M5.25000001,0 L5.25000001,1.5 L2.567,1.5 L6.31400442,5.24681813 L5.25334424,6.3074783 L1.5,2.554 L1.5,5 L0,5 L0,1.5 C0,0.671572876 0.671572876,0 1.5,0 L5.25000001,0 Z" transform="translate(3.157002, 3.153739) scale(-1, -1) translate(-3.157002, -3.153739) "></path>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
+ </svg>
@@ -1,23 +1,23 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>xinglan-icon-message备份 5</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
- </defs>
7
- <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="导出功能-导出数据转入后台提示" transform="translate(-1659.000000, -18.000000)">
9
- <g id="导入、导出记录icon" transform="translate(1659.000000, 18.000000)">
10
- <mask id="mask-2" fill="white">
11
- <use xlink:href="#path-1"></use>
12
- </mask>
13
- <use id="xinglan-icon-message" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
14
- <g id="responsetime" mask="url(#mask-2)" fill="#000000" fill-rule="nonzero">
15
- <g transform="translate(3.000000, 2.000000)">
16
- <path d="M5.21516417,6.74357406 L4.07552238,7.8711358 L0,3.83881343 L3.87940299,0 L5.02011939,1.12756173 L3.05785074,3.06796734 L9.4438209,3.06903059 C14.112,3.06903059 17.9075821,6.76802848 17.9978507,11.3659924 L18,11.5345153 C18,16.2095638 14.1689552,20 9.4438209,20 C4.71814925,20 0.887104494,16.2095638 0.887104469,11.5345153 L2.49904477,11.5345153 C2.49904477,15.3292044 5.6084776,18.4051461 9.4438209,18.4051461 C13.2786269,18.4051461 16.3880597,15.3292044 16.3880597,11.5345153 C16.3880597,7.73982616 13.2786269,4.66388453 9.4438209,4.66388453 L3.11265671,4.66335292 L5.21516417,6.74357406 Z" id="形状"></path>
17
- <path d="M10.4,7.2 L10.399,12.381 L12.4660494,10.315207 L13.6934831,11.5426407 L9.55833777,15.677786 L5.2,11.5508424 L6.44018239,10.31066 L8.599,12.309 L8.6,7.2 L10.4,7.2 Z" id="形状结合" transform="translate(9.446742, 11.438893) scale(1, -1) translate(-9.446742, -11.438893) "></path>
18
- </g>
19
- </g>
20
- </g>
21
- </g>
22
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>xinglan-icon-message备份 5</title>
4
+ <defs>
5
+ <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
+ </defs>
7
+ <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="导出功能-导出数据转入后台提示" transform="translate(-1659.000000, -18.000000)">
9
+ <g id="导入、导出记录icon" transform="translate(1659.000000, 18.000000)">
10
+ <mask id="mask-2" fill="white">
11
+ <use xlink:href="#path-1"></use>
12
+ </mask>
13
+ <use id="xinglan-icon-message" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
14
+ <g id="responsetime" mask="url(#mask-2)" fill="#000000" fill-rule="nonzero">
15
+ <g transform="translate(3.000000, 2.000000)">
16
+ <path d="M5.21516417,6.74357406 L4.07552238,7.8711358 L0,3.83881343 L3.87940299,0 L5.02011939,1.12756173 L3.05785074,3.06796734 L9.4438209,3.06903059 C14.112,3.06903059 17.9075821,6.76802848 17.9978507,11.3659924 L18,11.5345153 C18,16.2095638 14.1689552,20 9.4438209,20 C4.71814925,20 0.887104494,16.2095638 0.887104469,11.5345153 L2.49904477,11.5345153 C2.49904477,15.3292044 5.6084776,18.4051461 9.4438209,18.4051461 C13.2786269,18.4051461 16.3880597,15.3292044 16.3880597,11.5345153 C16.3880597,7.73982616 13.2786269,4.66388453 9.4438209,4.66388453 L3.11265671,4.66335292 L5.21516417,6.74357406 Z" id="形状"></path>
17
+ <path d="M10.4,7.2 L10.399,12.381 L12.4660494,10.315207 L13.6934831,11.5426407 L9.55833777,15.677786 L5.2,11.5508424 L6.44018239,10.31066 L8.599,12.309 L8.6,7.2 L10.4,7.2 Z" id="形状结合" transform="translate(9.446742, 11.438893) scale(1, -1) translate(-9.446742, -11.438893) "></path>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
23
  </svg>
@@ -1,41 +1,41 @@
1
- ---
2
- nav:
3
- title: '组件'
4
- order: 1
5
- group:
6
- title: 业务组件
7
- order: 1
8
- title: 业务档录入器
9
- order: 1
10
- ---
11
-
12
- # BusinessSearchSelect
13
-
14
-
15
- ## 商品选择录入器
16
-
17
- ```tsx
18
- import React, { useState } from 'react';
19
- import { Tabs } from 'antd';
20
- import { AddSkuSelect } from '../../../index.ts';
21
-
22
- export default () => {
23
- const config = {
24
- buttonText: 'context',
25
- beforeShowModal: () => {
26
- return Promise.resolve(true);
27
- // return Promise.reject('校验有误');
28
- },
29
- onSaveCallback: (rows) => {
30
- console.log('save call', rows);
31
- return Promise.resolve(true);
32
- // return Promise.reject('FAILE')
33
- }
34
- }
35
- return (
36
- <div>
37
- <AddSkuSelect {...config} />
38
- </div>
39
- );
40
- };
41
- ```
1
+ ---
2
+ nav:
3
+ title: '组件'
4
+ order: 1
5
+ group:
6
+ title: 业务组件
7
+ order: 1
8
+ title: 业务档录入器
9
+ order: 1
10
+ ---
11
+
12
+ # BusinessSearchSelect
13
+
14
+
15
+ ## 商品选择录入器
16
+
17
+ ```tsx
18
+ import React, { useState } from 'react';
19
+ import { Tabs } from 'antd';
20
+ import { AddSkuSelect } from '../../../index.ts';
21
+
22
+ export default () => {
23
+ const config = {
24
+ buttonText: 'context',
25
+ beforeShowModal: () => {
26
+ return Promise.resolve(true);
27
+ // return Promise.reject('校验有误');
28
+ },
29
+ onSaveCallback: (rows) => {
30
+ console.log('save call', rows);
31
+ return Promise.resolve(true);
32
+ // return Promise.reject('FAILE')
33
+ }
34
+ }
35
+ return (
36
+ <div>
37
+ <AddSkuSelect {...config} />
38
+ </div>
39
+ );
40
+ };
41
+ ```