@bit-sun/business-component 2.4.19 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +3 -0
  2. package/dist/components/Business/BsLayouts/Components/ChooseStore/services.d.ts +1 -0
  3. package/dist/components/Business/BsLayouts/Components/RightContent/i18n.d.ts +9 -0
  4. package/dist/components/Business/BsLayouts/service.d.ts +1 -1
  5. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -0
  6. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
  7. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -0
  8. package/dist/components/Business/SearchSelect/common.d.ts +1 -5
  9. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +1 -0
  10. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -1
  11. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  12. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -0
  13. package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
  14. package/dist/index.esm.js +1566 -1131
  15. package/dist/index.js +1551 -1114
  16. package/dist/utils/request.d.ts +2 -0
  17. package/dist/utils/utils.d.ts +6 -0
  18. package/package.json +6 -4
  19. package/src/assets/arrow_top.svg +18 -0
  20. package/src/components/Business/AddSelectBusiness/index.tsx +38 -19
  21. package/src/components/Business/BsLayouts/Components/ChooseStore/index.less +0 -0
  22. package/src/components/Business/BsLayouts/Components/ChooseStore/index.tsx +193 -0
  23. package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +10 -0
  24. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +7 -1
  25. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +3 -3
  26. package/src/components/Business/BsLayouts/Components/RightContent/i18n.ts +9 -0
  27. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +19 -2
  28. package/src/components/Business/BsLayouts/index.tsx +44 -34
  29. package/src/components/Business/BsLayouts/service.ts +2 -2
  30. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +9 -9
  31. package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +5 -0
  32. package/src/components/Business/BsSulaQueryTable/index.tsx +346 -175
  33. package/src/components/Business/BsSulaQueryTable/setting.tsx +125 -87
  34. package/src/components/Business/BsSulaQueryTable/utils.tsx +57 -34
  35. package/src/components/Business/CommonGuideWrapper/index.tsx +11 -2
  36. package/src/components/Business/JsonQueryTable/index.tsx +10 -12
  37. package/src/components/Business/SearchSelect/BusinessUtils.ts +4 -49
  38. package/src/components/Business/SearchSelect/common.ts +1 -16
  39. package/src/components/Business/SearchSelect/index.md +1 -58
  40. package/src/components/Business/SearchSelect/utils.ts +4 -4
  41. package/src/components/Business/columnSettingTable/columnSetting.tsx +10 -8
  42. package/src/components/Business/columnSettingTable/utils.tsx +29 -29
  43. package/src/components/Functional/AddSelect/helps.ts +4 -3
  44. package/src/components/Functional/AddSelect/index.tsx +79 -33
  45. package/src/components/Functional/BillEntry/index.tsx +3 -3
  46. package/src/components/Functional/DataImport/index.tsx +3 -3
  47. package/src/components/Functional/DataValidation/index.tsx +3 -3
  48. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +10 -5
  49. package/src/components/Functional/QueryMutipleInput/index.tsx +2 -1
  50. package/src/components/Functional/SearchSelect/index.less +6 -0
  51. package/src/components/Functional/SearchSelect/index.tsx +152 -45
  52. package/src/components/Functional/TreeSearchSelect/index.tsx +24 -22
  53. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +641 -0
  54. package/src/components/Solution/RuleComponent/index.js +7 -652
  55. package/src/components/Solution/RuleComponent/services.ts +2 -2
  56. package/src/plugin/TableColumnSetting/index.tsx +2 -2
  57. package/src/utils/request.ts +53 -0
  58. package/src/utils/utils.ts +37 -21
package/dist/index.js CHANGED
@@ -12,7 +12,9 @@ var React = require('react');
12
12
  var moment$1 = require('moment');
13
13
  var icons = require('@ant-design/icons');
14
14
  var bssula = require('bssula');
15
+ require('qs');
15
16
  var reactBeautifulDnd = require('react-beautiful-dnd');
17
+ var request$1 = require('umi-request');
16
18
  var ahooks = require('ahooks');
17
19
  var querystring = require('querystring');
18
20
  var reactResizable = require('react-resizable');
@@ -21,6 +23,7 @@ var arrayMove = require('array-move');
21
23
  var ProLayout = require('@ant-design/pro-layout');
22
24
  var cloneDeep = require('lodash/cloneDeep');
23
25
  var classNames = require('classnames');
26
+ var debounce = require('lodash/debounce');
24
27
  var reactDnd = require('react-dnd');
25
28
  var reactDndHtml5Backend = require('react-dnd-html5-backend');
26
29
  var Editor$1 = require('@monaco-editor/react');
@@ -38,9 +41,11 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
38
41
  var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
39
42
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
40
43
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
44
+ var request__default = /*#__PURE__*/_interopDefaultLegacy(request$1);
41
45
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
42
46
  var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
43
47
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
48
+ var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
44
49
  var Editor__default = /*#__PURE__*/_interopDefaultLegacy(Editor$1);
45
50
  var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
46
51
  var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
@@ -484,20 +489,6 @@ function _defineProperty(obj, key, value) {
484
489
  }
485
490
  return obj;
486
491
  }
487
- function _extends() {
488
- _extends = Object.assign ? Object.assign.bind() : function (target) {
489
- for (var i = 1; i < arguments.length; i++) {
490
- var source = arguments[i];
491
- for (var key in source) {
492
- if (Object.prototype.hasOwnProperty.call(source, key)) {
493
- target[key] = source[key];
494
- }
495
- }
496
- }
497
- return target;
498
- };
499
- return _extends.apply(this, arguments);
500
- }
501
492
  function _inherits(subClass, superClass) {
502
493
  if (typeof superClass !== "function" && superClass !== null) {
503
494
  throw new TypeError("Super expression must either be null or a function");
@@ -1164,109 +1155,57 @@ function handleCommonTimeRender(text, format) {
1164
1155
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
1165
1156
  var _ref;
1166
1157
  var defaultWidth = 200;
1158
+ if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
1167
1159
  var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
1168
- if (lowerCaseKey) {
1169
- switch (true) {
1170
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
1171
- defaultWidth = 60;
1172
- break;
1173
- case lowerCaseKey.indexOf('number') > -1:
1174
- case lowerCaseKey.indexOf('quantity') > -1:
1175
- case lowerCaseKey.indexOf('amount') > -1:
1176
- defaultWidth = 90;
1177
- break;
1178
- case lowerCaseKey.indexOf('no') > -1:
1179
- defaultWidth = 200;
1180
- break;
1181
- case lowerCaseKey.indexOf('code') > -1:
1182
- defaultWidth = 170;
1183
- break;
1184
- case lowerCaseKey.indexOf('time') > -1:
1185
- defaultWidth = 130;
1186
- break;
1187
- case lowerCaseKey.indexOf('status') > -1:
1188
- defaultWidth = 100;
1189
- break;
1190
- case lowerCaseKey.indexOf('user') > -1:
1191
- defaultWidth = 130;
1192
- break;
1193
- }
1160
+ if (!lowerCaseKey) return defaultWidth;
1161
+ switch (true) {
1162
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
1163
+ defaultWidth = 60;
1164
+ break;
1165
+ case lowerCaseKey.indexOf('number') > -1:
1166
+ case lowerCaseKey.indexOf('quantity') > -1:
1167
+ case lowerCaseKey.indexOf('amount') > -1:
1168
+ defaultWidth = 90;
1169
+ break;
1170
+ case lowerCaseKey.indexOf('no') > -1:
1171
+ defaultWidth = 200;
1172
+ break;
1173
+ case lowerCaseKey.indexOf('code') > -1:
1174
+ defaultWidth = 170;
1175
+ break;
1176
+ case lowerCaseKey.indexOf('time') > -1:
1177
+ defaultWidth = 130;
1178
+ break;
1179
+ case lowerCaseKey.indexOf('status') > -1:
1180
+ defaultWidth = 100;
1181
+ break;
1182
+ case lowerCaseKey.indexOf('user') > -1:
1183
+ defaultWidth = 130;
1184
+ break;
1194
1185
  }
1195
1186
  return defaultWidth;
1196
1187
  };
1197
- /**
1198
- * 查询参数处理
1199
- * @param params 要应用于查询的参数
1200
- * @returns 返回处理后的查询参数
1201
- */
1202
- function queryParams(params, flag) {
1203
- var _loop = function _loop() {
1204
- if (Object.prototype.hasOwnProperty.call(params, key)) {
1205
- var element = params[key];
1206
- if (element && key.indexOf('*number*') >= 0) {
1207
- var dataParams = key.split('*number*');
1208
- dataParams.forEach(function (value, index) {
1209
- params[value] = element[index];
1210
- });
1211
- delete params[key];
1212
- } else if (element && key.indexOf('*address*') >= 0) {
1213
- var _dataParams = key.split('*address*');
1214
- _dataParams.forEach(function (value, index) {
1215
- params[value] = element.PCDCode[index];
1216
- });
1217
- delete params[key];
1218
- } else if (element && key.indexOf('*costType*') >= 0) {
1219
- var _dataParams2 = key.split('*costType*');
1220
- // eslint-disable-next-line prefer-destructuring
1221
- params[_dataParams2[0]] = element[1];
1222
- delete params[key];
1223
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1224
- var _dataParams3 = key.split('*fullDate*');
1225
- _dataParams3.forEach(function (value, index) {
1226
- if (index === 0) {
1227
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1228
- } else {
1229
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1230
- }
1231
- });
1232
- delete params[key];
1233
- } else if (element && key.indexOf('*') >= 0) {
1234
- var _dataParams4 = key.split('*');
1235
- _dataParams4.forEach(function (value, index) {
1236
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1237
- });
1238
- delete params[key];
1239
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1240
- var _dataParams5 = key.split('_likeIn_');
1241
- if (element.indexOf(',') >= 0) {
1242
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1243
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1244
- } else {
1245
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1246
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1247
- }
1248
- delete params[key];
1249
- } else if (Array.isArray(element)) {
1250
- params[key] = element.join(',');
1251
- }
1252
- }
1253
- };
1254
- for (var key in params) {
1255
- _loop();
1256
- }
1257
- return flag ? params : qs.stringify(params);
1258
- }
1259
1188
  /**
1260
1189
  * 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
1261
1190
  * @param code 对应权限值
1262
1191
  * @returns boolean
1263
1192
  */
1264
1193
  var authFn = function authFn(code) {
1194
+ if (!code) {
1195
+ return true;
1196
+ }
1265
1197
  var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
1266
1198
  return authButton.findIndex(function (d) {
1267
1199
  return d === code;
1268
1200
  }) !== -1;
1269
1201
  };
1202
+ // 可以将普通字符串 或者tsx 转换成字符串
1203
+ var renderToString = function renderToString(render) {
1204
+ return render;
1205
+ // return typeof render === 'string'
1206
+ // ? render
1207
+ // : ReactDOMServer.renderToString(render);
1208
+ };
1270
1209
 
1271
1210
  var formatter = function formatter(data, parentAuthority, parentName) {
1272
1211
  return data.map(function (item) {
@@ -1317,52 +1256,49 @@ var handleBssulaColumnsSpecialParams = function handleBssulaColumnsSpecialParams
1317
1256
  var text = _ref.text;
1318
1257
  return handleTooltipHours(text, col.timeRenderHour);
1319
1258
  };
1320
- }
1321
- // 处理不显示 时分秒的时间
1322
- if (col.timeRender) {
1259
+ } else if (col.timeRender) {
1260
+ // 处理不显示 时分秒的时间
1323
1261
  col.render = function (_ref2) {
1324
1262
  var text = _ref2.text;
1325
1263
  return handleTooltip(text, col.timeRender);
1326
1264
  };
1327
- }
1328
- // 处理文字太长
1329
- if (col.textOverflow) {
1265
+ } else if (col.textOverflow) {
1266
+ // 处理文字太长
1330
1267
  col.render = function (_ref3) {
1331
1268
  var text = _ref3.text;
1332
1269
  return handleTextOverflow(text, col.width);
1333
1270
  };
1334
- }
1335
- if (col.images) {
1271
+ } else if (col.images) {
1336
1272
  col.render = function (_ref4) {
1337
1273
  var text = _ref4.text;
1338
1274
  return tableColumnsImage(text);
1339
1275
  };
1340
- }
1341
- if (col.double) {
1276
+ } else if (col.double) {
1342
1277
  col.render = function (_ref5) {
1343
1278
  var record = _ref5.record;
1344
1279
  return handleTextDouble(record[col.textOne], record[col.textTwo]);
1345
1280
  };
1346
- }
1347
- if (col.lineFeed) {
1281
+ } else if (col.lineFeed) {
1348
1282
  col.render = function (_ref6) {
1349
1283
  var text = _ref6.text;
1350
1284
  return handleTextLineFeed(text);
1351
1285
  };
1352
- }
1353
- // 处理序号
1354
- if (col.indexNumber) {
1286
+ } else if (col.indexNumber) {
1287
+ // 处理序号
1355
1288
  col.render = function (_ref7) {
1356
1289
  var index = _ref7.index;
1357
1290
  return index + 1;
1358
1291
  };
1359
- }
1360
- // 没有值默认显示 - -
1361
- if (!col.render) {
1292
+ } else if (col.isPermissionColumn && Array.isArray(col === null || col === void 0 ? void 0 : col.render)) {
1293
+ col.render = col.render.filter(function (item) {
1294
+ return authFn(item.code);
1295
+ });
1296
+ } else if (!col.render) {
1297
+ // 没有值默认显示 - -
1362
1298
  // col.render = ({ text }: any) => text || '- -';
1363
1299
  col.render = function (_ref8) {
1364
1300
  var text = _ref8.text;
1365
- return text || '--';
1301
+ return text !== null && text !== void 0 ? text : '--';
1366
1302
  };
1367
1303
  }
1368
1304
  };
@@ -1456,10 +1392,64 @@ var judgeIsEmpty = function judgeIsEmpty(value) {
1456
1392
  return false;
1457
1393
  };
1458
1394
 
1395
+ var _excluded = ["url"];
1396
+ var get = function get(url, params) {
1397
+ return request__default['default'].get(url, _objectSpread2({}, params)).then(handleResponseData);
1398
+ };
1399
+ var post = function post(url, data) {
1400
+ return request__default['default'].post(url, {
1401
+ data: data
1402
+ }).then(handleResponseData);
1403
+ };
1404
+ var patch = function patch(url, data) {
1405
+ return request__default['default'].patch(url, {
1406
+ data: data
1407
+ }).then(handleResponseData);
1408
+ };
1409
+ var put = function put(url, data) {
1410
+ return request__default['default'].put(url, {
1411
+ data: data
1412
+ }).then(handleResponseData);
1413
+ };
1414
+ var deleteS = function deleteS(url, data) {
1415
+ return request__default['default'].delete(url, {
1416
+ data: data
1417
+ }).then(handleResponseData);
1418
+ };
1419
+ var requestUtil = function requestUtil(_ref) {
1420
+ var url = _ref.url,
1421
+ parms = _objectWithoutProperties(_ref, _excluded);
1422
+ return request__default['default'](url, parms).then(handleResponseData);
1423
+ };
1424
+ var handleResponseData = /*#__PURE__*/function () {
1425
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
1426
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1427
+ while (1) switch (_context.prev = _context.next) {
1428
+ case 0:
1429
+ return _context.abrupt("return", Promise.resolve({
1430
+ data: response,
1431
+ status: response.status
1432
+ }));
1433
+ case 1:
1434
+ case "end":
1435
+ return _context.stop();
1436
+ }
1437
+ }, _callee);
1438
+ }));
1439
+ return function handleResponseData(_x) {
1440
+ return _ref2.apply(this, arguments);
1441
+ };
1442
+ }();
1443
+ requestUtil.get = get;
1444
+ requestUtil.post = post;
1445
+ requestUtil.patch = patch;
1446
+ requestUtil.put = put;
1447
+ requestUtil.delete = deleteS;
1448
+
1459
1449
  var css_248z$1 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
1460
1450
  styleInject(css_248z$1);
1461
1451
 
1462
- var _excluded = ["flag", "checkResults"],
1452
+ var _excluded$1 = ["flag", "checkResults"],
1463
1453
  _excluded2 = ["flag", "checkResults"];
1464
1454
  // const luckysheet = window.luckysheet;
1465
1455
  var itemsTemp = [];
@@ -1722,7 +1712,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1722
1712
  }).map(function (_ref2) {
1723
1713
  var flag = _ref2.flag,
1724
1714
  checkResults = _ref2.checkResults,
1725
- item = _objectWithoutProperties(_ref2, _excluded);
1715
+ item = _objectWithoutProperties(_ref2, _excluded$1);
1726
1716
  return item;
1727
1717
  }),
1728
1718
  failData: resultData.filter(function (item) {
@@ -1768,7 +1758,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
1768
1758
  brandAuth: 'ctl-withAuth'
1769
1759
  };
1770
1760
  }
1771
- axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
1761
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
1772
1762
  columns: columns,
1773
1763
  data: resultData,
1774
1764
  checkStockNum: isCheckStockNum
@@ -2028,7 +2018,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2028
2018
  var css_248z$2 = ".luckysheet {\n overflow: hidden;\n}\n.luckysheet .luckysheet-work-area.luckysheet-noselected-text {\n display: none;\n}\n.sheet_table_top {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_top .menu_item_text {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.sheet_table_footer {\n height: 50px;\n background: #f2f2f2;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 20px;\n border: 1px solid #d8d8d8;\n}\n.sheet_table_text {\n color: #8f8f8f;\n}\n.sheet_table_dnd_text {\n background: #f2f2f2;\n border: 1px solid #d8d8d8;\n display: inline-block;\n width: 100px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";
2029
2019
  styleInject(css_248z$2);
2030
2020
 
2031
- var _excluded$1 = ["flag", "checkResults"],
2021
+ var _excluded$2 = ["flag", "checkResults"],
2032
2022
  _excluded2$1 = ["flag", "checkResults"];
2033
2023
  // const luckysheet = window.luckysheet;
2034
2024
  var itemsTemp$1 = [];
@@ -2292,7 +2282,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
2292
2282
  }).map(function (_ref2) {
2293
2283
  var flag = _ref2.flag,
2294
2284
  checkResults = _ref2.checkResults,
2295
- item = _objectWithoutProperties(_ref2, _excluded$1);
2285
+ item = _objectWithoutProperties(_ref2, _excluded$2);
2296
2286
  return item;
2297
2287
  }),
2298
2288
  failData: resultData.filter(function (item) {
@@ -2329,7 +2319,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
2329
2319
  var resultData = _this.getData().filter(function (d) {
2330
2320
  return ___default['default'].compact(Object.values(d)).length;
2331
2321
  });
2332
- axios__default['default'].post(validDataUrl, {
2322
+ requestUtil.post(validDataUrl, {
2333
2323
  columns: columns,
2334
2324
  data: resultData
2335
2325
  }).then(function (result) {
@@ -2606,7 +2596,8 @@ var css_248z$3 = ".query_input_show {\n display: flex;\n}\n.query_input_expand_
2606
2596
  styleInject(css_248z$3);
2607
2597
 
2608
2598
  var QueryMutipleInput = function QueryMutipleInput(_ref) {
2609
- var onValueChange = _ref.onValueChange;
2599
+ var onValueChange = _ref.onValueChange,
2600
+ _onPressEnter = _ref.onPressEnter;
2610
2601
  var _useState = React.useState(false),
2611
2602
  _useState2 = _slicedToArray(_useState, 2),
2612
2603
  isModalVisible = _useState2[0],
@@ -2669,7 +2660,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
2669
2660
  style: {
2670
2661
  width: 'calc(100% - 30px)'
2671
2662
  },
2672
- placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09"
2663
+ placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09",
2664
+ onPressEnter: function onPressEnter() {
2665
+ return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
2666
+ }
2673
2667
  }), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
2674
2668
  style: {
2675
2669
  width: '30px',
@@ -2719,7 +2713,7 @@ function ToCDB(str) {
2719
2713
  return tmp;
2720
2714
  }
2721
2715
 
2722
- var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n";
2716
+ var css_248z$4 = ".search_select_show {\n display: flex;\n}\n.search_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.search_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_wrapper {\n position: relative;\n display: flex;\n min-height: 60vh;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n}\n.search_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.search_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.search_select_wrapper_left {\n width: 28%;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-left: 20px;\n}\n.search_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.search_select_wrapper_right {\n width: 70%;\n margin-left: 1%;\n}\n.search_select_wrapper_right1 {\n width: 100%;\n margin-left: 20px;\n}\n.search_select_wrapper_right,\n.search_select_wrapper_right1 {\n overflow-x: auto;\n}\n.search_select_wrapper .select_list_columns {\n width: 100%;\n height: calc(60vh - 60px);\n overflow-y: auto;\n border: 1px solid #d8d8d8;\n}\n.search_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.search_select_wrapper .select_list_columns_formItems {\n padding: 0 20px;\n}\n.search_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px 0px;\n justify-content: flex-end;\n}\n.search_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 34px;\n line-height: 32px;\n background-color: #eee;\n margin-bottom: 10px;\n padding: 0 12px;\n}\n.search_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n";
2723
2717
  styleInject(css_248z$4);
2724
2718
 
2725
2719
  var handleSourceName = function handleSourceName(sName) {
@@ -3007,6 +3001,16 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3007
3001
  }
3008
3002
  });
3009
3003
  delete params[key];
3004
+ } else if (element && key.indexOf('*multiInput') >= 0) {
3005
+ var name = '',
3006
+ _value = element['value'];
3007
+ if (_value.indexOf(',') >= 0) {
3008
+ name = "qp-".concat(element['name'], "-in");
3009
+ } else {
3010
+ name = "qp-".concat(element['name'], "-like");
3011
+ }
3012
+ params[name] = _value;
3013
+ delete params[key];
3010
3014
  } else if (element && key.indexOf('*') >= 0) {
3011
3015
  var _dataParams7 = key.split('*');
3012
3016
  _dataParams7.forEach(function (value, index) {
@@ -3041,7 +3045,10 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3041
3045
  pageSize: pageSize,
3042
3046
  currentPage: currentPage
3043
3047
  }, otherParams), fixedParam), params);
3044
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams)), {
3048
+ if (_.isNil(queryParams[selectParamsKey])) {
3049
+ queryParams[selectParamsKey] = searchValue;
3050
+ }
3051
+ requestUtil.get("".concat(url, "?").concat(querystring.stringify(queryParams)), {
3045
3052
  headers: _objectSpread2({}, extralHeaders)
3046
3053
  }).then(function (result) {
3047
3054
  setFetching(false);
@@ -3368,8 +3375,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3368
3375
  if (heightTxt === '') {
3369
3376
  return text;
3370
3377
  }
3378
+ var searchString = _.escapeRegExp(heightTxt);
3371
3379
  // 前面filterOption 不区分大小写,这里用i
3372
- var regexp = new RegExp(heightTxt, 'gi');
3380
+ var regexp = new RegExp(searchString, 'gi');
3373
3381
  return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
3374
3382
  };
3375
3383
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
@@ -3602,9 +3610,10 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3602
3610
  }
3603
3611
  }), menu);
