@bit-sun/business-component 4.2.0-alpha.6.7 → 4.2.0-alpha.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -7852,116 +7852,6 @@ var AddSelect = function AddSelect(props) {
7852
7852
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7853
7853
  return acc;
7854
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
- }
7965
7855
  return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7966
7856
  value: text || '',
7967
7857
  min: 0,
@@ -7979,16 +7869,16 @@ var AddSelect = function AddSelect(props) {
7979
7869
  // }}
7980
7870
  onKeyDown: function onKeyDown(e) {
7981
7871
  if (e.keyCode === 13 && e.ctrlKey) {
7982
- var _document$getElementB2;
7872
+ var _document$getElementB;
7983
7873
  handleOk(true);
7984
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7874
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7985
7875
  }
7986
7876
  if (e.keyCode === 8 && e.ctrlKey) {
7987
- var _e$nativeEvent$path$6;
7877
+ var _e$nativeEvent$path$;
7988
7878
  message$1.success('删除当前行');
7989
7879
  e.stopPropagation();
7990
7880
  e.preventDefault();
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];
7881
+ 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];
7992
7882
  if (dom) {
7993
7883
  dom.select();
7994
7884
  dom.focus();
@@ -7998,47 +7888,47 @@ var AddSelect = function AddSelect(props) {
7998
7888
  deleteRecord(record);
7999
7889
  }
8000
7890
  if (e.keyCode === 37 && e.shiftKey) {
8001
- var _e$nativeEvent$path$7;
7891
+ var _e$nativeEvent$path$2;
8002
7892
  // 左滑动
8003
7893
  e.stopPropagation();
8004
7894
  e.preventDefault();
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);
7895
+ 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];
7896
+ if (_dom) {
7897
+ _dom.select();
7898
+ _dom.focus();
7899
+ _dom.scrollIntoView(false);
8010
7900
  }
8011
- _dom4 = null;
7901
+ _dom = null;
8012
7902
  }
8013
7903
  if (e.keyCode === 39 && e.shiftKey) {
8014
- var _e$nativeEvent$path$8;
7904
+ var _e$nativeEvent$path$3;
8015
7905
  // 右滑
8016
7906
  e.stopPropagation();
8017
7907
  e.preventDefault();
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);
7908
+ 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];
7909
+ if (_dom2) {
7910
+ _dom2.select();
7911
+ _dom2.focus();
7912
+ _dom2.scrollIntoView(false);
8023
7913
  }
8024
- _dom5 = null;
7914
+ _dom2 = null;
8025
7915
  }
8026
7916
  if (e.keyCode === 40) {
8027
- var _e$nativeEvent$path$9;
7917
+ var _e$nativeEvent$path$4;
8028
7918
  e.stopPropagation();
8029
7919
  e.preventDefault();
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);
7920
+ 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];
7921
+ if (_dom3) {
7922
+ _dom3.select();
7923
+ _dom3.focus();
7924
+ _dom3.scrollIntoView(false);
8035
7925
  }
8036
- _dom6 = null;
7926
+ _dom3 = null;
8037
7927
  } else if (e.keyCode === 38) {
8038
- var _e$nativeEvent$path$10;
7928
+ var _e$nativeEvent$path$5;
8039
7929
  e.stopPropagation();
8040
7930
  e.preventDefault();
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];
7931
+ 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];
8042
7932
  if (dom1) {
8043
7933
  // dom1.value=""
8044
7934
  // dom1.setSelectionRange(100, 0);
@@ -8072,19 +7962,19 @@ var AddSelect = function AddSelect(props) {
8072
7962
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
8073
7963
  value: text || null,
8074
7964
  onChange: function () {
8075
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
7965
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
8076
7966
  var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8077
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8078
- while (1) switch (_context3.prev = _context3.next) {
7967
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7968
+ while (1) switch (_context2.prev = _context2.next) {
8079
7969
  case 0:
8080
7970
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
8081
7971
  return d[selectKey] == value;
8082
7972
  })) || {};
8083
7973
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
8084
- _context3.next = 6;
7974
+ _context2.next = 6;
8085
7975
  break;
8086
7976
  }
8087
- _context3.next = 4;
7977
+ _context2.next = 4;
8088
7978
  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, {
8089
7979
  record: record,
8090
7980
  index: index,
@@ -8095,7 +7985,7 @@ var AddSelect = function AddSelect(props) {
8095
7985
  editRecord: editRecord
8096
7986
  });
8097
7987
  case 4:
8098
- _context3.next = 25;
7988
+ _context2.next = 25;
8099
7989
  break;
8100
7990
  case 6:
8101
7991
  // 更新当前行数据函数
@@ -8110,12 +8000,12 @@ var AddSelect = function AddSelect(props) {
8110
8000
  }
8111
8001
  }; // 处理校验,默认不校验
