@bit-sun/business-component 4.2.0-alpha.6.2 → 4.2.0-alpha.6.3

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.
@@ -0,0 +1,78 @@
1
+ declare const SystemLog: ({ modeType, code, containerName, renderLogRef, extraParams, }: {
2
+ modeType: string;
3
+ code: any;
4
+ containerName: string;
5
+ renderLogRef: object;
6
+ extraParams?: object | undefined;
7
+ }) => {
8
+ initialVisible: boolean;
9
+ fields: {
10
+ name: string;
11
+ label: boolean;
12
+ itemLayout: {
13
+ span: number;
14
+ labelCol: {
15
+ span: number;
16
+ };
17
+ wrapperCol: {
18
+ span: number;
19
+ };
20
+ };
21
+ field: (ctx: any) => any;
22
+ }[];
23
+ container: {
24
+ type: string;
25
+ props: {
26
+ title: any;
27
+ id: number;
28
+ level: number;
29
+ name: string;
30
+ bordered?: undefined;
31
+ isWhiteCard?: undefined;
32
+ };
33
+ };
34
+ itemLayout: {
35
+ span: number;
36
+ labelCol: {
37
+ span: number;
38
+ };
39
+ wrapperCol: {
40
+ span: number;
41
+ };
42
+ };
43
+ } | {
44
+ initialVisible: boolean;
45
+ fields: {
46
+ name: string;
47
+ label: boolean;
48
+ itemLayout: {
49
+ span: number;
50
+ labelCol: {
51
+ span: number;
52
+ };
53
+ wrapperCol: {
54
+ span: number;
55
+ };
56
+ };
57
+ field: (ctx: any) => any;
58
+ }[];
59
+ container: {
60
+ type: string;
61
+ props: {
62
+ title: any;
63
+ id: number;
64
+ level: number;
65
+ bordered: null;
66
+ isWhiteCard: boolean;
67
+ name: string;
68
+ };
69
+ };
70
+ itemLayout: {
71
+ wrapperCol: {
72
+ span: number;
73
+ };
74
+ span?: undefined;
75
+ labelCol?: undefined;
76
+ };
77
+ };
78
+ export default SystemLog;
package/dist/index.d.ts CHANGED
@@ -36,3 +36,4 @@ export { default as RuleSetter } from './components/Solution/RuleSetter';
36
36
  export { default as ExtendedCollapse } from './components/Common/ExtendedCollapse';
37
37
  export { default as Section } from './components/Common/Section';
38
38
  export { default as ParagraphCopier } from './components/Common/ParagraphCopier';
39
+ export { default as SystemLog } from './components/Business/SystemLog';
package/dist/index.esm.js CHANGED
@@ -1454,6 +1454,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
1454
1454
  var noEmptyArray = function noEmptyArray(targetObj) {
1455
1455
  return Array.isArray(targetObj) && targetObj.length !== 0;
1456
1456
  };
1457
+ var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
1458
+ return type === 'form' ? {
1459
+ container: {
1460
+ type: 'card',
1461
+ props: {
1462
+ title: title,
1463
+ id: Math.random(),
1464
+ level: 1,
1465
+ name: name
1466
+ }
1467
+ },
1468
+ itemLayout: {
1469
+ span: 8,
1470
+ labelCol: {
1471
+ span: 8
1472
+ },
1473
+ wrapperCol: {
1474
+ span: 18
1475
+ }
1476
+ }
1477
+ } : {
1478
+ container: {
1479
+ type: 'card',
1480
+ props: {
1481
+ title: title,
1482
+ id: Math.random(),
1483
+ level: 1,
1484
+ bordered: null,
1485
+ isWhiteCard: true,
1486
+ name: name
1487
+ }
1488
+ },
1489
+ itemLayout: {
1490
+ wrapperCol: {
1491
+ span: 0
1492
+ }
1493
+ }
1494
+ };
1495
+ };
1457
1496
 
1458
1497
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1459
1498
  var authFunc = function authFunc(code) {
@@ -7813,6 +7852,116 @@ var AddSelect = function AddSelect(props) {
7813
7852
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7814
7853
  return acc;
7815
7854
  }, {});