3604
3612
  },
3605
- notFoundContent: fetching ? /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
3606
- size: "small"
3607
- }) : /*#__PURE__*/React__default['default'].createElement("div", {
3613
+ notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
3614
+ size: "small",
3615
+ className: 'searchSelectSpin'
3616
+ })) : ( /*#__PURE__*/React__default['default'].createElement("div", {
3608
3617
  style: {
3609
3618
  textAlign: 'center'
3610
3619
  }
@@ -3616,7 +3625,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3616
3625
  style: {
3617
3626
  fontSize: '50px'
3618
3627
  }
3619
- })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5")),
3628
+ })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8BF7\u66F4\u6362\u5176\u4ED6\u5185\u5BB9\u518D\u8BD5"))),
3620
3629
  onPopupScroll: SelectScroll,
3621
3630
  style: {
3622
3631
  width: needModalTable ? 'calc(100% - 30px)' : 'calc(100%)'
@@ -3644,7 +3653,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3644
3653
  onClick: showModal,
3645
3654
  type: "primary"
3646
3655
  }, /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null))))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
3647
- width: '80%',
3656
+ width: "80%",
3648
3657
  title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
3649
3658
  visible: isModalVisible,
3650
3659
  onOk: handleOk,
@@ -3677,16 +3686,16 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3677
3686
  className: 'select_list_columns_formItems'
3678
3687
  }, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
3679
3688
  form: form,
3680
- layout: 'vertical',
3681
- key: 'modalForm'
3689
+ layout: "vertical",
3690
+ key: "modalForm"
3682
3691
  }, formItem(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm)))), /*#__PURE__*/React__default['default'].createElement("div", {
3683
3692
  className: 'select_list_searchButton'
3684
3693
  }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
3685
- key: 'reset',
3694
+ key: "reset",
3686
3695
  className: 'select_list_button_space',
3687
3696
  onClick: onResetTable
3688
3697
  }, "\u91CD\u7F6E"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
3689
- key: 'search',
3698
+ key: "search",
3690
3699
  type: "primary",
3691
3700
  onClick: onSearchTable
3692
3701
  }, "\u67E5\u8BE2"))), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -3699,14 +3708,14 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3699
3708
  }
3700
3709
  }, "\u641C\u7D22\u7ED3\u679C\u5171", /*#__PURE__*/React__default['default'].createElement("span", {
3701
3710
  style: themeColor
3702
- }, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? /*#__PURE__*/React__default['default'].createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React__default['default'].createElement("span", {
3711
+ }, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? ( /*#__PURE__*/React__default['default'].createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React__default['default'].createElement("span", {
3703
3712
  style: themeColor
3704
- }, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879") : ''), /*#__PURE__*/React__default['default'].createElement("div", {
3713
+ }, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879")) : ''), /*#__PURE__*/React__default['default'].createElement("div", {
3705
3714
  style: {
3706
3715
  color: 'rgba(127, 127, 127, 0.6470588235294118)'
3707
3716
  }
3708
3717
  }, selectMode ? '勾选后点击确定按钮完成选择' : '双击数据行或点击单选图标完成选择')), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
3709
- size: 'small',
3718
+ size: "small",
3710
3719
  rowSelection: rowSelection,
3711
3720
  columns: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns,
3712
3721
  dataSource: tableData,
@@ -3724,14 +3733,14 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3724
3733
  }
3725
3734
  };
3726
3735
  }
3727
- }), selectMode ? /*#__PURE__*/React__default['default'].createElement("div", {
3736
+ }), selectMode ? ( /*#__PURE__*/React__default['default'].createElement("div", {
3728
3737
  className: 'select_list_selectAll'
3729
3738
  }, /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
3730
3739
  indeterminate: indeterminate,
3731
3740
  checked: checkedAll,
3732
3741
  onChange: onChangeCheckAll,
3733
3742
  disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
3734
- }), " \u5168\u9009\u6240\u6709\u9875\u9762") : ''))))));
3743
+ }), ' ', "\u5168\u9009\u6240\u6709\u9875\u9762")) : ''))))));
3735
3744
  });
3736
3745
 
3737
3746
  var css_248z$5 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
@@ -3754,7 +3763,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
3754
3763
  var css_248z$6 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
3755
3764
  styleInject(css_248z$6);
3756
3765
 
3757
- var _excluded$2 = ["className", "style"];
3766
+ var _excluded$3 = ["className", "style"];
3758
3767
  var Search = antd.Input.Search;
3759
3768
  var DragHandle = reactSortableHoc.SortableHandle(function () {
3760
3769
  return /*#__PURE__*/React__default['default'].createElement("img", {
@@ -3800,7 +3809,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
3800
3809
  fixed: item.fixed
3801
3810
  };
3802
3811
  });
3803
- axios__default['default']({
3812
+ requestUtil({
3804
3813
  url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
3805
3814
  method: 'POST',
3806
3815
  data: {
@@ -4108,7 +4117,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
4108
4117
  _this.DraggableBodyRow = function (_ref2) {
4109
4118
  var className = _ref2.className,
4110
4119
  style = _ref2.style,
4111
- restProps = _objectWithoutProperties(_ref2, _excluded$2);
4120
+ restProps = _objectWithoutProperties(_ref2, _excluded$3);
4112
4121
  var sortDataSource = _this.state.sortDataSource;
4113
4122
  // function findIndex base on Table rowKey props and should always be a right array index
4114
4123
  var index = sortDataSource.findIndex(function (x) {
@@ -4394,33 +4403,33 @@ var noEmptyArray = function noEmptyArray(arr) {
4394
4403
  var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
4395
4404
  var _ref;
4396
4405
  var defaultWidth = 200;
4406
+ if (Array.isArray(item.key) || Array.isArray(item.dataIndex)) return defaultWidth;
4397
4407
  var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
4398
- if (lowerCaseKey) {
4399
- switch (true) {
4400
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4401
- defaultWidth = 60;
4402
- break;
4403
- case lowerCaseKey.indexOf('number') > -1:
4404
- case lowerCaseKey.indexOf('quantity') > -1:
4405
- case lowerCaseKey.indexOf('amount') > -1:
4406
- defaultWidth = 90;
4407
- break;
4408
- case lowerCaseKey.indexOf('no') > -1:
4409
- defaultWidth = 200;
4410
- break;
4411
- case lowerCaseKey.indexOf('code') > -1:
4412
- defaultWidth = 170;
4413
- break;
4414
- case lowerCaseKey.indexOf('time') > -1:
4415
- defaultWidth = 130;
4416
- break;
4417
- case lowerCaseKey.indexOf('status') > -1:
4418
- defaultWidth = 100;
4419
- break;
4420
- case lowerCaseKey.indexOf('user') > -1:
4421
- defaultWidth = 130;
4422
- break;
4423
- }
4408
+ if (!lowerCaseKey) return defaultWidth;
4409
+ switch (true) {
4410
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4411
+ defaultWidth = 60;
4412
+ break;
4413
+ case lowerCaseKey.indexOf('number') > -1:
4414
+ case lowerCaseKey.indexOf('quantity') > -1:
4415
+ case lowerCaseKey.indexOf('amount') > -1:
4416
+ defaultWidth = 90;
4417
+ break;
4418
+ case lowerCaseKey.indexOf('no') > -1:
4419
+ defaultWidth = 200;
4420
+ break;
4421
+ case lowerCaseKey.indexOf('code') > -1:
4422
+ defaultWidth = 170;
4423
+ break;
4424
+ case lowerCaseKey.indexOf('time') > -1:
4425
+ defaultWidth = 130;
4426
+ break;
4427
+ case lowerCaseKey.indexOf('status') > -1:
4428
+ defaultWidth = 100;
4429
+ break;
4430
+ case lowerCaseKey.indexOf('user') > -1:
4431
+ defaultWidth = 130;
4432
+ break;
4424
4433
  }
4425
4434
  return defaultWidth;
4426
4435
  };
@@ -4447,7 +4456,7 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
4447
4456
  };
4448
4457
  var loadSelectSource = function loadSelectSource(url, params) {
4449
4458
  return new Promise(function (resolve, reject) {
4450
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
4459
+ requestUtil.get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
4451
4460
  result = result.data;
4452
4461
  if (judgeIsRequestError(result)) {
4453
4462
  antd.message.error(result.msg);
@@ -4512,10 +4521,11 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
4512
4521
  });
4513
4522
  };
4514
4523
 
4515
- var _excluded$3 = ["onResize", "width"];
4524
+ var _excluded$4 = ["onResize", "width"],
4525
+ _excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
4516
4526
  var checkSpuMatchCode = function checkSpuMatchCode(data) {
4517
4527
  return new Promise(function (resolve, reject) {
4518
- axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4528
+ requestUtil.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4519
4529
  result = result.data;
4520
4530
  if (judgeIsRequestError(result)) {
4521
4531
  antd.message.error(result.msg);
@@ -4531,7 +4541,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
4531
4541
  var ResizeableTitle = function ResizeableTitle(props) {
4532
4542
  var onResize = props.onResize,
4533
4543
  width = props.width,
4534
- restProps = _objectWithoutProperties(props, _excluded$3);
4544
+ restProps = _objectWithoutProperties(props, _excluded$4);
4535
4545
  if (!width) {
4536
4546
  return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
4537
4547
  }
@@ -4566,6 +4576,7 @@ var AddSelect = function AddSelect(props) {
4566
4576
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
4567
4577
  _props$getPopupContai = props.getPopupContainer,
4568
4578
  onSaveCallback = props.onSaveCallback,
4579
+ onCancelCallback = props.onCancelCallback,
4569
4580
  _props$buttonText = props.buttonText,
4570
4581
  buttonText = _props$buttonText === void 0 ? '添加' : _props$buttonText,
4571
4582
  _props$buttonProps = props.buttonProps,
@@ -4576,7 +4587,8 @@ var AddSelect = function AddSelect(props) {
4576
4587
  _props$businessType = props.businessType,
4577
4588
  businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
4578
4589
  _props$isAllowRepeate = props.isAllowRepeatedSelect,
4579
- isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
4590
+ isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
4591
+ clearTitle = props.clearTitle;
4580
4592
  var _ref = requestConfig || {},
4581
4593
  url = _ref.url,
4582
4594
  otherParams = _ref.otherParams,
@@ -4729,6 +4741,7 @@ var AddSelect = function AddSelect(props) {
4729
4741
  setShowToChooseColumns = _useState46[1];
4730
4742
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
4731
4743
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
4744
+ // FIXME: 特殊业务逻辑
4732
4745
  var checkSelectChange = /*#__PURE__*/function () {
4733
4746
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4734
4747
  var result;
@@ -4810,6 +4823,7 @@ var AddSelect = function AddSelect(props) {
4810
4823
  }();
4811
4824
  var setBusinessDefaultValue = function setBusinessDefaultValue(list, recordList) {
4812
4825
  var result = list;
4826
+ // FIXME: 特殊业务逻辑
4813
4827
  if (businessType == 'spu' && ((recordList === null || recordList === void 0 ? void 0 : recordList.some(function (i) {
4814
4828
  var _i$colorValues;
4815
4829
  return (i === null || i === void 0 ? void 0 : (_i$colorValues = i.colorValues) === null || _i$colorValues === void 0 ? void 0 : _i$colorValues.length) == 1;
@@ -4848,6 +4862,7 @@ var AddSelect = function AddSelect(props) {
4848
4862
  var _record$packingUnitLi, _record$packingUnitLi2;
4849
4863
  // let
4850
4864
  if (record.needFocus === true && currentIndex === 0) ;
4865
+ // FIXME: 特殊业务逻辑
4851
4866
  var precisionObj = businessType == 'skc' ? {
4852
4867
  precision: 0
4853
4868
  } : {};
@@ -5120,6 +5135,16 @@ var AddSelect = function AddSelect(props) {
5120
5135
  }
5121
5136
  });
5122
5137
  delete params[key];
5138
+ } else if (element && key.indexOf('*multiInput') >= 0) {
5139
+ var name = '',
5140
+ _value = element['value'];
5141
+ if (_value.indexOf(',') >= 0) {
5142
+ name = "qp-".concat(element['name'], "-in");
5143
+ } else {
5144
+ name = "qp-".concat(element['name'], "-like");
5145
+ }
5146
+ params[name] = _value;
5147
+ delete params[key];
5123
5148
  } else if (element && key.indexOf('*') >= 0) {
5124
5149
  var _dataParams7 = key.split('*');
5125
5150
  _dataParams7.forEach(function (value, index) {
@@ -5154,7 +5179,18 @@ var AddSelect = function AddSelect(props) {
5154
5179
  pageSize: pageSize,
5155
5180
  currentPage: currentPage
5156
5181
  }, otherParams), fixedParam), params);
5157
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
5182
+ //todo 为了满足单个使用like查询,多个含,的使用in查询
5183
+ if (!queryParams.unConvert) {
5184
+ Object.keys(queryParams).forEach(function (key) {
5185
+ if (String(queryParams[key]).includes(',')) {
5186
+ if (key.includes('like')) {
5187
+ queryParams[key.replace('like', 'in')] = queryParams[key];
5188
+ delete queryParams[key];
5189
+ }
5190
+ }
5191
+ });
5192
+ }
5193
+ requestUtil.get("".concat(url).concat(url.includes("?") ? "&" : "?").concat(querystring.stringify(queryParams))).then(function (result) {
5158
5194
  setFetching(false);
5159
5195
  result = result.data;
5160
5196
  if (judgeIsRequestError(result)) {
@@ -5349,27 +5385,31 @@ var AddSelect = function AddSelect(props) {
5349
5385
  setTableFormParams({});
5350
5386
  setIsModalVisible(false);
5351
5387
  setTableData([]);
5388
+ onCancelCallback && onCancelCallback();
5352
5389
  // if (selectMode) {
5353
5390
  // run();
5354
5391
  // }
5355
5392
  };
5356
5393
  var onSearchTable = function onSearchTable() {
5357
- var params = form.getFieldsValue();
5358
- setTableFormParams(params);
5359
- getData(_objectSpread2(_objectSpread2({}, params), {}, {
5360
- pageSize: tableInitPageSize
5361
- }), 2);
5362
- // if (selectMode) {
5363
- // getData(params)
5364
- // }
5394
+ form.validateFields().then(function () {
5395
+ var params = form.getFieldsValue();
5396
+ setTableFormParams(params);
5397
+ getData(_objectSpread2(_objectSpread2({}, params), {}, {
5398
+ pageSize: tableInitPageSize
5399
+ }), 2);
5400
+ });
5365
5401
  };
5366
5402
  var onResetTable = function onResetTable() {
5367
5403
  form.resetFields();
5368
5404
  setTableFormParams({});
5369
- getData({
5370
- pageSize: tableInitPageSize,
5371
- currentPage: 1
5372
- }, 2);
5405
+ form.validateFields().then(function () {
5406
+ getData({
5407
+ pageSize: tableInitPageSize,
5408
+ currentPage: 1
5409
+ }, 2);
5410
+ }).catch(function () {
5411
+ setTableData([]);
5412
+ });
5373
5413
  };
5374
5414
  var handleTableChange = function handleTableChange(pagination) {
5375
5415
  getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
@@ -5437,62 +5477,69 @@ var AddSelect = function AddSelect(props) {
5437
5477
  var formItem = function formItem(list) {
5438
5478
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
5439
5479
  return list.map(function (i, index) {
5440
- var _i$field, _i$field3, _i$field5, _i$field6, _i$field7;
5441
- if ((i === null || i === void 0 ? void 0 : i.type) === 'select' || (i === null || i === void 0 ? void 0 : (_i$field = i.field) === null || _i$field === void 0 ? void 0 : _i$field.type) === 'select') {
5442
- var _i$field2, _i$initialSource;
5443
- return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
5444
- name: i.name,
5445
- label: i.label,
5446
- key: i.name
5447
- }, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
5480
+ var name = i.name,
5481
+ label = i.label,
5482
+ field = i.field,
5483
+ _i$type = i.type,
5484
+ type = _i$type === void 0 ? '' : _i$type,
5485
+ filterFormItem = i.filterFormItem,
5486
+ _i$initialSource = i.initialSource,
5487
+ initialSource = _i$initialSource === void 0 ? [] : _i$initialSource,
5488
+ restProps = _objectWithoutProperties(i, _excluded2$2);
5489
+ if (type === 'custom_filter_form_item') return filterFormItem;
5490
+ if (type === 'select' || (field === null || field === void 0 ? void 0 : field.type) === 'select') {
5491
+ return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
5492
+ name: name,
5493
+ label: label,
5494
+ key: name
5495
+ }, restProps), /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
5448
5496
  style: {
5449
5497
  width: '100%'
5450
5498
  },
5451
5499
  placeholder: "\u8BF7\u9009\u62E9"
5452
- }, i === null || i === void 0 ? void 0 : (_i$field2 = i.field) === null || _i$field2 === void 0 ? void 0 : _i$field2.props), (i === null || i === void 0 ? void 0 : (_i$initialSource = i.initialSource) === null || _i$initialSource === void 0 ? void 0 : _i$initialSource.length) && (i === null || i === void 0 ? void 0 : i.initialSource.map(function (m) {
5500
+ }, field === null || field === void 0 ? void 0 : field.props), initialSource.length && initialSource.map(function (m) {
5453
5501
  return /*#__PURE__*/React__default['default'].createElement(Option$2, {
5454
5502
  value: m.value,
5455
5503
  key: m.value
5456
5504
  }, m.text);
5457
- }))));
5505
+ })));
5458
5506
  }
5459
- if ((i === null || i === void 0 ? void 0 : i.type) === 'treeSelect' || (i === null || i === void 0 ? void 0 : (_i$field3 = i.field) === null || _i$field3 === void 0 ? void 0 : _i$field3.type) === 'treeSelect') {
5460
- var _i$field4;
5461
- return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
5462
- name: i.name,
5463
- label: i.label,
5464
- key: i.name
5465
- }, /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2({
5507
+ if (type === 'treeSelect' || (field === null || field === void 0 ? void 0 : field.type) === 'treeSelect') {
5508
+ return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
5509
+ name: name,
5510
+ label: label,
5511
+ key: name
5512
+ }, restProps), /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2({
5466
5513
  style: {
5467
5514
  width: '100%'
5468
5515
  },
5469
5516
  placeholder: "\u8BF7\u9009\u62E9"
5470
- }, i === null || i === void 0 ? void 0 : (_i$field4 = i.field) === null || _i$field4 === void 0 ? void 0 : _i$field4.props)));
5471
- }
5472
- if ((i === null || i === void 0 ? void 0 : i.type) === 'BusinessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'BusinessSearchSelect') {
5473
- return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
5474
- name: i.name,
5475
- label: i.label,
5476
- key: i.name
5477
- }, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, _objectSpread2({}, i.field.props))));
5478
- }
5479
- if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.type) === 'multipleQueryInput') {
5480
- return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
5481
- name: i.name,
5482
- label: i.label,
5483
- key: i.name
5484
- }, /*#__PURE__*/React__default['default'].createElement(QueryMutipleInput, {
5517
+ }, field === null || field === void 0 ? void 0 : field.props)));
5518
+ }
5519
+ if (type === 'BusinessSearchSelect' || (field === null || field === void 0 ? void 0 : field.type) === 'BusinessSearchSelect') {
5520
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
5521
+ name: name,
5522
+ label: label,
5523
+ key: name
5524
+ }, restProps), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, _objectSpread2({}, field === null || field === void 0 ? void 0 : field.props))));
5525
+ }
5526
+ if (type === 'multipleQueryInput' || (field === null || field === void 0 ? void 0 : field.type) === 'multipleQueryInput') {
5527
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
5528
+ name: name,
5529
+ label: label,
5530
+ key: name
5531
+ }, restProps), /*#__PURE__*/React__default['default'].createElement(QueryMutipleInput, {
5485
5532
  onValueChange: function onValueChange(value) {
5486
- form.setFieldsValue(_defineProperty({}, i.name, value));
5533
+ form.setFieldsValue(_defineProperty({}, name, value));
5487
5534
  }
5488
5535
  })));
5489
5536
  }
5490
5537
  // 默认type是input
5491
- return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
5492
- name: i.name,
5493
- label: i.label,
5494
- key: i.name
5495
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
5538
+ return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, _objectSpread2({
5539
+ name: name,
5540
+ label: label,
5541
+ key: name
5542
+ }, restProps), /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
5496
5543
  id: index === 0 ? "first-query" : 'index',
5497
5544
  style: {
5498
5545
  width: '100%'
@@ -5505,7 +5552,7 @@ var AddSelect = function AddSelect(props) {
5505
5552
  placeholder: "\u8BF7\u8F93\u5165",
5506
5553
  allowClear: true,
5507
5554
  maxLength: 100
5508
- }, i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.props)));
5555
+ }, field === null || field === void 0 ? void 0 : field.props)));
5509
5556
  });