8112
8002
  isCheckPass = true;
8113
- _context3.prev = 8;
8003
+ _context2.prev = 8;
8114
8004
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
8115
- _context3.next = 15;
8005
+ _context2.next = 15;
8116
8006
  break;
8117
8007
  }
8118
- _context3.next = 12;
8008
+ _context2.next = 12;
8119
8009
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
8120
8010
  record: record,
8121
8011
  index: index,
@@ -8125,21 +8015,21 @@ var AddSelect = function AddSelect(props) {
8125
8015
  dataSourceSelectItem: dataSourceSelectItem
8126
8016
  });
8127
8017
  case 12:
8128
- isCheckPass = _context3.sent;
8129
- _context3.next = 19;
8018
+ isCheckPass = _context2.sent;
8019
+ _context2.next = 19;
8130
8020
  break;
8131
8021
  case 15:
8132
- _context3.next = 17;
8022
+ _context2.next = 17;
8133
8023
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8134
8024
  case 17:
8135
- isConformToTheRules = _context3.sent;
8025
+ isConformToTheRules = _context2.sent;
8136
8026
  isCheckPass = !isConformToTheRules;
8137
8027
  case 19:
8138
- _context3.next = 23;
8028
+ _context2.next = 23;
8139
8029
  break;
8140
8030
  case 21:
8141
- _context3.prev = 21;
8142
- _context3.t0 = _context3["catch"](8);
8031
+ _context2.prev = 21;
8032
+ _context2.t0 = _context2["catch"](8);
8143
8033
  case 23:
8144
8034
  if (isCheckPass) {
8145
8035
  changeValue(value, dataSourceSelectItem);
@@ -8150,11 +8040,11 @@ var AddSelect = function AddSelect(props) {
8150
8040
  editRecord(record);
8151
8041
  case 25:
8152
8042
  case "end":
8153
- return _context3.stop();
8043
+ return _context2.stop();
8154
8044
  }
8155
- }, _callee3, null, [[8, 21]]);
8045
+ }, _callee2, null, [[8, 21]]);
8156
8046
  }));
8157
- function onChange(_x8) {
8047
+ function onChange(_x7) {
8158
8048
  return _onChange.apply(this, arguments);
8159
8049
  }
8160
8050
  return onChange;
@@ -8414,8 +8304,8 @@ var AddSelect = function AddSelect(props) {
8414
8304
  }
8415
8305
  }
8416
8306
  setTimeout(function () {
8417
- var _document$getElementB3;
8418
- (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8307
+ var _document$getElementB2;
8308
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8419
8309
  }, 50);
8420
8310
  };
8421
8311
  // 将格式化完的数据回显到 表格中