7855
+ // 可输入非数字字符
7856
+ if (item.canInputString) {
7857
+ return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
7858
+ min: 0,
7859
+ precision: 0,
7860
+ controls: false
7861
+ }, inputProps), {}, {
7862
+ value: text || '',
7863
+ keyboard: false,
7864
+ onPressEnter: function onPressEnter(e) {
7865
+ e.target.blur();
7866
+ },
7867
+ onBlur: function () {
7868
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7869
+ var value;
7870
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7871
+ while (1) switch (_context2.prev = _context2.next) {
7872
+ case 0:
7873
+ value = e.target.value;
7874
+ record[item.dataIndex] = value;
7875
+ editRecord(record);
7876
+ case 3:
7877
+ case "end":
7878
+ return _context2.stop();
7879
+ }
7880
+ }, _callee2);
7881
+ }));
7882
+ function onBlur(_x7) {
7883
+ return _onBlur.apply(this, arguments);
7884
+ }
7885
+ return onBlur;
7886
+ }(),
7887
+ onKeyDown: function onKeyDown(e) {
7888
+ if (e.keyCode === 13 && e.ctrlKey) {
7889
+ var _document$getElementB;
7890
+ handleOk(true);
7891
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7892
+ }
7893
+ if (e.keyCode === 8 && e.ctrlKey) {
7894
+ var _e$nativeEvent$path$;
7895
+ message$1.success('删除当前行');
7896
+ e.stopPropagation();
7897
+ e.preventDefault();
7898
+ var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7899
+ if (dom) {
7900
+ dom.select();
7901
+ dom.focus();
7902
+ dom.scrollIntoView(false);
7903
+ }
7904
+ dom = null;
7905
+ deleteRecord(record);
7906
+ }
7907
+ if (e.keyCode === 37 && e.shiftKey) {
7908
+ var _e$nativeEvent$path$2;
7909
+ // 左滑动
7910
+ e.stopPropagation();
7911
+ e.preventDefault();
7912
+ var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7913
+ if (_dom) {
7914
+ _dom.select();
7915
+ _dom.focus();
7916
+ _dom.scrollIntoView(false);
7917
+ }
7918
+ _dom = null;
7919
+ }
7920
+ if (e.keyCode === 39 && e.shiftKey) {
7921
+ var _e$nativeEvent$path$3;
7922
+ // 右滑
7923
+ e.stopPropagation();
7924
+ e.preventDefault();
7925
+ var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7926
+ if (_dom2) {
7927
+ _dom2.select();
7928
+ _dom2.focus();
7929
+ _dom2.scrollIntoView(false);
7930
+ }
7931
+ _dom2 = null;
7932
+ }
7933
+ if (e.keyCode === 40) {
7934
+ var _e$nativeEvent$path$4;
7935
+ e.stopPropagation();
7936
+ e.preventDefault();
7937
+ var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7938
+ if (_dom3) {
7939
+ _dom3.select();
7940
+ _dom3.focus();
7941
+ _dom3.scrollIntoView(false);
7942
+ }
7943
+ _dom3 = null;
7944
+ } else if (e.keyCode === 38) {
7945
+ var _e$nativeEvent$path$5;
7946
+ e.stopPropagation();
7947
+ e.preventDefault();
7948
+ var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7949
+ if (dom1) {
7950
+ // dom1.value=""
7951
+ // dom1.setSelectionRange(100, 0);
7952
+ dom1.select();
7953
+ dom1.focus();
7954
+ dom1.scrollIntoViewIfNeeded(false);
7955
+ // dom1.value=record['count']
7956
+ }
7957
+ dom1 = null;
7958
+ } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
7959
+ e.stopPropagation();
7960
+ e.preventDefault();
7961
+ }
7962
+ }
7963
+ }));
7964
+ }
7816
7965
  return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7817
7966
  value: text || '',
7818
7967
  min: 0,