5510
5557
  } else {
5511
5558
  return null;
@@ -5757,7 +5804,7 @@ var AddSelect = function AddSelect(props) {
5757
5804
  style: _objectSpread2(_objectSpread2({}, themeColor), {}, {
5758
5805
  cursor: 'pointer'
5759
5806
  })
5760
- }, "\u6E05\u7A7A\u6240\u9009\u5546\u54C1")))), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
5807
+ }, clearTitle !== null && clearTitle !== void 0 ? clearTitle : '清空所选商品')))), /*#__PURE__*/React__default['default'].createElement(antd.Table, {
5761
5808
  size: 'small',
5762
5809
  columns: showSelectedCol,
5763
5810
  dataSource: popvalue,
@@ -5796,7 +5843,7 @@ var getSkuImg = function getSkuImg(record) {
5796
5843
  return imgShow;
5797
5844
  };
5798
5845
 
5799
- var _excluded$4 = ["onResize", "width"];
5846
+ var _excluded$5 = ["onResize", "width"];
5800
5847
  var _this = undefined;
5801
5848
  var InputElement = function InputElement(_ref) {
5802
5849
  var _record$packingUnitLi, _record$packingUnitLi2;
@@ -5824,7 +5871,7 @@ var InputElement = function InputElement(_ref) {
5824
5871
  setValue = _useState6[1];
5825
5872
  var inputRef = React.useRef(false);
5826
5873
  var onSerchdata = function onSerchdata(name) {
5827
- axios__default['default'].get("/items/sku/pager/v2?".concat(querystring.stringify({
5874
+ requestUtil.get("/items/sku/pager/v2?".concat(querystring.stringify({
5828
5875
  'skuCodeAndSkuName': name,
5829
5876
  'pageSize': 100,
5830
5877
  'qp-combination-eq': false,
@@ -6299,7 +6346,7 @@ var InputElement = function InputElement(_ref) {
6299
6346
  var ResizeableTitle$1 = function ResizeableTitle(props) {
6300
6347
  var onResize = props.onResize,
6301
6348
  width = props.width,
6302
- restProps = _objectWithoutProperties(props, _excluded$4);
6349
+ restProps = _objectWithoutProperties(props, _excluded$5);
6303
6350
  if (!width) {
6304
6351
  return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
6305
6352
  }
@@ -6508,7 +6555,7 @@ var BillEntry = function BillEntry(_ref3) {
6508
6555
  brandAuth: 'ctl-withAuth'
6509
6556
  };
6510
6557
  }
6511
- return axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
6558
+ return requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
6512
6559
  columns: ["skuCode", "quantity"],
6513
6560
  data: resultData.map(function (i) {
6514
6561
  return {
@@ -6792,16 +6839,6 @@ var nodeType = [{
6792
6839
  text: '商店',
6793
6840
  value: 100
6794
6841
  }];
6795
- var personDataSourceType = [{
6796
- text: "平台自建",
6797
- value: 10
6798
- }, {
6799
- text: "MDM",
6800
- value: 20
6801
- }, {
6802
- text: "IAM",
6803
- value: 30
6804
- }];
6805
6842
 
6806
6843
  var getDicData = function getDicData(dicCode) {
6807
6844
  var dicData = {};
@@ -6843,7 +6880,7 @@ var getDictionaryTextByValue = function getDictionaryTextByValue(dicCode, value)
6843
6880
  };
6844
6881
  var loadSelectSource$1 = function loadSelectSource(url, params) {
6845
6882
  return new Promise(function (resolve, reject) {
6846
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
6883
+ requestUtil.get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
6847
6884
  result = result.data;
6848
6885
  if (judgeIsRequestError(result)) {
6849
6886
  antd.message.error(result.msg);
@@ -6881,7 +6918,6 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
6881
6918
  case 'salesOrg':
6882
6919
  case 'employee2':
6883
6920
  case 'role':
6884
- case 'person':
6885
6921
  result = '/user';
6886
6922
  break;
6887
6923
  case 'deliveryMode':
@@ -9094,53 +9130,6 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
9094
9130
  }]
9095
9131
  }, modalTableBusProps);
9096
9132
  }
9097
- // 人员选择器
9098
- if (type === 'person') {
9099
- requestConfig = _objectSpread2({
9100
- url: "".concat(prefixUrl.selectPrefix, "/person"),
9101
- filter: 'qp-code,name-orGroup,like',
9102
- mappingTextField: 'name',
9103
- mappingTextShowKeyField: 'code',
9104
- mappingValueField: 'code',
9105
- otherParams: {
9106
- sorter: 'desc-id'
9107
- },
9108
- sourceName: 'personCode'
9109
- }, requestConfigProp);
9110
- tableSearchForm = [{
9111
- name: 'qp-name-like',
9112
- label: '姓名'
9113
- }, {
9114
- name: 'qp-code-like',
9115
- label: '员工工号'
9116
- }, {
9117
- name: 'qp-phone-like',
9118
- label: '手机号'
9119
- }];
9120
- modalTableProps = _objectSpread2({
9121
- modalTableTitle: '添加人员',
9122
- tableSearchForm: tableSearchForm,
9123
- tableColumns: [{
9124
- title: '姓名',
9125
- dataIndex: 'name'
9126
- }, {
9127
- title: '员工工号',
9128
- dataIndex: 'code'
9129
- }, {
9130
- title: '员工类型',
9131
- dataIndex: 'dataSource',
9132
- render: function render(text) {
9133
- var _personDataSourceType;
9134
- return (_personDataSourceType = personDataSourceType.find(function (i) {
9135
- return i.value == text;
9136
- })) === null || _personDataSourceType === void 0 ? void 0 : _personDataSourceType.text;
9137
- }
9138
- }, {
9139
- title: '手机号',
9140
- dataIndex: 'phone'
9141
- }]
9142
- }, modalTableBusProps);
9143
- }
9144
9133
  return {
9145
9134
  modalTableProps: modalTableProps,
9146
9135
  requestConfig: requestConfig,
@@ -9202,24 +9191,28 @@ function handleSelectColumn(c, parentProps) {
9202
9191
  var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
9203
9192
  var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
9204
9193
  // 仅展示内容
9194
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9205
9195
  if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
9206
9196
  result = result.filter(function (i) {
9207
9197
  return showColumns.includes(i.dataIndex);
9208
9198
  });
9209
9199
  }
9210
9200
  // 过滤不需要展示内容
9201
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9211
9202
  if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
9212
9203
  result = result.filter(function (i) {
9213
9204
  return !exceptColumns.includes(i.dataIndex);
9214
9205
  });
9215
9206
  }
9216
9207
  // 追加(最好不用这个,当组件不固定时候会有影响)
9208
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9217
9209
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
9218
9210
  additionColumns.forEach(function (i) {
9219
9211
  result.splice(i.position, 0, i.column);
9220
9212
  });
9221
9213
  }
9222
9214
  // 覆盖内容
9215
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9223
9216
  if (coverColumns === null || coverColumns === void 0 ? void 0 : coverColumns.length) {
9224
9217
  result = coverColumns;
9225
9218
  }
@@ -9231,18 +9224,21 @@ function handleSearchForm(c, parentProps) {
9231
9224
  var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
9232
9225
  var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
9233
9226
  // 仅展示内容
9227
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9234
9228
  if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
9235
9229
  result = result.filter(function (i) {
9236
9230
  return showTableSearchForm.includes(i.name);
9237
9231
  });
9238
9232
  }
9239
9233
  // 过滤不需要展示内容
9234
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9240
9235
  if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
9241
9236
  result = result.filter(function (i) {
9242
9237
  return !exceptTableSearchForm.includes(i.name);
9243
9238
  });
9244
9239
  }
9245
9240
  // 覆盖内容
9241
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9246
9242
  if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
9247
9243
  result = coverTableSearchForm;
9248
9244
  }
@@ -9255,18 +9251,21 @@ function handleFormSearchSourceLoad(c, parentProps) {
9255
9251
  var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
9256
9252
  var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
9257
9253
  // 仅展示内容
9254
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9258
9255
  if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
9259
9256
  result = result.filter(function (i) {
9260
9257
  return showTableFormSearchSourceLoad.includes(i.url);
9261
9258
  });
9262
9259
  }
9263
9260
  // 过滤不需要展示内容
9261
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9264
9262
  if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
9265
9263
  result = result.filter(function (i) {
9266
9264
  return !exceptTableFormSearchSourceLoad.includes(i.url);
9267
9265
  });
9268
9266
  }
9269
9267
  // 覆盖内容
9268
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115617
9270
9269
  if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
9271
9270
  result = coverTableFormSearchSourceLoad;
9272
9271
  }
@@ -9298,6 +9297,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9298
9297
  showTitle: false
9299
9298
  },
9300
9299
  dataIndex: 'itemEancode',
9300
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115627
9301
9301
  render: function render(text) {
9302
9302
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9303
9303
  placement: "topLeft",
@@ -9347,6 +9347,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9347
9347
  },
9348
9348
  render: function render(text, record) {
9349
9349
  var _record$packingUnitLi;
9350
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115636
9350
9351
  if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : _record$packingUnitLi.length) {
9351
9352
  var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
9352
9353
  record.selectUnitCode = basePackUnit.unitCode;
@@ -9429,6 +9430,10 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9429
9430
  }, text);
9430
9431
  }
9431
9432
  }]), [{
9433
+ title: 'SKC编码',
9434
+ width: 150,
9435
+ dataIndex: 'skcCode'
9436
+ }, {
9432
9437
  title: '所属SPU名称',
9433
9438
  width: 100,
9434
9439
  ellipsis: {
@@ -9523,10 +9528,19 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9523
9528
  var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
9524
9529
  var initialTableSearchForm = [{
9525
9530
  name: 'qp-skuCode-like',
9526
- label: 'SKU编码'
9531
+ label: 'SKU编码',
9532
+ type: 'multipleQueryInput'
9527
9533
  }, {
9528
9534
  name: 'qp-skuName-like',
9529
9535
  label: 'SKU名称'
9536
+ }, {
9537
+ name: 'qp-skcCode-like',
9538
+ label: 'SKC编码',
9539
+ type: 'multipleQueryInput'
9540
+ }, {
9541
+ name: 'qp-itemCode-like',
9542
+ label: 'SPU编码',
9543
+ type: 'multipleQueryInput'
9530
9544
  }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
9531
9545
  name: 'qp-code-in',
9532
9546
  label: '商品条码',
@@ -9654,7 +9668,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9654
9668
  setPropertyList = _useState6[1];
9655
9669
  React.useEffect(function () {
9656
9670
  // type: 1 尺码组; 2 配码组
9657
- axios__default['default'].get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
9671
+ requestUtil.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
9658
9672
  result = result.data;
9659
9673
  if (judgeIsRequestError(result)) {
9660
9674
  antd.message.error(result.msg);
@@ -9711,7 +9725,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9711
9725
  var initialPromiseLoadList = [{
9712
9726
  url: "/items/item/propertyValue/sizeBySkcConfig",
9713
9727
  params: {
9714
- pageSize: 10000,
9728
+ pageSize: 50,
9715
9729
  currentPage: 1,
9716
9730
  type: 2 // 类型:1尺码;2颜色
9717
9731
  },
@@ -9721,7 +9735,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9721
9735
  }, {
9722
9736
  url: "/items/category/queryCategoryTree",
9723
9737
  params: {
9724
- pageSize: 5000,
9738
+ pageSize: 50,
9725
9739
  currentPage: 1
9726
9740
  },
9727
9741
  resType: 'treeList',
@@ -9972,7 +9986,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9972
9986
  React.useEffect(function () {
9973
9987
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
9974
9988
  // type: 1 尺码组; 2 配码组
9975
- axios__default['default'].get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
9989
+ requestUtil.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
9976
9990
  result = result.data;
9977
9991
  if (judgeIsRequestError(result)) {
9978
9992
  antd.message.error(result.msg);
@@ -10057,7 +10071,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
10057
10071
  }, {
10058
10072
  url: "/items/category/queryCategoryTree",
10059
10073
  params: {
10060
- pageSize: 5000,
10074
+ pageSize: 50,
10061
10075
  currentPage: 1
10062
10076
  },
10063
10077
  resType: 'treeList',
@@ -10395,7 +10409,7 @@ function getStorageVale(storageKeyString) {
10395
10409
  return "";
10396
10410
  }
10397
10411
 
10398
- var _excluded$5 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
10412
+ var _excluded$6 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
10399
10413
  var TreeSearchSelect = function TreeSearchSelect(props) {
10400
10414
  var _useState = React.useState([]),
10401
10415
  _useState2 = _slicedToArray(_useState, 2),
@@ -10437,7 +10451,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10437
10451
  } : _props$style,
10438
10452
  getTreeData = props.getTreeData,
10439
10453
  disabled = props.disabled,
10440
- restProps = _objectWithoutProperties(props, _excluded$5);
10454
+ restProps = _objectWithoutProperties(props, _excluded$6);
10441
10455
  var url = remoteSource.url,
10442
10456
  headers = remoteSource.headers,
10443
10457
  _remoteSource$paramsK = remoteSource.paramsKey,
@@ -10478,7 +10492,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10478
10492
  /* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
10479
10493
  var handleSearch = function handleSearch(q) {
10480
10494
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
10481
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
10495
+ requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
10482
10496
  headers: headers
10483
10497
  }).then( /*#__PURE__*/function () {
10484
10498
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
@@ -10837,11 +10851,11 @@ var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXA
10837
10851
  var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
10838
10852
  styleInject(css_248z$9);
10839
10853
 
10840
- var _excluded$6 = ["children"],
10841
- _excluded2$2 = ["children"];
10854
+ var _excluded$7 = ["children"],
10855
+ _excluded2$3 = ["children"];
10842
10856
  var Field = function Field(_ref) {
10843
10857
  var children = _ref.children,
10844
- props = _objectWithoutProperties(_ref, _excluded$6);
10858
+ props = _objectWithoutProperties(_ref, _excluded$7);
10845
10859
  var _React$useState = React__default['default'].useState(true),
10846
10860
  _React$useState2 = _slicedToArray(_React$useState, 2),
10847
10861
  fieldGroupVisible = _React$useState2[0],
@@ -10887,8 +10901,10 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
10887
10901
  var _this$props = this.props,
10888
10902
  _this$props$children = _this$props.children,
10889
10903
  children = _this$props$children === void 0 ? [] : _this$props$children,
10890
- props = _objectWithoutProperties(_this$props, _excluded2$2);
10891
- var cardGroups = children.filter(function (item) {
10904
+ props = _objectWithoutProperties(_this$props, _excluded2$3);
10905
+ // 兼容容器下只有一个dom元素非数组的情况
10906
+ var domList = Array.isArray(children) ? children : [children];
10907
+ var cardGroups = domList.filter(function (item) {
10892
10908
  var _item$props, _item$props2;
10893
10909
  return (item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.id) && (item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.title);
10894
10910
  });
@@ -10910,6 +10926,12 @@ var GuideWrapper = /*#__PURE__*/function (_Component) {
10910
10926
  block: 'center',
10911
10927
  behavior: 'smooth'
10912
10928
  });
10929
+ // 高亮
10930
+ var heightLight = currentDom.getElementsByClassName('ant-card-head-title');
10931
+ heightLight[0].style.backgroundColor = '#2065c7';
10932
+ setTimeout(function () {
10933
+ heightLight[0].style.backgroundColor = '';
10934
+ }, 800);
10913
10935
  }
10914
10936
  }, item.props.title);
10915
10937
  })), /*#__PURE__*/React__default['default'].createElement("div", {
@@ -10927,11 +10949,13 @@ GuideWrapper.Field = Field;
10927
10949
  var exportlogo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAAB0JJREFUeF7tnFtsFFUYx/9nehFaaMGooDZWrTvdRAwoog8SbdUHL4nRwJPxRtRo1GC8JxLwghDvGowvGi8RDC/iAw/6YLDVaLwiqKjbWVepbUhRDLTSUtsyx/zX85FhmHZnlu6yu51JGtjd2dnz/eb/Xc539qyC79BaW0op1/u01rqqt7e3tqamxvKfXw6PR0dH3aamphGl1EGfXUfYqoJOyGQyja7rXuO67mVa69OVUg0AagFUlQOAgDESxIjWekAptdOyrC2WZW1uaWnp9wvgEBB5wXGcJQDWaa1PAaABDALYC2DUT7hc4FDhAGoAzAZQD0AppXYBWG7b9iYvlCwQD4yVWusnCcGyrHUANluWtau2tnb/4ODg6KxZsw5zpXIBsm/fPqu+vr5mZGRkhuu6vNFU/3LCUUqtsm17tTBQpMc7T2Vord8D8JtSaolt29u11iRJlVTMITY5jrNAa70JwJlKqaVGKVVZhaTT6Qat9Q6t9Ryl1MW2bX/V0dFRzdfa2tpEFeUOJmtrZ2dnNjG0t7ePOY5zodb6U6XUbqXUvEQiMSBAbnBdd71lWWsTicQKwuAbKkYWAYaIjel0eo3ruo9alnVjIpHYkAXS1dX1FoBbtNaLk8nk5+JGlQxEbEylUhcppT4D8HZra+uyLBDHcTq01gurq6vntbS0/BFUi1QaHLExk8mcNjY2tkMptdW27XYG1WrHcb4GcMK0adPmNzc3751KQLq7u2cPDw9/D2CPbdsXqJ6enulDQ0PfAJiutV6QTCb/qcTsElCRZzNoKpWaqZTaDuBAXV3dItXX11ff39//rVKqqqGh4dy5c+cOTiUgtH9gYGCb1vpgY2Pj+TGQGMj/ziNeUO4KYVElBeJRFYqVAEQmogKCj/OGUu5AxPizALwAYA0AlgqcxR7W4whbL5UzELoJ51NnAODk8zxOQAGwTcF0mReUYgHh4CjjiaQcVeYC5HoA77LRY5pVvQCuAvBjPlCKAeSofDqH1OXadwF4lc0q0/DJALguHyiFBiIDngdgKYCmAAN5p/8F8BCA/SEA8Hx/IGW8uM/EEboRFdltlPJzFKUUEohIejGADwHMMC7j7dfSTfj4AIBmAH+Zx3734TkSE4JcSz7rVgCvmc/h+WmjlJ/Gue4R/AsJRD7sIwCXe+R8WP86BxDp5kszajqAswGcCuBEAHOMiwjkYQA3AUgCYN+GzaxfAVwLgFAE3LhCLBQQcZU6AAxybOJygOsB7ARwnCfA8lwGxOcADHlG6oXBTHIHgEsAnGMawmEyqcSU9032yfmeYgDZbdyFbkGDOIPOlRLl9ZMA3MMuOIDGAJfzG0glETD/GFd4nS7jNr+UikIECOXcDuBLI3N/4SRuIbJmIN4AYL7HOAKg0n43QfNP85jPMzDTNehK4i6EwedSxzqGeF2Gg+aaB4FQIRNVkqIMxpyNbE55Yg9djS7HjjgzB42WoMx/7zdZRpTBIu0KE1hzKfKQ0orhMmGBiDIYND8GQHehcXyea0FPA+jz3Wl5z4MmBgUF0tAwCjnbjaoQOZ9xYguAhQYGDbyTjV4DRs6TWEFlrATARTSBQSVdadyEWSbSKkGpKEQG/hSAFR7jWFe8adInIXhXCAUO647bjebpJqxQfwgRuAMzTikAEdm3AvjE1BYc7EsmLhAWXSeoWJMY8rqpSi/NVxlCp5SAiPQ5th4ze90TMjuwYOPaLOcwkWLGeE3mye6YRY0hVAHrkwVmgI8AeDakcd6pgPzfW9RFWog/1goRcMws35npOwu4toiNHinGIhkfFESONRCRt/Q0OEbWKQRCMPm0DhYBYAeNKtlmapbQ1ykVIJy6v2ju2AcArg7pLkE3mc0iAubxBIDHw5TspRJUJd0+A+BhM6h3ANxsyntOzsIeogJmnNvMm5jC15YjkJcB3GuMeMMYFLWoEiCsW5aZa60CsLocgdBd6DY8YiAAXjHTfAIRl5nSCnkMwN1G2pQ848mUBCIB83gA/M4r48AAgL/zSLkVEUPCZpAw51UUEKk0aXiuBa3x4JQlEM5GvzAlel5rrxNIhUDY+2DvhHUMj5JMu9JTZUedJXmYJnMYF/GfE9QfKUkgbPvNNEsNzCRbTY/1qCdiPiIEwsqWEFj682BLgU2nnOsxhS7d5fr8Yj27V1w4EheJuqgdVS00nmC49sOKlS4UOoUXanJHI+SuPADgedP+K8a+GiqPn8MVO3b5ubuhJBQiPs39NFxsYrP4ZM9CddQ7H+Z8WSdm4Ka78HsioWFkU5zZ2DDZHTPv4AUM3Yd/hT7oklwDOhQWonxgsYAQymQH0Vx2RlJGsYJqUGrMZchkvJ534C6GQibDwKJdIwbiQx0DiYFM7H3jKiTeHuLbHhJvIPJtIKKw4i1mni1mBBJvQvRtQkyn0/E2Ve821Xgjs2cjc7zVPWCre/xjCJ4fQ/DM/rI/LhL/XIa3oWB+XSb+QZUAKN7Cdyr95M5/xzmpLRDiZSsAAAAASUVORK5CYII=";
10928
10950
 
10929
10951
  var ExportIcon = function ExportIcon(_ref) {
10930
- var request = _ref.request,
10931
- tableRef = _ref.tableRef;
10932
- var url = request.url,
10933
- params = request.params,
10934
- others = request.others;
10952
+ var exportRequest = _ref.request,
10953
+ tableRef = _ref.tableRef,
10954
+ allowSelect = _ref.allowSelect,
10955
+ columnsRowKey = _ref.columnsRowKey;
10956
+ var url = exportRequest.url,
10957
+ params = exportRequest.params,
10958
+ others = exportRequest.others;
10935
10959
  return /*#__PURE__*/React__default['default'].createElement("div", {
10936
10960
  style: {
10937
10961
  cursor: 'pointer'
@@ -10942,21 +10966,27 @@ var ExportIcon = function ExportIcon(_ref) {
10942
10966
  width: 32,
10943
10967
  src: exportlogo,
10944
10968
  onClick: function onClick() {
10945
- var _tableRef$current, _convertedParams$sele, _convertedParams$sele2;
10969
+ var _tableRef$current;
10946
10970
  var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
10947
10971
  var requestData;
10948
10972
  if (typeof params === 'function') {
10949
10973
  requestData = _objectSpread2({}, _.omit(params(convertedParams), 'selectedRows'));
10974
+ requestData.pageSize = 100000;
10950
10975
  } else if (_typeof(params) === 'object') {
10951
10976
  requestData = _objectSpread2({}, params);
10952
10977
  }
10953
10978
  if (!params) {
10954
10979
  requestData = _.omit(convertedParams, 'selectedRows');
10980
+ requestData.pageSize = 100000;
10981
+ }
10982
+ if (allowSelect) {
10983
+ var _convertedParams$sele, _convertedParams$sele2;
10984
+ var selectKey = (allowSelect === null || allowSelect === void 0 ? void 0 : allowSelect.key) || columnsRowKey;
10985
+ requestData["qp-".concat(selectKey, "-in")] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
10986
+ return d[selectKey];
10987
+ })) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
10955
10988
  }
10956
- requestData['qp-id-in'] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
10957
- return d.id;
10958
- })) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
10959
- axios__default['default'](_objectSpread2({
10989
+ requestUtil(_objectSpread2({
10960
10990
  url: url,
10961
10991
  method: 'POST',
10962
10992
  data: requestData
@@ -10976,7 +11006,7 @@ var ExportIcon = function ExportIcon(_ref) {
10976
11006
  var css_248z$a = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
10977
11007
  styleInject(css_248z$a);
10978
11008
 
10979
- var _excluded$7 = ["className", "style"];
11009
+ var _excluded$8 = ["className", "style"];
10980
11010
  var Search$1 = antd.Input.Search;
10981
11011
  var DragHandle$1 = reactSortableHoc.SortableHandle(function () {
10982
11012
  return /*#__PURE__*/React__default['default'].createElement("img", {
@@ -11022,7 +11052,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
11022
11052
  fixed: item.fixed
11023
11053
  };
11024
11054
  });
11025
- axios__default['default']({
11055
+ requestUtil({
11026
11056
  url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
11027
11057
  method: 'POST',
11028
11058
  data: {
@@ -11088,6 +11118,17 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
11088
11118
  })
11089
11119
  });
11090
11120
  };
11121
+ _this.isColumnsChange = function () {
11122
+ var pre = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11123
+ var next = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
11124
+ var preKeyStr = pre.map(function (item) {
11125
+ return item.key || item.dataIndex;
11126
+ }).join(',');
11127
+ var nextKeyStr = next.map(function (item) {
11128
+ return item.key || item.dataIndex;
11129
+ }).join(',');
11130
+ return preKeyStr !== nextKeyStr;
11131
+ };
11091
11132
  _this.columns = [{
11092
11133
  title: '列名称',
11093
11134
  dataIndex: 'title',
@@ -11344,7 +11385,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
11344
11385
  _this.DraggableBodyRow = function (_ref2) {
11345
11386
  var className = _ref2.className,
11346
11387
  style = _ref2.style,
11347
- restProps = _objectWithoutProperties(_ref2, _excluded$7);
11388
+ restProps = _objectWithoutProperties(_ref2, _excluded$8);
11348
11389
  var sortDataSource = _this.state.sortDataSource;
11349
11390
  // function findIndex base on Table rowKey props and should always be a right array index
11350
11391
  var index = sortDataSource.findIndex(function (x) {
@@ -11437,8 +11478,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
11437
11478
  _createClass(SortableTable, [{
11438
11479
  key: "componentWillReceiveProps",
11439
11480
  value: function componentWillReceiveProps(nextProps) {
11440
- var _this$props3, _this$props4;
11441
- if (((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource) && JSON.stringify((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource) != JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
11481
+ var _this$props3;
11482
+ if (this.isColumnsChange((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.datasource, nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
11442
11483
  this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
11443
11484
  }
11444
11485
  }
@@ -11611,8 +11652,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
11611
11652
  return SortableTable;
11612
11653
  }(React__default['default'].Component);
11613
11654
 
11614
- var _excluded$8 = ["onResize", "width"],
11615
- _excluded2$3 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
11655
+ var _excluded$9 = ["onResize", "width"],
11656
+ _excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
11616
11657
  var Text = antd.Typography.Text;
11617
11658
  var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11618
11659
  _inherits(ColumnSettingSulaTable, _React$Component);
@@ -11724,7 +11765,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11724
11765
  _this.ResizeableTitle = function (props) {
11725
11766
  var onResize = props.onResize,
11726
11767
  width = props.width,
11727
- restProps = _objectWithoutProperties(props, _excluded$8);
11768
+ restProps = _objectWithoutProperties(props, _excluded$9);
11728
11769
  if (!width) {
11729
11770
  return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
11730
11771
  }
@@ -11783,7 +11824,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11783
11824
  dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
11784
11825
  _this$props3$scroll = _this$props3.scroll,
11785
11826
  scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
11786
- restProps = _objectWithoutProperties(_this$props3, _excluded2$3);
11827
+ restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
11787
11828
  var otherTableInfo = _objectSpread2({}, restProps);
11788
11829
  var showSummary = null;
11789
11830
  if (this.state.showColumns.length) {
@@ -11858,8 +11899,8 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11858
11899
  return ColumnSettingSulaTable;
11859
11900
  }(React__default['default'].Component);
11860
11901
 
11861
- var _excluded$9 = ["onResize", "width"],
11862
- _excluded2$4 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
11902
+ var _excluded$a = ["onResize", "width"],
11903
+ _excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
11863
11904
  var Text$1 = antd.Typography.Text;
11864
11905
  var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
11865
11906
  _inherits(ColumnSettingTable, _React$Component);
@@ -11970,7 +12011,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
11970
12011
  _this.ResizeableTitle = function (props) {
11971
12012
  var onResize = props.onResize,
11972
12013
  width = props.width,
11973
- restProps = _objectWithoutProperties(props, _excluded$9);
12014
+ restProps = _objectWithoutProperties(props, _excluded$a);
11974
12015
  if (!width) {
11975
12016
  return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
11976
12017
  }
@@ -12026,7 +12067,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
12026
12067
  dynamicColumns = _this$props3$dynamicC === void 0 ? [] : _this$props3$dynamicC,
12027
12068
  _this$props3$scroll = _this$props3.scroll,
12028
12069
  scroll = _this$props3$scroll === void 0 ? {} : _this$props3$scroll,
12029
- restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
12070
+ restProps = _objectWithoutProperties(_this$props3, _excluded2$5);
12030
12071
  var otherTableInfo = _objectSpread2({}, restProps);
12031
12072
  var showSummary = null;
12032
12073
  if (this.state.showColumns.length) {
@@ -12182,12 +12223,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
12182
12223
  var css_248z$c = "";
12183
12224
  styleInject(css_248z$c);
12184
12225
 
12185
- var _excluded$a = ["message", "type"];
12226
+ var _excluded$b = ["message", "type"];
12186
12227
  var CommonAlert = (function (props) {
12187
12228
  var message = props.message,
12188
12229
  _props$type = props.type,
12189
12230
  type = _props$type === void 0 ? 'info' : _props$type,
12190
- reset = _objectWithoutProperties(props, _excluded$a);
12231
+ reset = _objectWithoutProperties(props, _excluded$b);
12191
12232
  return /*#__PURE__*/React__default['default'].createElement("div", {
12192
12233
  style: {
12193
12234
  width: '100%',
@@ -12208,7 +12249,7 @@ var CommonAlert = (function (props) {
12208
12249
  }, reset)));
12209
12250
  });
12210
12251
 
12211
- var _excluded$b = ["children"];
12252
+ var _excluded$c = ["children"];
12212
12253
  var iconMap = {
12213
12254
  edit: /*#__PURE__*/React__default['default'].createElement("img", {
12214
12255
  src: editIcon
@@ -12230,7 +12271,7 @@ var index$4 = (function (props) {
12230
12271
  _useState2 = _slicedToArray(_useState, 1),
12231
12272
  id = _useState2[0];
12232
12273
  var children = props.children,
12233
- restProps = _objectWithoutProperties(props, _excluded$b);
12274
+ restProps = _objectWithoutProperties(props, _excluded$c);
12234
12275
  return /*#__PURE__*/React__default['default'].createElement("div", {
12235
12276
  id: id,
12236
12277
  className: 'detail_page_wrapper'
@@ -12440,7 +12481,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
12440
12481
  var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 20px;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
12441
12482
  styleInject(css_248z$d);
12442
12483
 
12443
- var _excluded$c = ["children"];
12484
+ var _excluded$d = ["children"];
12444
12485
  var index$5 = (function (props) {
12445
12486
  var _useLocation = umi.useLocation(),
12446
12487
  pathname = _useLocation.pathname;
@@ -12448,7 +12489,7 @@ var index$5 = (function (props) {
12448
12489
  _useState2 = _slicedToArray(_useState, 1),
12449
12490
  id = _useState2[0];
12450
12491
  var children = props.children,
12451
- restProps = _objectWithoutProperties(props, _excluded$c);
12492
+ restProps = _objectWithoutProperties(props, _excluded$d);
12452
12493
  return /*#__PURE__*/React__default['default'].createElement("div", {
12453
12494
  id: id,
12454
12495
  className: 'home_page_wrapper'
@@ -12551,7 +12592,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
12551
12592
  var css_248z$e = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n";
12552
12593
  styleInject(css_248z$e);
12553
12594
 
12554
- var _excluded$d = ["className", "style"];
12595
+ var _excluded$e = ["className", "style"];
12555
12596
  var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
12556
12597
  return /*#__PURE__*/React__default['default'].createElement("img", {
12557
12598
  width: 25,
@@ -12598,7 +12639,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12598
12639
  };
12599
12640
  }) : '';
12600
12641
  return new Promise(function (resolve, reject) {
12601
- axios__default['default']({
12642
+ requestUtil({
12602
12643
  url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
12603
12644
  method: 'POST',
12604
12645
  data: {
@@ -12646,8 +12687,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12646
12687
  currentSetting[0].detail = JSON.stringify(configvalue);
12647
12688
  } else {
12648
12689
  configArray.push({
12649
- "code": bsTableCode,
12650
- "detail": JSON.stringify(configvalue)
12690
+ code: bsTableCode,
12691
+ detail: JSON.stringify(configvalue)
12651
12692
  });
12652
12693
  }
12653
12694
  localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
@@ -12919,10 +12960,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12919
12960
  // this.patchUserColumnConfig('');
12920
12961
  // return;
12921
12962
  // }
12922
- return _this.patchUserColumnConfig(sortDataSource);
12963
+ _this.patchUserColumnConfig(sortDataSource);
12923
12964
  };
12924
12965
  _this.handleCancel = function (e) {
12925
- console.log(e);
12926
12966
  _this.setState({
12927
12967
  visible: false
12928
12968
  });
@@ -12985,7 +13025,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12985
13025
  _this.DraggableBodyRow = function (_ref2) {
12986
13026
  var className = _ref2.className,
12987
13027
  style = _ref2.style,
12988
- restProps = _objectWithoutProperties(_ref2, _excluded$d);
13028
+ restProps = _objectWithoutProperties(_ref2, _excluded$e);
12989
13029
  var sortDataSource = _this.state.sortDataSource;
12990
13030
  // function findIndex base on Table rowKey props and should always be a right array index
12991
13031
  var index = sortDataSource.findIndex(function (x) {
@@ -13002,11 +13042,11 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13002
13042
  if (!e.target.checked) {
13003
13043
  _this.setState({
13004
13044
  sortDataSource: sortDataSource.filter(function (item) {
13005
- return item.title !== title;
13045
+ return renderToString(item.title) !== renderToString(title);
13006
13046
  }),
13007
13047
  isDefaultValue: false,
13008
13048
  dataSource: _toConsumableArray(dataSource.map(function (item) {
13009
- if (item.title === title) {
13049
+ if (renderToString(item.title) === renderToString(title)) {
13010
13050
  return _objectSpread2(_objectSpread2({}, item), {}, {
13011
13051
  hidden: true
13012
13052
  });
@@ -13019,7 +13059,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13019
13059
  var _fixedRight = [];
13020
13060
  var noFixedSortSource = [];
13021
13061
  var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
13022
- return item.title === title;
13062
+ return renderToString(item.title) === renderToString(title);
13023
13063
  }).map(function (source) {
13024
13064
  return _objectSpread2(_objectSpread2({}, source), {}, {
13025
13065
  hidden: false
@@ -13038,7 +13078,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13038
13078
  sortDataSource: [].concat(_fixedLeft, noFixedSortSource, _fixedRight),
13039
13079
  isDefaultValue: false,
13040
13080
  dataSource: _toConsumableArray(dataSource.map(function (item) {
13041
- if (item.title === title) {
13081
+ if (renderToString(item.title) === renderToString(title)) {
13042
13082
  return _objectSpread2(_objectSpread2({}, item), {}, {
13043
13083
  hidden: false
13044
13084
  });
@@ -13129,8 +13169,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13129
13169
  visible = _this$state5.visible,
13130
13170
  onSearchSort = _this$state5.onSearchSort;
13131
13171
  var seatchDataSource = dataSource.filter(function (item) {
13132
- var _item$title;
13133
- return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.indexOf(searchDataSource || '')) > -1;
13172
+ var _renderToString, _renderToString$index;
13173
+ return ((_renderToString = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString === void 0 ? void 0 : (_renderToString$index = _renderToString.indexOf) === null || _renderToString$index === void 0 ? void 0 : _renderToString$index.call(_renderToString, searchDataSource || '')) > -1;
13134
13174
  });
13135
13175
  return /*#__PURE__*/React__default['default'].createElement("div", {
13136
13176
  className: 'sort_table_wrapper'
@@ -13147,7 +13187,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13147
13187
  style: {
13148
13188
  marginRight: 0
13149
13189
  }
13150
- }, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13190
+ }, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13151
13191
  key: "back",
13152
13192
  onClick: this.handleResetSetting
13153
13193
  }, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
@@ -13156,7 +13196,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13156
13196
  style: {
13157
13197
  marginRight: 0
13158
13198
  }
13159
- }, "\u53D6\u6D88"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13199
+ }, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13160
13200
  key: "submit",
13161
13201
  type: "primary",
13162
13202
  onClick: this.handleOk
@@ -13223,8 +13263,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13223
13263
  }
13224
13264
  }, item.title);
13225
13265
  }) : dataSource.filter(function (item) {
13226
- var _item$title2, _item$title3;
13227
- return (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : _item$title2.indexOf('人')) === -1 && (item === null || item === void 0 ? void 0 : (_item$title3 = item.title) === null || _item$title3 === void 0 ? void 0 : _item$title3.indexOf('日期')) === -1;
13266
+ var _title$indexOf, _title$indexOf2;
13267
+ var title = renderToString(item.title);
13268
+ return (title === null || title === void 0 ? void 0 : (_title$indexOf = title.indexOf) === null || _title$indexOf === void 0 ? void 0 : _title$indexOf.call(title, '人')) === -1 && (title === null || title === void 0 ? void 0 : (_title$indexOf2 = title.indexOf) === null || _title$indexOf2 === void 0 ? void 0 : _title$indexOf2.call(title, '日期')) === -1;
13228
13269
  }).map(function (item) {
13229
13270
  return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
13230
13271
  checked: !item.hidden,
@@ -13243,8 +13284,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13243
13284
  }, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
13244
13285
  className: 'sort_table_column_all'
13245
13286
  }, _toConsumableArray(dataSource).filter(function (item) {
13246
- var _item$title4, _item$title5;
13247
- return (item === null || item === void 0 ? void 0 : (_item$title4 = item.title) === null || _item$title4 === void 0 ? void 0 : _item$title4.indexOf('人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title5 = item.title) === null || _item$title5 === void 0 ? void 0 : _item$title5.indexOf('日期')) > -1;
13287
+ var _item$title, _item$title$indexOf, _item$title2, _item$title2$indexOf;
13288
+ return (item === null || item === void 0 ? void 0 : (_item$title = item.title) === null || _item$title === void 0 ? void 0 : (_item$title$indexOf = _item$title.indexOf) === null || _item$title$indexOf === void 0 ? void 0 : _item$title$indexOf.call(_item$title, '人')) > -1 || (item === null || item === void 0 ? void 0 : (_item$title2 = item.title) === null || _item$title2 === void 0 ? void 0 : (_item$title2$indexOf = _item$title2.indexOf) === null || _item$title2$indexOf === void 0 ? void 0 : _item$title2$indexOf.call(_item$title2, '日期')) > -1;
13248
13289
  }).map(function (item) {
13249
13290
  return /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
13250
13291
  checked: !item.hidden,
@@ -13280,8 +13321,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13280
13321
  pagination: false,
13281
13322
  showHeader: false,
13282
13323
  dataSource: onSearchSort ? sortDataSource.filter(function (item) {
13283
- var _item$title6;
13284
- return (item === null || item === void 0 ? void 0 : (_item$title6 = item.title) === null || _item$title6 === void 0 ? void 0 : _item$title6.indexOf(onSearchSort)) > -1;
13324
+ var _renderToString2;
13325
+ return ((_renderToString2 = renderToString(item === null || item === void 0 ? void 0 : item.title)) === null || _renderToString2 === void 0 ? void 0 : _renderToString2.indexOf(onSearchSort)) > -1;
13285
13326
  }) : sortDataSource,
13286
13327
  columns: this.columns,
13287
13328
  rowKey: "key",
@@ -13303,7 +13344,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
13303
13344
  return SortableTable;
13304
13345
  }(React__default['default'].Component);
13305
13346
 
13306
- var _excluded$e = ["className", "style"];
13347
+ var _excluded$f = ["className", "style"];
13307
13348
  var DragHandle$3 = reactSortableHoc.SortableHandle(function () {
13308
13349
  return /*#__PURE__*/React__default['default'].createElement("img", {
13309
13350
  width: 25,
@@ -13346,7 +13387,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13346
13387
  hidden: item.hidden
13347
13388
  };
13348
13389
  }) : '';
13349
- axios__default['default']({
13390
+ requestUtil({
13350
13391
  url: handleRequestUrl('/user', '/appConfig/saveQueryCriteria', appRequestConfig),
13351
13392
  method: 'POST',
13352
13393
  data: {
@@ -13555,7 +13596,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13555
13596
  _this.DraggableBodyRow = function (_ref2) {
13556
13597
  var className = _ref2.className,
13557
13598
  style = _ref2.style,
13558
- restProps = _objectWithoutProperties(_ref2, _excluded$e);
13599
+ restProps = _objectWithoutProperties(_ref2, _excluded$f);
13559
13600
  var sortDataSource = _this.state.sortDataSource;
13560
13601
  var index = sortDataSource.findIndex(function (x) {
13561
13602
  return x.name === restProps['data-row-key'];
@@ -13690,7 +13731,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13690
13731
  style: {
13691
13732
  marginRight: 0
13692
13733
  }
13693
- }, "\u6062\u590D\u9ED8\u8BA4"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13734
+ }, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13694
13735
  key: "back",
13695
13736
  onClick: this.handleResetSetting
13696
13737
  }, "\u91CD\u7F6E\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
@@ -13699,7 +13740,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13699
13740
  style: {
13700
13741
  marginRight: 0
13701
13742
  }
13702
- }, "\u53D6\u6D88"), ",", /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13743
+ }, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13703
13744
  key: "submit",
13704
13745
  type: "primary",
13705
13746
  onClick: this.handleOk
@@ -13811,12 +13852,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13811
13852
  return SearchItemTable;
13812
13853
  }(React__default['default'].Component);
13813
13854
 
13814
- var _excluded$f = ["onResize", "width"];
13855
+ var css_248z$f = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
13856
+ styleInject(css_248z$f);
13857
+
13858
+ var _excluded$g = ["onResize", "width"];
13815
13859
  var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
13860
+ var Text$2 = antd.Typography.Text;
13816
13861
  var ResizeableTitle$2 = function ResizeableTitle(props) {
13817
13862
  var onResize = props.onResize,
13818
13863
  width = props.width,
13819
- restProps = _objectWithoutProperties(props, _excluded$f);
13864
+ restProps = _objectWithoutProperties(props, _excluded$g);
13820
13865
  if (!width) {
13821
13866
  return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
13822
13867
  }
@@ -13830,80 +13875,52 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
13830
13875
  }, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
13831
13876
  };
13832
13877
  var BsSulaQueryTable = (function (props) {
13833
- var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
13834
- var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
13835
- var config = localStorage.getItem(type) || '[]';
13836
- var configArray = JSON.parse(config);
13837
- var configSetting = configArray.filter(function (item) {
13838
- return item.code === bsTableCode;
13839
- });
13840
- if (configSetting.length && configSetting[0].detail) {
13841
- return JSON.parse(configSetting[0].detail);
13842
- }
13843
- return [];
13844
- };
13845
- var getInitialSearchFieldsInfo = function getInitialSearchFieldsInfo() {
13846
- //获取搜索字段的缓存配置
13847
- var _props$fields = props.fields,
13848
- fields = _props$fields === void 0 ? [] : _props$fields;
13849
- var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
13850
- var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
13851
- var inner = fields.filter(function (inneritem) {
13852
- var innerKey = Array.isArray(inneritem.name) ? JSON.stringify(inneritem.name) : inneritem.name;
13853
- var itemKey = Array.isArray(item.name) ? JSON.stringify(item.name) : item.name;
13854
- return innerKey && innerKey === itemKey;
13855
- })[0];
13856
- return _objectSpread2(_objectSpread2({}, inner), item);
13857
- }) : fields;
13858
- return _toConsumableArray(showSearchFields);
13859
- };
13878
+ var _props$expandable, _value$exportConfig7;
13879
+ var _props$isPage = props.isPage,
13880
+ pagination = props.pagination,
13881
+ tableCode = props.tableCode;
13860
13882
  var refs = React.useRef(null);
13861
13883
  var _useState = React.useState(''),
13862
13884
  _useState2 = _slicedToArray(_useState, 2),
13863
13885
  pagePath = _useState2[0],
13864
13886
  setPagePath = _useState2[1];
13865
13887
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
13866
- var _useState3 = React.useState(props.columns.filter(function (col) {
13867
- return !col.hidden;
13868
- }).map(function (d) {
13869
- return Array.isArray(d.key || d.dataIndex) ? JSON.stringify(d.key || d.dataIndex) : d.key || d.dataIndex;
13870
- })),
13871
- _useState4 = _slicedToArray(_useState3, 2),
13872
- checkedList = _useState4[0],
13873
- setCheckedList = _useState4[1];
13888
+ var checkedList = props.columns.filter(function (col) {
13889
+ return !col.hidden;
13890
+ }).map(function (d) {
13891
+ return Array.isArray(d.key || d.dataIndex) ? JSON.stringify(d.key || d.dataIndex) : d.key || d.dataIndex;
13892
+ });
13874
13893
  var _useLocation = umi.useLocation(),
13875
- pathname = _useLocation.pathname;
13876
- var _useState5 = React.useState(Number(Math.random().toString().substr(2, 0) + Date.now()).toString(36)),
13877
- _useState6 = _slicedToArray(_useState5, 1),
13878
- id = _useState6[0];
13879
- var _useState7 = React.useState(false),
13880
- _useState8 = _slicedToArray(_useState7, 2),
13881
- isFullScreen = _useState8[0],
13882
- setIsFnllScreen = _useState8[1];
13894
+ pathname = _useLocation.pathname,
13895
+ _useLocation$state = _useLocation.state,
13896
+ state = _useLocation$state === void 0 ? {} : _useLocation$state;
13897
+ var _useState3 = React.useState(false),
13898
+ _useState4 = _slicedToArray(_useState3, 2),
13899
+ isFullScreen = _useState4[0],
13900
+ setIsFnllScreen = _useState4[1];
13883
13901
  // @ts-nocheck
13884
- var _useState9 = React.useState(props),
13902
+ var value = props;
13903
+ var _useState5 = React.useState([]),
13904
+ _useState6 = _slicedToArray(_useState5, 2),
13905
+ showColumn = _useState6[0],
13906
+ setShowColumns = _useState6[1]; // 列字段
13907
+ var _useState7 = React.useState(props.fields || []),
13908
+ _useState8 = _slicedToArray(_useState7, 2),
13909
+ showSearchFields = _useState8[0],
13910
+ setShowSearchFields = _useState8[1]; //搜索项字段
13911
+ var _useState9 = React.useState([]),
13885
13912
  _useState10 = _slicedToArray(_useState9, 2),
13886
- value = _useState10[0],
13887
- setValue = _useState10[1];
13888
- var _useState11 = React.useState([]),
13913
+ showExportColumn = _useState10[0],
13914
+ setShowExportColumns = _useState10[1]; // 导出列字段
13915
+ var _useState11 = React.useState('100vh'),
13889
13916
  _useState12 = _slicedToArray(_useState11, 2),
13890
- showColumn = _useState12[0],
13891
- setShowColumns = _useState12[1]; // 列字段
13892
- var originSearchFields = getInitialSearchFieldsInfo();
13893
- var _useState13 = React.useState(originSearchFields),
13894
- _useState14 = _slicedToArray(_useState13, 2),
13895
- showSearchFields = _useState14[0],
13896
- setShowSearchFields = _useState14[1]; //搜索项字段
13897
- var _props$isPage = props.isPage,
13898
- pagination = props.pagination,
13899
- tableCode = props.tableCode,
13900
- appRequestConfig = props.appRequestConfig;
13901
- var _useState15 = React.useState('100vh'),
13902
- _useState16 = _slicedToArray(_useState15, 2),
13903
- height = _useState16[0],
13904
- setHeight = _useState16[1];
13917
+ height = _useState12[0],
13918
+ setHeight = _useState12[1];
13905
13919
  var sortTableRef = React.useRef(null);
13906
13920
  var searchTableRef = React.useRef(null);
13921
+ var exportTableRef = React.useRef(null);
13922
+ var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
13923
+ var bsTableCodeExport = "".concat(bsTableCode, "___Export"); //设置导出列字段的唯一标识
13907
13924
  // 获取table高度
13908
13925
  var getTableHeight = function getTableHeight() {
13909
13926
  setTimeout(function () {
@@ -13916,7 +13933,6 @@ var BsSulaQueryTable = (function (props) {
13916
13933
  var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
13917
13934
  var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
13918
13935
  setHeight(h);
13919
- setValue(_objectSpread2({}, value));
13920
13936
  }, 0);
13921
13937
  };
13922
13938
  //监测是否按下esc键
@@ -13927,6 +13943,18 @@ var BsSulaQueryTable = (function (props) {
13927
13943
  if (isFull == undefined) isFull = false;
13928
13944
  return isFull;
13929
13945
  }
13946
+ var getConfigFromlocalstorage = function getConfigFromlocalstorage(type) {
13947
+ var tableCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : bsTableCode;
13948
+ var config = localStorage.getItem(type) || '[]';
13949
+ var configArray = JSON.parse(config);
13950
+ var configSetting = configArray.filter(function (item) {
13951
+ return item.code === tableCode;
13952
+ });
13953
+ if (configSetting.length && configSetting[0].detail) {
13954
+ return JSON.parse(configSetting[0].detail);
13955
+ }
13956
+ return [];
13957
+ };
13930
13958
  var setInitialTableInfo = function setInitialTableInfo() {
13931
13959
  var resourceCodeArray = {};
13932
13960
  if (props.actionsRender && props.actionsRender.length) {
@@ -13969,22 +13997,23 @@ var BsSulaQueryTable = (function (props) {
13969
13997
  }
13970
13998
  });
13971
13999
  }
13972
- setValue(_objectSpread2(_objectSpread2({}, value), {}, {
13973
- columns: _toConsumableArray(props.columns)
13974
- }));
13975
- var columns = props.columns;
14000
+ var columns = props.columns,
14001
+ exportColumns = props.exportColumns;
14002
+ var getShowColumns = function getShowColumns(columnConfig, columns) {
14003
+ return columnConfig.length ? columnConfig.map(function (item) {
14004
+ var inner = columns.filter(function (inneritem) {
14005
+ var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
14006
+ var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
14007
+ return innerKey && innerKey === itemKey;
14008
+ })[0];
14009
+ return _objectSpread2(_objectSpread2({}, inner), item);
14010
+ }) : columns.filter(function (column) {
14011
+ var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
14012
+ return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
14013
+ });
14014
+ };
13976
14015
  var columnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION);
13977
- var showColumns = columnConfig.length ? columnConfig.map(function (item) {
13978
- var inner = columns.filter(function (inneritem) {
13979
- var innerKey = Array.isArray(inneritem.key || inneritem.dataIndex) ? JSON.stringify(inneritem.key || inneritem.dataIndex) : inneritem.key || inneritem.dataIndex;
13980
- var itemKey = Array.isArray(item.key || item.dataIndex) ? JSON.stringify(item.key || item.dataIndex) : item.key || item.dataIndex;
13981
- return innerKey && innerKey === itemKey;
13982
- })[0];
13983
- return _objectSpread2(_objectSpread2({}, inner), item);
13984
- }) : columns.filter(function (column) {
13985
- var columnKey = Array.isArray(column.key || column.dataIndex) ? JSON.stringify(column.key || column.dataIndex) : column.key || column.dataIndex;
13986
- return column.notRegularCheckList || checkedList.indexOf(columnKey) > -1;
13987
- });
14016
+ var showColumns = getShowColumns(columnConfig, columns);
13988
14017
  showColumns.forEach(function (item, index) {
13989
14018
  item.width = item.width || getItemDefaultWidth(item);
13990
14019
  handleBssulaColumnsSpecialParams(item);
@@ -13996,11 +14025,24 @@ var BsSulaQueryTable = (function (props) {
13996
14025
  };
13997
14026
  });
13998
14027
  setShowColumns(_toConsumableArray(showColumns));
14028
+ var exportColumnConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.COLUMN_CONDITION, bsTableCodeExport);
14029
+ var showExportColumns = getShowColumns(exportColumnConfig, columns);
14030
+ showExportColumns.forEach(function (item, index) {
14031
+ item.width = item.width || getItemDefaultWidth(item);
14032
+ handleBssulaColumnsSpecialParams(item);
14033
+ item.onHeaderCell = function (column) {
14034
+ return _objectSpread2(_objectSpread2({}, item), {}, {
14035
+ width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
14036
+ onResize: handleResize(index)
14037
+ });
14038
+ };
14039
+ });
14040
+ setShowExportColumns(_toConsumableArray(showExportColumns));
13999
14041
  };
14000
14042
  var setInitialSearchFieldsInfo = function setInitialSearchFieldsInfo() {
14001
14043
  //获取搜索字段的缓存配置
14002
- var _props$fields2 = props.fields,
14003
- fields = _props$fields2 === void 0 ? [] : _props$fields2;
14044
+ var _props$fields = props.fields,
14045
+ fields = _props$fields === void 0 ? [] : _props$fields;
14004
14046
  var searchFieldsConfig = getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION);
14005
14047
  var showSearchFields = searchFieldsConfig.length ? searchFieldsConfig.map(function (item) {
14006
14048
  var inner = fields.filter(function (inneritem) {
@@ -14093,7 +14135,7 @@ var BsSulaQueryTable = (function (props) {
14093
14135
  }
14094
14136
  },
14095
14137
  initialSelectedRowKeys: value.initialSelectedRowKeys || [],
14096
- expandable: value.expandable,
14138
+ expandable: props.expandable,
14097
14139
  scroll: {
14098
14140
  x: props.overScrollX || 'max-content',
14099
14141
  y: height
@@ -14141,7 +14183,7 @@ var BsSulaQueryTable = (function (props) {
14141
14183
  }
14142
14184
  };
14143
14185
  var handleTimeValue = function handleTimeValue() {
14144
- var _sortTableRef$current, _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
14186
+ var _sortTableRef$current, _value$exportConfig, _exportTableRef$curre, _value$exportConfig2, _value$exportConfig3, _value$exportConfig4, _value$exportConfig5, _value$exportConfig6;
14145
14187
  var actionsRender = value.actionsRender || [];
14146
14188
  actionsRender = [].concat(_toConsumableArray(actionsRender), [{
14147
14189
  type: 'text',
@@ -14160,9 +14202,14 @@ var BsSulaQueryTable = (function (props) {
14160
14202
  setShowSearchFields: setShowSearchFields,
14161
14203
  showSearchFields: showSearchFields,
14162
14204
  datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
14163
- bsTableCode: bsTableCode,
14164
- appRequestConfig: appRequestConfig
14165
- }))),
14205
+ bsTableCode: bsTableCode
14206
+ })), (value === null || value === void 0 ? void 0 : (_value$exportConfig = value.exportConfig) === null || _value$exportConfig === void 0 ? void 0 : _value$exportConfig.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement("div", {
14207
+ onClick: exportTableRef === null || exportTableRef === void 0 ? void 0 : (_exportTableRef$curre = exportTableRef.current) === null || _exportTableRef$curre === void 0 ? void 0 : _exportTableRef$curre.showModal,
14208
+ style: {
14209
+ fontSize: 14,
14210
+ textAlign: 'center'
14211
+ }
14212
+ }, "\u5BFC\u51FA\u5B57\u6BB5\u8BBE\u7F6E")))),
14166
14213
  placement: "bottomRight"
14167
14214
  }, /*#__PURE__*/React__default['default'].createElement("span", {
14168
14215
  className: "ant-dropdown-link"
@@ -14195,12 +14242,14 @@ var BsSulaQueryTable = (function (props) {
14195
14242
  }, {
14196
14243
  type: 'text',
14197
14244
  props: {
14198
- children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$exportConfig = value.exportConfig) === null || _value$exportConfig === void 0 ? void 0 : _value$exportConfig.code) ? ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
14245
+ children: (value === null || value === void 0 ? void 0 : value.exportConfig) && authFn(value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.code) ? ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
14199
14246
  request: {
14200
- url: "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.type),
14201
- params: (value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.params) || queryParams
14247
+ url: (value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.type),
14248
+ params: value === null || value === void 0 ? void 0 : (_value$exportConfig5 = value.exportConfig) === null || _value$exportConfig5 === void 0 ? void 0 : _value$exportConfig5.params
14202
14249
  },
14203
- tableRef: props.forwardedRef || refs
14250
+ tableRef: props.forwardedRef || refs,
14251
+ allowSelect: value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.allowSelect,
14252
+ columnsRowKey: value === null || value === void 0 ? void 0 : value.rowKey
14204
14253
  })) : ( /*#__PURE__*/React__default['default'].createElement("span", null))
14205
14254
  }
14206
14255
  }]);
@@ -14230,6 +14279,29 @@ var BsSulaQueryTable = (function (props) {
14230
14279
  var _sortTableRef$current2, _sortTableRef$current3;
14231
14280
  sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current2 = sortTableRef.current) === null || _sortTableRef$current2 === void 0 ? void 0 : (_sortTableRef$current3 = _sortTableRef$current2.handleTableHeadHidden) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.call(_sortTableRef$current2, columnTitle);
14232
14281
  };
14282
+ var toMapByKey = function toMapByKey(arr, key, fn) {
14283
+ var map = {};
14284
+ arr.forEach(function (i) {
14285
+ return map[renderToString(i[key])] = i;
14286
+ });
14287
+ return map;
14288
+ };
14289
+ var getColumns = function getColumns() {
14290
+ // 优化一下 减少复杂度
14291
+ var titleMap = toMapByKey(value.columns, 'title');
14292
+ // 加上排序
14293
+ var cols = showColumn.map(function (i) {
14294
+ var _titleMap$renderToStr, _titleMap$renderToStr2;
14295
+ return _objectSpread2(_objectSpread2({}, i), {}, {
14296
+ isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
14297
+ render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
14298
+ });
14299
+ });
14300
+ cols.forEach(function (i) {
14301
+ return handleBssulaColumnsSpecialParams(i);
14302
+ });
14303
+ return cols;
14304
+ };
14233
14305
  var config = _objectSpread2(_objectSpread2({
14234
14306
  visibleFieldsCount: 3,
14235
14307
  tableWrapperStyle: {
@@ -14251,45 +14323,109 @@ var BsSulaQueryTable = (function (props) {
14251
14323
  rowSelection: false
14252
14324
  }, handleTimeValue()), {}, {
14253
14325
  tableProps: setTableProps(),
14254
- columns: _toConsumableArray(showColumn),
14326
+ columns: getColumns(),
14255
14327
  fields: _toConsumableArray(showSearchFields),
14256
14328
  ref: props.forwardedRef || refs,
14257
14329
  isFullScreen: isFullScreen
14258
14330
  });
14259
14331
  React.useEffect(function () {
14260
- if (!localStorage.getItem('isTabChange')) {
14332
+ if (!localStorage.getItem('isTabChange') || (state === null || state === void 0 ? void 0 : state.updateCurrentPage)) {
14261
14333
  if (pagePath === pathname) {
14262
14334
  var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
14263
14335
  // @ts-ignore
14264
14336
  (_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
14265
14337
  }
14266
- } else {
14267
- setTimeout(function () {
14268
- // 处理页面刷新两面
14269
- localStorage.removeItem('isTabChange');
14270
- }, 0);
14271
14338
  }
14339
+ setTimeout(function () {
14340
+ // 处理页面刷新两面
14341
+ localStorage.removeItem('isTabChange');
14342
+ }, 0);
14272
14343
  }, [pathname]);
14344
+ var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
14345
+ //todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
14346
+ //结构为了实现多行总结栏 定义如下(lableShow: boolean 是否显示列文本)
14347
+ /**
14348
+ * [
14349
+ * {
14350
+ * cont:[{key: 'spuCode',value: 100,labelShow: false}]
14351
+ * }
14352
+ * ]
14353
+ * @returns []
14354
+ */
14355
+ var getTableSummaryInfo = function getTableSummaryInfo() {
14356
+ var summaryList = props.summaryList,
14357
+ rowSelection = props.rowSelection,
14358
+ expandable = props.expandable;
14359
+ if (summaryList && Array.isArray(summaryList)) {
14360
+ var summaryRow = rowSelection ? [{}].concat(_toConsumableArray(showColumn)) : _toConsumableArray(showColumn);
14361
+ if (expandable) {
14362
+ summaryRow.unshift({});
14363
+ }
14364
+ // let summaryInitial = summary().cont;
14365
+ return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary, {
14366
+ fixed: true
14367
+ }, Array.isArray(summaryList) && summaryList.map(function (summaryItem, summaryIndex) {
14368
+ return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Row, {
14369
+ key: summaryIndex
14370
+ }, summaryRow.map(function (item, index) {
14371
+ var _summaryItem$cout = summaryItem.cout,
14372
+ cout = _summaryItem$cout === void 0 ? [] : _summaryItem$cout;
14373
+ var target = cout.filter(function (inner) {
14374
+ return inner.key && (inner.key === item.dataIndex || inner.key === item.key);
14375
+ })[0];
14376
+ if (target) {
14377
+ var _target$value;
14378
+ var labelText = target.labelShow ? "".concat(item.title, ":") : "";
14379
+ return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
14380
+ index: index,
14381
+ key: "Table.Summary.Cell_".concat(item.index)
14382
+ }, /*#__PURE__*/React__default['default'].createElement(Text$2, {
14383
+ type: "danger"
14384
+ }, "".concat(labelText, " ").concat((_target$value = target.value) !== null && _target$value !== void 0 ? _target$value : '')));
14385
+ } else {
14386
+ return /*#__PURE__*/React__default['default'].createElement(antd.Table.Summary.Cell, {
14387
+ index: index,
14388
+ key: "Table.Summary.Cell_".concat(item.index)
14389
+ }, /*#__PURE__*/React__default['default'].createElement(Text$2, {
14390
+ type: "danger"
14391
+ }, " "));
14392
+ }
14393
+ }));
14394
+ }));
14395
+ } else {
14396
+ return undefined;
14397
+ }
14398
+ };
14273
14399
  var memoConfig = React.useMemo(function () {
14274
14400
  return _objectSpread2(_objectSpread2({}, config), {}, {
14275
14401
  summary: props.summary,
14276
- statusMapping: props.statusMapping,
14277
- appRequestConfig: props.appRequestConfig
14402
+ summaryList: props.summaryList ? getTableSummaryInfo : undefined,
14403
+ statusMapping: props.statusMapping
14278
14404
  });
14279
- }, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
14280
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
14405
+ }, [
14406
+ // value,
14407
+ checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
14408
+ return /*#__PURE__*/React__default['default'].createElement("div", {
14409
+ id: "bs-sula-query-table"
14410
+ }, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
14281
14411
  ref: sortTableRef,
14282
14412
  setShowColumns: setShowColumns,
14283
14413
  showColumn: showColumn,
14284
14414
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
14285
14415
  bsTableCode: bsTableCode,
14286
- appRequestConfig: appRequestConfig,
14287
14416
  onlyModal: true
14288
- }));
14417
+ }), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
14418
+ ref: exportTableRef,
14419
+ setShowColumns: setShowExportColumns,
14420
+ showColumn: showExportColumn,
14421
+ datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
14422
+ bsTableCode: bsTableCodeExport,
14423
+ onlyModal: true
14424
+ })));
14289
14425
  });
14290
14426
 
14291
- var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
14292
- styleInject(css_248z$f);
14427
+ var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
14428
+ styleInject(css_248z$g);
14293
14429
 
14294
14430
  var cache = {};
14295
14431
  var cacheLimit = 10000;
@@ -14545,8 +14681,8 @@ var AllFunc = function AllFunc(props) {
14545
14681
  })))));
14546
14682
  };
14547
14683
 
14548
- var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
14549
- styleInject(css_248z$g);
14684
+ var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
14685
+ styleInject(css_248z$h);
14550
14686
 
14551
14687
  var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
14552
14688
 
@@ -14745,8 +14881,17 @@ var AllFunc$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14745
14881
  }))));
14746
14882
  });
14747
14883
 
14748
- var css_248z$h = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
14749
- styleInject(css_248z$h);
14884
+ var i18n = {
14885
+ 'zh-CN': {
14886
+ lang: '中文'
14887
+ },
14888
+ 'en-US': {
14889
+ lang: 'English'
14890
+ }
14891
+ };
14892
+
14893
+ var css_248z$i = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
14894
+ styleInject(css_248z$i);
14750
14895
 
14751
14896
  var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
14752
14897
 
@@ -14764,7 +14909,7 @@ function _outLogin() {
14764
14909
  while (1) switch (_context.prev = _context.next) {
14765
14910
  case 0:
14766
14911
  _context.next = 2;
14767
- return axios__default['default']({
14912
+ return requestUtil({
14768
14913
  url: '/user/web/loginOut',
14769
14914
  method: 'GET'
14770
14915
  });
@@ -14797,11 +14942,11 @@ var LoginModal = (function (props) {
14797
14942
  }, "\u53D6\u6D88"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
14798
14943
  onClick: function onClick() {
14799
14944
  form.validateFields().then(function (res) {
14800
- axios__default['default']({
14945
+ requestUtil({
14801
14946
  url: "/bop/api/account/changePassWord/".concat(getAccountID()),
14802
14947
  method: 'patch',
14803
14948
  params: res
14804
- }).then(function (res) {
14949
+ }).then(function () {
14805
14950
  loginOut();
14806
14951
  });
14807
14952
  });
@@ -14855,6 +15000,7 @@ var LoginModal = (function (props) {
14855
15000
  });
14856
15001
 
14857
15002
  var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
15003
+ var _i18n$language;
14858
15004
  var menu = _ref.menu;
14859
15005
  var _useModel = umi.useModel('@@initialState'),
14860
15006
  initialState = _useModel.initialState;
@@ -14963,12 +15109,25 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14963
15109
  })), /*#__PURE__*/React__default['default'].createElement("div", {
14964
15110
  className: 'rcom_name'
14965
15111
  }, "\u9000\u51FA\u767B\u5F55"))));
15112
+ var changeLanguage = function changeLanguage(lang) {
15113
+ localStorage.setItem('umi_locale', lang || "zh-CN");
15114
+ umi.setLocale(lang || "zh-CN");
15115
+ window.location.reload();
15116
+ };
15117
+ var language = localStorage.getItem('umi_locale') || 'zh-CN';
14966
15118
  return /*#__PURE__*/React__default['default'].createElement("div", {
14967
15119
  className: className,
14968
15120
  style: divStyle()
14969
15121
  }, /*#__PURE__*/React__default['default'].createElement("div", {
14970
15122
  className: 'rcom_imgWap'
14971
- }, /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
15123
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
15124
+ style: {
15125
+ marginRight: '20px'
15126
+ },
15127
+ onClick: function onClick() {
15128
+ changeLanguage(language === 'zh-CN' ? 'en-US' : 'zh-CN');
15129
+ }
15130
+ }, ((_i18n$language = i18n[language]) === null || _i18n$language === void 0 ? void 0 : _i18n$language.lang) || "English"), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
14972
15131
  overlay: menus,
14973
15132
  trigger: ['click']
14974
15133
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -14993,8 +15152,277 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14993
15152
  }))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
14994
15153
  };
14995
15154
 
14996
- var css_248z$i = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
14997
- styleInject(css_248z$i);
15155
+ // -- 查询店铺 --
15156
+ function getStoreByName(_x) {
15157
+ return _getStoreByName.apply(this, arguments);
15158
+ }
15159
+ function _getStoreByName() {
15160
+ _getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
15161
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
15162
+ while (1) switch (_context.prev = _context.next) {
15163
+ case 0:
15164
+ return _context.abrupt("return", requestUtil({
15165
+ url: '/store-house/orgViewNode/listNoPage',
15166
+ method: 'GET',
15167
+ params: _objectSpread2({}, params)
15168
+ }));
15169
+ case 1:
15170
+ case "end":
15171
+ return _context.stop();
15172
+ }
15173
+ }, _callee);
15174
+ }));
15175
+ return _getStoreByName.apply(this, arguments);
15176
+ }
15177
+
15178
+ var debounceTimeout = 800;
15179
+ var ChooseStore = function ChooseStore(props) {
15180
+ var employeeCode = props.employeeCode;
15181
+ var plainOptions = ['UR', '本来'];
15182
+ var name = localStorage.getItem('WARE_HOUSE_NAME');
15183
+ var code = localStorage.getItem('WARE_HOUSE_CODE');
15184
+ var fetchRef = React.useRef(0);
15185
+ var _useState = React.useState(-1),
15186
+ _useState2 = _slicedToArray(_useState, 2),
15187
+ index = _useState2[0],
15188
+ setIndex = _useState2[1];
15189
+ var _useState3 = React.useState([{
15190
+ label: name,
15191
+ value: code
15192
+ }]),
15193
+ _useState4 = _slicedToArray(_useState3, 2),
15194
+ value = _useState4[0],
15195
+ setValue = _useState4[1];
15196
+ // const [ key, setKey ] = useState(undefined);
15197
+ var _useState5 = React.useState(undefined),
15198
+ _useState6 = _slicedToArray(_useState5, 2),
15199
+ key = _useState6[0],
15200
+ setKey = _useState6[1];
15201
+ var _useState7 = React.useState(false),
15202
+ _useState8 = _slicedToArray(_useState7, 2),
15203
+ openSelect = _useState8[0],
15204
+ setOpenSelect = _useState8[1];
15205
+ var _useState9 = React.useState([]),
15206
+ _useState10 = _slicedToArray(_useState9, 2),
15207
+ options = _useState10[0],
15208
+ setOptions = _useState10[1];
15209
+ var _useState11 = React.useState([]),
15210
+ _useState12 = _slicedToArray(_useState11, 2),
15211
+ rescouse = _useState12[0],
15212
+ setRescouse = _useState12[1];
15213
+ var _useState13 = React.useState(''),
15214
+ _useState14 = _slicedToArray(_useState13, 2),
15215
+ searchValue = _useState14[0],
15216
+ setSearchValue = _useState14[1];
15217
+ var _useState15 = React.useState([{
15218
+ label: name,
15219
+ value: code
15220
+ }]),
15221
+ _useState16 = _slicedToArray(_useState15, 2),
15222
+ store = _useState16[0],
15223
+ setStore = _useState16[1];
15224
+ function fetchUserList(_x, _x2) {
15225
+ return _fetchUserList.apply(this, arguments);
15226
+ }
15227
+ function _fetchUserList() {
15228
+ _fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
15229
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
15230
+ while (1) switch (_context3.prev = _context3.next) {
15231
+ case 0:
15232
+ return _context3.abrupt("return", getStoreByName({
15233
+ orgName: storeName ? storeName : undefined,
15234
+ platCompanyCode: init ? undefined : key,
15235
+ 'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
15236
+ 'qp-orgViewCode-eq': 'business-organizational-view'
15237
+ }).then(function (res) {
15238
+ var data = res.data;
15239
+ if (data.code != '000000') {
15240
+ return;
15241
+ }
15242
+ return data.data.map(function (item) {
15243
+ return {
15244
+ label: item.orgName,
15245
+ value: item.orgCode,
15246
+ defaultOrg: item.defaultOrg,
15247
+ platCompanyCode: item.platCompanyCode
15248
+ };
15249
+ });
15250
+ }));
15251
+ case 1:
15252
+ case "end":
15253
+ return _context3.stop();
15254
+ }
15255
+ }, _callee3);
15256
+ }));
15257
+ return _fetchUserList.apply(this, arguments);
15258
+ }
15259
+ var debounceFetcher = React.useMemo(function () {
15260
+ var loadOptions = function loadOptions(str) {
15261
+ fetchRef.current += 1;
15262
+ var fetchId = fetchRef.current;
15263
+ setOptions([]);
15264
+ setRescouse([]);
15265
+ fetchUserList(str).then(function (newOptions) {
15266
+ if (fetchId !== fetchRef.current) {
15267
+ return;
15268
+ }
15269
+ setOptions(newOptions);
15270
+ setRescouse(newOptions);
15271
+ });
15272
+ };
15273
+ return debounce__default['default'](loadOptions, debounceTimeout);
15274
+ }, [debounceTimeout, key]);
15275
+ var changeInput = /*#__PURE__*/function () {
15276
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
15277
+ var res;
15278
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
15279
+ while (1) switch (_context.prev = _context.next) {
15280
+ case 0:
15281
+ _context.next = 2;
15282
+ return debounceFetcher(str);
15283
+ case 2:
15284
+ res = _context.sent;
15285
+ setOptions(res);
15286
+ setRescouse(res);
15287
+ case 5:
15288
+ case "end":
15289
+ return _context.stop();
15290
+ }
15291
+ }, _callee);
15292
+ }));
15293
+ return function changeInput(_x3) {
15294
+ return _ref.apply(this, arguments);
15295
+ };
15296
+ }();
15297
+ React.useEffect(function () {
15298
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
15299
+ var res;
15300
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
15301
+ while (1) switch (_context2.prev = _context2.next) {
15302
+ case 0:
15303
+ _context2.next = 2;
15304
+ return fetchUserList(undefined, true);
15305
+ case 2:
15306
+ res = _context2.sent;
15307
+ res.map(function (item, indexNumber) {
15308
+ if (item.label === name) {
15309
+ setIndex(indexNumber);
15310
+ }
15311
+ if (item.defaultOrg) {
15312
+ if (name) {
15313
+ return;
15314
+ }
15315
+ localStorage.setItem('WARE_HOUSE_NAME', item === null || item === void 0 ? void 0 : item.label);
15316
+ localStorage.setItem('WARE_HOUSE_CODE', item === null || item === void 0 ? void 0 : item.value);
15317
+ setValue([item]);
15318
+ }
15319
+ });
15320
+ setOptions(res);
15321
+ setRescouse(res);
15322
+ case 6:
15323
+ case "end":
15324
+ return _context2.stop();
15325
+ }
15326
+ }, _callee2);
15327
+ }))();
15328
+ }, []);
15329
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
15330
+ value: value,
15331
+ style: {
15332
+ width: 280,
15333
+ marginRight: 20
15334
+ },
15335
+ open: false,
15336
+ onClick: function onClick() {
15337
+ setOpenSelect(true);
15338
+ }
15339
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
15340
+ open: openSelect,
15341
+ onCancel: function onCancel() {
15342
+ setOpenSelect(false);
15343
+ },
15344
+ onOk: function onOk() {
15345
+ var _store$, _store$2;
15346
+ localStorage.setItem('WARE_HOUSE_NAME', (_store$ = store[0]) === null || _store$ === void 0 ? void 0 : _store$.label);
15347
+ localStorage.setItem('WARE_HOUSE_CODE', (_store$2 = store[0]) === null || _store$2 === void 0 ? void 0 : _store$2.value);
15348
+ window.location.reload();
15349
+ }
15350
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
15351
+ style: {
15352
+ height: 300,
15353
+ marginTop: 20
15354
+ },
15355
+ labelCol: {
15356
+ span: 3
15357
+ },
15358
+ wrapperCol: {
15359
+ span: 16
15360
+ }
15361
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
15362
+ label: "\u54C1\u724C",
15363
+ name: "brand"
15364
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Radio.Group, {
15365
+ options: plainOptions,
15366
+ onChange: function onChange(item) {
15367
+ var _item$target;
15368
+ var str = item === null || item === void 0 ? void 0 : (_item$target = item.target) === null || _item$target === void 0 ? void 0 : _item$target.value;
15369
+ setKey(str === 'UR' ? 'UR' : 'BL');
15370
+ if (str === 'UR') {
15371
+ var res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
15372
+ return current.platCompanyCode === 'UR';
15373
+ });
15374
+ setOptions(res);
15375
+ setSearchValue('');
15376
+ } else {
15377
+ var _res = rescouse === null || rescouse === void 0 ? void 0 : rescouse.filter(function (current) {
15378
+ return current.platCompanyCode === 'BL';
15379
+ });
15380
+ setOptions(_res);
15381
+ setSearchValue('');
15382
+ }
15383
+ },
15384
+ optionType: "button",
15385
+ buttonStyle: "solid"
15386
+ })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
15387
+ label: "\u95E8\u5E97",
15388
+ name: "store",
15389
+ rules: [{
15390
+ required: true,
15391
+ message: '请选择门店'
15392
+ }]
15393
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
15394
+ placeholder: "\u8F93\u5165\u95E8\u5E97\u540D\u79F0",
15395
+ value: searchValue,
15396
+ onChange: function onChange(e) {
15397
+ changeInput(e.target.value);
15398
+ setSearchValue(e.target.value);
15399
+ }
15400
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
15401
+ style: {
15402
+ height: 220,
15403
+ overflowY: 'scroll'
15404
+ }
15405
+ }, /*#__PURE__*/React__default['default'].createElement(antd.List, {
15406
+ dataSource: options,
15407
+ bordered: true,
15408
+ renderItem: function renderItem(item, indexNumber) {
15409
+ return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
15410
+ style: indexNumber === index ? {
15411
+ // opacity
15412
+ color: '#0047bb'
15413
+ } : {},
15414
+ onClick: function onClick(current) {
15415
+ // setValue([item]);
15416
+ setStore([item]);
15417
+ setIndex(indexNumber);
15418
+ }
15419
+ }, item.label);
15420
+ }
15421
+ }))))));
15422
+ };
15423
+
15424
+ var css_248z$j = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
15425
+ styleInject(css_248z$j);
14998
15426
 
14999
15427
  var judgeIsEmpty$2 = function judgeIsEmpty(value) {
15000
15428
  if (value == null || value == undefined || String(value).trim() == '') {
@@ -15004,7 +15432,11 @@ var judgeIsEmpty$2 = function judgeIsEmpty(value) {
15004
15432
  };
15005
15433
  var GlobalHeaderCom = function GlobalHeaderCom(props) {
15006
15434
  var _props$route$routes = props.route.routes,
15007
- routes = _props$route$routes === void 0 ? [] : _props$route$routes;
15435
+ routes = _props$route$routes === void 0 ? [] : _props$route$routes,
15436
+ _props$showSelectStor = props.showSelectStore,
15437
+ showSelectStore = _props$showSelectStor === void 0 ? false : _props$showSelectStor,
15438
+ _props$employeeCode = props.employeeCode,
15439
+ employeeCode = _props$employeeCode === void 0 ? "EMP231011000002" : _props$employeeCode;
15008
15440
  var _useState = React.useState(''),
15009
15441
  _useState2 = _slicedToArray(_useState, 2),
15010
15442
  keyWord = _useState2[0],
@@ -15141,13 +15573,15 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
15141
15573
  },
15142
15574
  title: item.fullPathName
15143
15575
  }, renderLineStyl(item.fullPathName));
15144
- }))))), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
15576
+ }))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
15577
+ employeeCode: employeeCode
15578
+ })), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
15145
15579
  };
15146
15580
 
15147
15581
  var addIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
15148
15582
 
15149
- var css_248z$j = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
15150
- styleInject(css_248z$j);
15583
+ var css_248z$k = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
15584
+ styleInject(css_248z$k);
15151
15585
 
15152
15586
  var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28534.000000%2C%20180.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
15153
15587
 
@@ -15778,8 +16212,8 @@ var MenuSetting = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15778
16212
  }));