@@ -8445,7 +8335,7 @@ var AddSelect = function AddSelect(props) {
8445
8335
  handleLoading(isContinue, true);
8446
8336
  onSaveCallback(popvalue).then(function (res) {
8447
8337
  {
8448
- var _Object$keys2, _document$getElementB4;
8338
+ var _Object$keys2, _document$getElementB3;
8449
8339
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8450
8340
  var initSuccessMessage = '保存成功';
8451
8341
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8455,7 +8345,7 @@ var AddSelect = function AddSelect(props) {
8455
8345
  message$1.success(initSuccessMessage);
8456
8346
  }
8457
8347
  deleteSelectRows();
8458
- (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8348
+ (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8459
8349
  !isContinue && handleCancel();
8460
8350
  }
8461
8351
  handleLoading(isContinue, false);
@@ -11109,7 +10999,7 @@ function commonFun(type, prefixUrl, parentProps) {
11109
10999
  options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
11110
11000
  }], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
11111
11001
  var fieldLoadSource = fieldsRequest.map(function (i) {
11112
- return loadSelectSource$1(i.url, i.params, i.options);
11002
+ return loadSelectSource$1(i.url, i.params, options);
11113
11003
  });
11114
11004
  requestConfig = _objectSpread2({
11115
11005
  url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
@@ -11458,14 +11348,6 @@ function commonFun(type, prefixUrl, parentProps) {
11458
11348
  render: function render(text) {
11459
11349
  return getDictionaryTextByValue$1('SC00004', text);
11460
11350
  }
11461
- }, {
11462
- title: '运营组名称',
11463
- dataIndex: 'groupCode',
11464
- defaultSort: 7,
11465
- render: function render(text, record) {
11466
- return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11467
- },
11468
- width: 100
11469
11351
  }, {
11470
11352
  title: '所属销售渠道',
11471
11353
  dataIndex: 'channelName',
@@ -11487,7 +11369,7 @@ function commonFun(type, prefixUrl, parentProps) {
11487
11369
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11488
11370
  title: '状态',
11489
11371
  dataIndex: 'isEnable',
11490
- defaultSort: 8,
11372
+ defaultSort: 7,
11491
11373
  render: function render(text) {
11492
11374
  return getDictionaryTextByValue$1('SC00001', text);
11493
11375
  }
@@ -12029,17 +11911,12 @@ function commonFun(type, prefixUrl, parentProps) {
12029
11911
  sourceName: 'code'
12030
11912
  }, requestConfigProp);
12031
11913
  tableSearchForm = [{
12032
- name: 'name*multiInput',
12033
- label: '店铺名称',
12034
- type: 'multipleQueryInput'
11914
+ name: 'qp-name-like',
11915
+ label: '店铺名称'
11916
+ }, {
11917
+ name: 'qp-code-like',
11918
+ label: '店铺编码'
12035
11919
  }, {
12036
- name: 'code*multiInput',
12037
- label: '店铺编码',
12038
- type: 'multipleQueryInput'
12039
- },
12040
- // { name: 'qp-name-like', label: '店铺名称' },
12041
- // { name: 'qp-code-like', label: '店铺编码' },
12042
- {
12043
11920
  name: 'qp-conglomerateCode-in',
12044
11921
  type: 'select',
12045
11922
  label: '归属集团',
@@ -38602,8 +38479,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38602
38479
  display: 'flex',
38603
38480
  marginBottom: '0px',
38604
38481
  padding: '10px 0px'
38605
- },
38606
- key: itemDetail.elementId
38482
+ }
38607
38483
  }, /*#__PURE__*/React$1.createElement("div", {
38608
38484
  className: 'logical_operate_content',
38609
38485
  style: {
package/dist/index.js CHANGED
@@ -7875,116 +7875,6 @@ var AddSelect = function AddSelect(props) {
7875
7875
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7876
7876
  return acc;
7877
7877
  }, {});
7878
- // 可输入非数字字符
7879
- if (item.canInputString) {
7880
- return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
7881
- min: 0,
7882
- precision: 0,
7883
- controls: false
7884
- }, inputProps), {}, {
7885
- value: text || '',
7886
- keyboard: false,
7887
- onPressEnter: function onPressEnter(e) {
7888
- e.target.blur();
7889
- },
7890
- onBlur: function () {
7891
- var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7892
- var value;
7893
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7894
- while (1) switch (_context2.prev = _context2.next) {
7895
- case 0:
7896
- value = e.target.value;
7897
- record[item.dataIndex] = value;
7898
- editRecord(record);
7899
- case 3:
7900
- case "end":
7901
- return _context2.stop();
7902
- }
7903
- }, _callee2);
7904
- }));
7905
- function onBlur(_x7) {
7906
- return _onBlur.apply(this, arguments);
7907
- }
7908
- return onBlur;
7909
- }(),
7910
- onKeyDown: function onKeyDown(e) {
7911
- if (e.keyCode === 13 && e.ctrlKey) {
7912
- var _document$getElementB;
7913
- handleOk(true);
7914
- (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7915
- }
7916
- if (e.keyCode === 8 && e.ctrlKey) {
7917
- var _e$nativeEvent$path$;
7918
- antd.message.success('删除当前行');
7919
- e.stopPropagation();
7920
- e.preventDefault();
7921
- 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];
7922
- if (dom) {
7923
- dom.select();
7924
- dom.focus();
7925
- dom.scrollIntoView(false);
7926
- }
7927
- dom = null;
7928
- deleteRecord(record);
7929
- }
7930
- if (e.keyCode === 37 && e.shiftKey) {
7931
- var _e$nativeEvent$path$2;
7932
- // 左滑动
7933
- e.stopPropagation();
7934
- e.preventDefault();
7935
- 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];
7936
- if (_dom) {
7937
- _dom.select();
7938
- _dom.focus();
7939
- _dom.scrollIntoView(false);
7940
- }
7941
- _dom = null;
7942
- }
7943
- if (e.keyCode === 39 && e.shiftKey) {
7944
- var _e$nativeEvent$path$3;
7945
- // 右滑
7946
- e.stopPropagation();
7947
- e.preventDefault();
7948
- 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];
7949
- if (_dom2) {
7950
- _dom2.select();
7951
- _dom2.focus();
7952
- _dom2.scrollIntoView(false);
7953
- }
7954
- _dom2 = null;
7955
- }
7956
- if (e.keyCode === 40) {
7957
- var _e$nativeEvent$path$4;
7958
- e.stopPropagation();
7959
- e.preventDefault();
7960
- 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];
7961
- if (_dom3) {
7962
- _dom3.select();
7963
- _dom3.focus();
7964
- _dom3.scrollIntoView(false);
7965
- }
7966
- _dom3 = null;
7967
- } else if (e.keyCode === 38) {
7968
- var _e$nativeEvent$path$5;
7969
- e.stopPropagation();
7970
- e.preventDefault();
7971
- 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];
7972
- if (dom1) {
7973
- // dom1.value=""
7974
- // dom1.setSelectionRange(100, 0);
7975
- dom1.select();
7976
- dom1.focus();
7977
- dom1.scrollIntoViewIfNeeded(false);
7978
- // dom1.value=record['count']
7979
- }
7980
- dom1 = null;
7981
- } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
7982
- e.stopPropagation();
7983
- e.preventDefault();
7984
- }
7985
- }
7986
- }));
7987
- }
7988
7878
  return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7989
