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

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
@@ -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);
@@ -11390,6 +11539,28 @@ function commonFun(type, prefixUrl, parentProps) {
11390
11539
  }
11391
11540
  }
11392
11541
  }
11542
+ }, {
11543
+ name: 'qp-channelCode-in',
11544
+ type: 'treeSelect',
11545
+ label: '销售渠道',
11546
+ field: {
11547
+ type: 'treeSelect',
11548
+ props: {
11549
+ multiple: true,
11550
+ treeData: [],
11551
+ treeCheckable: false,
11552
+ notFoundContent: '暂无数据',
11553
+ allowClear: true,
11554
+ showSearch: true,
11555
+ showArrow: true,
11556
+ maxTagCount: 1,
11557
+ optionFilterProp: 'children',
11558
+ filterOption: function filterOption(input, option) {
11559
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11560
+ },
11561
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11562
+ }
11563
+ }
11393
11564
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11394
11565
  name: 'qp-status-eq',
11395
11566
  type: 'select',
@@ -11402,8 +11573,16 @@ function commonFun(type, prefixUrl, parentProps) {
11402
11573
  });
11403
11574
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11404
11575
  'qp-status-eq': 1
11405
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
11576
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11577
+ 'qp-status-eq': 10,
11578
+ 'qp-isMain-eq': 1,
11579
+ 'qp-type-in': '1,2'
11580
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
11406
11581
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11582
+ var channelDisabledJude = function channelDisabledJude(data) {
11583
+ return data['parentCode'] === '0';
11584
+ }; // 所属销售渠道 树节点不能点判断
11585
+ formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11407
11586
  });
11408
11587
  modalTableProps = _objectSpread2({
11409
11588
  modalTableTitle: '选择运营仓',
@@ -11431,7 +11610,12 @@ function commonFun(type, prefixUrl, parentProps) {
11431
11610
  render: function render(text) {
11432
11611
  return getDictionaryTextByValue$1('SC00001', text);
11433
11612
  }
11434
- }] : []))
11613
+ }] : []), [{
11614
+ title: '所属销售渠道',
11615
+ dataIndex: 'channelName',
11616
+ defaultSort: 5,
11617
+ width: 100
11618
+ }])
11435
11619
  }, modalTableBusProps);
11436
11620
  }
11437
11621
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
@@ -11707,16 +11891,74 @@ function commonFun(type, prefixUrl, parentProps) {
11707
11891
  }
11708
11892
  }
11709
11893
  }
11894
+ }, {
11895
+ name: 'qp-saleChannel-in',
11896
+ type: 'treeSelect',
11897
+ label: '销售渠道',
11898
+ field: {
11899
+ type: 'treeSelect',
11900
+ props: {
11901
+ multiple: true,
11902
+ treeData: [],
11903
+ treeCheckable: false,
11904
+ notFoundContent: '暂无数据',
11905
+ allowClear: true,
11906
+ showSearch: true,
11907
+ showArrow: true,
11908
+ maxTagCount: 1,
11909
+ optionFilterProp: 'children',
11910
+ filterOption: function filterOption(input, option) {
11911
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11912
+ },
11913
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11914
+ }
11915
+ }
11916
+ }, {
11917
+ name: 'qp-refCode-in',
11918
+ type: 'treeSelect',
11919
+ label: '营销区域',
11920
+ field: {
11921
+ type: 'treeSelect',
11922
+ props: {
11923
+ multiple: true,
11924
+ treeData: [],
11925
+ treeCheckable: false,
11926
+ notFoundContent: '暂无数据',
11927
+ allowClear: true,
11928
+ showSearch: true,
11929
+ showArrow: true,
11930
+ maxTagCount: 1,
11931
+ optionFilterProp: 'children',
11932
+ filterOption: function filterOption(input, option) {
11933
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11934
+ },
11935
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11936
+ }
11937
+ }
11710
11938
  }];
11711
11939
  var _queryHeaderParams10 = getQueryHeadersList({
11712
11940
  querySelectHeadersList: querySelectHeadersList,
11713
11941
  extralHeaders: extralHeaders
11714
11942
  });
11715
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
11943
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11944
+ 'qp-status-eq': 10,
11945
+ 'qp-isMain-eq': 1,
11946
+ 'qp-type-in': '1,2'
11947
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11948
+ 'qp-status-eq': 1
11949
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
11716
11950
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11717
11951
  var allList = firstElement && [firstElement, firstElement];