15779
16213
  });
15780
16214
 
15781
- var css_248z$k = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
15782
- styleInject(css_248z$k);
16215
+ var css_248z$l = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
16216
+ styleInject(css_248z$l);
15783
16217
 
15784
16218
  var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15785
16219
  var isCollapse = _ref.isCollapse,
@@ -15915,8 +16349,8 @@ var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15915
16349
  })));
15916
16350
  });
15917
16351
 
15918
- var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
15919
- styleInject(css_248z$l);
16352
+ var css_248z$m = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
16353
+ styleInject(css_248z$m);
15920
16354
 
15921
16355
  var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
15922
16356
 
@@ -16331,10 +16765,10 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
16331
16765
  })));
16332
16766
  };
16333
16767
 
16334
- var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
16335
- styleInject(css_248z$m);
16768
+ var css_248z$n = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
16769
+ styleInject(css_248z$n);
16336
16770
 
16337
- var _excluded$g = ["route"];
16771
+ var _excluded$h = ["route"];
16338
16772
  var TabPane = antd.Tabs.TabPane;
16339
16773
  var UN_LISTTEN_DRP;
16340
16774
  var routerArray = [];
@@ -17020,7 +17454,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17020
17454
  if (!istParent) {
17021
17455
  var _window$$wujie2;
17022
17456
  if (route.pathname === '/') return;
17023
- (_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey);
17457
+ (_window$$wujie2 = window.$wujie) === null || _window$$wujie2 === void 0 ? void 0 : _window$$wujie2.bus.$emit('sub-route-change', itemPath, currentKey, route === null || route === void 0 ? void 0 : route.state);
17024
17458
  // window.parent.postMessage(`/parent/${itemPath}${currentKey}`, '*');
17025
17459
  }