7879
  value: text || '',
7990
7880
  min: 0,
@@ -8002,16 +7892,16 @@ var AddSelect = function AddSelect(props) {
8002
7892
  // }}
8003
7893
  onKeyDown: function onKeyDown(e) {
8004
7894
  if (e.keyCode === 13 && e.ctrlKey) {
8005
- var _document$getElementB2;
7895
+ var _document$getElementB;
8006
7896
  handleOk(true);
8007
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7897
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
8008
7898
  }
8009
7899
  if (e.keyCode === 8 && e.ctrlKey) {
8010
- var _e$nativeEvent$path$6;
7900
+ var _e$nativeEvent$path$;
8011
7901
  antd.message.success('删除当前行');
8012
7902
  e.stopPropagation();
8013
7903
  e.preventDefault();
8014
- 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];
7904
+ 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];
8015
7905
  if (dom) {
8016
7906
  dom.select();
8017
7907
  dom.focus();
@@ -8021,47 +7911,47 @@ var AddSelect = function AddSelect(props) {
8021
7911
  deleteRecord(record);
8022
7912
  }
8023
7913
  if (e.keyCode === 37 && e.shiftKey) {
8024
- var _e$nativeEvent$path$7;
7914
+ var _e$nativeEvent$path$2;
8025
7915
  // 左滑动
8026
7916
  e.stopPropagation();
8027
7917
  e.preventDefault();
8028
- 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];
8029
- if (_dom4) {
8030
- _dom4.select();
8031
- _dom4.focus();
8032
- _dom4.scrollIntoView(false);
7918
+ 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];
7919
+ if (_dom) {
7920
+ _dom.select();
7921
+ _dom.focus();
7922
+ _dom.scrollIntoView(false);
8033
7923
  }
8034
- _dom4 = null;
7924
+ _dom = null;
8035
7925
  }
8036
7926
  if (e.keyCode === 39 && e.shiftKey) {
8037
- var _e$nativeEvent$path$8;
7927
+ var _e$nativeEvent$path$3;
8038
7928
  // 右滑
8039
7929
  e.stopPropagation();
8040
7930
  e.preventDefault();
8041
- 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];
8042
- if (_dom5) {
8043
- _dom5.select();
8044
- _dom5.focus();
8045
- _dom5.scrollIntoView(false);
7931
+ 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];
7932
+ if (_dom2) {
7933
+ _dom2.select();
7934
+ _dom2.focus();
7935
+ _dom2.scrollIntoView(false);
8046
7936
  }
8047
- _dom5 = null;
7937
+ _dom2 = null;
8048
7938
  }
