@bit-sun/business-component 2.4.19 → 2.4.21
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/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/index.esm.js +10 -6
- package/dist/index.js +10 -6
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +79 -79
- 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/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/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- 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.md +162 -162
- package/src/components/Business/AddSelectBusiness/index.tsx +1061 -1061
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- 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/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/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- 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.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- 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 +1484 -1484
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +566 -566
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +558 -558
- package/src/components/Business/BsSulaQueryTable/setting.tsx +854 -854
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +315 -315
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +206 -206
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- 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/function.ts +62 -62
- 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 +537 -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/JsonQueryTable/static.ts +450 -450
- package/src/components/Business/SearchSelect/BusinessUtils.ts +2057 -2057
- package/src/components/Business/SearchSelect/common.ts +134 -134
- package/src/components/Business/SearchSelect/index.md +1444 -1444
- package/src/components/Business/SearchSelect/index.tsx +55 -55
- package/src/components/Business/SearchSelect/utils.ts +101 -101
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +185 -185
- package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
- package/src/components/Business/TreeSearchSelect/utils.ts +104 -104
- package/src/components/Business/columnSettingTable/columnSetting.tsx +766 -766
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +235 -234
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +243 -242
- 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.md +448 -448
- 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 +80 -80
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1171 -1171
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +773 -773
- package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
- package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
- package/src/components/Functional/BsAntdSula/index.ts +2 -2
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +696 -696
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +688 -688
- package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
- package/src/components/Functional/EllipsisTooltip/index.js +36 -36
- package/src/components/Functional/EllipsisTooltip/index.md +30 -30
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +60 -60
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +896 -896
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +204 -204
- package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
- package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -62
- package/src/components/Solution/RuleComponent/index.d.ts +29 -29
- package/src/components/Solution/RuleComponent/index.js +2073 -2073
- package/src/components/Solution/RuleComponent/index.less +230 -230
- package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
- package/src/components/Solution/RuleComponent/ruleFiled.js +2281 -2281
- package/src/components/Solution/RuleComponent/services.ts +13 -13
- package/src/components/Solution/RuleComponent/util.js +143 -143
- package/src/index.ts +38 -38
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +725 -725
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/CustomLoginInfo.ts +55 -55
- package/src/utils/LocalstorageUtils.ts +95 -95
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +4 -4
- package/src/utils/requestUtils.ts +166 -166
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +195 -195
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
|
@@ -1,450 +1,450 @@
|
|
|
1
|
-
const normalSingleSelectProps = {
|
|
2
|
-
placeholder: '请选择',
|
|
3
|
-
allowClear: true,
|
|
4
|
-
sourceName: 'defaultValue',
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const normalMultipleSelectProps = {
|
|
8
|
-
placeholder: '请选择',
|
|
9
|
-
allowClear: true,
|
|
10
|
-
sourceName: 'defaultValue',
|
|
11
|
-
selectProps: {
|
|
12
|
-
mode: 'multiple',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
// inputType显示类型 10输入框 20单选 30多选 40公式 ||||| valueType字段类型
|
|
16
|
-
export const inputTypes:any = {
|
|
17
|
-
20: {
|
|
18
|
-
10: {
|
|
19
|
-
type: 'select',
|
|
20
|
-
props: {
|
|
21
|
-
...normalSingleSelectProps,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
20: {
|
|
25
|
-
type: 'select',
|
|
26
|
-
props: {
|
|
27
|
-
...normalSingleSelectProps,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
30: {
|
|
31
|
-
type: 'select',
|
|
32
|
-
props: {
|
|
33
|
-
...normalSingleSelectProps,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
110: {
|
|
37
|
-
type: 'bs-physicalWarehouseSearchSelect',
|
|
38
|
-
props: {
|
|
39
|
-
...normalSingleSelectProps,
|
|
40
|
-
requestConfig: {
|
|
41
|
-
mappingValueField: 'physicalWarehouseCode',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
120: {
|
|
46
|
-
type: 'bs-realWarehouseSearchSelect',
|
|
47
|
-
props: {
|
|
48
|
-
...normalSingleSelectProps,
|
|
49
|
-
requestConfig: {
|
|
50
|
-
mappingValueField: 'realWarehouseCode',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
130: {
|
|
55
|
-
type: 'bs-virtualWarehouseSearchSelect',
|
|
56
|
-
props: {
|
|
57
|
-
...normalSingleSelectProps,
|
|
58
|
-
requestConfig: {
|
|
59
|
-
mappingValueField: 'virtualWarehouseCode',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
140: {
|
|
64
|
-
type: 'bs-channelWarehouseSearchSelect',
|
|
65
|
-
props: {
|
|
66
|
-
...normalSingleSelectProps,
|
|
67
|
-
requestConfig: {
|
|
68
|
-
mappingValueField: 'channelWarehouseCode',
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
150: {
|
|
73
|
-
type: 'bs-spuCommoditySearchSelect',
|
|
74
|
-
props: {
|
|
75
|
-
...normalSingleSelectProps,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
160: {
|
|
79
|
-
type: 'bs-skuCommoditySearchSelect',
|
|
80
|
-
props: {
|
|
81
|
-
...normalSingleSelectProps,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
210: {
|
|
86
|
-
// 行政组织
|
|
87
|
-
type: 'bs-departmentOrgSelect',
|
|
88
|
-
props: {
|
|
89
|
-
treeCheckable: false,
|
|
90
|
-
...normalSingleSelectProps,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
220: {
|
|
94
|
-
// 采购组织
|
|
95
|
-
type: 'bs-purchaseOrgSelect',
|
|
96
|
-
props: {
|
|
97
|
-
treeCheckable: false,
|
|
98
|
-
...normalSingleSelectProps,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
230: {
|
|
102
|
-
// 销售组织
|
|
103
|
-
type: 'bs-salesOrgSelect',
|
|
104
|
-
props: {
|
|
105
|
-
treeCheckable: false,
|
|
106
|
-
...normalSingleSelectProps,
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
240: {
|
|
110
|
-
type: 'bs-supplierSearchSelect',
|
|
111
|
-
props: {
|
|
112
|
-
...normalSingleSelectProps,
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
250: {
|
|
116
|
-
type: 'bs-customerSearchSelect',
|
|
117
|
-
props: {
|
|
118
|
-
...normalSingleSelectProps,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
260: {
|
|
122
|
-
type: 'bs-shopFileSearchSelect',
|
|
123
|
-
props: {
|
|
124
|
-
...normalSingleSelectProps,
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
270: {
|
|
128
|
-
type: 'bs-employeeSearchSelect',
|
|
129
|
-
props: {
|
|
130
|
-
...normalSingleSelectProps,
|
|
131
|
-
requestConfig: { mappingValueField: 'employeeNumber' },
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
280: {
|
|
135
|
-
// 库存组织
|
|
136
|
-
type: 'bs-stockOrgSelect',
|
|
137
|
-
props: {
|
|
138
|
-
treeCheckable: false,
|
|
139
|
-
...normalSingleSelectProps,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
290: {
|
|
143
|
-
// 库存组织
|
|
144
|
-
type: 'bs-settleOrgSelect',
|
|
145
|
-
props: {
|
|
146
|
-
treeCheckable: false,
|
|
147
|
-
...normalSingleSelectProps,
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
310: {
|
|
151
|
-
type: 'bs-deliveryModeSearchSelect',
|
|
152
|
-
props: {
|
|
153
|
-
...normalSingleSelectProps,
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
340: {
|
|
157
|
-
type: 'bs-RuleTemplateSearchSelect',
|
|
158
|
-
props: {
|
|
159
|
-
...normalMultipleSelectProps,
|
|
160
|
-
requestConfig: {
|
|
161
|
-
filter: 'qp-name,code-orGroup-in',
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
350: {
|
|
166
|
-
type: 'bs-marketAreaOrgSelect',
|
|
167
|
-
props: {
|
|
168
|
-
treeCheckable: false,
|
|
169
|
-
...normalSingleSelectProps,
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
360: {
|
|
173
|
-
type: 'bs-roleSelect',
|
|
174
|
-
props: {
|
|
175
|
-
...normalSingleSelectProps,
|
|
176
|
-
requestConfig: {
|
|
177
|
-
filter: 'qp-name,code-orGroup-in',
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
370: {
|
|
182
|
-
type: 'bs-marketChannelSelect',
|
|
183
|
-
props: {
|
|
184
|
-
treeCheckable: false,
|
|
185
|
-
requestConfig: {
|
|
186
|
-
treeChildrenRoom: 'channelInfoSon',
|
|
187
|
-
initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 },
|
|
188
|
-
},
|
|
189
|
-
...normalSingleSelectProps,
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
30: {
|
|
194
|
-
10: {
|
|
195
|
-
type: 'select',
|
|
196
|
-
props: {
|
|
197
|
-
mode: 'multiple',
|
|
198
|
-
...normalMultipleSelectProps,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
20: {
|
|
202
|
-
type: 'select',
|
|
203
|
-
props: {
|
|
204
|
-
mode: 'multiple',
|
|
205
|
-
...normalMultipleSelectProps,
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
30: {
|
|
209
|
-
type: 'select',
|
|
210
|
-
props: {
|
|
211
|
-
mode: 'multiple',
|
|
212
|
-
...normalSingleSelectProps,
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
110: {
|
|
216
|
-
type: 'bs-physicalWarehouseSearchSelect',
|
|
217
|
-
props: {
|
|
218
|
-
...normalMultipleSelectProps,
|
|
219
|
-
requestConfig: {
|
|
220
|
-
mappingValueField: 'physicalWarehouseCode',
|
|
221
|
-
filter: 'qp-physicalWarehouseName,physicalWarehouseCode-orGroup,in',
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
120: {
|
|
226
|
-
type: 'bs-realWarehouseSearchSelect',
|
|
227
|
-
props: {
|
|
228
|
-
...normalMultipleSelectProps,
|
|
229
|
-
requestConfig: {
|
|
230
|
-
mappingValueField: 'realWarehouseCode',
|
|
231
|
-
filter: 'qp-realWarehouseName,realWarehouseCode-orGroup,in',
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
130: {
|
|
236
|
-
type: 'bs-virtualWarehouseSearchSelect',
|
|
237
|
-
props: {
|
|
238
|
-
...normalMultipleSelectProps,
|
|
239
|
-
requestConfig: {
|
|
240
|
-
mappingValueField: 'virtualWarehouseCode',
|
|
241
|
-
filter: 'qp-virtualWarehouseName,virtualWarehouseCode-orGroup,in',
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
140: {
|
|
246
|
-
type: 'bs-channelWarehouseSearchSelect',
|
|
247
|
-
props: {
|
|
248
|
-
...normalMultipleSelectProps,
|
|
249
|
-
requestConfig: {
|
|
250
|
-
mappingValueField: 'channelWarehouseCode',
|
|
251
|
-
filter: 'qp-channelWarehouseName,channelWarehouseCode-orGroup,in',
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
150: {
|
|
256
|
-
type: 'bs-spuCommoditySearchSelect',
|
|
257
|
-
props: {
|
|
258
|
-
...normalMultipleSelectProps,
|
|
259
|
-
requestConfig: {
|
|
260
|
-
filter: 'qp-itemCode,name-orGroup,in',
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
160: {
|
|
265
|
-
type: 'bs-skuCommoditySearchSelect',
|
|
266
|
-
props: {
|
|
267
|
-
...normalMultipleSelectProps,
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
210: {
|
|
272
|
-
// 行政组织
|
|
273
|
-
type: 'bs-departmentOrgSelect',
|
|
274
|
-
props: {
|
|
275
|
-
treeCheckable: true,
|
|
276
|
-
...normalMultipleSelectProps,
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
220: {
|
|
280
|
-
// 采购组织
|
|
281
|
-
type: 'bs-purchaseOrgSelect',
|
|
282
|
-
props: {
|
|
283
|
-
treeCheckable: true,
|
|
284
|
-
...normalMultipleSelectProps,
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
230: {
|
|
288
|
-
// 销售组织
|
|
289
|
-
type: 'bs-salesOrgSelect',
|
|
290
|
-
props: {
|
|
291
|
-
treeCheckable: true,
|
|
292
|
-
...normalMultipleSelectProps,
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
240: {
|
|
296
|
-
type: 'bs-supplierSearchSelect',
|
|
297
|
-
props: {
|
|
298
|
-
...normalMultipleSelectProps,
|
|
299
|
-
requestConfig: {
|
|
300
|
-
filter: 'qp-name,code-orGroup,in',
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
250: {
|
|
305
|
-
type: 'bs-customerSearchSelect',
|
|
306
|
-
props: {
|
|
307
|
-
...normalMultipleSelectProps,
|
|
308
|
-
requestConfig: { filter: 'qp-name,code-orGroup,in' },
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
260: {
|
|
312
|
-
type: 'bs-shopFileSearchSelect',
|
|
313
|
-
props: {
|
|
314
|
-
...normalMultipleSelectProps,
|
|
315
|
-
requestConfig: { filter: 'qp-name,code-orGroup,in' },
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
270: {
|
|
319
|
-
type: 'bs-employeeSearchSelect',
|
|
320
|
-
props: {
|
|
321
|
-
...normalMultipleSelectProps,
|
|
322
|
-
requestConfig: { mappingValueField: 'employeeNumber' },
|
|
323
|
-
},
|
|
324
|
-
},
|
|
325
|
-
280: {
|
|
326
|
-
// 库存组织
|
|
327
|
-
type: 'bs-stockOrgSelect',
|
|
328
|
-
props: {
|
|
329
|
-
treeCheckable: true,
|
|
330
|
-
...normalMultipleSelectProps,
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
290: {
|
|
334
|
-
// 结算组织
|
|
335
|
-
type: 'bs-settleOrgSelect',
|
|
336
|
-
props: {
|
|
337
|
-
treeCheckable: true,
|
|
338
|
-
...normalMultipleSelectProps,
|
|
339
|
-
},
|
|
340
|
-
},
|
|
341
|
-
310: {
|
|
342
|
-
type: 'bs-deliveryModeSearchSelect',
|
|
343
|
-
props: {
|
|
344
|
-
...normalMultipleSelectProps,
|
|
345
|
-
requestConfig: {
|
|
346
|
-
filter: 'qp-name,code-orGroup,in',
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
340: {
|
|
351
|
-
type: 'bs-RuleTemplateSearchSelect',
|
|
352
|
-
props: {
|
|
353
|
-
...normalMultipleSelectProps,
|
|
354
|
-
requestConfig: {
|
|
355
|
-
filter: 'qp-name,code-orGroup-in',
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
350: {
|
|
360
|
-
type: 'bs-marketAreaOrgSelect',
|
|
361
|
-
props: {
|
|
362
|
-
treeCheckable: false,
|
|
363
|
-
...normalSingleSelectProps,
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
360: {
|
|
367
|
-
type: 'bs-roleSelect',
|
|
368
|
-
props: {
|
|
369
|
-
...normalMultipleSelectProps,
|
|
370
|
-
requestConfig: {
|
|
371
|
-
filter: 'qp-name,code-orGroup-in',
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
|
-
370: {
|
|
376
|
-
type: 'bs-marketChannelSelect',
|
|
377
|
-
props: {
|
|
378
|
-
treeCheckable: true,
|
|
379
|
-
treeCheckStrictly: true,
|
|
380
|
-
requestConfig: {
|
|
381
|
-
treeChildrenRoom: 'channelInfoSon',
|
|
382
|
-
initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 }
|
|
383
|
-
},
|
|
384
|
-
...normalSingleSelectProps,
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export const PARAMS_VALUE_TYPE_ENUM = {
|
|
391
|
-
FIXED_VALUE: 'fixed',
|
|
392
|
-
EXPRESSION: 'expression',
|
|
393
|
-
CONFIGURATION_VALUES: 'config'
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export const paramsValueType = Object.freeze({
|
|
397
|
-
fixed: '固定值',
|
|
398
|
-
expression: '表达式',
|
|
399
|
-
config: '配置值',
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
export const choiceType = Object.freeze({
|
|
403
|
-
10: '自定义',
|
|
404
|
-
20: '数据字典',
|
|
405
|
-
30: '动态数据字典',
|
|
406
|
-
110: '仓库选择器(物理仓)',
|
|
407
|
-
120: '仓库选择器(逻辑仓)',
|
|
408
|
-
130: '仓库选择器(虚拟仓)',
|
|
409
|
-
140: '仓库选择器(渠道仓)',
|
|
410
|
-
150: '商品SPU选择器',
|
|
411
|
-
160: '商品SKU选择器',
|
|
412
|
-
190: '省市区',
|
|
413
|
-
|
|
414
|
-
210: '行政组织选择器',
|
|
415
|
-
220: '采购组织选择器',
|
|
416
|
-
230: '销售组织选择器',
|
|
417
|
-
240: '供应商选择器',
|
|
418
|
-
250: '客户选择器',
|
|
419
|
-
260: '店铺选择器',
|
|
420
|
-
270: '员工选择器',
|
|
421
|
-
280: '库存组织选择器',
|
|
422
|
-
290: '结算组织选择器',
|
|
423
|
-
|
|
424
|
-
310: '配送方式选择器',
|
|
425
|
-
330: '变量',
|
|
426
|
-
340: '规则模板选择器',
|
|
427
|
-
350: '营销区域选择器',
|
|
428
|
-
360: '角色选择器',
|
|
429
|
-
370: '销售渠道选择器',
|
|
430
|
-
});
|
|
431
|
-
export const inputType:any ={
|
|
432
|
-
10: '输入',
|
|
433
|
-
20: '单选',
|
|
434
|
-
30: '多选',
|
|
435
|
-
40: '公式',
|
|
436
|
-
};
|
|
437
|
-
export const valueType:any = {
|
|
438
|
-
10: '文本',
|
|
439
|
-
20: '短整数',
|
|
440
|
-
21: '长整数',
|
|
441
|
-
22: '小数',
|
|
442
|
-
30: '日期',
|
|
443
|
-
31: '时间',
|
|
444
|
-
32: '日期时间',
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export const moduleType = [
|
|
448
|
-
{ text: '计划模型', value: 1 },
|
|
449
|
-
{ text: '元数据对象', value: 2 },
|
|
450
|
-
]
|
|
1
|
+
const normalSingleSelectProps = {
|
|
2
|
+
placeholder: '请选择',
|
|
3
|
+
allowClear: true,
|
|
4
|
+
sourceName: 'defaultValue',
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const normalMultipleSelectProps = {
|
|
8
|
+
placeholder: '请选择',
|
|
9
|
+
allowClear: true,
|
|
10
|
+
sourceName: 'defaultValue',
|
|
11
|
+
selectProps: {
|
|
12
|
+
mode: 'multiple',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
// inputType显示类型 10输入框 20单选 30多选 40公式 ||||| valueType字段类型
|
|
16
|
+
export const inputTypes:any = {
|
|
17
|
+
20: {
|
|
18
|
+
10: {
|
|
19
|
+
type: 'select',
|
|
20
|
+
props: {
|
|
21
|
+
...normalSingleSelectProps,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
20: {
|
|
25
|
+
type: 'select',
|
|
26
|
+
props: {
|
|
27
|
+
...normalSingleSelectProps,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
30: {
|
|
31
|
+
type: 'select',
|
|
32
|
+
props: {
|
|
33
|
+
...normalSingleSelectProps,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
110: {
|
|
37
|
+
type: 'bs-physicalWarehouseSearchSelect',
|
|
38
|
+
props: {
|
|
39
|
+
...normalSingleSelectProps,
|
|
40
|
+
requestConfig: {
|
|
41
|
+
mappingValueField: 'physicalWarehouseCode',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
120: {
|
|
46
|
+
type: 'bs-realWarehouseSearchSelect',
|
|
47
|
+
props: {
|
|
48
|
+
...normalSingleSelectProps,
|
|
49
|
+
requestConfig: {
|
|
50
|
+
mappingValueField: 'realWarehouseCode',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
130: {
|
|
55
|
+
type: 'bs-virtualWarehouseSearchSelect',
|
|
56
|
+
props: {
|
|
57
|
+
...normalSingleSelectProps,
|
|
58
|
+
requestConfig: {
|
|
59
|
+
mappingValueField: 'virtualWarehouseCode',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
140: {
|
|
64
|
+
type: 'bs-channelWarehouseSearchSelect',
|
|
65
|
+
props: {
|
|
66
|
+
...normalSingleSelectProps,
|
|
67
|
+
requestConfig: {
|
|
68
|
+
mappingValueField: 'channelWarehouseCode',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
150: {
|
|
73
|
+
type: 'bs-spuCommoditySearchSelect',
|
|
74
|
+
props: {
|
|
75
|
+
...normalSingleSelectProps,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
160: {
|
|
79
|
+
type: 'bs-skuCommoditySearchSelect',
|
|
80
|
+
props: {
|
|
81
|
+
...normalSingleSelectProps,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
210: {
|
|
86
|
+
// 行政组织
|
|
87
|
+
type: 'bs-departmentOrgSelect',
|
|
88
|
+
props: {
|
|
89
|
+
treeCheckable: false,
|
|
90
|
+
...normalSingleSelectProps,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
220: {
|
|
94
|
+
// 采购组织
|
|
95
|
+
type: 'bs-purchaseOrgSelect',
|
|
96
|
+
props: {
|
|
97
|
+
treeCheckable: false,
|
|
98
|
+
...normalSingleSelectProps,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
230: {
|
|
102
|
+
// 销售组织
|
|
103
|
+
type: 'bs-salesOrgSelect',
|
|
104
|
+
props: {
|
|
105
|
+
treeCheckable: false,
|
|
106
|
+
...normalSingleSelectProps,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
240: {
|
|
110
|
+
type: 'bs-supplierSearchSelect',
|
|
111
|
+
props: {
|
|
112
|
+
...normalSingleSelectProps,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
250: {
|
|
116
|
+
type: 'bs-customerSearchSelect',
|
|
117
|
+
props: {
|
|
118
|
+
...normalSingleSelectProps,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
260: {
|
|
122
|
+
type: 'bs-shopFileSearchSelect',
|
|
123
|
+
props: {
|
|
124
|
+
...normalSingleSelectProps,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
270: {
|
|
128
|
+
type: 'bs-employeeSearchSelect',
|
|
129
|
+
props: {
|
|
130
|
+
...normalSingleSelectProps,
|
|
131
|
+
requestConfig: { mappingValueField: 'employeeNumber' },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
280: {
|
|
135
|
+
// 库存组织
|
|
136
|
+
type: 'bs-stockOrgSelect',
|
|
137
|
+
props: {
|
|
138
|
+
treeCheckable: false,
|
|
139
|
+
...normalSingleSelectProps,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
290: {
|
|
143
|
+
// 库存组织
|
|
144
|
+
type: 'bs-settleOrgSelect',
|
|
145
|
+
props: {
|
|
146
|
+
treeCheckable: false,
|
|
147
|
+
...normalSingleSelectProps,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
310: {
|
|
151
|
+
type: 'bs-deliveryModeSearchSelect',
|
|
152
|
+
props: {
|
|
153
|
+
...normalSingleSelectProps,
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
340: {
|
|
157
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
158
|
+
props: {
|
|
159
|
+
...normalMultipleSelectProps,
|
|
160
|
+
requestConfig: {
|
|
161
|
+
filter: 'qp-name,code-orGroup-in',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
350: {
|
|
166
|
+
type: 'bs-marketAreaOrgSelect',
|
|
167
|
+
props: {
|
|
168
|
+
treeCheckable: false,
|
|
169
|
+
...normalSingleSelectProps,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
360: {
|
|
173
|
+
type: 'bs-roleSelect',
|
|
174
|
+
props: {
|
|
175
|
+
...normalSingleSelectProps,
|
|
176
|
+
requestConfig: {
|
|
177
|
+
filter: 'qp-name,code-orGroup-in',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
370: {
|
|
182
|
+
type: 'bs-marketChannelSelect',
|
|
183
|
+
props: {
|
|
184
|
+
treeCheckable: false,
|
|
185
|
+
requestConfig: {
|
|
186
|
+
treeChildrenRoom: 'channelInfoSon',
|
|
187
|
+
initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 },
|
|
188
|
+
},
|
|
189
|
+
...normalSingleSelectProps,
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
30: {
|
|
194
|
+
10: {
|
|
195
|
+
type: 'select',
|
|
196
|
+
props: {
|
|
197
|
+
mode: 'multiple',
|
|
198
|
+
...normalMultipleSelectProps,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
20: {
|
|
202
|
+
type: 'select',
|
|
203
|
+
props: {
|
|
204
|
+
mode: 'multiple',
|
|
205
|
+
...normalMultipleSelectProps,
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
30: {
|
|
209
|
+
type: 'select',
|
|
210
|
+
props: {
|
|
211
|
+
mode: 'multiple',
|
|
212
|
+
...normalSingleSelectProps,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
110: {
|
|
216
|
+
type: 'bs-physicalWarehouseSearchSelect',
|
|
217
|
+
props: {
|
|
218
|
+
...normalMultipleSelectProps,
|
|
219
|
+
requestConfig: {
|
|
220
|
+
mappingValueField: 'physicalWarehouseCode',
|
|
221
|
+
filter: 'qp-physicalWarehouseName,physicalWarehouseCode-orGroup,in',
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
120: {
|
|
226
|
+
type: 'bs-realWarehouseSearchSelect',
|
|
227
|
+
props: {
|
|
228
|
+
...normalMultipleSelectProps,
|
|
229
|
+
requestConfig: {
|
|
230
|
+
mappingValueField: 'realWarehouseCode',
|
|
231
|
+
filter: 'qp-realWarehouseName,realWarehouseCode-orGroup,in',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
130: {
|
|
236
|
+
type: 'bs-virtualWarehouseSearchSelect',
|
|
237
|
+
props: {
|
|
238
|
+
...normalMultipleSelectProps,
|
|
239
|
+
requestConfig: {
|
|
240
|
+
mappingValueField: 'virtualWarehouseCode',
|
|
241
|
+
filter: 'qp-virtualWarehouseName,virtualWarehouseCode-orGroup,in',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
140: {
|
|
246
|
+
type: 'bs-channelWarehouseSearchSelect',
|
|
247
|
+
props: {
|
|
248
|
+
...normalMultipleSelectProps,
|
|
249
|
+
requestConfig: {
|
|
250
|
+
mappingValueField: 'channelWarehouseCode',
|
|
251
|
+
filter: 'qp-channelWarehouseName,channelWarehouseCode-orGroup,in',
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
150: {
|
|
256
|
+
type: 'bs-spuCommoditySearchSelect',
|
|
257
|
+
props: {
|
|
258
|
+
...normalMultipleSelectProps,
|
|
259
|
+
requestConfig: {
|
|
260
|
+
filter: 'qp-itemCode,name-orGroup,in',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
160: {
|
|
265
|
+
type: 'bs-skuCommoditySearchSelect',
|
|
266
|
+
props: {
|
|
267
|
+
...normalMultipleSelectProps,
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
|
|
271
|
+
210: {
|
|
272
|
+
// 行政组织
|
|
273
|
+
type: 'bs-departmentOrgSelect',
|
|
274
|
+
props: {
|
|
275
|
+
treeCheckable: true,
|
|
276
|
+
...normalMultipleSelectProps,
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
220: {
|
|
280
|
+
// 采购组织
|
|
281
|
+
type: 'bs-purchaseOrgSelect',
|
|
282
|
+
props: {
|
|
283
|
+
treeCheckable: true,
|
|
284
|
+
...normalMultipleSelectProps,
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
230: {
|
|
288
|
+
// 销售组织
|
|
289
|
+
type: 'bs-salesOrgSelect',
|
|
290
|
+
props: {
|
|
291
|
+
treeCheckable: true,
|
|
292
|
+
...normalMultipleSelectProps,
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
240: {
|
|
296
|
+
type: 'bs-supplierSearchSelect',
|
|
297
|
+
props: {
|
|
298
|
+
...normalMultipleSelectProps,
|
|
299
|
+
requestConfig: {
|
|
300
|
+
filter: 'qp-name,code-orGroup,in',
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
250: {
|
|
305
|
+
type: 'bs-customerSearchSelect',
|
|
306
|
+
props: {
|
|
307
|
+
...normalMultipleSelectProps,
|
|
308
|
+
requestConfig: { filter: 'qp-name,code-orGroup,in' },
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
260: {
|
|
312
|
+
type: 'bs-shopFileSearchSelect',
|
|
313
|
+
props: {
|
|
314
|
+
...normalMultipleSelectProps,
|
|
315
|
+
requestConfig: { filter: 'qp-name,code-orGroup,in' },
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
270: {
|
|
319
|
+
type: 'bs-employeeSearchSelect',
|
|
320
|
+
props: {
|
|
321
|
+
...normalMultipleSelectProps,
|
|
322
|
+
requestConfig: { mappingValueField: 'employeeNumber' },
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
280: {
|
|
326
|
+
// 库存组织
|
|
327
|
+
type: 'bs-stockOrgSelect',
|
|
328
|
+
props: {
|
|
329
|
+
treeCheckable: true,
|
|
330
|
+
...normalMultipleSelectProps,
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
290: {
|
|
334
|
+
// 结算组织
|
|
335
|
+
type: 'bs-settleOrgSelect',
|
|
336
|
+
props: {
|
|
337
|
+
treeCheckable: true,
|
|
338
|
+
...normalMultipleSelectProps,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
310: {
|
|
342
|
+
type: 'bs-deliveryModeSearchSelect',
|
|
343
|
+
props: {
|
|
344
|
+
...normalMultipleSelectProps,
|
|
345
|
+
requestConfig: {
|
|
346
|
+
filter: 'qp-name,code-orGroup,in',
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
340: {
|
|
351
|
+
type: 'bs-RuleTemplateSearchSelect',
|
|
352
|
+
props: {
|
|
353
|
+
...normalMultipleSelectProps,
|
|
354
|
+
requestConfig: {
|
|
355
|
+
filter: 'qp-name,code-orGroup-in',
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
350: {
|
|
360
|
+
type: 'bs-marketAreaOrgSelect',
|
|
361
|
+
props: {
|
|
362
|
+
treeCheckable: false,
|
|
363
|
+
...normalSingleSelectProps,
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
360: {
|
|
367
|
+
type: 'bs-roleSelect',
|
|
368
|
+
props: {
|
|
369
|
+
...normalMultipleSelectProps,
|
|
370
|
+
requestConfig: {
|
|
371
|
+
filter: 'qp-name,code-orGroup-in',
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
370: {
|
|
376
|
+
type: 'bs-marketChannelSelect',
|
|
377
|
+
props: {
|
|
378
|
+
treeCheckable: true,
|
|
379
|
+
treeCheckStrictly: true,
|
|
380
|
+
requestConfig: {
|
|
381
|
+
treeChildrenRoom: 'channelInfoSon',
|
|
382
|
+
initialParams: { 'qp-isMain-eq': 1, 'qp-type-eq': 1 }
|
|
383
|
+
},
|
|
384
|
+
...normalSingleSelectProps,
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
export const PARAMS_VALUE_TYPE_ENUM = {
|
|
391
|
+
FIXED_VALUE: 'fixed',
|
|
392
|
+
EXPRESSION: 'expression',
|
|
393
|
+
CONFIGURATION_VALUES: 'config'
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export const paramsValueType = Object.freeze({
|
|
397
|
+
fixed: '固定值',
|
|
398
|
+
expression: '表达式',
|
|
399
|
+
config: '配置值',
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
export const choiceType = Object.freeze({
|
|
403
|
+
10: '自定义',
|
|
404
|
+
20: '数据字典',
|
|
405
|
+
30: '动态数据字典',
|
|
406
|
+
110: '仓库选择器(物理仓)',
|
|
407
|
+
120: '仓库选择器(逻辑仓)',
|
|
408
|
+
130: '仓库选择器(虚拟仓)',
|
|
409
|
+
140: '仓库选择器(渠道仓)',
|
|
410
|
+
150: '商品SPU选择器',
|
|
411
|
+
160: '商品SKU选择器',
|
|
412
|
+
190: '省市区',
|
|
413
|
+
|
|
414
|
+
210: '行政组织选择器',
|
|
415
|
+
220: '采购组织选择器',
|
|
416
|
+
230: '销售组织选择器',
|
|
417
|
+
240: '供应商选择器',
|
|
418
|
+
250: '客户选择器',
|
|
419
|
+
260: '店铺选择器',
|
|
420
|
+
270: '员工选择器',
|
|
421
|
+
280: '库存组织选择器',
|
|
422
|
+
290: '结算组织选择器',
|
|
423
|
+
|
|
424
|
+
310: '配送方式选择器',
|
|
425
|
+
330: '变量',
|
|
426
|
+
340: '规则模板选择器',
|
|
427
|
+
350: '营销区域选择器',
|
|
428
|
+
360: '角色选择器',
|
|
429
|
+
370: '销售渠道选择器',
|
|
430
|
+
});
|
|
431
|
+
export const inputType:any ={
|
|
432
|
+
10: '输入',
|
|
433
|
+
20: '单选',
|
|
434
|
+
30: '多选',
|
|
435
|
+
40: '公式',
|
|
436
|
+
};
|
|
437
|
+
export const valueType:any = {
|
|
438
|
+
10: '文本',
|
|
439
|
+
20: '短整数',
|
|
440
|
+
21: '长整数',
|
|
441
|
+
22: '小数',
|
|
442
|
+
30: '日期',
|
|
443
|
+
31: '时间',
|
|
444
|
+
32: '日期时间',
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
export const moduleType = [
|
|
448
|
+
{ text: '计划模型', value: 1 },
|
|
449
|
+
{ text: '元数据对象', value: 2 },
|
|
450
|
+
]
|