17026
17460
  // 防止出错
@@ -17058,39 +17492,49 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17058
17492
  newListenRouterKey = [].concat(_toConsumableArray(listenRouterKey), [currentKey]);
17059
17493
  }
17060
17494
  }
17061
- // 处理hideMenu页面自动关闭
17495
+ // -------------------处理页签关闭----------------------------
17062
17496
  lastTwoRouterArray.push(route.pathname);
17063
17497
  lastTwoRouterArray.shift();
17064
- if (!localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick')) {
17065
- if (lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string') {
17066
- var _route$state;
17067
- var needRemoveKeyArray = hideMenuArray.filter(function (itemRoute) {
17068
- return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
17069
- });
17070
- // lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
17071
- if (needRemoveKeyArray.length && lastTwoRouterArray[0] != lastTwoRouterArray[1] && !((_route$state = route.state) === null || _route$state === void 0 ? void 0 : _route$state.thisHideInMenuDoNotClose)) {
17072
- newListenRouterState = newListenRouterState.filter(function (item) {
17073
- var _ref3 = item.key ? item.key.split('?') : [],
17074
- _ref4 = _slicedToArray(_ref3, 1),
17075
- pathname = _ref4[0];
17076
- return pathname && pathname !== lastTwoRouterArray[0];
17077
- });
17078
- newListenRouterKey = newListenRouterKey.filter(function (item) {
17079
- var _ref5 = item ? item.split('?') : [],
17080
- _ref6 = _slicedToArray(_ref5, 1),
17081
- pathname = _ref6[0];
17082
- return pathname && pathname !== lastTwoRouterArray[0];
17083
- });
17084
- }
17085
- }
17086
- // refs?.tableRef?.current?.refreshTable();
17498
+ var _ref3 = (route === null || route === void 0 ? void 0 : route.state) || {},
17499
+ _ref3$thisHideInMenuD = _ref3.thisHideInMenuDoNotClose,
17500
+ thisHideInMenuDoNotClose = _ref3$thisHideInMenuD === void 0 ? false : _ref3$thisHideInMenuD,
17501
+ _ref3$closePrevPage = _ref3.closePrevPage,
17502
+ closePrevPage = _ref3$closePrevPage === void 0 ? false : _ref3$closePrevPage,
17503
+ _ref3$updateCurrentPa = _ref3.updateCurrentPage;
17504
+ var needRemoveKey = '';
17505
+ // lastTwoRouterArray[0] != lastTwoRouterArray[1] 该判断条件用于判断是否是tab删除操作,如果是tab页删除操作,删除的是不是最后一个打开的tab页,执行history.push会导致错误的将最后打开的那个tab页也删除掉
17506
+ var notSamePageFlag = lastTwoRouterArray[0] != lastTwoRouterArray[1];
17507
+ // 满足包含closePrevPage标识则直接删除上一页
17508
+ if (closePrevPage) {
17509
+ needRemoveKey = lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string' && notSamePageFlag ? lastTwoRouterArray[0] : '';
17087
17510
  } else {
17088
- setTimeout(function () {
17089
- // 处理页面刷新两面
17090
- localStorage.removeItem('isTabChange');
17091
- localStorage.removeItem('isMenuClick');
17092
- }, 0);
17511
+ // 满足非tabclick或者menuClick的hideInMenu类型菜单自动关闭
17512
+ var shouldClosePrev = !localStorage.getItem('isTabChange') && !localStorage.getItem('isMenuClick');
17513
+ var needRemoveKeyArray = lastTwoRouterArray[0] && typeof lastTwoRouterArray[0] === 'string' && shouldClosePrev ? hideMenuArray.filter(function (itemRoute) {
17514
+ return pathToRegexp(itemRoute.path || '').test(lastTwoRouterArray[0]);
17515
+ }) : [];
17516
+ needRemoveKey = needRemoveKeyArray.length && notSamePageFlag && !thisHideInMenuDoNotClose ? needRemoveKeyArray[0] : '';
17517
+ }
17518
+ if (needRemoveKey) {
17519
+ newListenRouterState = newListenRouterState.filter(function (item) {
17520
+ var _ref4 = item.key ? item.key.split('?') : [],
17521
+ _ref5 = _slicedToArray(_ref4, 1),
17522
+ pathname = _ref5[0];
17523
+ return pathname && pathname !== lastTwoRouterArray[0];
17524
+ });
17525
+ newListenRouterKey = newListenRouterKey.filter(function (item) {
17526
+ var _ref6 = item ? item.split('?') : [],
17527
+ _ref7 = _slicedToArray(_ref6, 1),
17528
+ pathname = _ref7[0];
17529
+ return pathname && pathname !== lastTwoRouterArray[0];
17530
+ });
17093
17531
  }
17532
+ setTimeout(function () {
17533
+ // 处理页面刷新两面
17534
+ localStorage.removeItem('isTabChange');
17535
+ localStorage.removeItem('isMenuClick');
17536
+ }, 0);
17537
+ // -------------------处理页签关闭 end----------------------------
17094
17538
  _this2.setState({
17095
17539
  //路由监听函数最后执行setState,避免处理hideMenu类型页面自动关闭的逻辑块内获取不到最新state的listenRouterState和listenRouterKey
17096
17540
  activeKey: currentKey,
@@ -17138,10 +17582,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17138
17582
  defaultSettings = _this$props2.defaultSettings,
17139
17583
  _this$props2$transpar = _this$props2.transparentProps,
17140
17584
  transparentProps = _this$props2$transpar === void 0 ? {} : _this$props2$transpar;
17141
- var TabTitle = function TabTitle(_ref7) {
17142
- var item = _ref7.item,
17143
- index = _ref7.index,
17144
- updateState = _ref7.updateState;
17585
+ var TabTitle = function TabTitle(_ref8) {
17586
+ var item = _ref8.item,
17587
+ index = _ref8.index,
17588
+ updateState = _ref8.updateState;
17145
17589
  return /*#__PURE__*/React__default['default'].createElement("div", {
17146
17590
  className: "tab_title_content"
17147
17591
  }, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
@@ -17156,7 +17600,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17156
17600
  }); // 添加数据大屏
17157
17601
  var _this$props3 = this.props,
17158
17602
  route = _this$props3.route,
17159
- restPrpos = _objectWithoutProperties(_this$props3, _excluded$g);
17603
+ restPrpos = _objectWithoutProperties(_this$props3, _excluded$h);
17160
17604
  var exist = route.routes.find(function (route) {
17161
17605
  return route.path === '/homePage/data-show';
17162
17606
  });
@@ -17311,8 +17755,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17311
17755
  onMenuHeaderClick: function onMenuHeaderClick() {
17312
17756
  return umi.history.push('/');
17313
17757
  },
17314
- menuHeaderRender: function menuHeaderRender(_ref8) {
17315
- _objectDestructuringEmpty(_ref8);
17758
+ menuHeaderRender: function menuHeaderRender(_ref9) {
17759
+ _objectDestructuringEmpty(_ref9);
17316
17760
  return /*#__PURE__*/React__default['default'].createElement(CustomerMenuHeader, {
17317
17761
  originRoutes: originRoutes,
17318
17762
  itemPath: itemPath,
@@ -17716,8 +18160,8 @@ var headersToRows = function headersToRows(originColumns) {
17716
18160
  };
17717
18161
  };
17718
18162
 
17719
- 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";
17720
- styleInject(css_248z$n);
18163
+ var css_248z$o = ".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";
18164
+ styleInject(css_248z$o);
17721
18165
 
17722
18166
  var useSticky = function useSticky(sticky) {
17723
18167
  var _ref = _typeof(sticky) === 'object' ? sticky : {},
@@ -18129,10 +18573,10 @@ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
18129
18573
  }))))));
18130
18574
  });