8049
7939
  if (e.keyCode === 40) {
8050
- var _e$nativeEvent$path$9;
7940
+ var _e$nativeEvent$path$4;
8051
7941
  e.stopPropagation();
8052
7942
  e.preventDefault();
8053
- 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];
8054
- if (_dom6) {
8055
- _dom6.select();
8056
- _dom6.focus();
8057
- _dom6.scrollIntoView(false);
7943
+ 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];
7944
+ if (_dom3) {
7945
+ _dom3.select();
7946
+ _dom3.focus();
7947
+ _dom3.scrollIntoView(false);
8058
7948
  }
8059
- _dom6 = null;
7949
+ _dom3 = null;
8060
7950
  } else if (e.keyCode === 38) {
8061
- var _e$nativeEvent$path$10;
7951
+ var _e$nativeEvent$path$5;
8062
7952
  e.stopPropagation();
8063
7953
  e.preventDefault();
8064
- 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];
7954
+ 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];
8065
7955
  if (dom1) {
8066
7956
  // dom1.value=""
8067
7957
  // dom1.setSelectionRange(100, 0);
@@ -8095,19 +7985,19 @@ var AddSelect = function AddSelect(props) {
8095
7985
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
8096
7986
  value: text || null,
8097
7987
  onChange: function () {
8098
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
7988
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
8099
7989
  var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8100
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8101
- while (1) switch (_context3.prev = _context3.next) {
7990
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7991
+ while (1) switch (_context2.prev = _context2.next) {
8102
7992
  case 0:
8103
7993
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
8104
7994
  return d[selectKey] == value;
8105
7995
  })) || {};
8106
7996
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
8107
- _context3.next = 6;
7997
+ _context2.next = 6;
8108
7998
  break;
8109
7999
  }
8110
- _context3.next = 4;
8000
+ _context2.next = 4;
8111
8001
  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, {
8112
8002
  record: record,
8113
8003
  index: index,
@@ -8118,7 +8008,7 @@ var AddSelect = function AddSelect(props) {
8118
8008
  editRecord: editRecord
8119
8009
  });
8120
8010
  case 4:
8121
- _context3.next = 25;
8011
+ _context2.next = 25;
8122
8012
  break;
8123
8013
  case 6:
8124
8014
  // 更新当前行数据函数
@@ -8133,12 +8023,12 @@ var AddSelect = function AddSelect(props) {
8133
8023
  }
8134
8024
  }; // 处理校验,默认不校验
8135
8025
  isCheckPass = true;
