@bit-sun/business-component 2.2.34 → 2.2.36
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/JsonQueryTable/static.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/index.esm.js +655 -668
- package/dist/index.js +662 -675
- 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 +861 -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 +538 -538
- package/src/components/Business/BsSulaQueryTable/index.less +219 -219
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
- 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 +1731 -1730
- 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 +51 -51
- 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/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +365 -363
- 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 -1272
- 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 -766
- 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 +849 -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 +90 -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);
|
|
@@ -2297,84 +2297,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
2299
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
2300
|
-
|
|
2300
|
+
var _loop = function _loop() {
|
|
2301
2301
|
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;
|
|
2302
|
+
var element = params[key];
|
|
2303
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
2304
|
+
var dataParams = key.split('*number*');
|
|
2305
|
+
dataParams.forEach(function (value, index) {
|
|
2306
|
+
params[value] = element[index];
|
|
2307
|
+
});
|
|
2308
|
+
delete params[key];
|
|
2309
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
2310
|
+
var _dataParams = key.split('*address*');
|
|
2311
|
+
_dataParams.forEach(function (value, index) {
|
|
2312
|
+
params[value] = element.PCDCode[index];
|
|
2313
|
+
});
|
|
2314
|
+
delete params[key];
|
|
2315
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
2316
|
+
var _dataParams2 = key.split('*costType*');
|
|
2317
|
+
// eslint-disable-next-line prefer-destructuring
|
|
2318
|
+
params[_dataParams2[0]] = element[1];
|
|
2319
|
+
delete params[key];
|
|
2320
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
2321
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
2322
|
+
_dataParams3.forEach(function (value, index) {
|
|
2323
|
+
if (index === 0) {
|
|
2324
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
2325
|
+
} else {
|
|
2326
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
2335
2327
|
}
|
|
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
|
-
}
|
|
2328
|
+
});
|
|
2329
|
+
delete params[key];
|
|
2330
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
2331
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
2332
|
+
if (element) {
|
|
2333
|
+
params[_dataParams4[0]] = 0;
|
|
2334
|
+
}
|
|
2335
|
+
delete params[key];
|
|
2336
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
2337
|
+
var _dataParams5 = key.split('*cascader*');
|
|
2338
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
2339
|
+
delete params[key];
|
|
2340
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
2341
|
+
var _dataParams6 = key.split('*date*');
|
|
2342
|
+
_dataParams6.forEach(function (value, index) {
|
|
2343
|
+
if (index === 0) {
|
|
2344
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2367
2345
|
} else {
|
|
2368
|
-
params[
|
|
2346
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
2369
2347
|
}
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2348
|
+
});
|
|
2349
|
+
delete params[key];
|
|
2350
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
2351
|
+
var _dataParams7 = key.split('*');
|
|
2352
|
+
_dataParams7.forEach(function (value, index) {
|
|
2353
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
2354
|
+
});
|
|
2355
|
+
delete params[key];
|
|
2356
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
2357
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
2358
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
2359
|
+
if (params[key][0] === 'range') {
|
|
2360
|
+
if (params[key][1][0]) {
|
|
2361
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
2362
|
+
}
|
|
2363
|
+
if (params[key][1][1]) {
|
|
2364
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
2365
|
+
}
|
|
2366
|
+
} else {
|
|
2367
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
2375
2368
|
}
|
|
2376
|
-
|
|
2369
|
+
delete params[key];
|
|
2370
|
+
} else if (Array.isArray(element)) {
|
|
2371
|
+
params[key] = element.join(',');
|
|
2372
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
2373
|
+
delete params[key];
|
|
2374
|
+
}
|
|
2377
2375
|
}
|
|
2376
|
+
};
|
|
2377
|
+
for (var key in params) {
|
|
2378
|
+
_loop();
|
|
2378
2379
|
}
|
|
2379
2380
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2380
2381
|
pageSize: pageSize,
|
|
@@ -3693,52 +3694,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3693
3694
|
callback(showColumns);
|
|
3694
3695
|
};
|
|
3695
3696
|
|
|
3696
|
-
var
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
function
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3697
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
3698
|
+
return a === b;
|
|
3699
|
+
};
|
|
3700
|
+
|
|
3701
|
+
function index (resultFn, isEqual) {
|
|
3702
|
+
if (isEqual === void 0) {
|
|
3703
|
+
isEqual = simpleIsEqual;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
var lastThis;
|
|
3707
|
+
var lastArgs = [];
|
|
3708
|
+
var lastResult;
|
|
3709
|
+
var calledOnce = false;
|
|
3710
|
+
|
|
3711
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3712
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
3713
|
+
};
|
|
3714
|
+
|
|
3715
|
+
var result = function result() {
|
|
3716
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3717
|
+
newArgs[_key] = arguments[_key];
|
|
3717
3718
|
}
|
|
3718
|
-
return true;
|
|
3719
|
-
}
|
|
3720
3719
|
|
|
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;
|
|
3720
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
3721
|
+
return lastResult;
|
|
3740
3722
|
}
|
|
3741
|
-
|
|
3723
|
+
|
|
3724
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3725
|
+
calledOnce = true;
|
|
3726
|
+
lastThis = this;
|
|
3727
|
+
lastArgs = newArgs;
|
|
3728
|
+
return lastResult;
|
|
3729
|
+
};
|
|
3730
|
+
|
|
3731
|
+
return result;
|
|
3742
3732
|
}
|
|
3743
3733
|
|
|
3744
3734
|
//! moment.js
|
|
@@ -9601,58 +9591,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
|
|
|
9601
9591
|
* @returns 返回处理后的查询参数
|
|
9602
9592
|
*/
|
|
9603
9593
|
function queryParams(params, flag) {
|
|
9604
|
-
|
|
9594
|
+
var _loop = function _loop() {
|
|
9605
9595
|
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;
|
|
9596
|
+
var element = params[key];
|
|
9597
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
9598
|
+
var dataParams = key.split('*number*');
|
|
9599
|
+
dataParams.forEach(function (value, index) {
|
|
9600
|
+
params[value] = element[index];
|
|
9601
|
+
});
|
|
9602
|
+
delete params[key];
|
|
9603
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
9604
|
+
var _dataParams = key.split('*address*');
|
|
9605
|
+
_dataParams.forEach(function (value, index) {
|
|
9606
|
+
params[value] = element.PCDCode[index];
|
|
9607
|
+
});
|
|
9608
|
+
delete params[key];
|
|
9609
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
9610
|
+
var _dataParams2 = key.split('*costType*');
|
|
9611
|
+
// eslint-disable-next-line prefer-destructuring
|
|
9612
|
+
params[_dataParams2[0]] = element[1];
|
|
9613
|
+
delete params[key];
|
|
9614
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
9615
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
9616
|
+
_dataParams3.forEach(function (value, index) {
|
|
9617
|
+
if (index === 0) {
|
|
9618
|
+
params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
9646
9619
|
} else {
|
|
9647
|
-
params[
|
|
9648
|
-
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9620
|
+
params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
9649
9621
|
}
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9622
|
+
});
|
|
9623
|
+
delete params[key];
|
|
9624
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
9625
|
+
var _dataParams4 = key.split('*');
|
|
9626
|
+
_dataParams4.forEach(function (value, index) {
|
|
9627
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
9628
|
+
});
|
|
9629
|
+
delete params[key];
|
|
9630
|
+
} else if (element && key.indexOf('_likeIn_') >= 0) {
|
|
9631
|
+
var _dataParams5 = key.split('_likeIn_');
|
|
9632
|
+
if (element.indexOf(',') >= 0) {
|
|
9633
|
+
params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
|
|
9634
|
+
params["qp-".concat(_dataParams5[0], "-like")] = null;
|
|
9635
|
+
} else {
|
|
9636
|
+
params["qp-".concat(_dataParams5[0], "-like")] = element;
|
|
9637
|
+
params["qp-".concat(_dataParams5[0], "-in")] = null;
|
|
9653
9638
|
}
|
|
9654
|
-
|
|
9639
|
+
delete params[key];
|
|
9640
|
+
} else if (Array.isArray(element)) {
|
|
9641
|
+
params[key] = element.join(',');
|
|
9642
|
+
}
|
|
9655
9643
|
}
|
|
9644
|
+
};
|
|
9645
|
+
for (var key in params) {
|
|
9646
|
+
_loop();
|
|
9656
9647
|
}
|
|
9657
9648
|
return flag ? params : qs.stringify(params);
|
|
9658
9649
|
}
|
|
@@ -9698,7 +9689,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9698
9689
|
return item;
|
|
9699
9690
|
});
|
|
9700
9691
|
};
|
|
9701
|
-
var memoizeOneFormatter =
|
|
9692
|
+
var memoizeOneFormatter = index(formatter, isEqual__default['default']);
|
|
9702
9693
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9703
9694
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9704
9695
|
umi.history.goBack();
|
|
@@ -10182,76 +10173,74 @@ var AddSelect = function AddSelect(props) {
|
|
|
10182
10173
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
10183
10174
|
var result;
|
|
10184
10175
|
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;
|
|
10176
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10177
|
+
case 0:
|
|
10178
|
+
if (!(bType == 'skc' && tList.some(function (i) {
|
|
10179
|
+
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
10180
|
+
}))) {
|
|
10181
|
+
_context.next = 3;
|
|
10242
10182
|
break;
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10183
|
+
}
|
|
10184
|
+
antd.message.warning('相同skc配码不可设置相同哦');
|
|
10185
|
+
return _context.abrupt("return", false);
|
|
10186
|
+
case 3:
|
|
10187
|
+
if (!(bType == 'spu')) {
|
|
10188
|
+
_context.next = 26;
|
|
10189
|
+
break;
|
|
10190
|
+
}
|
|
10191
|
+
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
10192
|
+
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
10193
|
+
}))) {
|
|
10194
|
+
_context.next = 7;
|
|
10195
|
+
break;
|
|
10196
|
+
}
|
|
10197
|
+
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
10198
|
+
return _context.abrupt("return", false);
|
|
10199
|
+
case 7:
|
|
10200
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
10201
|
+
_context.next = 10;
|
|
10202
|
+
break;
|
|
10203
|
+
}
|
|
10204
|
+
antd.message.warning('请先选择颜色!');
|
|
10205
|
+
return _context.abrupt("return", false);
|
|
10206
|
+
case 10:
|
|
10207
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
10208
|
+
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
10209
|
+
}))) {
|
|
10210
|
+
_context.next = 13;
|
|
10211
|
+
break;
|
|
10212
|
+
}
|
|
10213
|
+
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
10214
|
+
return _context.abrupt("return", false);
|
|
10215
|
+
case 13:
|
|
10216
|
+
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
10217
|
+
_context.next = 26;
|
|
10218
|
+
break;
|
|
10219
|
+
}
|
|
10220
|
+
result = true;
|
|
10221
|
+
_context.prev = 15;
|
|
10222
|
+
_context.next = 18;
|
|
10223
|
+
return checkSpuMatchCode({
|
|
10224
|
+
skcCode: recordItem[recordKey],
|
|
10225
|
+
matchingCode: changeValue,
|
|
10226
|
+
ext1: recordItem.colorName
|
|
10227
|
+
});
|
|
10228
|
+
case 18:
|
|
10229
|
+
result = _context.sent;
|
|
10230
|
+
result = true;
|
|
10231
|
+
_context.next = 25;
|
|
10232
|
+
break;
|
|
10233
|
+
case 22:
|
|
10234
|
+
_context.prev = 22;
|
|
10235
|
+
_context.t0 = _context["catch"](15);
|
|
10236
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
10237
|
+
case 25:
|
|
10238
|
+
return _context.abrupt("return", result);
|
|
10239
|
+
case 26:
|
|
10240
|
+
return _context.abrupt("return", true);
|
|
10241
|
+
case 27:
|
|
10242
|
+
case "end":
|
|
10243
|
+
return _context.stop();
|
|
10255
10244
|
}
|
|
10256
10245
|
}, _callee, null, [[15, 22]]);
|
|
10257
10246
|
}));
|
|
@@ -10443,29 +10432,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
10443
10432
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
10444
10433
|
var isConformToTheRules, newPopValue;
|
|
10445
10434
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10446
|
-
while (1) {
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10435
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10436
|
+
case 0:
|
|
10437
|
+
_context2.next = 2;
|
|
10438
|
+
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
10439
|
+
case 2:
|
|
10440
|
+
isConformToTheRules = _context2.sent;
|
|
10441
|
+
if (isConformToTheRules) {
|
|
10442
|
+
record[item.dataIndex] = value;
|
|
10443
|
+
} else {
|
|
10444
|
+
record[item.dataIndex] = null;
|
|
10445
|
+
}
|
|
10446
|
+
newPopValue = popvalue.map(function (i, innerIndex) {
|
|
10447
|
+
if (innerIndex == index) {
|
|
10448
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
10457
10449
|
}
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
setPopValue(newPopValue);
|
|
10465
|
-
case 6:
|
|
10466
|
-
case "end":
|
|
10467
|
-
return _context2.stop();
|
|
10468
|
-
}
|
|
10450
|
+
return i;
|
|
10451
|
+
});
|
|
10452
|
+
setPopValue(newPopValue);
|
|
10453
|
+
case 6:
|
|
10454
|
+
case "end":
|
|
10455
|
+
return _context2.stop();
|
|
10469
10456
|
}
|
|
10470
10457
|
}, _callee2);
|
|
10471
10458
|
}));
|
|
@@ -10525,84 +10512,85 @@ var AddSelect = function AddSelect(props) {
|
|
|
10525
10512
|
});
|
|
10526
10513
|
}
|
|
10527
10514
|
// 数组对象处理,对带有特殊标记的name进行处理
|
|
10528
|
-
|
|
10515
|
+
var _loop = function _loop() {
|
|
10529
10516
|
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;
|
|
10517
|
+
var element = params[key];
|
|
10518
|
+
if (element && key.indexOf('*number*') >= 0) {
|
|
10519
|
+
var dataParams = key.split('*number*');
|
|
10520
|
+
dataParams.forEach(function (value, index) {
|
|
10521
|
+
params[value] = element[index];
|
|
10522
|
+
});
|
|
10523
|
+
delete params[key];
|
|
10524
|
+
} else if (element && key.indexOf('*address*') >= 0) {
|
|
10525
|
+
var _dataParams = key.split('*address*');
|
|
10526
|
+
_dataParams.forEach(function (value, index) {
|
|
10527
|
+
params[value] = element.PCDCode[index];
|
|
10528
|
+
});
|
|
10529
|
+
delete params[key];
|
|
10530
|
+
} else if (element && key.indexOf('*costType*') >= 0) {
|
|
10531
|
+
var _dataParams2 = key.split('*costType*');
|
|
10532
|
+
// eslint-disable-next-line prefer-destructuring
|
|
10533
|
+
params[_dataParams2[0]] = element[1];
|
|
10534
|
+
delete params[key];
|
|
10535
|
+
} else if (element && key.indexOf('*fullDate*') >= 0) {
|
|
10536
|
+
var _dataParams3 = key.split('*fullDate*');
|
|
10537
|
+
_dataParams3.forEach(function (value, index) {
|
|
10538
|
+
if (index === 0) {
|
|
10539
|
+
params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
|
|
10540
|
+
} else {
|
|
10541
|
+
params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
|
|
10563
10542
|
}
|
|
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
|
-
}
|
|
10543
|
+
});
|
|
10544
|
+
delete params[key];
|
|
10545
|
+
} else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
|
|
10546
|
+
var _dataParams4 = key.split('*checkBox*');
|
|
10547
|
+
if (element) {
|
|
10548
|
+
params[_dataParams4[0]] = 0;
|
|
10549
|
+
}
|
|
10550
|
+
delete params[key];
|
|
10551
|
+
} else if (element && key.indexOf('*cascader*') >= 0) {
|
|
10552
|
+
var _dataParams5 = key.split('*cascader*');
|
|
10553
|
+
params[_dataParams5[0]] = element[element.length - 1];
|
|
10554
|
+
delete params[key];
|
|
10555
|
+
} else if (element && key.indexOf('*date*') >= 0) {
|
|
10556
|
+
var _dataParams6 = key.split('*date*');
|
|
10557
|
+
_dataParams6.forEach(function (value, index) {
|
|
10558
|
+
if (index === 0) {
|
|
10559
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10595
10560
|
} else {
|
|
10596
|
-
params[
|
|
10561
|
+
params[value] = moment(element[index]).format('YYYY-MM-DD');
|
|
10597
10562
|
}
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10563
|
+
});
|
|
10564
|
+
delete params[key];
|
|
10565
|
+
} else if (element && key.indexOf('*') >= 0) {
|
|
10566
|
+
var _dataParams7 = key.split('*');
|
|
10567
|
+
_dataParams7.forEach(function (value, index) {
|
|
10568
|
+
params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
|
|
10569
|
+
});
|
|
10570
|
+
delete params[key];
|
|
10571
|
+
} else if (element && key.indexOf('_selectNumberRange') >= 0) {
|
|
10572
|
+
// key = xxxxx_selectNumberRange qp-xxxxx-gt
|
|
10573
|
+
var _dataParams8 = key.split('_selectNumberRange')[0];
|
|
10574
|
+
if (params[key][0] === 'range') {
|
|
10575
|
+
if (params[key][1][0]) {
|
|
10576
|
+
params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
|
|
10577
|
+
}
|
|
10578
|
+
if (params[key][1][1]) {
|
|
10579
|
+
params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
|
|
10580
|
+
}
|
|
10581
|
+
} else {
|
|
10582
|
+
params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
|
|
10603
10583
|
}
|
|
10604
|
-
|
|
10584
|
+
delete params[key];
|
|
10585
|
+
} else if (Array.isArray(element)) {
|
|
10586
|
+
params[key] = element.join(',');
|
|
10587
|
+
} else if (element == null || element === undefined || String(element).trim() === '') {
|
|
10588
|
+
delete params[key];
|
|
10589
|
+
}
|
|
10605
10590
|
}
|
|
10591
|
+
};
|
|
10592
|
+
for (var key in params) {
|
|
10593
|
+
_loop();
|
|
10606
10594
|
}
|
|
10607
10595
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
10608
10596
|
pageSize: pageSize,
|
|
@@ -10823,8 +10811,15 @@ var AddSelect = function AddSelect(props) {
|
|
|
10823
10811
|
handleLoading(isContinue, true);
|
|
10824
10812
|
onSaveCallback(popvalue).then(function (res) {
|
|
10825
10813
|
{
|
|
10826
|
-
var _document$getElementB3;
|
|
10827
|
-
|
|
10814
|
+
var _Object$keys, _document$getElementB3;
|
|
10815
|
+
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
10816
|
+
var initSuccessMessage = '保存成功';
|
|
10817
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
10818
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
10819
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
10820
|
+
} else {
|
|
10821
|
+
antd.message.success(initSuccessMessage);
|
|
10822
|
+
}
|
|
10828
10823
|
deleteSelectRows();
|
|
10829
10824
|
(_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
10830
10825
|
!isContinue && handleCancel();
|
|
@@ -12050,65 +12045,70 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
12050
12045
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12051
12046
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
12052
12047
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12053
|
-
while (1) {
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
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
|
-
messageInfo
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12048
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12049
|
+
case 0:
|
|
12050
|
+
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
12051
|
+
_context.next = 3;
|
|
12052
|
+
break;
|
|
12053
|
+
}
|
|
12054
|
+
antd.message.warning('至少录入一条数据');
|
|
12055
|
+
return _context.abrupt("return");
|
|
12056
|
+
case 3:
|
|
12057
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12058
|
+
return d.skuCode && d.name;
|
|
12059
|
+
})) {
|
|
12060
|
+
_context.next = 6;
|
|
12061
|
+
break;
|
|
12062
|
+
}
|
|
12063
|
+
antd.message.warning('请选择商品!');
|
|
12064
|
+
return _context.abrupt("return");
|
|
12065
|
+
case 6:
|
|
12066
|
+
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
12067
|
+
return d.count;
|
|
12068
|
+
})) {
|
|
12069
|
+
_context.next = 9;
|
|
12070
|
+
break;
|
|
12071
|
+
}
|
|
12072
|
+
antd.message.warning('请填写商品数量!');
|
|
12073
|
+
return _context.abrupt("return");
|
|
12074
|
+
case 9:
|
|
12075
|
+
_context.next = 11;
|
|
12076
|
+
return isSkuCanEntry(data);
|
|
12077
|
+
case 11:
|
|
12078
|
+
canEntryObject = _context.sent;
|
|
12079
|
+
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
12080
|
+
_context.next = 16;
|
|
12081
|
+
break;
|
|
12082
|
+
}
|
|
12083
|
+
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) {
|
|
12084
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
|
|
12085
|
+
}));
|
|
12086
|
+
messageInfo && antd.message.warning({
|
|
12087
|
+
content: messageInfo,
|
|
12088
|
+
duration: 6
|
|
12089
|
+
});
|
|
12090
|
+
return _context.abrupt("return");
|
|
12091
|
+
case 16:
|
|
12092
|
+
setLoading(true);
|
|
12093
|
+
onSaveCallback(data).then(function (res) {
|
|
12094
|
+
{
|
|
12095
|
+
var _Object$keys;
|
|
12096
|
+
var initSuccessMessage = '保存成功';
|
|
12097
|
+
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
12098
|
+
if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
12099
|
+
(rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
|
|
12100
|
+
} else {
|
|
12101
|
+
antd.message.success(initSuccessMessage);
|
|
12102
12102
|
}
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12103
|
+
}
|
|
12104
|
+
setLoading(false);
|
|
12105
|
+
}).catch(function (Error) {
|
|
12106
|
+
antd.message.error(Error);
|
|
12107
|
+
setLoading(false);
|
|
12108
|
+
});
|
|
12109
|
+
case 18:
|
|
12110
|
+
case "end":
|
|
12111
|
+
return _context.stop();
|
|
12112
12112
|
}
|
|
12113
12113
|
}, _callee);
|
|
12114
12114
|
}));
|
|
@@ -13523,6 +13523,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
13523
13523
|
mappingTextField: 'name',
|
|
13524
13524
|
mappingValueField: 'code',
|
|
13525
13525
|
otherParams: {
|
|
13526
|
+
'qp-status-eq': 1,
|
|
13526
13527
|
sorter: 'desc-id'
|
|
13527
13528
|
},
|
|
13528
13529
|
sourceName: 'customCode'
|
|
@@ -14161,7 +14162,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
14161
14162
|
}]
|
|
14162
14163
|
}, modalTableBusProps);
|
|
14163
14164
|
}
|
|
14164
|
-
//
|
|
14165
|
+
// 规则模板选择器
|
|
14165
14166
|
if (type === 'ruleTemplate') {
|
|
14166
14167
|
requestConfig = _objectSpread2({
|
|
14167
14168
|
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
@@ -14176,19 +14177,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
14176
14177
|
}, requestConfigProp);
|
|
14177
14178
|
tableSearchForm = [{
|
|
14178
14179
|
name: 'qp-name-like',
|
|
14179
|
-
label: '
|
|
14180
|
+
label: '规则模板名称'
|
|
14180
14181
|
}, {
|
|
14181
14182
|
name: 'qp-code-like',
|
|
14182
|
-
label: '
|
|
14183
|
+
label: '规则模板编码'
|
|
14183
14184
|
}];
|
|
14184
14185
|
modalTableProps = _objectSpread2({
|
|
14185
|
-
modalTableTitle: '
|
|
14186
|
+
modalTableTitle: '选择规则模板',
|
|
14186
14187
|
tableSearchForm: tableSearchForm,
|
|
14187
14188
|
tableColumns: [{
|
|
14188
|
-
title: '
|
|
14189
|
+
title: '规则模板编码',
|
|
14189
14190
|
dataIndex: 'code'
|
|
14190
14191
|
}, {
|
|
14191
|
-
title: '
|
|
14192
|
+
title: '规则模板名称',
|
|
14192
14193
|
dataIndex: 'name',
|
|
14193
14194
|
render: function render(text) {
|
|
14194
14195
|
return handleTextOverflow(text);
|
|
@@ -15241,7 +15242,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15241
15242
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15242
15243
|
* @LastEditors: rodchen
|
|
15243
15244
|
*/
|
|
15244
|
-
var index = (function (storageKeyString) {
|
|
15245
|
+
var index$1 = (function (storageKeyString) {
|
|
15245
15246
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15246
15247
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15247
15248
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15359,44 +15360,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15359
15360
|
var _ctx$form;
|
|
15360
15361
|
var resData, coverData, data, dataList;
|
|
15361
15362
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15362
|
-
while (1) {
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
_context.next = 13;
|
|
15368
|
-
break;
|
|
15369
|
-
}
|
|
15370
|
-
data = resData.data;
|
|
15371
|
-
if (!remoteSource.converter) {
|
|
15372
|
-
_context.next = 9;
|
|
15373
|
-
break;
|
|
15374
|
-
}
|
|
15375
|
-
_context.next = 6;
|
|
15376
|
-
return remoteSource.converter({
|
|
15377
|
-
data: [data]
|
|
15378
|
-
});
|
|
15379
|
-
case 6:
|
|
15380
|
-
coverData = _context.sent;
|
|
15381
|
-
_context.next = 11;
|
|
15363
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15364
|
+
case 0:
|
|
15365
|
+
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15366
|
+
if (!(resData.status === '0' || resData.code === '000000')) {
|
|
15367
|
+
_context.next = 13;
|
|
15382
15368
|
break;
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
}) || [];
|
|
15388
|
-
case 11:
|
|
15389
|
-
_context.next = 14;
|
|
15369
|
+
}
|
|
15370
|
+
data = resData.data;
|
|
15371
|
+
if (!remoteSource.converter) {
|
|
15372
|
+
_context.next = 9;
|
|
15390
15373
|
break;
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15374
|
+
}
|
|
15375
|
+
_context.next = 6;
|
|
15376
|
+
return remoteSource.converter({
|
|
15377
|
+
data: [data]
|
|
15378
|
+
});
|
|
15379
|
+
case 6:
|
|
15380
|
+
coverData = _context.sent;
|
|
15381
|
+
_context.next = 11;
|
|
15382
|
+
break;
|
|
15383
|
+
case 9:
|
|
15384
|
+
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15385
|
+
coverData = dataList.length && dataList.map(function (ites) {
|
|
15386
|
+
return mapSearchTree(ites);
|
|
15387
|
+
}) || [];
|
|
15388
|
+
case 11:
|
|
15389
|
+
_context.next = 14;
|
|
15390
|
+
break;
|
|
15391
|
+
case 13:
|
|
15392
|
+
coverData = [];
|
|
15393
|
+
case 14:
|
|
15394
|
+
setTreeData(coverData);
|
|
15395
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15396
|
+
case 16:
|
|
15397
|
+
case "end":
|
|
15398
|
+
return _context.stop();
|
|
15400
15399
|
}
|
|
15401
15400
|
}, _callee);
|
|
15402
15401
|
}));
|
|
@@ -15584,7 +15583,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15584
15583
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15585
15584
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15586
15585
|
};
|
|
15587
|
-
var index$
|
|
15586
|
+
var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15588
15587
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15589
15588
|
return false;
|
|
15590
15589
|
}
|
|
@@ -15597,7 +15596,7 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
|
|
|
15597
15596
|
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";
|
|
15598
15597
|
styleInject(css_248z$8);
|
|
15599
15598
|
|
|
15600
|
-
var index$
|
|
15599
|
+
var index$3 = (function (props) {
|
|
15601
15600
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15602
15601
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15603
15602
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -17021,7 +17020,7 @@ var iconMap = {
|
|
|
17021
17020
|
src: moreIcon
|
|
17022
17021
|
})
|
|
17023
17022
|
};
|
|
17024
|
-
var index$
|
|
17023
|
+
var index$4 = (function (props) {
|
|
17025
17024
|
var _useLocation = umi.useLocation(),
|
|
17026
17025
|
pathname = _useLocation.pathname;
|
|
17027
17026
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -17238,7 +17237,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17238
17237
|
styleInject(css_248z$d);
|
|
17239
17238
|
|
|
17240
17239
|
var _excluded$c = ["children"];
|
|
17241
|
-
var index$
|
|
17240
|
+
var index$5 = (function (props) {
|
|
17242
17241
|
var _useLocation = umi.useLocation(),
|
|
17243
17242
|
pathname = _useLocation.pathname;
|
|
17244
17243
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -19434,21 +19433,19 @@ function _outLogin() {
|
|
|
19434
19433
|
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19435
19434
|
var res;
|
|
19436
19435
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19437
|
-
while (1) {
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
return _context.stop();
|
|
19451
|
-
}
|
|
19436
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19437
|
+
case 0:
|
|
19438
|
+
_context.next = 2;
|
|
19439
|
+
return axios__default['default']({
|
|
19440
|
+
url: '/user/web/loginOut',
|
|
19441
|
+
method: 'GET'
|
|
19442
|
+
});
|
|
19443
|
+
case 2:
|
|
19444
|
+
res = _context.sent;
|
|
19445
|
+
return _context.abrupt("return", res);
|
|
19446
|
+
case 4:
|
|
19447
|
+
case "end":
|
|
19448
|
+
return _context.stop();
|
|
19452
19449
|
}
|
|
19453
19450
|
}, _callee);
|
|
19454
19451
|
}));
|
|
@@ -19577,31 +19574,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19577
19574
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19578
19575
|
var sessionId;
|
|
19579
19576
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19580
|
-
while (1) {
|
|
19581
|
-
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19577
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19578
|
+
case 0:
|
|
19579
|
+
_context.next = 2;
|
|
19580
|
+
return getSessionId();
|
|
19581
|
+
case 2:
|
|
19582
|
+
sessionId = _context.sent;
|
|
19583
|
+
_context.next = 5;
|
|
19584
|
+
return outLogin({
|
|
19585
|
+
sessionId: sessionId
|
|
19586
|
+
});
|
|
19587
|
+
case 5:
|
|
19588
|
+
// @ts-ignore
|
|
19589
|
+
if (BUILD_TYPE) {
|
|
19590
|
+
antd.message.success('退出登录成功');
|
|
19591
|
+
umi.history.replace({
|
|
19592
|
+
pathname: '/user/login'
|
|
19590
19593
|
});
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
|
|
19595
|
-
|
|
19596
|
-
|
|
19597
|
-
});
|
|
19598
|
-
} else {
|
|
19599
|
-
setLoginOutPath();
|
|
19600
|
-
}
|
|
19601
|
-
case 6:
|
|
19602
|
-
case "end":
|
|
19603
|
-
return _context.stop();
|
|
19604
|
-
}
|
|
19594
|
+
} else {
|
|
19595
|
+
setLoginOutPath();
|
|
19596
|
+
}
|
|
19597
|
+
case 6:
|
|
19598
|
+
case "end":
|
|
19599
|
+
return _context.stop();
|
|
19605
19600
|
}
|
|
19606
19601
|
}, _callee);
|
|
19607
19602
|
}));
|
|
@@ -21429,6 +21424,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21429
21424
|
showSubMenu: isShow
|
|
21430
21425
|
});
|
|
21431
21426
|
}, 500);
|
|
21427
|
+
//设置tabs标签左右滚动
|
|
21432
21428
|
_this.setTabNavTransLate = function (num) {
|
|
21433
21429
|
var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
|
|
21434
21430
|
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];
|
|
@@ -22109,14 +22105,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22109
22105
|
request: function () {
|
|
22110
22106
|
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22111
22107
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22112
|
-
while (1) {
|
|
22113
|
-
|
|
22114
|
-
|
|
22115
|
-
|
|
22116
|
-
|
|
22117
|
-
|
|
22118
|
-
return _context.stop();
|
|
22119
|
-
}
|
|
22108
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22109
|
+
case 0:
|
|
22110
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
22111
|
+
case 1:
|
|
22112
|
+
case "end":
|
|
22113
|
+
return _context.stop();
|
|
22120
22114
|
}
|
|
22121
22115
|
}, _callee);
|
|
22122
22116
|
}));
|
|
@@ -22254,7 +22248,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22254
22248
|
}]);
|
|
22255
22249
|
return WrapperComponent;
|
|
22256
22250
|
}(React__default['default'].Component);
|
|
22257
|
-
var index$
|
|
22251
|
+
var index$6 = (function (props) {
|
|
22258
22252
|
var _useModel = umi.useModel('@@initialState'),
|
|
22259
22253
|
_useModel$initialStat = _useModel.initialState,
|
|
22260
22254
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22397,7 +22391,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22397
22391
|
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
22398
22392
|
styleInject(css_248z$n);
|
|
22399
22393
|
|
|
22400
|
-
var index$
|
|
22394
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22401
22395
|
var _useState = React.useState(false),
|
|
22402
22396
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22403
22397
|
show = _useState2[0],
|
|
@@ -22642,8 +22636,11 @@ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
22642
22636
|
}, /*#__PURE__*/React__default['default'].createElement("tbody", null, config.colLastData.map(function (item, index) {
|
|
22643
22637
|
var fixedTop = item.fixed ? "".concat(index * 40 + config.colHeaderToTop, "px") : 0;
|
|
22644
22638
|
return /*#__PURE__*/React__default['default'].createElement("tr", null, colTableData.map(function (record, index) {
|
|
22639
|
+
var _record$_rowConfig;
|
|
22640
|
+
var tdHidden = (record === null || record === void 0 ? void 0 : (_record$_rowConfig = record['_rowConfig']) === null || _record$_rowConfig === void 0 ? void 0 : _record$_rowConfig.hidden) ? 'none' : 'table-cell';
|
|
22645
22641
|
return /*#__PURE__*/React__default['default'].createElement("td", {
|
|
22646
22642
|
style: {
|
|
22643
|
+
display: tdHidden,
|
|
22647
22644
|
background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
|
|
22648
22645
|
minWidth: '100px',
|
|
22649
22646
|
width: "".concat(itemWidth, "px"),
|
|
@@ -29651,7 +29648,7 @@ var choiceType = Object.freeze({
|
|
|
29651
29648
|
280: '库存组织选择器',
|
|
29652
29649
|
310: '配送方式选择器',
|
|
29653
29650
|
330: '变量',
|
|
29654
|
-
340: '
|
|
29651
|
+
340: '规则模板选择器',
|
|
29655
29652
|
350: '营销区域选择器'
|
|
29656
29653
|
});
|
|
29657
29654
|
var inputType = {
|
|
@@ -29673,28 +29670,26 @@ var valueType = {
|
|
|
29673
29670
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29674
29671
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29675
29672
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29676
|
-
while (1) {
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
29683
|
-
|
|
29684
|
-
return
|
|
29685
|
-
|
|
29686
|
-
|
|
29687
|
-
|
|
29688
|
-
|
|
29689
|
-
|
|
29690
|
-
|
|
29691
|
-
|
|
29692
|
-
|
|
29693
|
-
|
|
29694
|
-
|
|
29695
|
-
|
|
29696
|
-
return _context.stop();
|
|
29697
|
-
}
|
|
29673
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29674
|
+
case 0:
|
|
29675
|
+
_context.next = 2;
|
|
29676
|
+
return bssula.request({
|
|
29677
|
+
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
29678
|
+
converter: function converter(_ref2) {
|
|
29679
|
+
var data = _ref2.data;
|
|
29680
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
29681
|
+
return {
|
|
29682
|
+
text: d.name,
|
|
29683
|
+
value: d.code || d.brandCode
|
|
29684
|
+
};
|
|
29685
|
+
});
|
|
29686
|
+
}
|
|
29687
|
+
});
|
|
29688
|
+
case 2:
|
|
29689
|
+
return _context.abrupt("return", _context.sent);
|
|
29690
|
+
case 3:
|
|
29691
|
+
case "end":
|
|
29692
|
+
return _context.stop();
|
|
29698
29693
|
}
|
|
29699
29694
|
}, _callee);
|
|
29700
29695
|
}));
|
|
@@ -29744,55 +29739,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29744
29739
|
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29745
29740
|
var _ref$current, source;
|
|
29746
29741
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29747
|
-
while (1) {
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
};
|
|
29758
|
-
}
|
|
29759
|
-
return prev;
|
|
29760
|
-
});
|
|
29761
|
-
case 2:
|
|
29762
|
-
if (!record.dictionaryCode) {
|
|
29763
|
-
_context.next = 17;
|
|
29764
|
-
break;
|
|
29765
|
-
}
|
|
29766
|
-
if (!(record.choiceType == 20)) {
|
|
29767
|
-
_context.next = 7;
|
|
29768
|
-
break;
|
|
29742
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29743
|
+
case 0:
|
|
29744
|
+
_context.next = 2;
|
|
29745
|
+
return setIsShowAndType(function (prev) {
|
|
29746
|
+
if (record.inputType === 20 || record.inputType === 30) {
|
|
29747
|
+
return {
|
|
29748
|
+
isShow: true,
|
|
29749
|
+
singleOrMultiple: record.inputType,
|
|
29750
|
+
type: record.choiceType
|
|
29751
|
+
};
|
|
29769
29752
|
}
|
|
29770
|
-
|
|
29771
|
-
|
|
29753
|
+
return prev;
|
|
29754
|
+
});
|
|
29755
|
+
case 2:
|
|
29756
|
+
if (!record.dictionaryCode) {
|
|
29757
|
+
_context.next = 17;
|
|
29772
29758
|
break;
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
break;
|
|
29777
|
-
}
|
|
29778
|
-
_context.next = 10;
|
|
29779
|
-
return getDynamicDict(record.dictionaryCode);
|
|
29780
|
-
case 10:
|
|
29781
|
-
_context.t1 = _context.sent;
|
|
29782
|
-
_context.next = 14;
|
|
29759
|
+
}
|
|
29760
|
+
if (!(record.choiceType == 20)) {
|
|
29761
|
+
_context.next = 7;
|
|
29783
29762
|
break;
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
|
-
|
|
29793
|
-
|
|
29794
|
-
|
|
29795
|
-
|
|
29763
|
+
}
|
|
29764
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
29765
|
+
_context.next = 15;
|
|
29766
|
+
break;
|
|
29767
|
+
case 7:
|
|
29768
|
+
if (!(record.choiceType == 30)) {
|
|
29769
|
+
_context.next = 13;
|
|
29770
|
+
break;
|
|
29771
|
+
}
|
|
29772
|
+
_context.next = 10;
|
|
29773
|
+
return getDynamicDict(record.dictionaryCode);
|
|
29774
|
+
case 10:
|
|
29775
|
+
_context.t1 = _context.sent;
|
|
29776
|
+
_context.next = 14;
|
|
29777
|
+
break;
|
|
29778
|
+
case 13:
|
|
29779
|
+
_context.t1 = [];
|
|
29780
|
+
case 14:
|
|
29781
|
+
_context.t0 = _context.t1;
|
|
29782
|
+
case 15:
|
|
29783
|
+
source = _context.t0;
|
|
29784
|
+
// @ts-ignore
|
|
29785
|
+
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
29786
|
+
case 17:
|
|
29787
|
+
case "end":
|
|
29788
|
+
return _context.stop();
|
|
29796
29789
|
}
|
|
29797
29790
|
}, _callee);
|
|
29798
29791
|
})));
|
|
@@ -29860,30 +29853,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29860
29853
|
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29861
29854
|
var form, values, name, relates, source;
|
|
29862
29855
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29863
|
-
while (1) {
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29867
|
-
if (values[0]) {
|
|
29868
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29869
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29870
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
29871
|
-
}
|
|
29872
|
-
if (!values[1]) {
|
|
29873
|
-
_context2.next = 9;
|
|
29874
|
-
break;
|
|
29875
|
-
}
|
|
29876
|
-
_context2.next = 5;
|
|
29877
|
-
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
29878
|
-
case 5:
|
|
29879
|
-
source = _context2.sent;
|
|
29856
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
29857
|
+
case 0:
|
|
29858
|
+
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
29859
|
+
if (values[0]) {
|
|
29880
29860
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29881
29861
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29882
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0],
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29862
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
29863
|
+
}
|
|
29864
|
+
if (!values[1]) {
|
|
29865
|
+
_context2.next = 9;
|
|
29866
|
+
break;
|
|
29867
|
+
}
|
|
29868
|
+
_context2.next = 5;
|
|
29869
|
+
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
29870
|
+
case 5:
|
|
29871
|
+
source = _context2.sent;
|
|
29872
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
29873
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
29874
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
29875
|
+
case 9:
|
|
29876
|
+
case "end":
|
|
29877
|
+
return _context2.stop();
|
|
29887
29878
|
}
|
|
29888
29879
|
}, _callee2);
|
|
29889
29880
|
}));
|
|
@@ -30343,43 +30334,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30343
30334
|
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30344
30335
|
var values, name, form, source;
|
|
30345
30336
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30346
|
-
while (1) {
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30350
|
-
|
|
30351
|
-
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30352
|
-
form.setFieldVisible(name, false);
|
|
30353
|
-
}
|
|
30354
|
-
if (!(values[0] === 30)) {
|
|
30355
|
-
_context3.next = 10;
|
|
30356
|
-
break;
|
|
30357
|
-
}
|
|
30358
|
-
_context3.next = 5;
|
|
30359
|
-
return bssula.request({
|
|
30360
|
-
url: '/basic/dictDynamicItem/queryList',
|
|
30361
|
-
converter: function converter(_ref11) {
|
|
30362
|
-
var data = _ref11.data;
|
|
30363
|
-
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30364
|
-
return {
|
|
30365
|
-
text: d.dictCode,
|
|
30366
|
-
value: d.dictCode
|
|
30367
|
-
};
|
|
30368
|
-
});
|
|
30369
|
-
}
|
|
30370
|
-
});
|
|
30371
|
-
case 5:
|
|
30372
|
-
source = _context3.sent;
|
|
30373
|
-
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30374
|
-
form.setFieldVisible(name, true);
|
|
30375
|
-
_context3.next = 11;
|
|
30376
|
-
break;
|
|
30377
|
-
case 10:
|
|
30337
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
30338
|
+
case 0:
|
|
30339
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
30340
|
+
if (values[1] === 40) {
|
|
30341
|
+
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
30378
30342
|
form.setFieldVisible(name, false);
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30382
|
-
|
|
30343
|
+
}
|
|
30344
|
+
if (!(values[0] === 30)) {
|
|
30345
|
+
_context3.next = 10;
|
|
30346
|
+
break;
|
|
30347
|
+
}
|
|
30348
|
+
_context3.next = 5;
|
|
30349
|
+
return bssula.request({
|
|
30350
|
+
url: '/basic/dictDynamicItem/queryList',
|
|
30351
|
+
converter: function converter(_ref11) {
|
|
30352
|
+
var data = _ref11.data;
|
|
30353
|
+
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
30354
|
+
return {
|
|
30355
|
+
text: d.dictCode,
|
|
30356
|
+
value: d.dictCode
|
|
30357
|
+
};
|
|
30358
|
+
});
|
|
30359
|
+
}
|
|
30360
|
+
});
|
|
30361
|
+
case 5:
|
|
30362
|
+
source = _context3.sent;
|
|
30363
|
+
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
30364
|
+
form.setFieldVisible(name, true);
|
|
30365
|
+
_context3.next = 11;
|
|
30366
|
+
break;
|
|
30367
|
+
case 10:
|
|
30368
|
+
form.setFieldVisible(name, false);
|
|
30369
|
+
case 11:
|
|
30370
|
+
case "end":
|
|
30371
|
+
return _context3.stop();
|
|
30383
30372
|
}
|
|
30384
30373
|
}, _callee3);
|
|
30385
30374
|
}));
|
|
@@ -30568,66 +30557,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30568
30557
|
var _ref$current4, _res$editableStatus;
|
|
30569
30558
|
var res, _res$defaultValue;
|
|
30570
30559
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
30571
|
-
while (1) {
|
|
30572
|
-
|
|
30573
|
-
|
|
30574
|
-
|
|
30575
|
-
|
|
30576
|
-
|
|
30577
|
-
|
|
30578
|
-
|
|
30579
|
-
|
|
30580
|
-
|
|
30581
|
-
res.
|
|
30582
|
-
|
|
30583
|
-
|
|
30584
|
-
|
|
30585
|
-
|
|
30586
|
-
|
|
30587
|
-
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
|
|
30592
|
-
|
|
30560
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
30561
|
+
case 0:
|
|
30562
|
+
_context4.next = 2;
|
|
30563
|
+
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
30564
|
+
case 2:
|
|
30565
|
+
res = _context4.sent;
|
|
30566
|
+
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
30567
|
+
res.fieldGroup = record.fieldGroup;
|
|
30568
|
+
res.businessType = record.businessType;
|
|
30569
|
+
res.info = {
|
|
30570
|
+
enumeration: res.enumeration,
|
|
30571
|
+
dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
|
|
30572
|
+
formula: res.formula,
|
|
30573
|
+
scale: res.scale,
|
|
30574
|
+
variable: res.variable
|
|
30575
|
+
};
|
|
30576
|
+
res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
|
|
30577
|
+
res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
|
|
30578
|
+
res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
|
|
30579
|
+
if (res.inputType === 40) {
|
|
30580
|
+
res.valueType = 22;
|
|
30581
|
+
}
|
|
30582
|
+
// 把数组处理成文本
|
|
30583
|
+
if (res.inputType === 30) {
|
|
30584
|
+
if (res.defaultValue) {
|
|
30585
|
+
res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
|
|
30593
30586
|
}
|
|
30594
|
-
|
|
30595
|
-
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30587
|
+
}
|
|
30588
|
+
res.fieldMapping = res.fieldMapping || '';
|
|
30589
|
+
delete res.formula;
|
|
30590
|
+
delete res.showValue;
|
|
30591
|
+
if (!(mode === 'create')) {
|
|
30592
|
+
_context4.next = 18;
|
|
30593
|
+
break;
|
|
30594
|
+
}
|
|
30595
|
+
bssula.request({
|
|
30596
|
+
url: "/basic/flow/businessField",
|
|
30597
|
+
method: 'POST',
|
|
30598
|
+
params: res,
|
|
30599
|
+
successMessage: '创建成功!',
|
|
30600
|
+
converter: function converter() {
|
|
30601
|
+
onParentOk();
|
|
30599
30602
|
}
|
|
30600
|
-
|
|
30601
|
-
|
|
30602
|
-
|
|
30603
|
-
|
|
30604
|
-
|
|
30605
|
-
|
|
30603
|
+
});
|
|
30604
|
+
return _context4.abrupt("return");
|
|
30605
|
+
case 18:
|
|
30606
|
+
bssula.request({
|
|
30607
|
+
url: "/basic/flow/businessField/".concat(record.id),
|
|
30608
|
+
method: 'PATCH',
|
|
30609
|
+
params: res,
|
|
30610
|
+
successMessage: '修改成功!',
|
|
30611
|
+
converter: function converter() {
|
|
30612
|
+
onParentOk();
|
|
30606
30613
|
}
|
|
30607
|
-
|
|
30608
|
-
|
|
30609
|
-
|
|
30610
|
-
|
|
30611
|
-
successMessage: '创建成功!',
|
|
30612
|
-
converter: function converter() {
|
|
30613
|
-
onParentOk();
|
|
30614
|
-
}
|
|
30615
|
-
});
|
|
30616
|
-
return _context4.abrupt("return");
|
|
30617
|
-
case 18:
|
|
30618
|
-
bssula.request({
|
|
30619
|
-
url: "/basic/flow/businessField/".concat(record.id),
|
|
30620
|
-
method: 'PATCH',
|
|
30621
|
-
params: res,
|
|
30622
|
-
successMessage: '修改成功!',
|
|
30623
|
-
converter: function converter() {
|
|
30624
|
-
onParentOk();
|
|
30625
|
-
}
|
|
30626
|
-
});
|
|
30627
|
-
case 19:
|
|
30628
|
-
case "end":
|
|
30629
|
-
return _context4.stop();
|
|
30630
|
-
}
|
|
30614
|
+
});
|
|
30615
|
+
case 19:
|
|
30616
|
+
case "end":
|
|
30617
|
+
return _context4.stop();
|
|
30631
30618
|
}
|
|
30632
30619
|
}, _callee4);
|
|
30633
30620
|
}));
|
|
@@ -31097,24 +31084,24 @@ exports.AddSkcSelect = AddSkcSelect;
|
|
|
31097
31084
|
exports.AddSkuSelect = AddSkuSelect;
|
|
31098
31085
|
exports.AddSpuSelect = AddSpuSelect;
|
|
31099
31086
|
exports.BillEntry = BillEntry;
|
|
31100
|
-
exports.BsLayout = index$
|
|
31087
|
+
exports.BsLayout = index$6;
|
|
31101
31088
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
31102
31089
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
31103
|
-
exports.BusinessTreeSearchSelect = index$
|
|
31104
|
-
exports.CheckOneUser = index;
|
|
31090
|
+
exports.BusinessTreeSearchSelect = index$2;
|
|
31091
|
+
exports.CheckOneUser = index$1;
|
|
31105
31092
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
31106
31093
|
exports.CommodityEntry = CommodityEntry;
|
|
31107
31094
|
exports.DataImport = DataImport;
|
|
31108
31095
|
exports.DataValidation = DataValidation;
|
|
31109
|
-
exports.DetailPageWrapper = index$
|
|
31096
|
+
exports.DetailPageWrapper = index$4;
|
|
31110
31097
|
exports.ExportIcon = ExportIcon;
|
|
31111
31098
|
exports.GuideWrapper = GuideWrapper;
|
|
31112
|
-
exports.HomePageWrapper = index$
|
|
31099
|
+
exports.HomePageWrapper = index$5;
|
|
31113
31100
|
exports.JsonQueryTable = JsonQueryTable;
|
|
31114
|
-
exports.MoreTreeTable = index$
|
|
31101
|
+
exports.MoreTreeTable = index$7;
|
|
31115
31102
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
31116
31103
|
exports.SearchSelect = SearchSelect;
|
|
31117
|
-
exports.StateFlow = index$
|
|
31104
|
+
exports.StateFlow = index$3;
|
|
31118
31105
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
31119
31106
|
exports.TableColumnSetting = TableColumnSetting;
|
|
31120
31107
|
exports.TreeSearchSelect = TreeSearchSelect;
|