18131
18575
 
18132
- var _excluded$h = ["children"];
18576
+ var _excluded$i = ["children"];
18133
18577
  var Drawer = (function (props) {
18134
18578
  var children = props.children,
18135
- restProps = _objectWithoutProperties(props, _excluded$h);
18579
+ restProps = _objectWithoutProperties(props, _excluded$i);
18136
18580
  return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2({
18137
18581
  mask: true,
18138
18582
  closable: false,
@@ -23956,8 +24400,8 @@ var nameRender = (function (data) {
23956
24400
  }, " ");
23957
24401
  });
23958
24402
 
23959
- var css_248z$o = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
23960
- styleInject(css_248z$o);
24403
+ var css_248z$p = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
24404
+ styleInject(css_248z$p);
23961
24405
 
23962
24406
  function parseData(data) {
23963
24407
  var res;
@@ -24168,8 +24612,8 @@ function registerSuggestions(monaco) {
24168
24612
  });
24169
24613
  }
24170
24614
 
24171
- var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
24172
- styleInject(css_248z$p);
24615
+ var css_248z$q = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
24616
+ styleInject(css_248z$q);
24173
24617
 
24174
24618
  var Title = antd.Typography.Title;
24175
24619
  var STRTEMP = 'const config = ';
@@ -24363,7 +24807,7 @@ var Editor = (function (props) {
24363
24807
  }, [shallowHeight]);
24364
24808
  var hasConfigTree = type !== 'editor';
24365
24809
  return /*#__PURE__*/React__default['default'].createElement("div", {
24366
- className: isFull ? css_248z$p.editorWrapper : ''
24810
+ className: isFull ? css_248z$q.editorWrapper : ''
24367
24811
  }, /*#__PURE__*/React__default['default'].createElement("div", {
24368
24812
  style: {
24369
24813
  overflow: 'hidden'
@@ -24431,7 +24875,7 @@ var Editor = (function (props) {
24431
24875
  })), hasConfigTree && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
24432
24876
  span: 8
24433
24877
  }, /*#__PURE__*/React__default['default'].createElement("div", {
24434
- className: css_248z$p.title
24878
+ className: css_248z$q.title
24435
24879
  }, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React__default['default'].createElement(ConfigTree, {
24436
24880
  style: {
24437
24881
  height: 'calc(100vh - 300px)',
@@ -26314,8 +26758,8 @@ var FieldsSettingsTable = (function (props) {
26314
26758
  })), fieldsModify.visible && /*#__PURE__*/React__default['default'].createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
26315
26759
  });
26316
26760
 
26317
- var css_248z$q = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
26318
- styleInject(css_248z$q);
26761
+ var css_248z$r = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
26762
+ styleInject(css_248z$r);
26319
26763
 
26320
26764
  function iterFileds(fields) {
26321
26765
  var filedsValue = [];
@@ -26381,7 +26825,7 @@ function convertFileds(fields, falltValue, faltFieldRange, containerName) {
26381
26825
  if (item.dependency) {
26382
26826
  targetValue.dependency = {
26383
26827
  visible: _objectSpread2(_objectSpread2({}, item.dependency.visible), {}, {
26384
- type: new Function('axios', 'ctx', item.dependency.visible.type).bind(null, axios__default['default'])
26828
+ type: new Function('request', 'ctx', item.dependency.visible.type).bind(null, requestUtil)
26385
26829
  })
26386
26830
  };
26387
26831
  }
@@ -26596,12 +27040,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
26596
27040
  tableJsonEditorValsArr = _useState16[0],
26597
27041
  setTableJsonEditorValsArr = _useState16[1];
26598
27042
  React.useEffect(function () {
26599
- Promise.all([axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
27043
+ Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
26600
27044
  var _ref3 = _slicedToArray(_ref2, 1),
26601
27045
  res = _ref3[0];
26602
- var resD = (res === null || res === void 0 ? void 0 : res.data) || {};
26603
- var data = resD.data;
26604
- if (judgeIsRequestSuccess(resD)) {
27046
+ var _ref4 = (res === null || res === void 0 ? void 0 : res.data) || {},
27047
+ code = _ref4.code,
27048
+ data = _ref4.data;
27049
+ if (code === '000000') {
26605
27050
  if (data) {
26606
27051
  var businessType = data.businessType,
26607
27052
  fieldGroup = data.code,
@@ -26620,17 +27065,17 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
26620
27065
  React.useEffect(function () {
26621
27066
  //明细表的配置数据
26622
27067
  var axiosArr = detailTablesSetting.map(function (item) {
26623
- return axios__default['default'].get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
27068
+ return requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
26624
27069
  });
26625
- Promise.all(axiosArr).then(function (_ref4) {
26626
- var _ref5 = _toArray(_ref4),
26627
- resArr = _ref5.slice(0);
27070
+ Promise.all(axiosArr).then(function (_ref5) {
27071
+ var _ref6 = _toArray(_ref5),
27072
+ resArr = _ref6.slice(0);
26628
27073
  var configParams = {};
26629
27074
  detailTablesSetting.map(function (item, index) {
26630
27075
  var _resArr$index;
26631
- var _ref6 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
26632
- code = _ref6.code,
26633
- data = _ref6.data;
27076
+ var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
27077
+ code = _ref7.code,
27078
+ data = _ref7.data;
26634
27079
  if (data) {
26635
27080
  var businessType = data.businessType,
26636
27081
  fieldGroup = data.code,
@@ -27047,8 +27492,8 @@ var BsCascader = function BsCascader(_ref) {
27047
27492
  });
27048
27493
  };
27049
27494
 
27050
- var css_248z$r = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
27051
- styleInject(css_248z$r);
27495
+ var css_248z$s = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
27496
+ styleInject(css_248z$s);
27052
27497
 
27053
27498
  // 查询规则对象属性thresholdList
27054
27499
  function getRegularThresholdRange(_x) {
@@ -27059,7 +27504,7 @@ function _getRegularThresholdRange() {
27059
27504
  return _regeneratorRuntime().wrap(function _callee$(_context) {
27060
27505
  while (1) switch (_context.prev = _context.next) {
27061
27506
  case 0:
27062
- return _context.abrupt("return", axios__default['default']({
27507
+ return _context.abrupt("return", requestUtil({
27063
27508
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
27064
27509
  method: 'POST',
27065
27510
  data: _objectSpread2(_objectSpread2({}, params), {}, {
@@ -29594,7 +30039,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
29594
30039
  style: {
29595
30040
  marginLeft: '10px'
29596
30041
  },
29597
- className: css_248z$r.rule_field_style
30042
+ className: css_248z$s.rule_field_style
29598
30043
  }, this.renderConditionField());
29599
30044
  }
29600
30045
  }]);
@@ -30037,7 +30482,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
30037
30482
  disabled = _this$props.disabled;
30038
30483
  return /*#__PURE__*/React__default['default'].createElement("div", null, ruleTypeData.map(function (i) {
30039
30484
  return /*#__PURE__*/React__default['default'].createElement("div", {
30040
- className: css_248z$r.action_list_item
30485
+ className: css_248z$s.action_list_item
30041
30486
  }, /*#__PURE__*/React__default['default'].createElement("div", {
30042
30487
  onClick: function onClick() {
30043
30488
  return handleOperatingAction(i.code, 'view');
@@ -30061,55 +30506,537 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
30061
30506
  return RuleField;
30062
30507
  }(React.Component);
30063
30508
 
30064
- var InnerSelect = (function (props) {
30065
- var disabled = props.disabled,
30066
- inputType = props.inputType,
30067
- defaultValue = props.defaultValue,
30068
- styleCommon = props.styleCommon,
30069
- value = props.value,
30070
- _onChange = props.onChange,
30071
- dictionaryCode = props.dictionaryCode;
30072
- var _useState = React.useState(getDictionarySource(dictionaryCode !== null && dictionaryCode !== void 0 ? dictionaryCode : '') || []),
30073
- _useState2 = _slicedToArray(_useState, 2),
30074
- dataSource = _useState2[0],
30075
- setDataSource = _useState2[1];
30076
- React.useEffect(function () {
30077
- if (!!dictionaryCode && !getDictionarySource(dictionaryCode)) {
30078
- bssula.request({
30079
- url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(dictionaryCode),
30080
- method: 'get',
30081
- converter: function converter(_ref) {
30082
- var _data$map;
30083
- var data = _ref.data;
30084
- var dataList = (data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
30085
- return {
30086
- label: item.dictItemName,
30087
- value: item.dictItemCode
30088
- };
30089
- })) || [];
30090
- setDataSource(dataList);
30091
- return dataList;
30092
- }
30509
+ var RangePicker$1 = antd.DatePicker.RangePicker;
30510
+ function RenderCompItem(props) {
30511
+ var _showValue, _showValue2;
30512
+ var regularDataList = props.regularDataList,
30513
+ ites = props.ites,
30514
+ showValue = props.showValue,
30515
+ handleEdit = props.handleEdit,
30516
+ disabled = props.disabled;
30517
+ var fieldListGroup = regularDataList.map(function (item) {
30518
+ var Item = {
30519
+ id: item.id,
30520
+ code: item.code,
30521
+ name: item.name,
30522
+ value: item.code
30523
+ };
30524
+ if (item.propertyList) {
30525
+ // @ts-ignore
30526
+ Item.propertyList = item.propertyList.map(function (field) {
30527
+ return {
30528
+ id: field.id,
30529
+ code: field.code,
30530
+ name: field.name,
30531
+ value: "".concat(item.code, ".").concat(field.code),
30532
+ valueText: "".concat(item.name, ".").concat(field.name)
30533
+ };
30093
30534
  });
30094
30535
  }
30095
- }, [dictionaryCode]);
30096
- return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
30097
- disabled: disabled
30098
- }, inputType === 30 ? {
30099
- mode: 'multiple'
30100
- } : {}), {}, {
30101
- defaultValue: defaultValue,
30102
- style: styleCommon,
30103
- value: value === null || value === void 0 ? void 0 : value.split(','),
30104
- onChange: function onChange(changeValue) {
30105
- _onChange(changeValue);
30106
- // handleEdit(ites.code, value);
30107
- },
30108
- options: dataSource
30109
- }));
30110
- });
30536
+ return Item;
30537
+ });
30538
+ console.log((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode));
30539
+ var _useState = React.useState(getDictionarySource(ites.dictionaryCode) || []),
30540
+ _useState2 = _slicedToArray(_useState, 2),
30541
+ dictData = _useState2[0],
30542
+ setDictData = _useState2[1];
30543
+ var getDictData = /*#__PURE__*/function () {
30544
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30545
+ var _data$map;
30546
+ var data;
30547
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
30548
+ while (1) switch (_context.prev = _context.next) {
30549
+ case 0:
30550
+ _context.next = 2;
30551
+ return bssula.request({
30552
+ url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
30553
+ });
30554
+ case 2:
30555
+ data = _context.sent;
30556
+ setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
30557
+ return {
30558
+ text: item.dictItemName,
30559
+ value: item.dictItemCode
30560
+ };
30561
+ }));
30562
+ case 4:
30563
+ case "end":
30564
+ return _context.stop();
30565
+ }
30566
+ }, _callee);
30567
+ }));
30568
+ return function getDictData() {
30569
+ return _ref.apply(this, arguments);
30570
+ };
30571
+ }();
30572
+ React.useEffect(function () {
30573
+ if ((ites === null || ites === void 0 ? void 0 : ites.dictionaryCode) && !getDictionarySource(ites.dictionaryCode)) {
30574
+ getDictData();
30575
+ }
30576
+ }, []);
30577
+ if (!ites) return;
30578
+ var styleCommon = _objectSpread2({
30579
+ width: '200px'
30580
+ }, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
30581
+ marginLeft: 10
30582
+ } : {});
30583
+ var style2 = {
30584
+ width: '100px'
30585
+ };
30586
+ console.log('value');
30587
+ console.log(ites === null || ites === void 0 ? void 0 : ites.code);
30588
+ console.log(showValue(ites.code));
30589
+ console.log((_showValue = showValue(ites.code)) === null || _showValue === void 0 ? void 0 : _showValue.split(','));
30590
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
30591
+ disabled: disabled,
30592
+ allowClear: true,
30593
+ onClear: function onClear() {
30594
+ return handleEdit(ites.code, undefined);
30595
+ },
30596
+ defaultValue: showValue(ites.code, 'input'),
30597
+ style: styleCommon,
30598
+ onBlur: function onBlur(e) {
30599
+ handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
30600
+ }
30601
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
30602
+ disabled: disabled,
30603
+ max: Number.MAX_SAFE_INTEGER,
30604
+ min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
30605
+ precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
30606
+ defaultValue: ites.defaultValue,
30607
+ style: style2,
30608
+ value: showValue(ites.code),
30609
+ onChange: function onChange(value) {
30610
+ handleEdit(ites.code, value);
30611
+ }
30612
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 && ( /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
30613
+ disabled: disabled,
30614
+ defaultValue: ites.defaultValue,
30615
+ style: style2,
30616
+ value: showValue(ites.code),
30617
+ onChange: function onChange(value) {
30618
+ handleEdit(ites.code, value);
30619
+ }
30620
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
30621
+ showTime: true,
30622
+ disabled: disabled,
30623
+ defaultValue: ites.defaultValue,
30624
+ style: style2,
30625
+ value: showValue(ites.code),
30626
+ onChange: function onChange(value) {
30627
+ handleEdit(ites.code, value);
30628
+ }
30629
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
30630
+ disabled: disabled,
30631
+ defaultChecked: !!ites.defaultValue,
30632
+ style: style2,
30633
+ checked: showValue(ites.code),
30634
+ onChange: function onChange(value) {
30635
+ handleEdit(ites.code, value);
30636
+ }
30637
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
30638
+ disabled: disabled,
30639
+ allowClear: true,
30640
+ showArrow: true
30641
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30642
+ mode: 'multiple'
30643
+ } : {}), {}, {
30644
+ defaultValue: ites.defaultValue,
30645
+ style: styleCommon,
30646
+ value: showValue(ites.code),
30647
+ onChange: function onChange(value) {
30648
+ handleEdit(ites.code, value);
30649
+ }
30650
+ }), Object.keys(ites.enumeration).map(function (it) {
30651
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
30652
+ key: it,
30653
+ value: it
30654
+ }, ites.enumeration[it]);
30655
+ }))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
30656
+ disabled: disabled
30657
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30658
+ mode: 'multiple'
30659
+ } : {}), {}, {
30660
+ defaultValue: ites.defaultValue,
30661
+ style: styleCommon,
30662
+ value: (_showValue2 = showValue(ites.code)) === null || _showValue2 === void 0 ? void 0 : _showValue2.split(','),
30663
+ onChange: function onChange(value) {
30664
+ handleEdit(ites.code, value);
30665
+ },
30666
+ showSearch: true,
30667
+ optionFilterProp: "children",
30668
+ filterOption: function filterOption(input, option) {
30669
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
30670
+ }
30671
+ }), dictData === null || dictData === void 0 ? void 0 : dictData.map(function (it) {
30672
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
30673
+ key: it.value,
30674
+ value: it.value
30675
+ }, it.text);
30676
+ }))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30677
+ selectBusinessType: "physicalWarehouse",
30678
+ selectProps: _objectSpread2({
30679
+ style: styleCommon,
30680
+ placeholder: '请选择物理仓'
30681
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30682
+ mode: 'multiple',
30683
+ maxTagCount: 1
30684
+ } : {}),
30685
+ disabled: disabled,
30686
+ labelInValue: true,
30687
+ value: showValue(ites.code),
30688
+ requestConfig: {
30689
+ mappingValueField: 'physicalWarehouseCode',
30690
+ filterInit: 'qp-physicalWarehouseCode-in'
30691
+ },
30692
+ onChange: function onChange(value) {
30693
+ handleEdit(ites.code, value);
30694
+ },
30695
+ getPopupContainer: function getPopupContainer() {
30696
+ return document.body;
30697
+ }
30698
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30699
+ selectBusinessType: "realWarehouse",
30700
+ selectProps: _objectSpread2({
30701
+ style: styleCommon,
30702
+ placeholder: '请选择逻辑仓'
30703
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30704
+ mode: 'multiple',
30705
+ maxTagCount: 1
30706
+ } : {}),
30707
+ disabled: disabled,
30708
+ labelInValue: true,
30709
+ value: showValue(ites.code),
30710
+ requestConfig: {
30711
+ mappingValueField: 'realWarehouseCode',
30712
+ filterInit: 'qp-realWarehouseCode-in'
30713
+ },
30714
+ onChange: function onChange(value) {
30715
+ handleEdit(ites.code, value);
30716
+ },
30717
+ getPopupContainer: function getPopupContainer() {
30718
+ return document.body;
30719
+ }
30720
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30721
+ selectBusinessType: "virtualWarehouse",
30722
+ selectProps: _objectSpread2({
30723
+ style: styleCommon,
30724
+ placeholder: '请选择虚拟仓'
30725
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30726
+ mode: 'multiple',
30727
+ maxTagCount: 1
30728
+ } : {}),
30729
+ disabled: disabled,
30730
+ labelInValue: true,
30731
+ value: showValue(ites.code),
30732
+ requestConfig: {
30733
+ mappingValueField: 'virtualWarehouseCode',
30734
+ filterInit: 'qp-virtualWarehouseCode-in'
30735
+ },
30736
+ onChange: function onChange(value) {
30737
+ handleEdit(ites.code, value);
30738
+ },
30739
+ getPopupContainer: function getPopupContainer() {
30740
+ return document.body;
30741
+ }
30742
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30743
+ selectBusinessType: "channelWarehouse",
30744
+ selectProps: _objectSpread2({
30745
+ style: styleCommon,
30746
+ placeholder: '请选择渠道仓'
30747
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30748
+ mode: 'multiple',
30749
+ maxTagCount: 1
30750
+ } : {}),
30751
+ disabled: disabled,
30752
+ labelInValue: true,
30753
+ value: showValue(ites.code),
30754
+ requestConfig: {
30755
+ mappingValueField: 'channelWarehouseCode',
30756
+ filterInit: 'qp-channelWarehouseCode-in'
30757
+ },
30758
+ onChange: function onChange(value) {
30759
+ handleEdit(ites.code, value);
30760
+ },
30761
+ getPopupContainer: function getPopupContainer() {
30762
+ return document.body;
30763
+ }
30764
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30765
+ selectBusinessType: "spuCommodity",
30766
+ selectProps: _objectSpread2({
30767
+ style: styleCommon,
30768
+ placeholder: '请选择SPU'
30769
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30770
+ mode: 'multiple',
30771
+ maxTagCount: 1
30772
+ } : {}),
30773
+ disabled: disabled,
30774
+ labelInValue: true,
30775
+ value: showValue(ites.code),
30776
+ requestConfig: {
30777
+ filterInit: 'qp-itemCode-in'
30778
+ },
30779
+ onChange: function onChange(value) {
30780
+ handleEdit(ites.code, value);
30781
+ },
30782
+ getPopupContainer: function getPopupContainer() {
30783
+ return document.body;
30784
+ }
30785
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30786
+ selectBusinessType: "skuCommodity",
30787
+ selectProps: _objectSpread2({
30788
+ style: styleCommon,
30789
+ placeholder: '请选择商品'
30790
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30791
+ mode: 'multiple',
30792
+ maxTagCount: 1
30793
+ } : {}),
30794
+ disabled: disabled,
30795
+ labelInValue: true,
30796
+ value: showValue(ites.code),
30797
+ requestConfig: {
30798
+ filterInit: 'qp-skuCode-in'
30799
+ },
30800
+ onChange: function onChange(value) {
30801
+ handleEdit(ites.code, value);
30802
+ },
30803
+ getPopupContainer: function getPopupContainer() {
30804
+ return document.body;
30805
+ }
30806
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React__default['default'].createElement(BsCascader, {
30807
+ disabled: disabled,
30808
+ isAll: true,
30809
+ needNameAndCode: true,
30810
+ notChangeOnSelect: true,
30811
+ initRequestSource: function () {
30812
+ var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
30813
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
30814
+ while (1) switch (_context2.prev = _context2.next) {
30815
+ case 0:
30816
+ _context2.next = 2;
30817
+ return bssula.request({
30818
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30819
+ method: 'get',
30820
+ converter: function converter(_ref2) {
30821
+ var data = _ref2.data;
30822
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115629
30823
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30824
+ return {
30825
+ text: item.name,
30826
+ value: item.id,
30827
+ level: item.level,
30828
+ id: item.id
30829
+ };
30830
+ }) : [];
30831
+ return handleData;
30832
+ }
30833
+ });
30834
+ case 2:
30835
+ return _context2.abrupt("return", _context2.sent);
30836
+ case 3:
30837
+ case "end":
30838
+ return _context2.stop();
30839
+ }
30840
+ }, _callee2);
30841
+ }));
30842
+ function initRequestSource() {
30843
+ return _initRequestSource.apply(this, arguments);
30844
+ }
30845
+ return initRequestSource;
30846
+ }(),
30847
+ value: showValue(ites.code),
30848
+ onChange: function onChange(value) {
30849
+ handleEdit(ites.code, value);
30850
+ },
30851
+ getPopupContainer: function getPopupContainer() {
30852
+ return document.body;
30853
+ }
30854
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
30855
+ disabled: disabled,
30856
+ treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
30857
+ businessType: "department",
30858
+ labelInValue: true,
30859
+ value: showValue(ites.code),
30860
+ style: styleCommon,
30861
+ onChange: function onChange(value) {
30862
+ handleEdit(ites.code, value);
30863
+ },
30864
+ getPopupContainer: function getPopupContainer() {
30865
+ return document.body;
30866
+ }
30867
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
30868
+ disabled: disabled,
30869
+ treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
30870
+ businessType: "purchase-organization",
30871
+ labelInValue: true,
30872
+ value: showValue(ites.code),
30873
+ style: styleCommon,
30874
+ onChange: function onChange(value) {
30875
+ handleEdit(ites.code, value);
30876
+ },
30877
+ getPopupContainer: function getPopupContainer() {
30878
+ return document.body;
30879
+ }
30880
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
30881
+ disabled: disabled,
30882
+ treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
30883
+ businessType: "sales-organization",
30884
+ labelInValue: true,
30885
+ value: showValue(ites.code),
30886
+ style: styleCommon,
30887
+ onChange: function onChange(value) {
30888
+ handleEdit(ites.code, value);
30889
+ },
30890
+ getPopupContainer: function getPopupContainer() {
30891
+ return document.body;
30892
+ }
30893
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30894
+ selectBusinessType: "supplier2",
30895
+ selectProps: _objectSpread2({
30896
+ style: styleCommon,
30897
+ placeholder: '请选择供应商'
30898
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30899
+ mode: 'multiple',
30900
+ maxTagCount: 1
30901
+ } : {}),
30902
+ disabled: disabled,
30903
+ labelInValue: true,
30904
+ value: showValue(ites.code),
30905
+ requestConfig: {
30906
+ filterInit: 'qp-code-in'
30907
+ },
30908
+ onChange: function onChange(value) {
30909
+ handleEdit(ites.code, value);
30910
+ },
30911
+ getPopupContainer: function getPopupContainer() {
30912
+ return document.body;
30913
+ }
30914
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30915
+ selectBusinessType: "customer2",
30916
+ selectProps: _objectSpread2({
30917
+ style: styleCommon,
30918
+ placeholder: '请选择客户'
30919
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30920
+ mode: 'multiple',
30921
+ maxTagCount: 1
30922
+ } : {}),
30923
+ disabled: disabled,
30924
+ labelInValue: true,
30925
+ value: showValue(ites.code),
30926
+ requestConfig: {
30927
+ filterInit: 'qp-code-in'
30928
+ },
30929
+ onChange: function onChange(value) {
30930
+ handleEdit(ites.code, value);
30931
+ },
30932
+ getPopupContainer: function getPopupContainer() {
30933
+ return document.body;
30934
+ }
30935
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30936
+ selectBusinessType: "shopFile2",
30937
+ selectProps: _objectSpread2({
30938
+ style: styleCommon,
30939
+ placeholder: '请选择店铺'
30940
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30941
+ mode: 'multiple',
30942
+ maxTagCount: 1
30943
+ } : {}),
30944
+ disabled: disabled,
30945
+ labelInValue: true,
30946
+ value: showValue(ites.code),
30947
+ requestConfig: {
30948
+ filterInit: 'qp-code-in'
30949
+ },
30950
+ onChange: function onChange(value) {
30951
+ handleEdit(ites.code, value);
30952
+ },
30953
+ getPopupContainer: function getPopupContainer() {
30954
+ return document.body;
30955
+ }
30956
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30957
+ selectBusinessType: "employee2",
30958
+ selectProps: _objectSpread2({
30959
+ style: styleCommon,
30960
+ placeholder: '请选择员工'
30961
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30962
+ mode: 'multiple',
30963
+ maxTagCount: 1
30964
+ } : {}),
30965
+ disabled: disabled,
30966
+ labelInValue: true,
30967
+ value: showValue(ites.code),
30968
+ requestConfig: {
30969
+ filterInit: 'qp-id-in'
30970
+ },
30971
+ onChange: function onChange(value) {
30972
+ handleEdit(ites.code, value);
30973
+ },
30974
+ getPopupContainer: function getPopupContainer() {
30975
+ return document.body;
30976
+ }
30977
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
30978
+ disabled: disabled,
30979
+ treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
30980
+ businessType: "stock-organization",
30981
+ labelInValue: true,
30982
+ value: showValue(ites.code),
30983
+ style: styleCommon,
30984
+ onChange: function onChange(value) {
30985
+ handleEdit(ites.code, value);
30986
+ },
30987
+ getPopupContainer: function getPopupContainer() {
30988
+ return document.body;
30989
+ }
30990
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30991
+ selectBusinessType: "deliveryMode",
30992
+ selectProps: _objectSpread2({
30993
+ style: styleCommon,
30994
+ placeholder: '请选择配送方式'
30995
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30996
+ mode: 'multiple',
30997
+ maxTagCount: 1
30998
+ } : {}),
30999
+ disabled: disabled,
31000
+ labelInValue: true,
31001
+ value: showValue(ites.code),
31002
+ requestConfig: {
31003
+ filterInit: 'qp-code-in'
31004
+ },
31005
+ onChange: function onChange(value) {
31006
+ handleEdit(ites.code, value);
31007
+ },
31008
+ getPopupContainer: function getPopupContainer() {
31009
+ return document.body;
31010
+ }
31011
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
31012
+ style: {
31013
+ display: 'flex'
31014
+ }
31015
+ }, /*#__PURE__*/React__default['default'].createElement(App$1, {
31016
+ disabled: disabled,
31017
+ key: showValue(ites.code),
31018
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115667
31019
+ setValue: function setValue(val, formulaName) {
31020
+ console.log(val, 'val');
31021
+ var value = val.map(function (item) {
31022
+ return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
31023
+ return '{' + i + '}';
31024
+ });
31025
+ });
31026
+ handleEdit(ites.code, value.join(''));
31027
+ handleEdit({
31028
+ inputType: 40,
31029
+ formulaName: formulaName
31030
+ });
31031
+ },
31032
+ record: {
31033
+ expression: showValue(ites.code)
31034
+ },
31035
+ sourceData: fieldListGroup
31036
+ }))));
31037
+ }
30111
31038
 