8136
- _context3.prev = 8;
8026
+ _context2.prev = 8;
8137
8027
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
8138
- _context3.next = 15;
8028
+ _context2.next = 15;
8139
8029
  break;
8140
8030
  }
8141
- _context3.next = 12;
8031
+ _context2.next = 12;
8142
8032
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
8143
8033
  record: record,
8144
8034
  index: index,
@@ -8148,21 +8038,21 @@ var AddSelect = function AddSelect(props) {
8148
8038
  dataSourceSelectItem: dataSourceSelectItem
8149
8039
  });
8150
8040
  case 12:
8151
- isCheckPass = _context3.sent;
8152
- _context3.next = 19;
8041
+ isCheckPass = _context2.sent;
8042
+ _context2.next = 19;
8153
8043
  break;
8154
8044
  case 15:
8155
- _context3.next = 17;
8045
+ _context2.next = 17;
8156
8046
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8157
8047
  case 17:
8158
- isConformToTheRules = _context3.sent;
8048
+ isConformToTheRules = _context2.sent;
8159
8049
  isCheckPass = !isConformToTheRules;
8160
8050
  case 19:
8161
- _context3.next = 23;
8051
+ _context2.next = 23;
8162
8052
  break;
8163
8053
  case 21:
8164
- _context3.prev = 21;
8165
- _context3.t0 = _context3["catch"](8);
8054
+ _context2.prev = 21;
8055
+ _context2.t0 = _context2["catch"](8);
8166
8056
  case 23:
8167
8057
  if (isCheckPass) {
8168
8058
  changeValue(value, dataSourceSelectItem);
@@ -8173,11 +8063,11 @@ var AddSelect = function AddSelect(props) {
8173
8063
  editRecord(record);
8174
8064
  case 25:
8175
8065
  case "end":
8176
- return _context3.stop();
8066
+ return _context2.stop();
8177
8067
  }
8178
- }, _callee3, null, [[8, 21]]);
8068
+ }, _callee2, null, [[8, 21]]);
8179
8069
  }));
8180
- function onChange(_x8) {
8070
+ function onChange(_x7) {
8181
8071
  return _onChange.apply(this, arguments);
8182
8072
  }
8183
8073
  return onChange;
@@ -8437,8 +8327,8 @@ var AddSelect = function AddSelect(props) {
8437
8327
  }
8438
8328
  }
8439
8329
  setTimeout(function () {
8440
- var _document$getElementB3;
8441
- (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8330
+ var _document$getElementB2;
8331
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8442
8332
  }, 50);
8443
8333
  };
8444
8334
  // 将格式化完的数据回显到 表格中