11718
11952
  formatSource(allList, 0, 2, tableSearchForm);
11719
11953
  formatSource(allList, 1, 3, tableSearchForm);
11954
+ var channelDisabledJude = function channelDisabledJude(data) {
11955
+ return data['parentCode'] === '0';
11956
+ }; // 所属销售渠道 树节点不能点判断
11957
+ var areaDisabledJude = function areaDisabledJude(data) {
11958
+ return data['parent'] === '0';
11959
+ }; // 所属营销区域 树节点不能点判断
11960
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11961
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11720
11962
  });
11721
11963
  modalTableProps = _objectSpread2({
11722
11964
  modalTableTitle: '选择客户',
@@ -11740,7 +11982,18 @@ function commonFun(type, prefixUrl, parentProps) {
11740
11982
  }, {
11741
11983
  title: '使用组织',
11742
11984
  dataIndex: 'salesOrgName',
11743
- defaultSort: 4
11985
+ defaultSort: 4,
11986
+ width: 100
11987
+ }, {
11988
+ title: '所属销售渠道',
11989
+ dataIndex: 'channelName',
11990
+ defaultSort: 5,
11991
+ width: 100
11992
+ }, {
11993
+ title: '营销区域',
11994
+ dataIndex: 'commonRelationAreaName',
11995
+ defaultSort: 6,
11996
+ width: 100
11744
11997
  }]
11745
11998
  }, modalTableBusProps);
11746
11999
  }
@@ -40280,4 +40533,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
40280
40533
  }, children));
40281
40534
  };
40282
40535
 
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 };
40536
+ //操作日志
40537
+ var SystemLog = function SystemLog(_ref) {
40538
+ var modeType = _ref.modeType,
40539
+ code = _ref.code,
40540
+ containerName = _ref.containerName,
40541
+ _ref$renderLogRef = _ref.renderLogRef,
40542
+ renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
40543
+ _ref$extraParams = _ref.extraParams,
40544
+ extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
40545
+ return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
40546
+ initialVisible: modeType != 'create',
40547
+ fields: [{
40548
+ name: 'table',
40549
+ label: false,
40550
+ itemLayout: {
40551
+ span: 24,
40552
+ labelCol: {
40553
+ span: 0
40554
+ },
40555
+ wrapperCol: {
40556
+ span: 24
40557
+ }
40558
+ },
40559
+ field: function field(ctx) {
40560
+ return code && /*#__PURE__*/React$1.createElement(Table$1, {
40561
+ remoteDataSource: {
40562
+ url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
40563
+ convertParams: function convertParams(_ref2) {
40564
+ var params = _ref2.params;
40565
+ return _objectSpread2({
40566
+ pageSize: params.pageSize,
40567
+ currentPage: params.current
40568
+ }, extraParams);
40569
+ },
40570
+ converter: function converter(_ref3) {
40571
+ var data = _ref3.data;
40572
+ return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
40573
+ }
40574
+ },
40575
+ columns: [{
40576
+ title: '操作人',
40577
+ dataIndex: 'handlerName'
40578
+ }, {
40579
+ title: '操作名称',
40580
+ dataIndex: 'handlerType'
40581
+ }, {
40582
+ title: '操作时间',
40583
+ dataIndex: 'handlerTime',
40584
+ render: function render(_ref4) {
40585
+ var text = _ref4.text;
40586
+ return handleCommonTimeRender$1(text);
40587
+ }
40588
+ }, {
40589
+ title: '操作内容',
40590
+ dataIndex: 'logcontent'
40591
+ }],
40592
+ style: {
40593
+ width: '100%',
40594
+ marginTop: '-16px',
40595
+ padding: '0px'
40596
+ },
40597
+ rowKey: "id",
40598
+ scroll: {
40599
+ x: 'max-content'
40600
+ },
40601
+ pagination: {
40602
+ showTotal: function showTotal(total) {
40603
+ return "\u5171 ".concat(total, " \u6761");
40604
+ },
40605
+ showQuickJumper: true,
40606
+ hideOnSinglePage: true
40607
+ },
40608
+ ref: renderLogRef
40609
+ });
40610
+ }
40611
+ }]
40612
+ });
40613
+ };
40614
+
40615
+ 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 };