30112
- var RangePicker$1 = antd.DatePicker.RangePicker;
31039
+ var RangePicker$2 = antd.DatePicker.RangePicker;
30113
31040
  var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30114
31041
  _inherits(RuleObjectComponent, _Component);
30115
31042
  var _super = _createSuper(RuleObjectComponent);
@@ -30178,6 +31105,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30178
31105
  } else if (element.choiceType === 20) {
30179
31106
  _this.dictCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = infoVo === null || infoVo === void 0 ? void 0 : infoVo.dictionaryCode;
30180
31107
  } else if (element.choiceType === 10) {
31108
+ // FIXME http://192.168.13.78/mep-fed-group/web/libs/business-component/-/merge_requests/45#note_115669
30181
31109
  var _list = Object.keys(infoVo).length && infoVo.enumeration && Object.keys(infoVo.enumeration).map(function (i) {
30182
31110
  return {
30183
31111
  code: i,
@@ -30522,18 +31450,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30522
31450
  onClick: function onClick() {
30523
31451
  _this.handleLogicalTypeChange(itemDetail, 'or');
30524
31452
  }
30525
- }, "\u6216\u8005"), /*#__PURE__*/React__default['default'].createElement("p", {
31453
+ }, "OR"), /*#__PURE__*/React__default['default'].createElement("p", {
30526
31454
  className: 'choose_logical_type',
30527
31455
  onClick: function onClick() {
30528
31456
  _this.handleLogicalTypeChange(itemDetail, 'and');
30529
31457
  }
30530
- }, "\u5E76\u4E14")),
31458
+ }, "AND")),
30531
31459
  trigger: "focus"