@@ -8468,7 +8358,7 @@ var AddSelect = function AddSelect(props) {
8468
8358
  handleLoading(isContinue, true);
8469
8359
  onSaveCallback(popvalue).then(function (res) {
8470
8360
  {
8471
- var _Object$keys2, _document$getElementB4;
8361
+ var _Object$keys2, _document$getElementB3;
8472
8362
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8473
8363
  var initSuccessMessage = '保存成功';
8474
8364
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8478,7 +8368,7 @@ var AddSelect = function AddSelect(props) {
8478
8368
  antd.message.success(initSuccessMessage);
8479
8369
  }
8480
8370
  deleteSelectRows();
8481
- (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8371
+ (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8482
8372
  !isContinue && handleCancel();
8483
8373
  }
8484
8374
  handleLoading(isContinue, false);
@@ -11132,7 +11022,7 @@ function commonFun(type, prefixUrl, parentProps) {
11132
11022
  options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
11133
11023
  }], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
11134
11024
  var fieldLoadSource = fieldsRequest.map(function (i) {
11135
- return loadSelectSource$1(i.url, i.params, i.options);
11025
+ return loadSelectSource$1(i.url, i.params, options);
11136
11026
  });
11137
11027
  requestConfig = _objectSpread2({
11138
11028
  url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
@@ -11481,14 +11371,6 @@ function commonFun(type, prefixUrl, parentProps) {
11481
11371
  render: function render(text) {
11482
11372
  return getDictionaryTextByValue$1('SC00004', text);
11483
11373
  }
11484
- }, {
11485
- title: '运营组名称',
11486
- dataIndex: 'groupCode',
11487
- defaultSort: 7,
11488
- render: function render(text, record) {
11489
- return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11490
- },
11491
- width: 100
11492
11374
  }, {
11493
11375
  title: '所属销售渠道',
11494
11376
  dataIndex: 'channelName',
@@ -11510,7 +11392,7 @@ function commonFun(type, prefixUrl, parentProps) {
11510
11392
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11511
11393
  title: '状态',
11512
11394
  dataIndex: 'isEnable',
11513
- defaultSort: 8,
11395
+ defaultSort: 7,
11514
11396
  render: function render(text) {
11515
11397
  return getDictionaryTextByValue$1('SC00001', text);
11516
11398
  }
@@ -12052,17 +11934,12 @@ function commonFun(type, prefixUrl, parentProps) {
12052
11934
  sourceName: 'code'
12053
11935
  }, requestConfigProp);
12054
11936
  tableSearchForm = [{
12055
- name: 'name*multiInput',
12056
- label: '店铺名称',
12057
- type: 'multipleQueryInput'
11937
+ name: 'qp-name-like',
11938
+ label: '店铺名称'
11939
+ }, {
11940
+ name: 'qp-code-like',
11941
+ label: '店铺编码'
12058
11942
  }, {
12059
- name: 'code*multiInput',
12060
- label: '店铺编码',
12061
- type: 'multipleQueryInput'
12062
- },
12063
- // { name: 'qp-name-like', label: '店铺名称' },
12064
- // { name: 'qp-code-like', label: '店铺编码' },
12065
- {
12066
11943
  name: 'qp-conglomerateCode-in',
12067
11944
  type: 'select',
12068
11945
  label: '归属集团',
@@ -38625,8 +38502,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38625
38502
  display: 'flex',
38626
38503
  marginBottom: '0px',
38627
38504
  padding: '10px 0px'
38628
- },
38629
- key: itemDetail.elementId
38505
+ }
38630
38506
  }, /*#__PURE__*/React__default['default'].createElement("div", {
38631
38507
  className: 'logical_operate_content',
38632
38508
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.6.7",
3
+ "version": "4.2.0-alpha.6.8",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -970,7 +970,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
970
970
  ['colorName', 'categoryId', 'classId', 'brandId'],
971
971
  hiddenFields,
972
972
  );
973
- const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,i.options));
973
+ const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,options));
974
974
  requestConfig = {
975
975
  url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
976
976
  filter: 'qp-code,name-orGroup,like', // 过滤参数
@@ -1302,13 +1302,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1302
1302
  defaultSort: 3,
1303
1303
  render: (text: number) => getDictionaryTextByValue('SC00004', text),
1304
1304
  },
1305
- {
1306
- title: '运营组名称',
1307
- dataIndex: 'groupCode',
1308
- defaultSort: 7,
1309
- render: (text: any, record) => record?.groupName ? `【${text}】${record?.groupName}` : "",
1310
- width: 100,
1311
- },
1312
1305
  {
1313
1306
  title: '所属销售渠道',
1314
1307
  dataIndex: 'channelName',
@@ -1331,7 +1324,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1331
1324
  ...(modalTableBusProps?.needStatusSearch?[{
1332
1325
  title: '状态',
1333
1326
  dataIndex: 'isEnable',
1334
- defaultSort: 8,
1327
+ defaultSort: 7,
1335
1328
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1336
1329
  }]:[]),
1337
1330
  ],
@@ -1867,10 +1860,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1867
1860
  ...requestConfigProp,
1868
1861
  }
1869
1862
  tableSearchForm = [
1870
- { name: 'name*multiInput', label: '店铺名称', type: 'multipleQueryInput' },
1871
- { name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
1872
- // { name: 'qp-name-like', label: '店铺名称' },
1873
- // { name: 'qp-code-like', label: '店铺编码' },
1863
+ { name: 'qp-name-like', label: '店铺名称' },
1864
+ { name: 'qp-code-like', label: '店铺编码' },
1874
1865
  { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1875
1866
  type: 'select',
1876
1867
  props: {
@@ -222,98 +222,6 @@ const AddSelect = (props: any) => {
222
222
  acc[key] = typeof value === 'function' ? value?.(record) : value;
223
223
  return acc;
224
224
  }, {});
225
-
226
- // 可输入非数字字符
227
- if(item.canInputString) {
228
- return (
229
- <InputNumber
230
- min={0}
231
- precision={0}
232
- controls={false}
233
- {...inputProps}
234
- value={text || ''}
235
- keyboard={false}
236
- onPressEnter={(e: any) => {
237
- e.target.blur();
238
- }}
239
- onBlur={async (e: any) => {
240
- const {
241
- target: { value },
242
- } = e;
243
- record[item.dataIndex] = value
244
- editRecord(record)
245
- }}
246
- onKeyDown={(e) => {
247
- if(e.keyCode === 13 && e.ctrlKey) {
248
- handleOk(true)
249
- document.getElementById("first-query")?.focus()
250
- }
251
- if(e.keyCode === 8 && e.ctrlKey) {
252
- message.success('删除当前行')
253
- e.stopPropagation();
254
- e.preventDefault();
255
- let dom = e.nativeEvent.path[5].children[index + 2]?.getElementsByTagName('input')[currentIndex]
256
- if (dom) {
257
- dom.select();
258
- dom.focus();
259
- dom.scrollIntoView(false)
260
- }
261
- dom = null
262
- deleteRecord(record, popvalue);
263
- }
264
- if (e.keyCode === 37 && e.shiftKey) { // 左滑动
265
- e.stopPropagation();
266
- e.preventDefault();
267
- let dom = e.nativeEvent.path[5].children[index + 1]?.getElementsByTagName('input')[currentIndex - 1]
268
- if (dom) {
269
- dom.select();
270
- dom.focus();
271
- dom.scrollIntoView(false)
272
- }
273
- dom = null
274
- }
275
- if (e.keyCode === 39 && e.shiftKey) { // 右滑
276
- e.stopPropagation();
277
- e.preventDefault();
278
- let dom = e.nativeEvent.path[5].children[index + 1]?.getElementsByTagName('input')[currentIndex + 1]
279
- if (dom) {
280
- dom.select();
281
- dom.focus();
282
- dom.scrollIntoView(false)
283
- }
284
- dom = null
285
- }
286
- if (e.keyCode === 40) {
287
- e.stopPropagation();
288
- e.preventDefault();
289
- let dom = e.nativeEvent.path[5].children[index + 2]?.getElementsByTagName('input')[currentIndex]
290
- if (dom) {
291
- dom.select();
292
- dom.focus();
293
- dom.scrollIntoView(false)
294
- }
295
- dom = null
296
- } else if (e.keyCode === 38) {
297
- e.stopPropagation();
298
- e.preventDefault();
299
- let dom1 = e.nativeEvent.path[5].children[index]?.getElementsByTagName('input')[currentIndex]
300
- if (dom1) {
301
- // dom1.value=""
302
- // dom1.setSelectionRange(100, 0);
303
- dom1.select();
304
- dom1.focus();
305
- dom1.scrollIntoViewIfNeeded(false)
306
- // dom1.value=record['count']
307
- }
308
- dom1 = null
309
- } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
310
- e.stopPropagation();
311
- e.preventDefault();
312
- }
313
- }}
314
- />
315
- );
316
- }
317
225
 
318
226
  return (
319
227
  <InputNumber
@@ -748,7 +748,6 @@ class RuleObjectComponent extends Component {
748
748
  <div
749
749
  className={'rule_line_content'}
750
750
  style={{ display: 'flex', marginBottom: '0px', padding: '10px 0px' }}
751
- key={itemDetail.elementId}
752
751
  >
753
752
  <div
754
753
  className={'logical_operate_content'}