@bit-sun/business-component 2.4.22 → 2.4.24
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/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +3 -0
- package/dist/components/Business/BsLayouts/Components/ChooseStore/services.d.ts +1 -0
- package/dist/components/Business/BsLayouts/Components/RightContent/i18n.d.ts +9 -0
- package/dist/components/Business/BsLayouts/service.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -0
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -0
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +1 -0
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -0
- package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
- package/dist/index.esm.js +1777 -1251
- package/dist/index.js +1760 -1232
- package/dist/utils/TableUtils.d.ts +93 -2
- package/dist/utils/businessUtils.d.ts +27 -0
- package/dist/utils/constant.d.ts +37 -0
- package/dist/utils/index.d.ts +6 -4
- package/dist/utils/request.d.ts +2 -0
- package/dist/utils/utils.d.ts +13 -0
- package/package.json +7 -4
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/arrow_top.svg +18 -0
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/common/ENUM.ts +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +40 -21
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +193 -0
- package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +10 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +163 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +9 -0
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +19 -2
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1494 -1484
- package/src/components/Business/BsLayouts/service.ts +2 -2
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +9 -9
- package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +5 -0
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +346 -175
- package/src/components/Business/BsSulaQueryTable/setting.tsx +125 -87
- package/src/components/Business/BsSulaQueryTable/utils.tsx +57 -34
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonGuideWrapper/index.less +121 -112
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +94 -84
- package/src/components/Business/DetailPageWrapper/index.less +9 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +121 -110
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +535 -537
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/SearchSelect/utils.ts +3 -3
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/columnSettingTable/columnSetting.tsx +10 -8
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/utils.tsx +71 -71
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
- package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.tsx +387 -387
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +4 -3
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.tsx +79 -33
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.tsx +3 -3
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.tsx +3 -3
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.tsx +3 -3
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +10 -5
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +6 -0
- package/src/components/Functional/SearchSelect/index.tsx +152 -45
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.tsx +24 -22
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +637 -0
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +7 -652
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +2 -2
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.less +52 -0
- package/src/utils/TableUtils.tsx +691 -18
- package/src/utils/businessUtils.ts +441 -0
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/constant.ts +39 -0
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +6 -4
- package/src/utils/request.ts +53 -0
- package/src/utils/requestUtils.ts +29 -2
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +64 -21
package/src/assets/scanning.svg
CHANGED
|
@@ -1,25 +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>
|
|
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
25
|
</svg>
|
package/src/assets/upExport.svg
CHANGED
|
@@ -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>
|
package/src/common/ENUM.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
const ENUM = {
|
|
2
|
-
/**
|
|
3
|
-
* 事件动作类型枚举
|
|
4
|
-
*/
|
|
5
|
-
VALUE_TYPE: {
|
|
6
|
-
STATUS: 1, // 流转状态
|
|
7
|
-
TAG: 2, // 添加标签
|
|
8
|
-
TIMING: 3, // 定时器
|
|
9
|
-
EDIT_FIELD: 4, // 字段变更
|
|
10
|
-
},
|
|
11
|
-
/**
|
|
12
|
-
* 执行动作枚举
|
|
13
|
-
*/
|
|
14
|
-
EXCUSE_ACTION: {
|
|
15
|
-
SEND_MESSAGE: 1, // 发送消息
|
|
16
|
-
PUSH_TODO_TASK: 2, // 推送任务
|
|
17
|
-
},
|
|
18
|
-
EXCUSE_ACTION_TEXT: {
|
|
19
|
-
SEND_MESSAGE: '发送一条消息',
|
|
20
|
-
PUSH_TODO_TASK: '推送一条待办任务',
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* 消息接收人分组类型枚举
|
|
24
|
-
*/
|
|
25
|
-
RECEIVER_GROUP_TYPE: {
|
|
26
|
-
EMPLOYEES: 1, // 指定员工
|
|
27
|
-
ORGANIZATION: 2, // 指定组织
|
|
28
|
-
ROLE: 3, // 指定角色
|
|
29
|
-
PERSON_IN_DOCUMENT: 4, // 单据内人员
|
|
30
|
-
SEND_ALL: 5, // 所有人
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* 消息发送类型枚举
|
|
34
|
-
*/
|
|
35
|
-
MESSAGE_SENDTIME_TYPE: {
|
|
36
|
-
IMMEDIATELY_SEND: 1, // 立即发送
|
|
37
|
-
REGULARLY_SEND: 2, // 定时发送
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default ENUM;
|
|
1
|
+
const ENUM = {
|
|
2
|
+
/**
|
|
3
|
+
* 事件动作类型枚举
|
|
4
|
+
*/
|
|
5
|
+
VALUE_TYPE: {
|
|
6
|
+
STATUS: 1, // 流转状态
|
|
7
|
+
TAG: 2, // 添加标签
|
|
8
|
+
TIMING: 3, // 定时器
|
|
9
|
+
EDIT_FIELD: 4, // 字段变更
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* 执行动作枚举
|
|
13
|
+
*/
|
|
14
|
+
EXCUSE_ACTION: {
|
|
15
|
+
SEND_MESSAGE: 1, // 发送消息
|
|
16
|
+
PUSH_TODO_TASK: 2, // 推送任务
|
|
17
|
+
},
|
|
18
|
+
EXCUSE_ACTION_TEXT: {
|
|
19
|
+
SEND_MESSAGE: '发送一条消息',
|
|
20
|
+
PUSH_TODO_TASK: '推送一条待办任务',
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* 消息接收人分组类型枚举
|
|
24
|
+
*/
|
|
25
|
+
RECEIVER_GROUP_TYPE: {
|
|
26
|
+
EMPLOYEES: 1, // 指定员工
|
|
27
|
+
ORGANIZATION: 2, // 指定组织
|
|
28
|
+
ROLE: 3, // 指定角色
|
|
29
|
+
PERSON_IN_DOCUMENT: 4, // 单据内人员
|
|
30
|
+
SEND_ALL: 5, // 所有人
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* 消息发送类型枚举
|
|
34
|
+
*/
|
|
35
|
+
MESSAGE_SENDTIME_TYPE: {
|
|
36
|
+
IMMEDIATELY_SEND: 1, // 立即发送
|
|
37
|
+
REGULARLY_SEND: 2, // 定时发送
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default ENUM;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React, { useState, useEffect } from 'react';
|
|
9
9
|
import { Tooltip, Select, message } from 'antd';
|
|
10
|
-
import
|
|
10
|
+
import request from '@/utils/request';
|
|
11
11
|
import { AddSelect } from '../../../index';
|
|
12
12
|
import { tableColumnsImage } from '@/components/Business/BsSulaQueryTable/utils';
|
|
13
13
|
import { getSkuImg } from '@/utils/TableUtils';
|
|
@@ -22,24 +22,28 @@ function handleSelectColumn(c: any, parentProps: any) {
|
|
|
22
22
|
const coverColumns = parentProps?.coverColumns || [];
|
|
23
23
|
const additionColumns = parentProps?.additionColumns || [];
|
|
24
24
|
// 仅展示内容
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
26
|
+
if (showColumns?.length) {
|
|
27
|
+
result = result.filter((i: any) => showColumns.includes(i.dataIndex));
|
|
27
28
|
}
|
|
28
29
|
// 过滤不需要展示内容
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
31
|
+
if (exceptColumns?.length) {
|
|
32
|
+
result = result.filter((i: any) => !exceptColumns.includes(i.dataIndex));
|
|
31
33
|
}
|
|
32
34
|
// 追加(最好不用这个,当组件不固定时候会有影响)
|
|
33
|
-
|
|
35
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
36
|
+
if (additionColumns?.length) {
|
|
34
37
|
additionColumns.forEach((i: any) => {
|
|
35
|
-
result.splice(i.position,0,i.column)
|
|
36
|
-
})
|
|
38
|
+
result.splice(i.position, 0, i.column);
|
|
39
|
+
});
|
|
37
40
|
}
|
|
38
41
|
// 覆盖内容
|
|
39
|
-
|
|
42
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
43
|
+
if (coverColumns?.length) {
|
|
40
44
|
result = coverColumns;
|
|
41
45
|
}
|
|
42
|
-
return result
|
|
46
|
+
return result;
|
|
43
47
|
}
|
|
44
48
|
function handleSearchForm(c: any, parentProps: any) {
|
|
45
49
|
let result = c;
|
|
@@ -47,14 +51,17 @@ function handleSearchForm(c: any, parentProps: any) {
|
|
|
47
51
|
const exceptTableSearchForm= parentProps?.exceptTableSearchForm|| [];
|
|
48
52
|
const coverTableSearchForm = parentProps?.coverTableSearchForm || [];
|
|
49
53
|
// 仅展示内容
|
|
54
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
50
55
|
if(showTableSearchForm?.length) {
|
|
51
56
|
result = result.filter((i: any) => showTableSearchForm.includes(i.name))
|
|
52
57
|
}
|
|
53
58
|
// 过滤不需要展示内容
|
|
59
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
54
60
|
if(exceptTableSearchForm?.length) {
|
|
55
61
|
result = result.filter((i: any) => !exceptTableSearchForm.includes(i.name))
|
|
56
62
|
}
|
|
57
63
|
// 覆盖内容
|
|
64
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
58
65
|
if(coverTableSearchForm?.length) {
|
|
59
66
|
result = coverTableSearchForm;
|
|
60
67
|
}
|
|
@@ -67,14 +74,17 @@ function handleFormSearchSourceLoad(c: any, parentProps: any) {
|
|
|
67
74
|
const coverTableFormSearchSourceLoad = parentProps?.coverTableFormSearchSourceLoad || [];
|
|
68
75
|
const noNeedTableFormSearchSourceLoad = parentProps?.noNeedTableFormSearchSourceLoad
|
|
69
76
|
// 仅展示内容
|
|
77
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
70
78
|
if(showTableFormSearchSourceLoad?.length) {
|
|
71
79
|
result = result.filter((i: any) => showTableFormSearchSourceLoad.includes(i.url))
|
|
72
80
|
}
|
|
73
81
|
// 过滤不需要展示内容
|
|
82
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
74
83
|
if(exceptTableFormSearchSourceLoad?.length) {
|
|
75
84
|
result = result.filter((i: any) => !exceptTableFormSearchSourceLoad.includes(i.url))
|
|
76
85
|
}
|
|
77
86
|
// 覆盖内容
|
|
87
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
|
|
78
88
|
if(coverTableFormSearchSourceLoad?.length) {
|
|
79
89
|
result = coverTableFormSearchSourceLoad;
|
|
80
90
|
}
|
|
@@ -106,6 +116,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
106
116
|
showTitle: false,
|
|
107
117
|
},
|
|
108
118
|
dataIndex: 'itemEancode',
|
|
119
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115627
|
|
109
120
|
render: (text: any) => (
|
|
110
121
|
<Tooltip placement="topLeft" title={text}>
|
|
111
122
|
{text}
|
|
@@ -153,6 +164,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
153
164
|
showTitle: false,
|
|
154
165
|
},
|
|
155
166
|
render: (text: any, record: any) => {
|
|
167
|
+
// FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115636
|
|
156
168
|
if (record?.packingUnitList?.length) {
|
|
157
169
|
const basePackUnit = record?.packingUnitList[0]
|
|
158
170
|
record.selectUnitCode = basePackUnit.unitCode
|
|
@@ -238,6 +250,11 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
238
250
|
),
|
|
239
251
|
}
|
|
240
252
|
]),
|
|
253
|
+
{
|
|
254
|
+
title: 'SKC编码',
|
|
255
|
+
width: 150,
|
|
256
|
+
dataIndex: 'skcCode',
|
|
257
|
+
},
|
|
241
258
|
{
|
|
242
259
|
title: '所属SPU名称',
|
|
243
260
|
width: 100,
|
|
@@ -333,9 +350,11 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
333
350
|
const mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
|
|
334
351
|
const initialTableSearchForm = [
|
|
335
352
|
{
|
|
336
|
-
name: 'qp-skuCode-like', label: 'SKU编码'
|
|
353
|
+
name: 'qp-skuCode-like', label: 'SKU编码',type:'multipleQueryInput'
|
|
337
354
|
},
|
|
338
355
|
{ name: 'qp-skuName-like', label: 'SKU名称' },
|
|
356
|
+
{ name: 'qp-skcCode-like', label: 'SKC编码',type:'multipleQueryInput' },
|
|
357
|
+
{ name: 'qp-itemCode-like', label: 'SPU编码',type:'multipleQueryInput' },
|
|
339
358
|
...(isNoUseItemBarcode ? []: [
|
|
340
359
|
{ name: 'qp-code-in', label: '商品条码', field: {
|
|
341
360
|
type: 'multipleQueryInput',
|
|
@@ -355,7 +374,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
355
374
|
maxTagCount: 1,
|
|
356
375
|
optionFilterProp: 'children',
|
|
357
376
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
358
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
377
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
359
378
|
},
|
|
360
379
|
} },
|
|
361
380
|
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
@@ -388,7 +407,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
388
407
|
'ctl-withAuth': true
|
|
389
408
|
},
|
|
390
409
|
resType: 'list',
|
|
391
|
-
resPosition: isNoUseItemBarcode ?
|
|
410
|
+
resPosition: isNoUseItemBarcode ? 4 : 5,
|
|
392
411
|
resKeyValue: ['id','name']
|
|
393
412
|
},
|
|
394
413
|
{
|
|
@@ -398,7 +417,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
398
417
|
currentPage: 1,
|
|
399
418
|
},
|
|
400
419
|
resType: 'treeList',
|
|
401
|
-
resPosition: isNoUseItemBarcode ?
|
|
420
|
+
resPosition: isNoUseItemBarcode ? 5 : 6
|
|
402
421
|
},
|
|
403
422
|
]
|
|
404
423
|
const mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
@@ -459,7 +478,7 @@ export const AddSkcSelect = (parProps: any) => {
|
|
|
459
478
|
|
|
460
479
|
useEffect(() => {
|
|
461
480
|
// type: 1 尺码组; 2 配码组
|
|
462
|
-
|
|
481
|
+
request.get(`/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1`).then((result: any) => {
|
|
463
482
|
result = result.data;
|
|
464
483
|
if (judgeIsRequestError(result)) {
|
|
465
484
|
message.error(result.msg);
|
|
@@ -467,7 +486,7 @@ export const AddSkcSelect = (parProps: any) => {
|
|
|
467
486
|
}
|
|
468
487
|
const data = result.data || [];
|
|
469
488
|
setPropertyList(data)
|
|
470
|
-
}).catch((err) => {});
|
|
489
|
+
}).catch((err:any) => {});
|
|
471
490
|
},[])
|
|
472
491
|
|
|
473
492
|
//注⚠️:自定义过表头的请记得传tableCodeList参数
|
|
@@ -522,7 +541,7 @@ export const AddSkcSelect = (parProps: any) => {
|
|
|
522
541
|
{
|
|
523
542
|
url: `/items/item/propertyValue/sizeBySkcConfig`,
|
|
524
543
|
params: {
|
|
525
|
-
pageSize:
|
|
544
|
+
pageSize: 50,
|
|
526
545
|
currentPage: 1,
|
|
527
546
|
type: 2, // 类型:1尺码;2颜色
|
|
528
547
|
},
|
|
@@ -533,7 +552,7 @@ export const AddSkcSelect = (parProps: any) => {
|
|
|
533
552
|
{
|
|
534
553
|
url: `/items/category/queryCategoryTree`,
|
|
535
554
|
params: {
|
|
536
|
-
pageSize:
|
|
555
|
+
pageSize: 50,
|
|
537
556
|
currentPage: 1,
|
|
538
557
|
},
|
|
539
558
|
resType: 'treeList',
|
|
@@ -764,7 +783,7 @@ export const AddSpuSelect = (parProps: any) => {
|
|
|
764
783
|
useEffect(() => {
|
|
765
784
|
if(parProps?.isSingleColor) {
|
|
766
785
|
// type: 1 尺码组; 2 配码组
|
|
767
|
-
|
|
786
|
+
request.get(`/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1`).then((result: any) => {
|
|
768
787
|
result = result.data;
|
|
769
788
|
if (judgeIsRequestError(result)) {
|
|
770
789
|
message.error(result.msg);
|
|
@@ -772,7 +791,7 @@ export const AddSpuSelect = (parProps: any) => {
|
|
|
772
791
|
}
|
|
773
792
|
const data = result.data || [];
|
|
774
793
|
setPropertyList(data)
|
|
775
|
-
}).catch((err) => {});
|
|
794
|
+
}).catch((err: any) => {});
|
|
776
795
|
}
|
|
777
796
|
},[])
|
|
778
797
|
|
|
@@ -862,7 +881,7 @@ export const AddSpuSelect = (parProps: any) => {
|
|
|
862
881
|
{
|
|
863
882
|
url: `/items/category/queryCategoryTree`,
|
|
864
883
|
params: {
|
|
865
|
-
pageSize:
|
|
884
|
+
pageSize: 50,
|
|
866
885
|
currentPage: 1,
|
|
867
886
|
},
|
|
868
887
|
resType: 'treeList',
|