@bit-sun/business-component 2.2.45 → 2.2.46
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/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +684 -680
- package/dist/index.js +690 -686
- package/dist/utils/LocalstorageUtils.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -1
- 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 +77 -77
- 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/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +887 -861
- 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 +564 -564
- package/src/components/Business/BsSulaQueryTable/index.less +221 -221
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +832 -832
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- 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 +313 -313
- 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 +201 -201
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- 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 +320 -320
- 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 +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1732
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1319 -1319
- package/src/components/Business/SearchSelect/index.tsx +55 -52
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- 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 +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- 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 +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
- 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 +380 -380
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/helps.ts +14 -14
- 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 +1279 -1279
- 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 +772 -772
- 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 +695 -695
- 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 +687 -687
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- 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 +858 -849
- 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 +162 -162
- package/src/index.ts +34 -34
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- 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/LocalstorageUtils.ts +95 -90
- 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 +3 -3
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +183 -183
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var reactResizable = require('react-resizable');
|
|
|
14
14
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
15
15
|
var arrayMove = require('array-move');
|
|
16
16
|
var umi = require('umi');
|
|
17
|
-
var isEqual
|
|
17
|
+
var isEqual = require('lodash/isEqual');
|
|
18
18
|
var bssula = require('bssula');
|
|
19
19
|
var ProLayout = require('@ant-design/pro-layout');
|
|
20
20
|
var cloneDeep = require('lodash/cloneDeep');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
34
34
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
35
35
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
38
38
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
|
39
39
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
@@ -2093,7 +2093,8 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2093
2093
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
2094
2094
|
_props$getPopupContai = props.getPopupContainer,
|
|
2095
2095
|
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
|
|
2096
|
-
fieldComponent = props.fieldComponent
|
|
2096
|
+
fieldComponent = props.fieldComponent,
|
|
2097
|
+
selectBusinessType = props.selectBusinessType;
|
|
2097
2098
|
var _ref = requestConfig || {},
|
|
2098
2099
|
url = _ref.url,
|
|
2099
2100
|
otherParams = _ref.otherParams,
|
|
@@ -2297,84 +2298,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2297
2298
|
});
|
|
2298
2299
|
}
|
|
2299
2300
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2300
|
-
|
|
2301
|
+
var _loop = function _loop() {
|
|
2301
2302
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2328
|
-
}
|
|
2329
|
-
});
|
|
2330
|
-
delete params[key];
|
|
2331
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2332
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
2333
|
-
if (element) {
|
|
2334
|
-
params[_dataParams4[0]] = 0;
|
|
2303
|
+
var element = params[key];
|
|
2304
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2305
|
+
var dataParams = key.split('*number*');
|
|
2306
|
+
dataParams.forEach(function (value, index) {
|
|
2307
|
+
params[value] = element[index];
|
|
2308
|
+
});
|
|
2309
|
+
delete params[key];
|
|
2310
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2311
|
+
var _dataParams = key.split('*address*');
|
|
2312
|
+
_dataParams.forEach(function (value, index) {
|
|
2313
|
+
params[value] = element.PCDCode[index];
|
|
2314
|
+
});
|
|
2315
|
+
delete params[key];
|
|
2316
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2317
|
+
var _dataParams2 = key.split('*costType*');
|
|
2318
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2319
|
+
params[_dataParams2[0]] = element[1];
|
|
2320
|
+
delete params[key];
|
|
2321
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2322
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2323
|
+
_dataParams3.forEach(function (value, index) {
|
|
2324
|
+
if (index === 0) {
|
|
2325
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2326
|
+
} else {
|
|
2327
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2335
2328
|
}
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
_dataParams7.forEach(function (value, index) {
|
|
2354
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2355
|
-
});
|
|
2356
|
-
delete params[key];
|
|
2357
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2358
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2359
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2360
|
-
if (params[key][0] === 'range') {
|
|
2361
|
-
if (params[key][1][0]) {
|
|
2362
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2363
|
-
}
|
|
2364
|
-
if (params[key][1][1]) {
|
|
2365
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2366
|
-
}
|
|
2329
|
+
});
|
|
2330
|
+
delete params[key];
|
|
2331
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2332
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2333
|
+
if (element) {
|
|
2334
|
+
params[_dataParams4[0]] = 0;
|
|
2335
|
+
}
|
|
2336
|
+
delete params[key];
|
|
2337
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2338
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2339
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2340
|
+
delete params[key];
|
|
2341
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2342
|
+
var _dataParams6 = key.split('*date*');
|
|
2343
|
+
_dataParams6.forEach(function (value, index) {
|
|
2344
|
+
if (index === 0) {
|
|
2345
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2367
2346
|
} else {
|
|
2368
|
-
params[
|
|
2347
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2348
|
+
}
|
|
2349
|
+
});
|
|
2350
|
+
delete params[key];
|
|
2351
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2352
|
+
var _dataParams7 = key.split('*');
|
|
2353
|
+
_dataParams7.forEach(function (value, index) {
|
|
2354
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2355
|
+
});
|
|
2356
|
+
delete params[key];
|
|
2357
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2358
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2359
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2360
|
+
if (params[key][0] === 'range') {
|
|
2361
|
+
if (params[key][1][0]) {
|
|
2362
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2363
|
+
}
|
|
2364
|
+
if (params[key][1][1]) {
|
|
2365
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2369
2366
|
}
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
params[key] = element.join(',');
|
|
2373
|
-
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2374
|
-
delete params[key];
|
|
2367
|
+
} else {
|
|
2368
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2375
2369
|
}
|
|
2376
|
-
|
|
2370
|
+
delete params[key];
|
|
2371
|
+
} else if (Array.isArray(element)) {
|
|
2372
|
+
params[key] = element.join(',');
|
|
2373
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2374
|
+
delete params[key];
|
|
2375
|
+
}
|
|
2377
2376
|
}
|
|
2377
|
+
};
|
|
2378
|
+
for (var key in params) {
|
|
2379
|
+
_loop();
|
|
2378
2380
|
}
|
|
2379
2381
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2380
2382
|
pageSize: pageSize,
|
|
@@ -2498,6 +2500,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2498
2500
|
React.useEffect(function () {
|
|
2499
2501
|
makeUniqueValue();
|
|
2500
2502
|
}, [resultSourceKey]);
|
|
2503
|
+
React.useEffect(function () {
|
|
2504
|
+
if (init) {
|
|
2505
|
+
setItems([]);
|
|
2506
|
+
setItemsTotal(0);
|
|
2507
|
+
run('init');
|
|
2508
|
+
}
|
|
2509
|
+
}, [selectBusinessType]);
|
|
2501
2510
|
var showModal = function showModal() {
|
|
2502
2511
|
getData({
|
|
2503
2512
|
pageSize: tableInitPageSize,
|
|
@@ -3693,52 +3702,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3693
3702
|
callback(showColumns);
|
|
3694
3703
|
};
|
|
3695
3704
|
|
|
3696
|
-
var
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
function
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3705
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
3706
|
+
return a === b;
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
function index (resultFn, isEqual) {
|
|
3710
|
+
if (isEqual === void 0) {
|
|
3711
|
+
isEqual = simpleIsEqual;
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
var lastThis;
|
|
3715
|
+
var lastArgs = [];
|
|
3716
|
+
var lastResult;
|
|
3717
|
+
var calledOnce = false;
|
|
3718
|
+
|
|
3719
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3720
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
3721
|
+
};
|
|
3722
|
+
|
|
3723
|
+
var result = function result() {
|
|
3724
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3725
|
+
newArgs[_key] = arguments[_key];
|
|
3717
3726
|
}
|
|
3718
|
-
return true;
|
|
3719
|
-
}
|
|
3720
3727
|
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
var lastThis;
|
|
3724
|
-
var lastArgs = [];
|
|
3725
|
-
var lastResult;
|
|
3726
|
-
var calledOnce = false;
|
|
3727
|
-
function memoized() {
|
|
3728
|
-
var newArgs = [];
|
|
3729
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3730
|
-
newArgs[_i] = arguments[_i];
|
|
3731
|
-
}
|
|
3732
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
3733
|
-
return lastResult;
|
|
3734
|
-
}
|
|
3735
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
3736
|
-
calledOnce = true;
|
|
3737
|
-
lastThis = this;
|
|
3738
|
-
lastArgs = newArgs;
|
|
3739
|
-
return lastResult;
|
|
3728
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
3729
|
+
return lastResult;
|
|
3740
3730
|
}
|
|
3741
|
-
|
|
3731
|
+
|
|
3732
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3733
|
+
calledOnce = true;
|
|
3734
|
+
lastThis = this;
|
|
3735
|
+
lastArgs = newArgs;
|
|
3736
|
+
return lastResult;
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3739
|
+
return result;
|
|
3742
3740
|
}
|
|
3743
3741
|
|
|
3744
3742
|
//! moment.js
|
|
@@ -9601,58 +9599,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9601
9599
|
* @returns 返回处理后的查询参数
|
|
9602
9600
|
*/
|
|
9603
9601
|
function queryParams(params, flag) {
|
|
9604
|
-
|
|
9602
|
+
var _loop = function _loop() {
|
|
9605
9603
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9630
|
-
} else {
|
|
9631
|
-
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9632
|
-
}
|
|
9633
|
-
});
|
|
9634
|
-
delete params[key];
|
|
9635
|
-
} else if (element && key.indexOf('*') >= 0) {
|
|
9636
|
-
var _dataParams4 = key.split('*');
|
|
9637
|
-
_dataParams4.forEach(function (value, index) {
|
|
9638
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9639
|
-
});
|
|
9640
|
-
delete params[key];
|
|
9641
|
-
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9642
|
-
var _dataParams5 = key.split('_likeIn_');
|
|
9643
|
-
if (element.indexOf(',') >= 0) {
|
|
9644
|
-
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9645
|
-
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9604
|
+
var element = params[key];
|
|
9605
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
9606
|
+
var dataParams = key.split('*number*');
|
|
9607
|
+
dataParams.forEach(function (value, index) {
|
|
9608
|
+
params[value] = element[index];
|
|
9609
|
+
});
|
|
9610
|
+
delete params[key];
|
|
9611
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
9612
|
+
var _dataParams = key.split('*address*');
|
|
9613
|
+
_dataParams.forEach(function (value, index) {
|
|
9614
|
+
params[value] = element.PCDCode[index];
|
|
9615
|
+
});
|
|
9616
|
+
delete params[key];
|
|
9617
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
9618
|
+
var _dataParams2 = key.split('*costType*');
|
|
9619
|
+
// eslint-disable-next-line prefer-destructuring
|
|
9620
|
+
params[_dataParams2[0]] = element[1];
|
|
9621
|
+
delete params[key];
|
|
9622
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
9623
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
9624
|
+
_dataParams3.forEach(function (value, index) {
|
|
9625
|
+
if (index === 0) {
|
|
9626
|
+
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9646
9627
|
} else {
|
|
9647
|
-
params[
|
|
9648
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9628
|
+
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9649
9629
|
}
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9630
|
+
});
|
|
9631
|
+
delete params[key];
|
|
9632
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
9633
|
+
var _dataParams4 = key.split('*');
|
|
9634
|
+
_dataParams4.forEach(function (value, index) {
|
|
9635
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9636
|
+
});
|
|
9637
|
+
delete params[key];
|
|
9638
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9639
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
9640
|
+
if (element.indexOf(',') >= 0) {
|
|
9641
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9642
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9643
|
+
} else {
|
|
9644
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9645
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9653
9646
|
}
|
|
9654
|
-
|
|
9647
|
+
delete params[key];
|
|
9648
|
+
} else if (Array.isArray(element)) {
|
|
9649
|
+
params[key] = element.join(',');
|
|
9650
|
+
}
|
|
9655
9651
|
}
|
|
9652
|
+
};
|
|
9653
|
+
for (var key in params) {
|
|
9654
|
+
_loop();
|
|
9656
9655
|
}
|
|
9657
9656
|
return flag ? params : qs.stringify(params);
|
|
9658
9657
|
}
|
|
@@ -9698,7 +9697,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9698
9697
|
return item;
|
|
9699
9698
|
});
|
|
9700
9699
|
};
|
|
9701
|
-
var memoizeOneFormatter =
|
|
9700
|
+
var memoizeOneFormatter = index(formatter, isEqual__default['default']);
|
|
9702
9701
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9703
9702
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9704
9703
|
umi.history.goBack();
|
|
@@ -10182,76 +10181,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
10182
10181
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10183
10182
|
var result;
|
|
10184
10183
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10185
|
-
while (1) {
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
_context.next = 3;
|
|
10192
|
-
break;
|
|
10193
|
-
}
|
|
10194
|
-
antd.message.warning('相同skc配码不可设置相同哦');
|
|
10195
|
-
return _context.abrupt("return", false);
|
|
10196
|
-
case 3:
|
|
10197
|
-
if (!(bType == 'spu')) {
|
|
10198
|
-
_context.next = 26;
|
|
10199
|
-
break;
|
|
10200
|
-
}
|
|
10201
|
-
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10202
|
-
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10203
|
-
}))) {
|
|
10204
|
-
_context.next = 7;
|
|
10205
|
-
break;
|
|
10206
|
-
}
|
|
10207
|
-
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10208
|
-
return _context.abrupt("return", false);
|
|
10209
|
-
case 7:
|
|
10210
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10211
|
-
_context.next = 10;
|
|
10212
|
-
break;
|
|
10213
|
-
}
|
|
10214
|
-
antd.message.warning('请先选择颜色!');
|
|
10215
|
-
return _context.abrupt("return", false);
|
|
10216
|
-
case 10:
|
|
10217
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10218
|
-
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10219
|
-
}))) {
|
|
10220
|
-
_context.next = 13;
|
|
10221
|
-
break;
|
|
10222
|
-
}
|
|
10223
|
-
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10224
|
-
return _context.abrupt("return", false);
|
|
10225
|
-
case 13:
|
|
10226
|
-
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10227
|
-
_context.next = 26;
|
|
10228
|
-
break;
|
|
10229
|
-
}
|
|
10230
|
-
result = true;
|
|
10231
|
-
_context.prev = 15;
|
|
10232
|
-
_context.next = 18;
|
|
10233
|
-
return checkSpuMatchCode({
|
|
10234
|
-
skcCode: recordItem[recordKey],
|
|
10235
|
-
matchingCode: changeValue,
|
|
10236
|
-
ext1: recordItem.colorName
|
|
10237
|
-
});
|
|
10238
|
-
case 18:
|
|
10239
|
-
result = _context.sent;
|
|
10240
|
-
result = true;
|
|
10241
|
-
_context.next = 25;
|
|
10184
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10185
|
+
case 0:
|
|
10186
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
10187
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
10188
|
+
}))) {
|
|
10189
|
+
_context.next = 3;
|
|
10242
10190
|
break;
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10191
|
+
}
|
|
10192
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
10193
|
+
return _context.abrupt("return", false);
|
|
10194
|
+
case 3:
|
|
10195
|
+
if (!(bType == 'spu')) {
|
|
10196
|
+
_context.next = 26;
|
|
10197
|
+
break;
|
|
10198
|
+
}
|
|
10199
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10200
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10201
|
+
}))) {
|
|
10202
|
+
_context.next = 7;
|
|
10203
|
+
break;
|
|
10204
|
+
}
|
|
10205
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10206
|
+
return _context.abrupt("return", false);
|
|
10207
|
+
case 7:
|
|
10208
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10209
|
+
_context.next = 10;
|
|
10210
|
+
break;
|
|
10211
|
+
}
|
|
10212
|
+
antd.message.warning('请先选择颜色!');
|
|
10213
|
+
return _context.abrupt("return", false);
|
|
10214
|
+
case 10:
|
|
10215
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10216
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10217
|
+
}))) {
|
|
10218
|
+
_context.next = 13;
|
|
10219
|
+
break;
|
|
10220
|
+
}
|
|
10221
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10222
|
+
return _context.abrupt("return", false);
|
|
10223
|
+
case 13:
|
|
10224
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10225
|
+
_context.next = 26;
|
|
10226
|
+
break;
|
|
10227
|
+
}
|
|
10228
|
+
result = true;
|
|
10229
|
+
_context.prev = 15;
|
|
10230
|
+
_context.next = 18;
|
|
10231
|
+
return checkSpuMatchCode({
|
|
10232
|
+
skcCode: recordItem[recordKey],
|
|
10233
|
+
matchingCode: changeValue,
|
|
10234
|
+
ext1: recordItem.colorName
|
|
10235
|
+
});
|
|
10236
|
+
case 18:
|
|
10237
|
+
result = _context.sent;
|
|
10238
|
+
result = true;
|
|
10239
|
+
_context.next = 25;
|
|
10240
|
+
break;
|
|
10241
|
+
case 22:
|
|
10242
|
+
_context.prev = 22;
|
|
10243
|
+
_context.t0 = _context["catch"](15);
|
|
10244
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10245
|
+
case 25:
|
|
10246
|
+
return _context.abrupt("return", result);
|
|
10247
|
+
case 26:
|
|
10248
|
+
return _context.abrupt("return", true);
|
|
10249
|
+
case 27:
|
|
10250
|
+
case "end":
|
|
10251
|
+
return _context.stop();
|
|
10255
10252
|
}
|
|
10256
10253
|
}, _callee, null, [[15, 22]]);
|
|
10257
10254
|
}));
|
|
@@ -10443,29 +10440,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
10443
10440
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10444
10441
|
var isConformToTheRules, newPopValue;
|
|
10445
10442
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10446
|
-
while (1) {
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10443
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10444
|
+
case 0:
|
|
10445
|
+
_context2.next = 2;
|
|
10446
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
10447
|
+
case 2:
|
|
10448
|
+
isConformToTheRules = _context2.sent;
|
|
10449
|
+
if (isConformToTheRules) {
|
|
10450
|
+
record[item.dataIndex] = value;
|
|
10451
|
+
} else {
|
|
10452
|
+
record[item.dataIndex] = null;
|
|
10453
|
+
}
|
|
10454
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10455
|
+
if (innerIndex == index) {
|
|
10456
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
10457
10457
|
}
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
setPopValue(newPopValue);
|
|
10465
|
-
case 6:
|
|
10466
|
-
case "end":
|
|
10467
|
-
return _context2.stop();
|
|
10468
|
-
}
|
|
10458
|
+
return i;
|
|
10459
|
+
});
|
|
10460
|
+
setPopValue(newPopValue);
|
|
10461
|
+
case 6:
|
|
10462
|
+
case "end":
|
|
10463
|
+
return _context2.stop();
|
|
10469
10464
|
}
|
|
10470
10465
|
}, _callee2);
|
|
10471
10466
|
}));
|
|
@@ -10525,84 +10520,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
10525
10520
|
});
|
|
10526
10521
|
}
|
|
10527
10522
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10528
|
-
|
|
10523
|
+
var _loop = function _loop() {
|
|
10529
10524
|
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10556
|
-
}
|
|
10557
|
-
});
|
|
10558
|
-
delete params[key];
|
|
10559
|
-
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10560
|
-
var _dataParams4 = key.split('*checkBox*');
|
|
10561
|
-
if (element) {
|
|
10562
|
-
params[_dataParams4[0]] = 0;
|
|
10525
|
+
var element = params[key];
|
|
10526
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
10527
|
+
var dataParams = key.split('*number*');
|
|
10528
|
+
dataParams.forEach(function (value, index) {
|
|
10529
|
+
params[value] = element[index];
|
|
10530
|
+
});
|
|
10531
|
+
delete params[key];
|
|
10532
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
10533
|
+
var _dataParams = key.split('*address*');
|
|
10534
|
+
_dataParams.forEach(function (value, index) {
|
|
10535
|
+
params[value] = element.PCDCode[index];
|
|
10536
|
+
});
|
|
10537
|
+
delete params[key];
|
|
10538
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
10539
|
+
var _dataParams2 = key.split('*costType*');
|
|
10540
|
+
// eslint-disable-next-line prefer-destructuring
|
|
10541
|
+
params[_dataParams2[0]] = element[1];
|
|
10542
|
+
delete params[key];
|
|
10543
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
10544
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
10545
|
+
_dataParams3.forEach(function (value, index) {
|
|
10546
|
+
if (index === 0) {
|
|
10547
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
10548
|
+
} else {
|
|
10549
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10563
10550
|
}
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
_dataParams7.forEach(function (value, index) {
|
|
10582
|
-
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10583
|
-
});
|
|
10584
|
-
delete params[key];
|
|
10585
|
-
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10586
|
-
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10587
|
-
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10588
|
-
if (params[key][0] === 'range') {
|
|
10589
|
-
if (params[key][1][0]) {
|
|
10590
|
-
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10591
|
-
}
|
|
10592
|
-
if (params[key][1][1]) {
|
|
10593
|
-
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10594
|
-
}
|
|
10551
|
+
});
|
|
10552
|
+
delete params[key];
|
|
10553
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10554
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
10555
|
+
if (element) {
|
|
10556
|
+
params[_dataParams4[0]] = 0;
|
|
10557
|
+
}
|
|
10558
|
+
delete params[key];
|
|
10559
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
10560
|
+
var _dataParams5 = key.split('*cascader*');
|
|
10561
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
10562
|
+
delete params[key];
|
|
10563
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
10564
|
+
var _dataParams6 = key.split('*date*');
|
|
10565
|
+
_dataParams6.forEach(function (value, index) {
|
|
10566
|
+
if (index === 0) {
|
|
10567
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10595
10568
|
} else {
|
|
10596
|
-
params[
|
|
10569
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10597
10570
|
}
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10571
|
+
});
|
|
10572
|
+
delete params[key];
|
|
10573
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
10574
|
+
var _dataParams7 = key.split('*');
|
|
10575
|
+
_dataParams7.forEach(function (value, index) {
|
|
10576
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10577
|
+
});
|
|
10578
|
+
delete params[key];
|
|
10579
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10580
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10581
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10582
|
+
if (params[key][0] === 'range') {
|
|
10583
|
+
if (params[key][1][0]) {
|
|
10584
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10585
|
+
}
|
|
10586
|
+
if (params[key][1][1]) {
|
|
10587
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10588
|
+
}
|
|
10589
|
+
} else {
|
|
10590
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10603
10591
|
}
|
|
10604
|
-
|
|
10592
|
+
delete params[key];
|
|
10593
|
+
} else if (Array.isArray(element)) {
|
|
10594
|
+
params[key] = element.join(',');
|
|
10595
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10596
|
+
delete params[key];
|
|
10597
|
+
}
|
|
10605
10598
|
}
|
|
10599
|
+
};
|
|
10600
|
+
for (var key in params) {
|
|
10601
|
+
_loop();
|
|
10606
10602
|
}
|
|
10607
10603
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10608
10604
|
pageSize: pageSize,
|
|
@@ -10702,8 +10698,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
10702
10698
|
pageSize: 5000,
|
|
10703
10699
|
currentPage: 1
|
|
10704
10700
|
})]).then(function (x) {
|
|
10705
|
-
formatSource(x, 0,
|
|
10706
|
-
formatTreeDataSource(x, 1,
|
|
10701
|
+
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10702
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10707
10703
|
});
|
|
10708
10704
|
}
|
|
10709
10705
|
if (businessType == 'skc') {
|
|
@@ -12057,72 +12053,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12057
12053
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12058
12054
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12059
12055
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12060
|
-
while (1) {
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
messageInfo
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
antd.message.success(initSuccessMessage);
|
|
12115
|
-
}
|
|
12056
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12057
|
+
case 0:
|
|
12058
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12059
|
+
_context.next = 3;
|
|
12060
|
+
break;
|
|
12061
|
+
}
|
|
12062
|
+
antd.message.warning('至少录入一条数据');
|
|
12063
|
+
return _context.abrupt("return");
|
|
12064
|
+
case 3:
|
|
12065
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12066
|
+
return d.skuCode && d.name;
|
|
12067
|
+
})) {
|
|
12068
|
+
_context.next = 6;
|
|
12069
|
+
break;
|
|
12070
|
+
}
|
|
12071
|
+
antd.message.warning('请选择商品!');
|
|
12072
|
+
return _context.abrupt("return");
|
|
12073
|
+
case 6:
|
|
12074
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12075
|
+
return d.count;
|
|
12076
|
+
})) {
|
|
12077
|
+
_context.next = 9;
|
|
12078
|
+
break;
|
|
12079
|
+
}
|
|
12080
|
+
antd.message.warning('请填写商品数量!');
|
|
12081
|
+
return _context.abrupt("return");
|
|
12082
|
+
case 9:
|
|
12083
|
+
_context.next = 11;
|
|
12084
|
+
return isSkuCanEntry(data);
|
|
12085
|
+
case 11:
|
|
12086
|
+
canEntryObject = _context.sent;
|
|
12087
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12088
|
+
_context.next = 16;
|
|
12089
|
+
break;
|
|
12090
|
+
}
|
|
12091
|
+
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
12092
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12093
|
+
}));
|
|
12094
|
+
messageInfo && antd.message.warning({
|
|
12095
|
+
content: messageInfo,
|
|
12096
|
+
duration: 6
|
|
12097
|
+
});
|
|
12098
|
+
return _context.abrupt("return");
|
|
12099
|
+
case 16:
|
|
12100
|
+
setLoading(true);
|
|
12101
|
+
onSaveCallback(data).then(function (res) {
|
|
12102
|
+
{
|
|
12103
|
+
var _Object$keys;
|
|
12104
|
+
var initSuccessMessage = '保存成功';
|
|
12105
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12106
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12107
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12108
|
+
} else {
|
|
12109
|
+
antd.message.success(initSuccessMessage);
|
|
12116
12110
|
}
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12111
|
+
}
|
|
12112
|
+
setLoading(false);
|
|
12113
|
+
}).catch(function (Error) {
|
|
12114
|
+
antd.message.error(Error);
|
|
12115
|
+
setLoading(false);
|
|
12116
|
+
});
|
|
12117
|
+
case 18:
|
|
12118
|
+
case "end":
|
|
12119
|
+
return _context.stop();
|
|
12126
12120
|
}
|
|
12127
12121
|
}, _callee);
|
|
12128
12122
|
}));
|
|
@@ -14255,7 +14249,7 @@ var BusinessSearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
14255
14249
|
needModalTable: needModalTable,
|
|
14256
14250
|
modalTableProps: modalTableProps
|
|
14257
14251
|
});
|
|
14258
|
-
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
|
|
14252
|
+
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
|
|
14259
14253
|
React.useImperativeHandle(ref, function () {
|
|
14260
14254
|
return {
|
|
14261
14255
|
getRef: function getRef() {
|
|
@@ -14277,9 +14271,13 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
14277
14271
|
if (props && props.disabled !== nextProps.disabled) {
|
|
14278
14272
|
return false;
|
|
14279
14273
|
}
|
|
14274
|
+
if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
|
|
14275
|
+
return false;
|
|
14276
|
+
}
|
|
14280
14277
|
return true;
|
|
14281
14278
|
});
|
|
14282
14279
|
|
|
14280
|
+
// import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
14283
14281
|
function handleSelectColumn(c, parentProps) {
|
|
14284
14282
|
var result = c;
|
|
14285
14283
|
var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
|
|
@@ -14291,7 +14289,7 @@ function handleSelectColumn(c, parentProps) {
|
|
|
14291
14289
|
return !exceptColumns.includes(i.dataIndex);
|
|
14292
14290
|
});
|
|
14293
14291
|
}
|
|
14294
|
-
// 追加
|
|
14292
|
+
// 追加(最好不用这个,当组件不固定时候会有影响)
|
|
14295
14293
|
if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
|
|
14296
14294
|
additionColumns.forEach(function (i) {
|
|
14297
14295
|
result.splice(i.position, 0, i.column);
|
|
@@ -14304,6 +14302,7 @@ function handleSelectColumn(c, parentProps) {
|
|
|
14304
14302
|
return result;
|
|
14305
14303
|
}
|
|
14306
14304
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
14305
|
+
var _parProps$requestConf, _parProps$requestConf2;
|
|
14307
14306
|
var selectProps = {
|
|
14308
14307
|
mode: 'multiple'
|
|
14309
14308
|
};
|
|
@@ -14316,6 +14315,19 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14316
14315
|
title: 'SKU编码',
|
|
14317
14316
|
width: 150,
|
|
14318
14317
|
dataIndex: 'skuCode'
|
|
14318
|
+
}, {
|
|
14319
|
+
title: '商品条码',
|
|
14320
|
+
width: 100,
|
|
14321
|
+
ellipsis: {
|
|
14322
|
+
showTitle: false
|
|
14323
|
+
},
|
|
14324
|
+
dataIndex: 'itemEancode',
|
|
14325
|
+
render: function render(text) {
|
|
14326
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14327
|
+
placement: "topLeft",
|
|
14328
|
+
title: text
|
|
14329
|
+
}, text);
|
|
14330
|
+
}
|
|
14319
14331
|
}, {
|
|
14320
14332
|
title: 'SKU名称',
|
|
14321
14333
|
width: 200,
|
|
@@ -14403,11 +14415,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14403
14415
|
requestConfig: _objectSpread2({
|
|
14404
14416
|
url: "/items/sku/pager/v2",
|
|
14405
14417
|
filter: 'qp-name-like',
|
|
14406
|
-
otherParams: {
|
|
14418
|
+
otherParams: _objectSpread2({
|
|
14407
14419
|
'qp-combination-eq': false,
|
|
14408
14420
|
'qp-approveStatus-eq': 1,
|
|
14409
14421
|
'qp-status-eq': 1
|
|
14410
|
-
},
|
|
14422
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
14411
14423
|
mappingTextField: 'name',
|
|
14412
14424
|
mappingValueField: 'skuCode'
|
|
14413
14425
|
}, parProps.requestConfig),
|
|
@@ -14429,6 +14441,13 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14429
14441
|
}, {
|
|
14430
14442
|
name: 'qp-skuName-like',
|
|
14431
14443
|
label: 'SKU名称'
|
|
14444
|
+
}, {
|
|
14445
|
+
name: 'qp-code-in',
|
|
14446
|
+
label: '商品条码',
|
|
14447
|
+
field: {
|
|
14448
|
+
type: 'multipleQueryInput',
|
|
14449
|
+
props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
|
|
14450
|
+
}
|
|
14432
14451
|
}, {
|
|
14433
14452
|
name: 'qp-brandId-in',
|
|
14434
14453
|
type: 'select',
|
|
@@ -14509,12 +14528,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14509
14528
|
}));
|
|
14510
14529
|
}
|
|
14511
14530
|
}, {
|
|
14512
|
-
title: '
|
|
14531
|
+
title: '商品条码',
|
|
14513
14532
|
width: 100,
|
|
14514
14533
|
ellipsis: {
|
|
14515
14534
|
showTitle: false
|
|
14516
14535
|
},
|
|
14517
|
-
dataIndex: '
|
|
14536
|
+
dataIndex: 'itemEancode',
|
|
14518
14537
|
render: function render(text) {
|
|
14519
14538
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
14520
14539
|
placement: "topLeft",
|
|
@@ -14620,6 +14639,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14620
14639
|
})));
|
|
14621
14640
|
};
|
|
14622
14641
|
var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
14642
|
+
var _parProps$requestConf3;
|
|
14623
14643
|
var selectProps = {
|
|
14624
14644
|
mode: 'multiple'
|
|
14625
14645
|
};
|
|
@@ -14697,9 +14717,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14697
14717
|
requestConfig: _objectSpread2({
|
|
14698
14718
|
url: "/items/skc/skcSelect",
|
|
14699
14719
|
filter: 'qp-name-like',
|
|
14700
|
-
otherParams: {
|
|
14720
|
+
otherParams: _objectSpread2({
|
|
14701
14721
|
'qp-skcStatus-eq': 1
|
|
14702
|
-
},
|
|
14722
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
|
|
14703
14723
|
mappingTextField: 'name',
|
|
14704
14724
|
mappingValueField: 'code'
|
|
14705
14725
|
}, parProps.requestConfig),
|
|
@@ -14899,6 +14919,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14899
14919
|
})));
|
|
14900
14920
|
};
|
|
14901
14921
|
var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
14922
|
+
var _parProps$requestConf4;
|
|
14902
14923
|
var selectProps = {
|
|
14903
14924
|
mode: 'multiple'
|
|
14904
14925
|
};
|
|
@@ -14985,11 +15006,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14985
15006
|
requestConfig: _objectSpread2({
|
|
14986
15007
|
url: "/items/item",
|
|
14987
15008
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
14988
|
-
otherParams: {
|
|
15009
|
+
otherParams: _objectSpread2({
|
|
14989
15010
|
'qp-approveStatus-eq': 1,
|
|
14990
15011
|
'qp-status-eq': 1,
|
|
14991
15012
|
sorter: 'desc-id'
|
|
14992
|
-
},
|
|
15013
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
|
|
14993
15014
|
mappingTextField: 'name',
|
|
14994
15015
|
mappingValueField: 'itemCode'
|
|
14995
15016
|
}, parProps.requestConfig),
|
|
@@ -15257,7 +15278,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15257
15278
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15258
15279
|
* @LastEditors: rodchen
|
|
15259
15280
|
*/
|
|
15260
|
-
var index = (function (storageKeyString) {
|
|
15281
|
+
var index$1 = (function (storageKeyString) {
|
|
15261
15282
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15262
15283
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15263
15284
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15375,44 +15396,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15375
15396
|
var _ctx$form;
|
|
15376
15397
|
var resData, coverData, data, dataList;
|
|
15377
15398
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15378
|
-
while (1) {
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
_context.next = 13;
|
|
15384
|
-
break;
|
|
15385
|
-
}
|
|
15386
|
-
data = resData.data;
|
|
15387
|
-
if (!remoteSource.converter) {
|
|
15388
|
-
_context.next = 9;
|
|
15389
|
-
break;
|
|
15390
|
-
}
|
|
15391
|
-
_context.next = 6;
|
|
15392
|
-
return remoteSource.converter({
|
|
15393
|
-
data: [data]
|
|
15394
|
-
});
|
|
15395
|
-
case 6:
|
|
15396
|
-
coverData = _context.sent;
|
|
15397
|
-
_context.next = 11;
|
|
15399
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15400
|
+
case 0:
|
|
15401
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15402
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15403
|
+
_context.next = 13;
|
|
15398
15404
|
break;
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
}) || [];
|
|
15404
|
-
case 11:
|
|
15405
|
-
_context.next = 14;
|
|
15405
|
+
}
|
|
15406
|
+
data = resData.data;
|
|
15407
|
+
if (!remoteSource.converter) {
|
|
15408
|
+
_context.next = 9;
|
|
15406
15409
|
break;
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15410
|
+
}
|
|
15411
|
+
_context.next = 6;
|
|
15412
|
+
return remoteSource.converter({
|
|
15413
|
+
data: [data]
|
|
15414
|
+
});
|
|
15415
|
+
case 6:
|
|
15416
|
+
coverData = _context.sent;
|
|
15417
|
+
_context.next = 11;
|
|
15418
|
+
break;
|
|
15419
|
+
case 9:
|
|
15420
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15421
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15422
|
+
return mapSearchTree(ites);
|
|
15423
|
+
}) || [];
|
|
15424
|
+
case 11:
|
|
15425
|
+
_context.next = 14;
|
|
15426
|
+
break;
|
|
15427
|
+
case 13:
|
|
15428
|
+
coverData = [];
|
|
15429
|
+
case 14:
|
|
15430
|
+
setTreeData(coverData);
|
|
15431
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15432
|
+
case 16:
|
|
15433
|
+
case "end":
|
|
15434
|
+
return _context.stop();
|
|
15416
15435
|
}
|
|
15417
15436
|
}, _callee);
|
|
15418
15437
|
}));
|
|
@@ -15600,7 +15619,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15600
15619
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15601
15620
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15602
15621
|
};
|
|
15603
|
-
var index$
|
|
15622
|
+
var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15604
15623
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15605
15624
|
return false;
|
|
15606
15625
|
}
|
|
@@ -15613,7 +15632,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
|
|
|
15613
15632
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15614
15633
|
styleInject(css_248z$8);
|
|
15615
15634
|
|
|
15616
|
-
var index$
|
|
15635
|
+
var index$3 = (function (props) {
|
|
15617
15636
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15618
15637
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15619
15638
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -17037,7 +17056,7 @@ var iconMap = {
|
|
|
17037
17056
|
src: moreIcon
|
|
17038
17057
|
})
|
|
17039
17058
|
};
|
|
17040
|
-
var index$
|
|
17059
|
+
var index$4 = (function (props) {
|
|
17041
17060
|
var _useLocation = umi.useLocation(),
|
|
17042
17061
|
pathname = _useLocation.pathname;
|
|
17043
17062
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -17254,7 +17273,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17254
17273
|
styleInject(css_248z$d);
|
|
17255
17274
|
|
|
17256
17275
|
var _excluded$c = ["children"];
|
|
17257
|
-
var index$
|
|
17276
|
+
var index$5 = (function (props) {
|
|
17258
17277
|
var _useLocation = umi.useLocation(),
|
|
17259
17278
|
pathname = _useLocation.pathname;
|
|
17260
17279
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -19530,21 +19549,19 @@ function _outLogin() {
|
|
|
19530
19549
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19531
19550
|
var res;
|
|
19532
19551
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19533
|
-
while (1) {
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
return _context.stop();
|
|
19547
|
-
}
|
|
19552
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19553
|
+
case 0:
|
|
19554
|
+
_context.next = 2;
|
|
19555
|
+
return axios__default['default']({
|
|
19556
|
+
url: '/user/web/loginOut',
|
|
19557
|
+
method: 'GET'
|
|
19558
|
+
});
|
|
19559
|
+
case 2:
|
|
19560
|
+
res = _context.sent;
|
|
19561
|
+
return _context.abrupt("return", res);
|
|
19562
|
+
case 4:
|
|
19563
|
+
case "end":
|
|
19564
|
+
return _context.stop();
|
|
19548
19565
|
}
|
|
19549
19566
|
}, _callee);
|
|
19550
19567
|
}));
|
|
@@ -19673,31 +19690,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19673
19690
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19674
19691
|
var sessionId;
|
|
19675
19692
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19676
|
-
while (1) {
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19693
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19694
|
+
case 0:
|
|
19695
|
+
_context.next = 2;
|
|
19696
|
+
return getSessionId();
|
|
19697
|
+
case 2:
|
|
19698
|
+
sessionId = _context.sent;
|
|
19699
|
+
_context.next = 5;
|
|
19700
|
+
return outLogin({
|
|
19701
|
+
sessionId: sessionId
|
|
19702
|
+
});
|
|
19703
|
+
case 5:
|
|
19704
|
+
// @ts-ignore
|
|
19705
|
+
if (BUILD_TYPE) {
|
|
19706
|
+
antd.message.success('退出登录成功');
|
|
19707
|
+
umi.history.replace({
|
|
19708
|
+
pathname: '/user/login'
|
|
19686
19709
|
});
|
|
19687
|
-
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
});
|
|
19694
|
-
} else {
|
|
19695
|
-
setLoginOutPath();
|
|
19696
|
-
}
|
|
19697
|
-
case 6:
|
|
19698
|
-
case "end":
|
|
19699
|
-
return _context.stop();
|
|
19700
|
-
}
|
|
19710
|
+
} else {
|
|
19711
|
+
setLoginOutPath();
|
|
19712
|
+
}
|
|
19713
|
+
case 6:
|
|
19714
|
+
case "end":
|
|
19715
|
+
return _context.stop();
|
|
19701
19716
|
}
|
|
19702
19717
|
}, _callee);
|
|
19703
19718
|
}));
|
|
@@ -21525,6 +21540,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21525
21540
|
showSubMenu: isShow
|
|
21526
21541
|
});
|
|
21527
21542
|
}, 500);
|
|
21543
|
+
//设置tabs标签左右滚动
|
|
21528
21544
|
_this.setTabNavTransLate = function (num) {
|
|
21529
21545
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21530
21546
|
var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
|
|
@@ -22205,14 +22221,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22205
22221
|
request: function () {
|
|
22206
22222
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22207
22223
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22208
|
-
while (1) {
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
return _context.stop();
|
|
22215
|
-
}
|
|
22224
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22225
|
+
case 0:
|
|
22226
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22227
|
+
case 1:
|
|
22228
|
+
case "end":
|
|
22229
|
+
return _context.stop();
|
|
22216
22230
|
}
|
|
22217
22231
|
}, _callee);
|
|
22218
22232
|
}));
|
|
@@ -22350,7 +22364,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22350
22364
|
}]);
|
|
22351
22365
|
return WrapperComponent;
|
|
22352
22366
|
}(React__default['default'].Component);
|
|
22353
|
-
var index$
|
|
22367
|
+
var index$6 = (function (props) {
|
|
22354
22368
|
var _useModel = umi.useModel('@@initialState'),
|
|
22355
22369
|
_useModel$initialStat = _useModel.initialState,
|
|
22356
22370
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22591,7 +22605,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
22591
22605
|
};
|
|
22592
22606
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
22593
22607
|
|
|
22594
|
-
var index$
|
|
22608
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22595
22609
|
var _useState = React.useState(false),
|
|
22596
22610
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22597
22611
|
show = _useState2[0],
|
|
@@ -29884,28 +29898,26 @@ var valueType = {
|
|
|
29884
29898
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29885
29899
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29886
29900
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29887
|
-
while (1) {
|
|
29888
|
-
|
|
29889
|
-
|
|
29890
|
-
|
|
29891
|
-
|
|
29892
|
-
|
|
29893
|
-
|
|
29894
|
-
|
|
29895
|
-
return
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
|
|
29907
|
-
return _context.stop();
|
|
29908
|
-
}
|
|
29901
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29902
|
+
case 0:
|
|
29903
|
+
_context.next = 2;
|
|
29904
|
+
return bssula.request({
|
|
29905
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29906
|
+
converter: function converter(_ref2) {
|
|
29907
|
+
var data = _ref2.data;
|
|
29908
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29909
|
+
return {
|
|
29910
|
+
text: d.name,
|
|
29911
|
+
value: d.code || d.brandCode
|
|
29912
|
+
};
|
|
29913
|
+
});
|
|
29914
|
+
}
|
|
29915
|
+
});
|
|
29916
|
+
case 2:
|
|
29917
|
+
return _context.abrupt("return", _context.sent);
|
|
29918
|
+
case 3:
|
|
29919
|
+
case "end":
|
|
29920
|
+
return _context.stop();
|
|
29909
29921
|
}
|
|
29910
29922
|
}, _callee);
|
|
29911
29923
|
}));
|
|
@@ -29955,55 +29967,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29955
29967
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29956
29968
|
var _ref$current, source;
|
|
29957
29969
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29958
|
-
while (1) {
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
-
|
|
29963
|
-
|
|
29964
|
-
|
|
29965
|
-
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
};
|
|
29969
|
-
}
|
|
29970
|
-
return prev;
|
|
29971
|
-
});
|
|
29972
|
-
case 2:
|
|
29973
|
-
if (!record.dictionaryCode) {
|
|
29974
|
-
_context.next = 17;
|
|
29975
|
-
break;
|
|
29976
|
-
}
|
|
29977
|
-
if (!(record.choiceType == 20)) {
|
|
29978
|
-
_context.next = 7;
|
|
29979
|
-
break;
|
|
29970
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29971
|
+
case 0:
|
|
29972
|
+
_context.next = 2;
|
|
29973
|
+
return setIsShowAndType(function (prev) {
|
|
29974
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29975
|
+
return {
|
|
29976
|
+
isShow: true,
|
|
29977
|
+
singleOrMultiple: record.inputType,
|
|
29978
|
+
type: record.choiceType
|
|
29979
|
+
};
|
|
29980
29980
|
}
|
|
29981
|
-
|
|
29982
|
-
|
|
29981
|
+
return prev;
|
|
29982
|
+
});
|
|
29983
|
+
case 2:
|
|
29984
|
+
if (!record.dictionaryCode) {
|
|
29985
|
+
_context.next = 17;
|
|
29983
29986
|
break;
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
|
|
29987
|
-
break;
|
|
29988
|
-
}
|
|
29989
|
-
_context.next = 10;
|
|
29990
|
-
return getDynamicDict(record.dictionaryCode);
|
|
29991
|
-
case 10:
|
|
29992
|
-
_context.t1 = _context.sent;
|
|
29993
|
-
_context.next = 14;
|
|
29987
|
+
}
|
|
29988
|
+
if (!(record.choiceType == 20)) {
|
|
29989
|
+
_context.next = 7;
|
|
29994
29990
|
break;
|
|
29995
|
-
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
|
|
30002
|
-
|
|
30003
|
-
|
|
30004
|
-
|
|
30005
|
-
|
|
30006
|
-
|
|
29991
|
+
}
|
|
29992
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29993
|
+
_context.next = 15;
|
|
29994
|
+
break;
|
|
29995
|
+
case 7:
|
|
29996
|
+
if (!(record.choiceType == 30)) {
|
|
29997
|
+
_context.next = 13;
|
|
29998
|
+
break;
|
|
29999
|
+
}
|
|
30000
|
+
_context.next = 10;
|
|
30001
|
+
return getDynamicDict(record.dictionaryCode);
|
|
30002
|
+
case 10:
|
|
30003
|
+
_context.t1 = _context.sent;
|
|
30004
|
+
_context.next = 14;
|
|
30005
|
+
break;
|
|
30006
|
+
case 13:
|
|
30007
|
+
_context.t1 = [];
|
|
30008
|
+
case 14:
|
|
30009
|
+
_context.t0 = _context.t1;
|
|
30010
|
+
case 15:
|
|
30011
|
+
source = _context.t0;
|
|
30012
|
+
// @ts-ignore
|
|
30013
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30014
|
+
case 17:
|
|
30015
|
+
case "end":
|
|
30016
|
+
return _context.stop();
|
|
30007
30017
|
}
|
|
30008
30018
|
}, _callee);
|
|
30009
30019
|
})));
|
|
@@ -30071,30 +30081,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30071
30081
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30072
30082
|
var form, values, name, relates, source;
|
|
30073
30083
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30074
|
-
while (1) {
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
if (values[0]) {
|
|
30079
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30080
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30081
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30082
|
-
}
|
|
30083
|
-
if (!values[1]) {
|
|
30084
|
-
_context2.next = 9;
|
|
30085
|
-
break;
|
|
30086
|
-
}
|
|
30087
|
-
_context2.next = 5;
|
|
30088
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30089
|
-
case 5:
|
|
30090
|
-
source = _context2.sent;
|
|
30084
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30085
|
+
case 0:
|
|
30086
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30087
|
+
if (values[0]) {
|
|
30091
30088
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30092
30089
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30093
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30090
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30091
|
+
}
|
|
30092
|
+
if (!values[1]) {
|
|
30093
|
+
_context2.next = 9;
|
|
30094
|
+
break;
|
|
30095
|
+
}
|
|
30096
|
+
_context2.next = 5;
|
|
30097
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30098
|
+
case 5:
|
|
30099
|
+
source = _context2.sent;
|
|
30100
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30101
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30102
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30103
|
+
case 9:
|
|
30104
|
+
case "end":
|
|
30105
|
+
return _context2.stop();
|
|
30098
30106
|
}
|
|
30099
30107
|
}, _callee2);
|
|
30100
30108
|
}));
|
|
@@ -30554,43 +30562,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30554
30562
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30555
30563
|
var values, name, form, source;
|
|
30556
30564
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30557
|
-
while (1) {
|
|
30558
|
-
|
|
30559
|
-
|
|
30560
|
-
|
|
30561
|
-
|
|
30562
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30563
|
-
form.setFieldVisible(name, false);
|
|
30564
|
-
}
|
|
30565
|
-
if (!(values[0] === 30)) {
|
|
30566
|
-
_context3.next = 10;
|
|
30567
|
-
break;
|
|
30568
|
-
}
|
|
30569
|
-
_context3.next = 5;
|
|
30570
|
-
return bssula.request({
|
|
30571
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
30572
|
-
converter: function converter(_ref11) {
|
|
30573
|
-
var data = _ref11.data;
|
|
30574
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30575
|
-
return {
|
|
30576
|
-
text: d.dictCode,
|
|
30577
|
-
value: d.dictCode
|
|
30578
|
-
};
|
|
30579
|
-
});
|
|
30580
|
-
}
|
|
30581
|
-
});
|
|
30582
|
-
case 5:
|
|
30583
|
-
source = _context3.sent;
|
|
30584
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30585
|
-
form.setFieldVisible(name, true);
|
|
30586
|
-
_context3.next = 11;
|
|
30587
|
-
break;
|
|
30588
|
-
case 10:
|
|
30565
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30566
|
+
case 0:
|
|
30567
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30568
|
+
if (values[1] === 40) {
|
|
30569
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30589
30570
|
form.setFieldVisible(name, false);
|
|
30590
|
-
|
|
30591
|
-
|
|
30592
|
-
|
|
30593
|
-
|
|
30571
|
+
}
|
|
30572
|
+
if (!(values[0] === 30)) {
|
|
30573
|
+
_context3.next = 10;
|
|
30574
|
+
break;
|
|
30575
|
+
}
|
|
30576
|
+
_context3.next = 5;
|
|
30577
|
+
return bssula.request({
|
|
30578
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30579
|
+
converter: function converter(_ref11) {
|
|
30580
|
+
var data = _ref11.data;
|
|
30581
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30582
|
+
return {
|
|
30583
|
+
text: d.dictCode,
|
|
30584
|
+
value: d.dictCode
|
|
30585
|
+
};
|
|
30586
|
+
});
|
|
30587
|
+
}
|
|
30588
|
+
});
|
|
30589
|
+
case 5:
|
|
30590
|
+
source = _context3.sent;
|
|
30591
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30592
|
+
form.setFieldVisible(name, true);
|
|
30593
|
+
_context3.next = 11;
|
|
30594
|
+
break;
|
|
30595
|
+
case 10:
|
|
30596
|
+
form.setFieldVisible(name, false);
|
|
30597
|
+
case 11:
|
|
30598
|
+
case "end":
|
|
30599
|
+
return _context3.stop();
|
|
30594
30600
|
}
|
|
30595
30601
|
}, _callee3);
|
|
30596
30602
|
}));
|
|
@@ -30779,66 +30785,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30779
30785
|
var _ref$current4, _res$editableStatus;
|
|
30780
30786
|
var res, _res$defaultValue;
|
|
30781
30787
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30782
|
-
while (1) {
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
30790
|
-
|
|
30791
|
-
|
|
30792
|
-
res.
|
|
30793
|
-
|
|
30794
|
-
|
|
30795
|
-
|
|
30796
|
-
|
|
30797
|
-
|
|
30798
|
-
|
|
30799
|
-
|
|
30800
|
-
|
|
30801
|
-
|
|
30802
|
-
|
|
30803
|
-
|
|
30788
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30789
|
+
case 0:
|
|
30790
|
+
_context4.next = 2;
|
|
30791
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30792
|
+
case 2:
|
|
30793
|
+
res = _context4.sent;
|
|
30794
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30795
|
+
res.fieldGroup = record.fieldGroup;
|
|
30796
|
+
res.businessType = record.businessType;
|
|
30797
|
+
res.info = {
|
|
30798
|
+
enumeration: res.enumeration,
|
|
30799
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30800
|
+
formula: res.formula,
|
|
30801
|
+
scale: res.scale,
|
|
30802
|
+
variable: res.variable
|
|
30803
|
+
};
|
|
30804
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30805
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30806
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30807
|
+
if (res.inputType === 40) {
|
|
30808
|
+
res.valueType = 22;
|
|
30809
|
+
}
|
|
30810
|
+
// 把数组处理成文本
|
|
30811
|
+
if (res.inputType === 30) {
|
|
30812
|
+
if (res.defaultValue) {
|
|
30813
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30804
30814
|
}
|
|
30805
|
-
|
|
30806
|
-
|
|
30807
|
-
|
|
30808
|
-
|
|
30809
|
-
|
|
30815
|
+
}
|
|
30816
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30817
|
+
delete res.formula;
|
|
30818
|
+
delete res.showValue;
|
|
30819
|
+
if (!(mode === 'create')) {
|
|
30820
|
+
_context4.next = 18;
|
|
30821
|
+
break;
|
|
30822
|
+
}
|
|
30823
|
+
bssula.request({
|
|
30824
|
+
url: "/basic/flow/businessField",
|
|
30825
|
+
method: 'POST',
|
|
30826
|
+
params: res,
|
|
30827
|
+
successMessage: '创建成功!',
|
|
30828
|
+
converter: function converter() {
|
|
30829
|
+
onParentOk();
|
|
30810
30830
|
}
|
|
30811
|
-
|
|
30812
|
-
|
|
30813
|
-
|
|
30814
|
-
|
|
30815
|
-
|
|
30816
|
-
|
|
30831
|
+
});
|
|
30832
|
+
return _context4.abrupt("return");
|
|
30833
|
+
case 18:
|
|
30834
|
+
bssula.request({
|
|
30835
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30836
|
+
method: 'PATCH',
|
|
30837
|
+
params: res,
|
|
30838
|
+
successMessage: '修改成功!',
|
|
30839
|
+
converter: function converter() {
|
|
30840
|
+
onParentOk();
|
|
30817
30841
|
}
|
|
30818
|
-
|
|
30819
|
-
|
|
30820
|
-
|
|
30821
|
-
|
|
30822
|
-
successMessage: '创建成功!',
|
|
30823
|
-
converter: function converter() {
|
|
30824
|
-
onParentOk();
|
|
30825
|
-
}
|
|
30826
|
-
});
|
|
30827
|
-
return _context4.abrupt("return");
|
|
30828
|
-
case 18:
|
|
30829
|
-
bssula.request({
|
|
30830
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
30831
|
-
method: 'PATCH',
|
|
30832
|
-
params: res,
|
|
30833
|
-
successMessage: '修改成功!',
|
|
30834
|
-
converter: function converter() {
|
|
30835
|
-
onParentOk();
|
|
30836
|
-
}
|
|
30837
|
-
});
|
|
30838
|
-
case 19:
|
|
30839
|
-
case "end":
|
|
30840
|
-
return _context4.stop();
|
|
30841
|
-
}
|
|
30842
|
+
});
|
|
30843
|
+
case 19:
|
|
30844
|
+
case "end":
|
|
30845
|
+
return _context4.stop();
|
|
30842
30846
|
}
|
|
30843
30847
|
}, _callee4);
|
|
30844
30848
|
}));
|
|
@@ -31308,24 +31312,24 @@ exports.AddSkcSelect = AddSkcSelect;
|
|
|
31308
31312
|
exports.AddSkuSelect = AddSkuSelect;
|
|
31309
31313
|
exports.AddSpuSelect = AddSpuSelect;
|
|
31310
31314
|
exports.BillEntry = BillEntry;
|
|
31311
|
-
exports.BsLayout = index$
|
|
31315
|
+
exports.BsLayout = index$6;
|
|
31312
31316
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
31313
31317
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
31314
|
-
exports.BusinessTreeSearchSelect = index$
|
|
31315
|
-
exports.CheckOneUser = index;
|
|
31318
|
+
exports.BusinessTreeSearchSelect = index$2;
|
|
31319
|
+
exports.CheckOneUser = index$1;
|
|
31316
31320
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
31317
31321
|
exports.CommodityEntry = CommodityEntry;
|
|
31318
31322
|
exports.DataImport = DataImport;
|
|
31319
31323
|
exports.DataValidation = DataValidation;
|
|
31320
|
-
exports.DetailPageWrapper = index$
|
|
31324
|
+
exports.DetailPageWrapper = index$4;
|
|
31321
31325
|
exports.ExportIcon = ExportIcon;
|
|
31322
31326
|
exports.GuideWrapper = GuideWrapper;
|
|
31323
|
-
exports.HomePageWrapper = index$
|
|
31327
|
+
exports.HomePageWrapper = index$5;
|
|
31324
31328
|
exports.JsonQueryTable = JsonQueryTable;
|
|
31325
|
-
exports.MoreTreeTable = index$
|
|
31329
|
+
exports.MoreTreeTable = index$7;
|
|
31326
31330
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
31327
31331
|
exports.SearchSelect = SearchSelect;
|
|
31328
|
-
exports.StateFlow = index$
|
|
31332
|
+
exports.StateFlow = index$3;
|
|
31329
31333
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
31330
31334
|
exports.TableColumnSetting = TableColumnSetting;
|
|
31331
31335
|
exports.TreeSearchSelect = TreeSearchSelect;
|