30532
31460
  }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
30533
31461
  disabled: disabled,
30534
31462
  type: "link",
30535
31463
  className: 'logical_item_btn'
30536
- }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
31464
+ }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? 'OR' : 'AND', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
30537
31465
  style: {
30538
31466
  marginLeft: '6px'
30539
31467
  }
@@ -30628,7 +31556,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30628
31556
  onChange: function onChange(value) {
30629
31557
  var _systemVariableList$f;
30630
31558
  var ruleClassData = _this.state.ruleClassData;
30631
- console.log(itemDetail);
30632
31559
  itemDetail.params = [value && "{".concat(value, "}") || ''];
30633
31560
  var name = (_systemVariableList$f = systemVariableList.find(function (i) {
30634
31561
  return i.code == value;
@@ -30763,503 +31690,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30763
31690
  }
30764
31691
  })) || null;
30765
31692
  };
30766
- _this.renderCompItem = function (ites, showValue, handleEdit, disabled) {
30767
- var regularDataList = _this.props.regularDataList;
30768
- var fieldListGroup = regularDataList.map(function (item) {
30769
- var Item = {
30770
- id: item.id,
30771
- code: item.code,
30772
- name: item.name,
30773
- value: item.code
30774
- };
30775
- if (item.propertyList) {
30776
- Item.propertyList = item.propertyList.map(function (field) {
30777
- return {
30778
- id: field.id,
30779
- code: field.code,
30780
- name: field.name,
30781
- value: "".concat(item.code, ".").concat(field.code),
30782
- valueText: "".concat(item.name, ".").concat(field.name)
30783
- };
30784
- });
30785
- }
30786
- return Item;
30787
- });
30788
- if (!ites) return;
30789
- var styleCommon = _objectSpread2({
30790
- width: '200px'
30791
- }, (ites === null || ites === void 0 ? void 0 : ites.rightText) ? {
30792
- marginLeft: 10
30793
- } : {});
30794
- var style2 = {
30795
- width: '100px'
30796
- };
30797
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
30798
- disabled: disabled,
30799
- allowClear: true,
30800
- onClear: function onClear() {
30801
- handleEdit(ites.code, undefined);
30802
- },
30803
- defaultValue: showValue(ites.code, 'input'),
30804
- style: styleCommon,
30805
- onBlur: function onBlur(e) {
30806
- handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
30807
- }
30808
- }) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
30809
- disabled: disabled,
30810
- max: Number.MAX_SAFE_INTEGER,
30811
- min: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER,
30812
- precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
30813
- defaultValue: ites.defaultValue,
30814
- style: style2,
30815
- value: showValue(ites.code),
30816
- onChange: function onChange(value) {
30817
- handleEdit(ites.code, value);
30818
- }
30819
- }) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
30820
- showTime: dataTypeCode == 32,
30821
- format: dataTypeCode == 41 ? dateFormat : fullDateFormat,
30822
- disabled: disabled,
30823
- defaultValue: ites.defaultValue,
30824
- style: style2,
30825
- value: showValue(ites.code),
30826
- onChange: function onChange(value) {
30827
- handleEdit(ites.code, value);
30828
- }
30829
- }) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
30830
- showTime: true,
30831
- disabled: disabled,
30832
- defaultValue: ites.defaultValue,
30833
- style: style2,
30834
- value: showValue(ites.code),
30835
- onChange: function onChange(value) {
30836
- handleEdit(ites.code, value);
30837
- }
30838
- }) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
30839
- disabled: disabled,
30840
- defaultChecked: !!ites.defaultValue,
30841
- style: style2,
30842
- checked: showValue(ites.code),
30843
- onChange: function onChange(value) {
30844
- handleEdit(ites.code, value);
30845
- }
30846
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && /*#__PURE__*/React__default['default'].createElement(antd.Select, _extends({
30847
- disabled: disabled,
30848
- allowClear: true,
30849
- showArrow: true
30850
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30851
- mode: 'multiple'
30852
- } : {}, {
30853
- defaultValue: ites.defaultValue,
30854
- style: styleCommon,
30855
- value: showValue(ites.code),
30856
- onChange: function onChange(value) {
30857
- handleEdit(ites.code, value);
30858
- }
30859
- }), Object.keys(ites.enumeration).map(function (it) {
30860
- return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
30861
- key: it,
30862
- value: it
30863
- }, ites.enumeration[it]);
30864
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && /*#__PURE__*/React__default['default'].createElement(InnerSelect, {
30865
- disabled: disabled,
30866
- inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
30867
- defaultValue: ites.defaultValue,
30868
- styleCommon: styleCommon,
30869
- value: showValue(ites.code),
30870
- onChange: function onChange(value) {
30871
- handleEdit(ites.code, value);
30872
- },
30873
- dictionaryCode: ites.dictionaryCode
30874
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30875
- selectBusinessType: "physicalWarehouse",
30876
- selectProps: _objectSpread2({
30877
- style: styleCommon,
30878
- placeholder: '请选择物理仓'
30879
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30880
- mode: 'multiple',
30881
- maxTagCount: 1
30882
- } : {}),
30883
- disabled: disabled,
30884
- labelInValue: true,
30885
- value: showValue(ites.code),
30886
- requestConfig: {
30887
- mappingValueField: 'physicalWarehouseCode',
30888
- filterInit: 'qp-physicalWarehouseCode-in'
30889
- },
30890
- onChange: function onChange(value) {
30891
- handleEdit(ites.code, value);
30892
- },
30893
- getPopupContainer: function getPopupContainer() {
30894
- return document.body;
30895
- }
30896
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30897
- selectBusinessType: "realWarehouse",
30898
- selectProps: _objectSpread2({
30899
- style: styleCommon,
30900
- placeholder: '请选择逻辑仓'
30901
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30902
- mode: 'multiple',
30903
- maxTagCount: 1
30904
- } : {}),
30905
- disabled: disabled,
30906
- labelInValue: true,
30907
- value: showValue(ites.code),
30908
- requestConfig: {
30909
- mappingValueField: 'realWarehouseCode',
30910
- filterInit: 'qp-realWarehouseCode-in'
30911
- },
30912
- onChange: function onChange(value) {
30913
- handleEdit(ites.code, value);
30914
- },
30915
- getPopupContainer: function getPopupContainer() {
30916
- return document.body;
30917
- }
30918
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30919
- selectBusinessType: "virtualWarehouse",
30920
- selectProps: _objectSpread2({
30921
- style: styleCommon,
30922
- placeholder: '请选择虚拟仓'
30923
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30924
- mode: 'multiple',
30925
- maxTagCount: 1
30926
- } : {}),
30927
- disabled: disabled,
30928
- labelInValue: true,
30929
- value: showValue(ites.code),
30930
- requestConfig: {
30931
- mappingValueField: 'virtualWarehouseCode',
30932
- filterInit: 'qp-virtualWarehouseCode-in'
30933
- },
30934
- onChange: function onChange(value) {
30935
- handleEdit(ites.code, value);
30936
- },
30937
- getPopupContainer: function getPopupContainer() {
30938
- return document.body;
30939
- }
30940
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30941
- selectBusinessType: "channelWarehouse",
30942
- selectProps: _objectSpread2({
30943
- style: styleCommon,
30944
- placeholder: '请选择渠道仓'
30945
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30946
- mode: 'multiple',
30947
- maxTagCount: 1
30948
- } : {}),
30949
- disabled: disabled,
30950
- labelInValue: true,
30951
- value: showValue(ites.code),
30952
- requestConfig: {
30953
- mappingValueField: 'channelWarehouseCode',
30954
- filterInit: 'qp-channelWarehouseCode-in'
30955
- },
30956
- onChange: function onChange(value) {
30957
- handleEdit(ites.code, value);
30958
- },
30959
- getPopupContainer: function getPopupContainer() {
30960
- return document.body;
30961
- }
30962
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30963
- selectBusinessType: "spuCommodity",
30964
- selectProps: _objectSpread2({
30965
- style: styleCommon,
30966
- placeholder: '请选择SPU'
30967
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30968
- mode: 'multiple',
30969
- maxTagCount: 1
30970
- } : {}),
30971
- disabled: disabled,
30972
- labelInValue: true,
30973
- value: showValue(ites.code),
30974
- requestConfig: {
30975
- filterInit: 'qp-itemCode-in'
30976
- },
30977
- onChange: function onChange(value) {
30978
- handleEdit(ites.code, value);
30979
- },
30980
- getPopupContainer: function getPopupContainer() {
30981
- return document.body;
30982
- }
30983
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
30984
- selectBusinessType: "skuCommodity",
30985
- selectProps: _objectSpread2({
30986
- style: styleCommon,
30987
- placeholder: '请选择商品'
30988
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
30989
- mode: 'multiple',
30990
- maxTagCount: 1
30991
- } : {}),
30992
- disabled: disabled,
30993
- labelInValue: true,
30994
- value: showValue(ites.code),
30995
- requestConfig: {
30996
- filterInit: 'qp-skuCode-in'
30997
- },
30998
- onChange: function onChange(value) {
30999
- handleEdit(ites.code, value);
31000
- },
31001
- getPopupContainer: function getPopupContainer() {
31002
- return document.body;
31003
- }
31004
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && /*#__PURE__*/React__default['default'].createElement(BsCascader, {
31005
- disabled: disabled,
31006
- isAll: true,
31007
- needNameAndCode: true,
31008
- notChangeOnSelect: true,
31009
- initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31010
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31011
- while (1) switch (_context.prev = _context.next) {
31012
- case 0:
31013
- _context.next = 2;
31014
- return bssula.request({
31015
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
31016
- method: 'get',
31017
- converter: function converter(_ref2) {
31018
- var data = _ref2.data;
31019
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
31020
- return {
31021
- text: item.name,
31022
- value: item.id,
31023
- level: item.level,
31024
- id: item.id
31025
- };
31026
- }) : [];
31027
- return handleData;
31028
- }
31029
- });
31030
- case 2:
31031
- return _context.abrupt("return", _context.sent);
31032
- case 3:
31033
- case "end":
31034
- return _context.stop();
31035
- }
31036
- }, _callee);
31037
- })),
31038
- value: showValue(ites.code),
31039
- onChange: function onChange(value) {
31040
- handleEdit(ites.code, value);
31041
- },
31042
- getPopupContainer: function getPopupContainer() {
31043
- return document.body;
31044
- }
31045
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31046
- disabled: disabled,
31047
- treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
31048
- businessType: "department",
31049
- labelInValue: true,
31050
- value: showValue(ites.code),
31051
- style: styleCommon,
31052
- onChange: function onChange(value) {
31053
- handleEdit(ites.code, value);
31054
- },
31055
- getPopupContainer: function getPopupContainer() {
31056
- return document.body;
31057
- }
31058
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31059
- disabled: disabled,
31060
- treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
31061
- businessType: "purchase-organization",
31062
- labelInValue: true,
31063
- value: showValue(ites.code),
31064
- style: styleCommon,
31065
- onChange: function onChange(value) {
31066
- handleEdit(ites.code, value);
31067
- },
31068
- getPopupContainer: function getPopupContainer() {
31069
- return document.body;
31070
- }
31071
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31072
- disabled: disabled,
31073
- treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
31074
- businessType: "sales-organization",
31075
- labelInValue: true,
31076
- value: showValue(ites.code),
31077
- style: styleCommon,
31078
- onChange: function onChange(value) {
31079
- handleEdit(ites.code, value);
31080
- },
31081
- getPopupContainer: function getPopupContainer() {
31082
- return document.body;
31083
- }
31084
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31085
- selectBusinessType: "supplier2",
31086
- selectProps: _objectSpread2({
31087
- style: styleCommon,
31088
- placeholder: '请选择供应商'
31089
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31090
- mode: 'multiple',
31091
- maxTagCount: 1
31092
- } : {}),
31093
- disabled: disabled,
31094
- labelInValue: true,
31095
- value: showValue(ites.code),
31096
- requestConfig: {
31097
- filterInit: 'qp-code-in'
31098
- },
31099
- onChange: function onChange(value) {
31100
- handleEdit(ites.code, value);
31101
- },
31102
- getPopupContainer: function getPopupContainer() {
31103
- return document.body;
31104
- }
31105
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31106
- selectBusinessType: "customer2",
31107
- selectProps: _objectSpread2({
31108
- style: styleCommon,
31109
- placeholder: '请选择客户'
31110
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31111
- mode: 'multiple',
31112
- maxTagCount: 1
31113
- } : {}),
31114
- disabled: disabled,
31115
- labelInValue: true,
31116
- value: showValue(ites.code),
31117
- requestConfig: {
31118
- filterInit: 'qp-code-in'
31119
- },
31120
- onChange: function onChange(value) {
31121
- handleEdit(ites.code, value);
31122
- },
31123
- getPopupContainer: function getPopupContainer() {
31124
- return document.body;
31125
- }
31126
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31127
- selectBusinessType: "shopFile2",
31128
- selectProps: _objectSpread2({
31129
- style: styleCommon,
31130
- placeholder: '请选择店铺'
31131
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31132
- mode: 'multiple',
31133
- maxTagCount: 1
31134
- } : {}),
31135
- disabled: disabled,
31136
- labelInValue: true,
31137
- value: showValue(ites.code),
31138
- requestConfig: {
31139
- filterInit: 'qp-code-in'
31140
- },
31141
- onChange: function onChange(value) {
31142
- handleEdit(ites.code, value);
31143
- },
31144
- getPopupContainer: function getPopupContainer() {
31145
- return document.body;
31146
- }
31147
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31148
- selectBusinessType: "employee2",
31149
- selectProps: _objectSpread2({
31150
- style: styleCommon,
31151
- placeholder: '请选择员工'
31152
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31153
- mode: 'multiple',
31154
- maxTagCount: 1
31155
- } : {}),
31156
- disabled: disabled,
31157
- labelInValue: true,
31158
- value: showValue(ites.code),
31159
- requestConfig: {
31160
- filterInit: 'qp-id-in'
31161
- },
31162
- onChange: function onChange(value) {
31163
- handleEdit(ites.code, value);
31164
- },
31165
- getPopupContainer: function getPopupContainer() {
31166
- return document.body;
31167
- }
31168
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31169
- disabled: disabled,
31170
- treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
31171
- businessType: "stock-organization",
31172
- labelInValue: true,
31173
- value: showValue(ites.code),
31174
- style: styleCommon,
31175
- onChange: function onChange(value) {
31176
- handleEdit(ites.code, value);
31177
- },
31178
- getPopupContainer: function getPopupContainer() {
31179
- return document.body;
31180
- }
31181
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
31182
- disabled: disabled,
31183
- treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
31184
- businessType: "settle-organization",
31185
- labelInValue: true,
31186
- value: showValue(ites.code),
31187
- style: styleCommon,
31188
- onChange: function onChange(value) {
31189
- handleEdit(ites.code, value);
31190
- },
31191
- getPopupContainer: function getPopupContainer() {
31192
- return document.body;
31193
- }
31194
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31195
- selectBusinessType: "deliveryMode",
31196
- selectProps: _objectSpread2({
31197
- style: styleCommon,
31198
- placeholder: '请选择配送方式'
31199
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31200
- mode: 'multiple',
31201
- maxTagCount: 1
31202
- } : {}),
31203
- disabled: disabled,
31204
- labelInValue: true,
31205
- value: showValue(ites.code),
31206
- requestConfig: {
31207
- filterInit: 'qp-code-in'
31208
- },
31209
- onChange: function onChange(value) {
31210
- handleEdit(ites.code, value);
31211
- },
31212
- getPopupContainer: function getPopupContainer() {
31213
- return document.body;
31214
- }
31215
- }) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
31216
- selectBusinessType: "role",
31217
- selectProps: _objectSpread2({
31218
- style: styleCommon,
31219
- placeholder: '请选择角色'
31220
- }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
31221
- mode: 'multiple',
31222
- maxTagCount: 1
31223
- } : {}),
31224
- disabled: disabled,
31225
- labelInValue: true,
31226
- value: showValue(ites.code),
31227
- requestConfig: {
31228
- filterInit: 'qp-code-in'
31229
- },
31230
- onChange: function onChange(value) {
31231
- handleEdit(ites.code, value);
31232
- },
31233
- getPopupContainer: function getPopupContainer() {
31234
- return document.body;
31235
- }
31236
- }) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && /*#__PURE__*/React__default['default'].createElement("div", {
31237
- style: {
31238
- display: 'flex'
31239
- }
31240
- }, /*#__PURE__*/React__default['default'].createElement(App$1, {
31241
- disabled: disabled,
31242
- key: showValue(ites.code),
31243
- setValue: function setValue(val, formulaName) {
31244
- console.log(val, 'val');
31245
- var value = val.map(function (item) {
31246
- return item.value.replace(/[a-zA-Z_]+\.\w+/g, function (i) {
31247
- return '{' + i + '}';
31248
- });
31249
- });
31250
- handleEdit(ites.code, value.join(''));
31251
- handleEdit({
31252
- inputType: 40,
31253
- formulaName: formulaName
31254
- });
31255
- },
31256
- record: {
31257
- expression: showValue(ites.code)
31258
- },
31259
- sourceData: fieldListGroup
31260
- })));
31261
- };
31262
- _this.renderFormCompItem = function (config, showValue, handleEdit, parentItem, boxStyle, disabled) {
31693
+ _this.renderFormCompItem = function (config, _showValue, _handleEdit, parentItem, boxStyle, disabled) {
31263
31694
  if (!config) return;
31264
31695
  return /*#__PURE__*/React__default['default'].createElement("div", {
31265
31696
  style: boxStyle
@@ -31277,15 +31708,21 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
31277
31708
  }
31278
31709
  }, /*#__PURE__*/React__default['default'].createElement("span", {
31279
31710
  className: "requiredMark"
31280
- })) || null, _this.renderCompItem(config, function (a, b) {
31281
- var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
31282
- var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
31283
- return showValue(a, b, c, d);
31284
- }, function (a, b) {
31285
- var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
31286
- var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
31287
- return handleEdit(a, b, c, d);
31288
- }, disabled), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React__default['default'].createElement("div", {
31711
+ })) || null, /*#__PURE__*/React__default['default'].createElement(RenderCompItem, {
31712
+ regularDataList: _this.props.regularDataList,
31713
+ ites: config,
31714
+ showValue: function showValue(a, b) {
31715
+ var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
31716
+ var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
31717
+ return _showValue(a, b, c, d);
31718
+ },
31719
+ handleEdit: function handleEdit(a, b) {
31720
+ var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : parentItem;
31721
+ var d = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : config;
31722
+ return _handleEdit(a, b, c, d);
31723
+ },
31724
+ disabled: disabled
31725
+ }), (config === null || config === void 0 ? void 0 : config.rightText) && /*#__PURE__*/React__default['default'].createElement("div", {
31289
31726
  style: {
31290
31727
  flex: 'none',
31291
31728
  marginLeft: 10