@@ -7830,16 +7979,16 @@ var AddSelect = function AddSelect(props) {
7830
7979
  // }}
7831
7980
  onKeyDown: function onKeyDown(e) {
7832
7981
  if (e.keyCode === 13 && e.ctrlKey) {
7833
- var _document$getElementB;
7982
+ var _document$getElementB2;
7834
7983
  handleOk(true);
7835
- (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7984
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7836
7985
  }
7837
7986
  if (e.keyCode === 8 && e.ctrlKey) {
7838
- var _e$nativeEvent$path$;
7987
+ var _e$nativeEvent$path$6;
7839
7988
  message$1.success('删除当前行');
7840
7989
  e.stopPropagation();
7841
7990
  e.preventDefault();
7842
- var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7991
+ var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
7843
7992
  if (dom) {
7844
7993
  dom.select();
7845
7994
  dom.focus();
@@ -7849,47 +7998,47 @@ var AddSelect = function AddSelect(props) {
7849
7998
  deleteRecord(record);
7850
7999
  }
7851
8000
  if (e.keyCode === 37 && e.shiftKey) {
7852
- var _e$nativeEvent$path$2;
8001
+ var _e$nativeEvent$path$7;
7853
8002
  // 左滑动
7854
8003
  e.stopPropagation();
7855
8004
  e.preventDefault();
7856
- var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7857
- if (_dom) {
7858
- _dom.select();
7859
- _dom.focus();
7860
- _dom.scrollIntoView(false);
8005
+ var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
8006
+ if (_dom4) {
8007
+ _dom4.select();
8008
+ _dom4.focus();
8009
+ _dom4.scrollIntoView(false);
7861
8010
  }
7862
- _dom = null;
8011
+ _dom4 = null;
7863
8012
  }
7864
8013
  if (e.keyCode === 39 && e.shiftKey) {
7865
- var _e$nativeEvent$path$3;
8014
+ var _e$nativeEvent$path$8;
7866
8015
  // 右滑
7867
8016
  e.stopPropagation();
7868
8017
  e.preventDefault();
7869
- var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7870
- if (_dom2) {
7871
- _dom2.select();
7872
- _dom2.focus();
7873
- _dom2.scrollIntoView(false);
8018
+ var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
8019
+ if (_dom5) {
8020
+ _dom5.select();
8021
+ _dom5.focus();
8022
+ _dom5.scrollIntoView(false);
7874
8023
  }
7875
- _dom2 = null;
8024
+ _dom5 = null;
7876
8025
  }
7877
8026
  if (e.keyCode === 40) {
7878
- var _e$nativeEvent$path$4;
8027
+ var _e$nativeEvent$path$9;
7879
8028
  e.stopPropagation();
7880
8029
  e.preventDefault();
7881
- var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7882
- if (_dom3) {
7883
- _dom3.select();
7884
- _dom3.focus();
7885
- _dom3.scrollIntoView(false);
8030
+ var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
8031
+ if (_dom6) {
8032
+ _dom6.select();
8033
+ _dom6.focus();
8034
+ _dom6.scrollIntoView(false);
7886
8035
  }
7887
- _dom3 = null;
8036
+ _dom6 = null;
7888
8037
  } else if (e.keyCode === 38) {
7889
- var _e$nativeEvent$path$5;
8038
+ var _e$nativeEvent$path$10;
7890
8039
  e.stopPropagation();
7891
8040
  e.preventDefault();
7892
- var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
8041
+ var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
7893
8042
  if (dom1) {
7894
8043
  // dom1.value=""
7895
8044
  // dom1.setSelectionRange(100, 0);
@@ -7923,19 +8072,19 @@ var AddSelect = function AddSelect(props) {
7923
8072
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7924
8073
  value: text || null,
7925
8074
  onChange: function () {
7926
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
8075
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
7927
8076
  var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7928
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7929
- while (1) switch (_context2.prev = _context2.next) {
8077
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8078
+ while (1) switch (_context3.prev = _context3.next) {
7930
8079
  case 0:
7931
8080
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7932
8081
  return d[selectKey] == value;
7933
8082
  })) || {};
7934
8083
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7935
- _context2.next = 6;
8084
+ _context3.next = 6;
7936
8085
  break;
7937
8086
  }
7938
- _context2.next = 4;
8087
+ _context3.next = 4;
7939
8088
  return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
7940
8089
  record: record,
7941
8090
  index: index,
@@ -7946,7 +8095,7 @@ var AddSelect = function AddSelect(props) {
7946
8095
  editRecord: editRecord
7947
8096
  });
7948
8097
  case 4:
7949
- _context2.next = 25;
8098
+ _context3.next = 25;
7950
8099
  break;
7951
8100
  case 6:
7952
8101
  // 更新当前行数据函数
@@ -7961,12 +8110,12 @@ var AddSelect = function AddSelect(props) {
7961
8110
  }
7962
8111
  }; // 处理校验,默认不校验
7963
8112
  isCheckPass = true;
7964
- _context2.prev = 8;
8113
+ _context3.prev = 8;
7965
8114
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7966
- _context2.next = 15;
8115
+ _context3.next = 15;
7967
8116
  break;
7968
8117
  }
7969
- _context2.next = 12;
8118
+ _context3.next = 12;
7970
8119
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7971
8120
  record: record,
7972
8121
  index: index,
@@ -7976,21 +8125,21 @@ var AddSelect = function AddSelect(props) {
7976
8125
  dataSourceSelectItem: dataSourceSelectItem
7977
8126
  });
7978
8127
  case 12:
7979
- isCheckPass = _context2.sent;
7980
- _context2.next = 19;
8128
+ isCheckPass = _context3.sent;
8129
+ _context3.next = 19;
7981
8130
  break;
7982
8131
  case 15:
7983
- _context2.next = 17;
8132
+ _context3.next = 17;
7984
8133
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
7985
8134
  case 17:
7986
- isConformToTheRules = _context2.sent;
8135
+ isConformToTheRules = _context3.sent;
7987
8136
  isCheckPass = !isConformToTheRules;
7988
8137
  case 19:
7989
- _context2.next = 23;
8138
+ _context3.next = 23;
7990
8139
  break;
7991
8140
  case 21:
7992
- _context2.prev = 21;
7993
- _context2.t0 = _context2["catch"](8);
8141
+ _context3.prev = 21;
8142
+ _context3.t0 = _context3["catch"](8);
7994
8143
  case 23:
7995
8144
  if (isCheckPass) {
7996
8145
  changeValue(value, dataSourceSelectItem);
@@ -8001,11 +8150,11 @@ var AddSelect = function AddSelect(props) {
8001
8150
  editRecord(record);
8002
8151
  case 25:
8003
8152
  case "end":
8004
- return _context2.stop();
8153
+ return _context3.stop();
8005
8154
  }
8006
- }, _callee2, null, [[8, 21]]);
8155
+ }, _callee3, null, [[8, 21]]);
8007
8156
  }));
8008
- function onChange(_x7) {
8157
+ function onChange(_x8) {
8009
8158
  return _onChange.apply(this, arguments);
8010
8159
  }
8011
8160
  return onChange;
@@ -8265,8 +8414,8 @@ var AddSelect = function AddSelect(props) {
8265
8414
  }
8266
8415
  }
8267
8416
  setTimeout(function () {
8268
- var _document$getElementB2;
8269
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8417
+ var _document$getElementB3;
8418
+ (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8270
8419
  }, 50);
8271
8420
  };
8272
8421
  // 将格式化完的数据回显到 表格中
@@ -8296,7 +8445,7 @@ var AddSelect = function AddSelect(props) {
8296
8445
  handleLoading(isContinue, true);
8297
8446
  onSaveCallback(popvalue).then(function (res) {
8298
8447
  {
8299
- var _Object$keys2, _document$getElementB3;
8448
+ var _Object$keys2, _document$getElementB4;
8300
8449
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8301
8450
  var initSuccessMessage = '保存成功';
8302
8451
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8306,7 +8455,7 @@ var AddSelect = function AddSelect(props) {
8306
8455
  message$1.success(initSuccessMessage);
8307
8456
  }
8308
8457
  deleteSelectRows();
8309
- (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8458
+ (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8310
8459
  !isContinue && handleCancel();
8311
8460
  }
8312
8461
  handleLoading(isContinue, false);
@@ -40280,4 +40429,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
40280
40429
  }, children));
40281
40430
  };
40282
40431
 
40283
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
40432
+ //操作日志
40433
+ var SystemLog = function SystemLog(_ref) {
40434
+ var modeType = _ref.modeType,
40435
+ code = _ref.code,
40436
+ containerName = _ref.containerName,
40437
+ _ref$renderLogRef = _ref.renderLogRef,
40438
+ renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
40439
+ _ref$extraParams = _ref.extraParams,
40440
+ extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
40441
+ return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
40442
+ initialVisible: modeType != 'create',
40443
+ fields: [{
40444
+ name: 'table',
40445
+ label: false,
40446
+ itemLayout: {
40447
+ span: 24,
40448
+ labelCol: {
40449
+ span: 0
40450
+ },
40451
+ wrapperCol: {
40452
+ span: 24
40453
+ }
40454
+ },
40455
+ field: function field(ctx) {
40456
+ return code && /*#__PURE__*/React$1.createElement(Table$1, {
40457
+ remoteDataSource: {
40458
+ url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
40459
+ convertParams: function convertParams(_ref2) {
40460
+ var params = _ref2.params;
40461
+ return _objectSpread2({
40462
+ pageSize: params.pageSize,
40463
+ currentPage: params.current
40464
+ }, extraParams);
40465
+ },
40466
+ converter: function converter(_ref3) {
40467
+ var data = _ref3.data;
40468
+ return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
40469
+ }
40470
+ },
40471
+ columns: [{
40472
+ title: '操作人',
40473
+ dataIndex: 'handlerName'
40474
+ }, {
40475
+ title: '操作名称',
40476
+ dataIndex: 'handlerType'
40477
+ }, {
40478
+ title: '操作时间',
40479
+ dataIndex: 'handlerTime',
40480
+ render: function render(_ref4) {
40481
+ var text = _ref4.text;
40482
+ return handleCommonTimeRender$1(text);
40483
+ }
40484
+ }, {
40485
+ title: '操作内容',
40486
+ dataIndex: 'logcontent'
40487
+ }],
40488
+ style: {
40489
+ width: '100%',
40490
+ marginTop: '-16px',
40491
+ padding: '0px'
40492
+ },
40493
+ rowKey: "id",
40494
+ scroll: {
40495
+ x: 'max-content'
40496
+ },
40497
+ pagination: {
40498
+ showTotal: function showTotal(total) {
40499
+ return "\u5171 ".concat(total, " \u6761");
40500
+ },
40501
+ showQuickJumper: true,
40502
+ hideOnSinglePage: true
40503
+ },
40504
+ ref: renderLogRef
40505
+ });
40506
+ }
40507
+ }]
40508
+ });
40509
+ };
40510
+
40511
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };