@bit-sun/business-component 2.4.21 → 2.4.23

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
@@ -26,6 +26,17 @@ import { parse as parse$1 } from '@babel/parser';
26
26
  import { visit } from 'ast-types';
27
27
  import isArray$1 from 'lodash/isArray';
28
28
 
29
+ function _callSuper(t, o, e) {
30
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
31
+ }
32
+ function _isNativeReflectConstruct() {
33
+ try {
34
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
35
+ } catch (t) {}
36
+ return (_isNativeReflectConstruct = function () {
37
+ return !!t;
38
+ })();
39
+ }
29
40
  function _iterableToArrayLimit(r, l) {
30
41
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
31
42
  if (null != t) {
@@ -507,17 +518,6 @@ function _setPrototypeOf(o, p) {
507
518
  };
508
519
  return _setPrototypeOf(o, p);
509
520
  }
510
- function _isNativeReflectConstruct() {
511
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
512
- if (Reflect.construct.sham) return false;
513
- if (typeof Proxy === "function") return true;
514
- try {
515
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
516
- return true;
517
- } catch (e) {
518
- return false;
519
- }
520
- }
521
521
  function _objectDestructuringEmpty(obj) {
522
522
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
523
523
  }
@@ -562,20 +562,6 @@ function _possibleConstructorReturn(self, call) {
562
562
  }
563
563
  return _assertThisInitialized(self);
564
564
  }
565
- function _createSuper(Derived) {
566
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
567
- return function _createSuperInternal() {
568
- var Super = _getPrototypeOf(Derived),
569
- result;
570
- if (hasNativeReflectConstruct) {
571
- var NewTarget = _getPrototypeOf(this).constructor;
572
- result = Reflect.construct(Super, arguments, NewTarget);
573
- } else {
574
- result = Super.apply(this, arguments);
575
- }
576
- return _possibleConstructorReturn(this, result);
577
- };
578
- }
579
565
  function _slicedToArray(arr, i) {
580
566
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
581
567
  }
@@ -1485,11 +1471,10 @@ var filterLetters = function filterLetters(i) {
1485
1471
  };
1486
1472
  var DataValidation = /*#__PURE__*/function (_React$Component) {
1487
1473
  _inherits(DataValidation, _React$Component);
1488
- var _super = _createSuper(DataValidation);
1489
1474
  function DataValidation(props) {
1490
1475
  var _this;
1491
1476
  _classCallCheck(this, DataValidation);
1492
- _this = _super.call(this, props);
1477
+ _this = _callSuper(this, DataValidation, [props]);
1493
1478
  _this.getCount = function () {
1494
1479
  var resultData = _this.state.resultData;
1495
1480
  return {
@@ -2054,11 +2039,10 @@ var filterLetters$1 = function filterLetters(i) {
2054
2039
  };
2055
2040
  var DataImport = /*#__PURE__*/function (_React$Component) {
2056
2041
  _inherits(DataImport, _React$Component);
2057
- var _super = _createSuper(DataImport);
2058
2042
  function DataImport(props) {
2059
2043
  var _this;
2060
2044
  _classCallCheck(this, DataImport);
2061
- _this = _super.call(this, props);
2045
+ _this = _callSuper(this, DataImport, [props]);
2062
2046
  _this.getCount = function () {
2063
2047
  var resultData = _this.state.resultData;
2064
2048
  return {
@@ -3749,14 +3733,13 @@ var SortableBody = SortableContainer(function (props) {
3749
3733
  });
3750
3734
  var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
3751
3735
  _inherits(TableColumnSetting, _React$Component);
3752
- var _super = _createSuper(TableColumnSetting);
3753
3736
  function TableColumnSetting() {
3754
3737
  var _this;
3755
3738
  _classCallCheck(this, TableColumnSetting);
3756
3739
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3757
3740
  args[_key] = arguments[_key];
3758
3741
  }
3759
- _this = _super.call.apply(_super, [this].concat(args));
3742
+ _this = _callSuper(this, TableColumnSetting, [].concat(args));
3760
3743
  _this.state = {
3761
3744
  dataSource: [],
3762
3745
  columns: [],
@@ -9507,6 +9490,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9507
9490
  }, {
9508
9491
  name: 'qp-skuName-like',
9509
9492
  label: 'SKU名称'
9493
+ }, {
9494
+ name: 'qp-externalCode-like',
9495
+ label: '外部SPU编码'
9510
9496
  }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
9511
9497
  name: 'qp-code-in',
9512
9498
  label: '商品条码',
@@ -10856,10 +10842,9 @@ var Field = function Field(_ref) {
10856
10842
  };
10857
10843
  var GuideWrapper = /*#__PURE__*/function (_Component) {
10858
10844
  _inherits(GuideWrapper, _Component);
10859
- var _super = _createSuper(GuideWrapper);
10860
10845
  function GuideWrapper() {
10861
10846
  _classCallCheck(this, GuideWrapper);
10862
- return _super.apply(this, arguments);
10847
+ return _callSuper(this, GuideWrapper, arguments);
10863
10848
  }
10864
10849
  _createClass(GuideWrapper, [{
10865
10850
  key: "render",
@@ -10971,14 +10956,13 @@ var SortableBody$1 = SortableContainer(function (props) {
10971
10956
  });
10972
10957
  var SortableTable = /*#__PURE__*/function (_React$Component) {
10973
10958
  _inherits(SortableTable, _React$Component);
10974
- var _super = _createSuper(SortableTable);
10975
10959
  function SortableTable() {
10976
10960
  var _this;
10977
10961
  _classCallCheck(this, SortableTable);
10978
10962
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10979
10963
  args[_key] = arguments[_key];
10980
10964
  }
10981
- _this = _super.call.apply(_super, [this].concat(args));
10965
+ _this = _callSuper(this, SortableTable, [].concat(args));
10982
10966
  _this.state = {
10983
10967
  dataSource: [],
10984
10968
  columns: [],
@@ -11596,11 +11580,10 @@ var _excluded$8 = ["onResize", "width"],
11596
11580
  var Text = Typography.Text;
11597
11581
  var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11598
11582
  _inherits(ColumnSettingSulaTable, _React$Component);
11599
- var _super = _createSuper(ColumnSettingSulaTable);
11600
11583
  function ColumnSettingSulaTable(_props) {
11601
11584
  var _this;
11602
11585
  _classCallCheck(this, ColumnSettingSulaTable);
11603
- _this = _super.call(this, _props);
11586
+ _this = _callSuper(this, ColumnSettingSulaTable, [_props]);
11604
11587
  _this.sulaTableRef = void 0;
11605
11588
  _this.state = void 0;
11606
11589
  _this.setInitialShowColumn = function (columns) {
@@ -11845,11 +11828,10 @@ var _excluded$9 = ["onResize", "width"],
11845
11828
  var Text$1 = Typography.Text;
11846
11829
  var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
11847
11830
  _inherits(ColumnSettingTable, _React$Component);
11848
- var _super = _createSuper(ColumnSettingTable);
11849
11831
  function ColumnSettingTable(_props) {
11850
11832
  var _this;
11851
11833
  _classCallCheck(this, ColumnSettingTable);
11852
- _this = _super.call(this, _props);
11834
+ _this = _callSuper(this, ColumnSettingTable, [_props]);
11853
11835
  _this.state = void 0;
11854
11836
  _this.setInitialShowColumn = function (columns) {
11855
11837
  // 获取当前列表定义数据
@@ -12093,16 +12075,21 @@ var doDetailPageAction = function doDetailPageAction(config) {
12093
12075
  successMessage: config === null || config === void 0 ? void 0 : config.successMessage
12094
12076
  };
12095
12077
  var onOk = function onOk() {
12096
- request$1(requestConfig).then(function (res) {
12097
- if (config.backPath) {
12098
- history.push({
12099
- pathname: config.backPath
12100
- });
12101
- }
12102
- // 是否执行成功之后的回调
12103
- if (typeof config.successCb === 'function') {
12104
- config.successCb(res);
12105
- }
12078
+ return new Promise(function (resolve, reject) {
12079
+ request$1(requestConfig).then(function (res) {
12080
+ resolve(res);
12081
+ if (config.backPath) {
12082
+ history.push({
12083
+ pathname: config.backPath
12084
+ });
12085
+ }
12086
+ // 是否执行成功之后的回调
12087
+ if (typeof config.successCb === 'function') {
12088
+ config.successCb(res);
12089
+ }
12090
+ }).catch(function (error) {
12091
+ return reject(error);
12092
+ });
12106
12093
  });
12107
12094
  };
12108
12095
  if (config.noConfirm) {
@@ -12550,14 +12537,13 @@ var SortableBody$2 = SortableContainer(function (props) {
12550
12537
  });
12551
12538
  var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12552
12539
  _inherits(SortableTable, _React$Component);
12553
- var _super = _createSuper(SortableTable);
12554
12540
  function SortableTable() {
12555
12541
  var _this;
12556
12542
  _classCallCheck(this, SortableTable);
12557
12543
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12558
12544
  args[_key] = arguments[_key];
12559
12545
  }
12560
- _this = _super.call.apply(_super, [this].concat(args));
12546
+ _this = _callSuper(this, SortableTable, [].concat(args));
12561
12547
  _this.state = {
12562
12548
  dataSource: [],
12563
12549
  columns: [],
@@ -13302,14 +13288,13 @@ var SortableBody$3 = SortableContainer(function (props) {
13302
13288
  });
13303
13289
  var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13304
13290
  _inherits(SearchItemTable, _React$Component);
13305
- var _super = _createSuper(SearchItemTable);
13306
13291
  function SearchItemTable() {
13307
13292
  var _this;
13308
13293
  _classCallCheck(this, SearchItemTable);
13309
13294
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13310
13295
  args[_key] = arguments[_key];
13311
13296
  }
13312
- _this = _super.call.apply(_super, [this].concat(args));
13297
+ _this = _callSuper(this, SearchItemTable, [].concat(args));
13313
13298
  _this.state = {
13314
13299
  dataSource: [],
13315
13300
  columns: [],
@@ -15170,14 +15155,13 @@ var getParentKey = function getParentKey(path, tree) {
15170
15155
  };
15171
15156
  var LeftTree = /*#__PURE__*/function (_React$Component) {
15172
15157
  _inherits(LeftTree, _React$Component);
15173
- var _super = _createSuper(LeftTree);
15174
15158
  function LeftTree() {
15175
15159
  var _this;
15176
15160
  _classCallCheck(this, LeftTree);
15177
15161
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15178
15162
  args[_key] = arguments[_key];
15179
15163
  }
15180
- _this = _super.call.apply(_super, [this].concat(args));
15164
+ _this = _callSuper(this, LeftTree, [].concat(args));
15181
15165
  _this.state = {
15182
15166
  treeData: [],
15183
15167
  expandedKeys: [],
@@ -15378,11 +15362,10 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
15378
15362
  var TreeNode$1 = Tree.TreeNode;
15379
15363
  var rightTree = /*#__PURE__*/function (_React$Component) {
15380
15364
  _inherits(rightTree, _React$Component);
15381
- var _super = _createSuper(rightTree);
15382
15365
  function rightTree(props) {
15383
15366
  var _this;
15384
15367
  _classCallCheck(this, rightTree);
15385
- _this = _super.call(this, props);
15368
+ _this = _callSuper(this, rightTree, [props]);
15386
15369
  _this.formRef = /*#__PURE__*/React.createRef();
15387
15370
  _this.state = {
15388
15371
  // treeData: [],
@@ -16514,11 +16497,10 @@ var ItemMenu = function ItemMenu(props) {
16514
16497
  };
16515
16498
  var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16516
16499
  _inherits(BasicLayout, _React$PureComponent);
16517
- var _super = _createSuper(BasicLayout);
16518
16500
  function BasicLayout(props) {
16519
16501
  var _this;
16520
16502
  _classCallCheck(this, BasicLayout);
16521
- _this = _super.call(this, props);
16503
+ _this = _callSuper(this, BasicLayout, [props]);
16522
16504
  _this.allFunc = /*#__PURE__*/createRef('');
16523
16505
  _this.customerMenuRef = /*#__PURE__*/createRef('');
16524
16506
  _this.actionRef = /*#__PURE__*/createRef();
@@ -17523,10 +17505,9 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17523
17505
  }(React.PureComponent);
17524
17506
  var WrapperComponent = /*#__PURE__*/function (_React$Component) {
17525
17507
  _inherits(WrapperComponent, _React$Component);
17526
- var _super2 = _createSuper(WrapperComponent);
17527
17508
  function WrapperComponent(props) {
17528
17509
  _classCallCheck(this, WrapperComponent);
17529
- return _super2.call(this, props);
17510
+ return _callSuper(this, WrapperComponent, [props]);
17530
17511
  }
17531
17512
  _createClass(WrapperComponent, [{
17532
17513
  key: "shouldComponentUpdate",
@@ -23833,10 +23814,9 @@ function TreeNode$2(props) {
23833
23814
  var prefixCls = 'tree-compact';
23834
23815
  var CompactArrayView = /*#__PURE__*/function (_React$Component) {
23835
23816
  _inherits(CompactArrayView, _React$Component);
23836
- var _super = _createSuper(CompactArrayView);
23837
23817
  function CompactArrayView() {
23838
23818
  _classCallCheck(this, CompactArrayView);
23839
- return _super.apply(this, arguments);
23819
+ return _callSuper(this, CompactArrayView, arguments);
23840
23820
  }
23841
23821
  _createClass(CompactArrayView, [{
23842
23822
  key: "shouldComponentUpdate",
@@ -23862,10 +23842,9 @@ var CompactArrayView = /*#__PURE__*/function (_React$Component) {
23862
23842
  var prefixCls$1 = 'tree-compact';
23863
23843
  var CompactObjectView = /*#__PURE__*/function (_React$Component) {
23864
23844
  _inherits(CompactObjectView, _React$Component);
23865
- var _super = _createSuper(CompactObjectView);
23866
23845
  function CompactObjectView() {
23867
23846
  _classCallCheck(this, CompactObjectView);
23868
- return _super.apply(this, arguments);
23847
+ return _callSuper(this, CompactObjectView, arguments);
23869
23848
  }
23870
23849
  _createClass(CompactObjectView, [{
23871
23850
  key: "shouldComponentUpdate",
@@ -26827,14 +26806,13 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
26827
26806
 
26828
26807
  var EllipsisTooltip = /*#__PURE__*/function (_React$Component) {
26829
26808
  _inherits(EllipsisTooltip, _React$Component);
26830
- var _super = _createSuper(EllipsisTooltip);
26831
26809
  function EllipsisTooltip() {
26832
26810
  var _this;
26833
26811
  _classCallCheck(this, EllipsisTooltip);
26834
26812
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26835
26813
  args[_key] = arguments[_key];
26836
26814
  }
26837
- _this = _super.call.apply(_super, [this].concat(args));
26815
+ _this = _callSuper(this, EllipsisTooltip, [].concat(args));
26838
26816
  _this.state = {
26839
26817
  visible: false
26840
26818
  };
@@ -27176,11 +27154,10 @@ var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
27176
27154
  var RangePicker = DatePicker.RangePicker;
27177
27155
  var RuleField = /*#__PURE__*/function (_Component) {
27178
27156
  _inherits(RuleField, _Component);
27179
- var _super = _createSuper(RuleField);
27180
27157
  function RuleField(props) {
27181
27158
  var _this;
27182
27159
  _classCallCheck(this, RuleField);
27183
- _this = _super.call(this, props);
27160
+ _this = _callSuper(this, RuleField, [props]);
27184
27161
  _this.eventHandle = function (obj) {
27185
27162
  var thresholdQuery = _this.state.thresholdQuery;
27186
27163
  var _this$props = _this.props,
@@ -29964,12 +29941,11 @@ function handleRTypeData(props) {
29964
29941
  }
29965
29942
  var RuleField$1 = /*#__PURE__*/function (_Component) {
29966
29943
  _inherits(RuleField, _Component);
29967
- var _super = _createSuper(RuleField);
29968
29944
  function RuleField(props) {
29969
29945
  var _props$extraInfo2;
29970
29946
  var _this;
29971
29947
  _classCallCheck(this, RuleField);
29972
- _this = _super.call(this, props);
29948
+ _this = _callSuper(this, RuleField, [props]);
29973
29949
  _this.handleActionName = function (functionDetail) {
29974
29950
  var result = functionDetail.functionName;
29975
29951
  var code = functionDetail.functionInfo.code;
@@ -30096,11 +30072,10 @@ var InnerSelect = (function (props) {
30096
30072
  var RangePicker$1 = DatePicker.RangePicker;
30097
30073
  var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30098
30074
  _inherits(RuleObjectComponent, _Component);
30099
- var _super = _createSuper(RuleObjectComponent);
30100
30075
  function RuleObjectComponent(props) {
30101
30076
  var _this;
30102
30077
  _classCallCheck(this, RuleObjectComponent);
30103
- _this = _super.call(this, props);
30078
+ _this = _callSuper(this, RuleObjectComponent, [props]);
30104
30079
  _this.setRegularData = function (regularDataList) {
30105
30080
  _this.propertyCodeToRangeIdMap = {};
30106
30081
  _this.dictCodeToRangeIdMap = {};
package/dist/index.js CHANGED
@@ -46,6 +46,17 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
46
46
  var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
47
47
  var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
48
48
 
49
+ function _callSuper(t, o, e) {
50
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
51
+ }
52
+ function _isNativeReflectConstruct() {
53
+ try {
54
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
55
+ } catch (t) {}
56
+ return (_isNativeReflectConstruct = function () {
57
+ return !!t;
58
+ })();
59
+ }
49
60
  function _iterableToArrayLimit(r, l) {
50
61
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
51
62
  if (null != t) {
@@ -527,17 +538,6 @@ function _setPrototypeOf(o, p) {
527
538
  };
528
539
  return _setPrototypeOf(o, p);
529
540
  }
530
- function _isNativeReflectConstruct() {
531
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
532
- if (Reflect.construct.sham) return false;
533
- if (typeof Proxy === "function") return true;
534
- try {
535
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
536
- return true;
537
- } catch (e) {
538
- return false;
539
- }
540
- }
541
541
  function _objectDestructuringEmpty(obj) {
542
542
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
543
543
  }
@@ -582,20 +582,6 @@ function _possibleConstructorReturn(self, call) {
582
582
  }
583
583
  return _assertThisInitialized(self);
584
584
  }
585
- function _createSuper(Derived) {
586
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
587
- return function _createSuperInternal() {
588
- var Super = _getPrototypeOf(Derived),
589
- result;
590
- if (hasNativeReflectConstruct) {
591
- var NewTarget = _getPrototypeOf(this).constructor;
592
- result = Reflect.construct(Super, arguments, NewTarget);
593
- } else {
594
- result = Super.apply(this, arguments);
595
- }
596
- return _possibleConstructorReturn(this, result);
597
- };
598
- }
599
585
  function _slicedToArray(arr, i) {
600
586
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
601
587
  }
@@ -1505,11 +1491,10 @@ var filterLetters = function filterLetters(i) {
1505
1491
  };
1506
1492
  var DataValidation = /*#__PURE__*/function (_React$Component) {
1507
1493
  _inherits(DataValidation, _React$Component);
1508
- var _super = _createSuper(DataValidation);
1509
1494
  function DataValidation(props) {
1510
1495
  var _this;
1511
1496
  _classCallCheck(this, DataValidation);
1512
- _this = _super.call(this, props);
1497
+ _this = _callSuper(this, DataValidation, [props]);
1513
1498
  _this.getCount = function () {
1514
1499
  var resultData = _this.state.resultData;
1515
1500
  return {
@@ -2074,11 +2059,10 @@ var filterLetters$1 = function filterLetters(i) {
2074
2059
  };
2075
2060
  var DataImport = /*#__PURE__*/function (_React$Component) {
2076
2061
  _inherits(DataImport, _React$Component);
2077
- var _super = _createSuper(DataImport);
2078
2062
  function DataImport(props) {
2079
2063
  var _this;
2080
2064
  _classCallCheck(this, DataImport);
2081
- _this = _super.call(this, props);
2065
+ _this = _callSuper(this, DataImport, [props]);
2082
2066
  _this.getCount = function () {
2083
2067
  var resultData = _this.state.resultData;
2084
2068
  return {
@@ -3769,14 +3753,13 @@ var SortableBody = reactSortableHoc.SortableContainer(function (props) {
3769
3753
  });
3770
3754
  var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
3771
3755
  _inherits(TableColumnSetting, _React$Component);
3772
- var _super = _createSuper(TableColumnSetting);
3773
3756
  function TableColumnSetting() {
3774
3757
  var _this;
3775
3758
  _classCallCheck(this, TableColumnSetting);
3776
3759
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3777
3760
  args[_key] = arguments[_key];
3778
3761
  }
3779
- _this = _super.call.apply(_super, [this].concat(args));
3762
+ _this = _callSuper(this, TableColumnSetting, [].concat(args));
3780
3763
  _this.state = {
3781
3764
  dataSource: [],
3782
3765
  columns: [],
@@ -9527,6 +9510,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9527
9510
  }, {
9528
9511
  name: 'qp-skuName-like',
9529
9512
  label: 'SKU名称'
9513
+ }, {
9514
+ name: 'qp-externalCode-like',
9515
+ label: '外部SPU编码'
9530
9516
  }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
9531
9517
  name: 'qp-code-in',
9532
9518
  label: '商品条码',
@@ -10876,10 +10862,9 @@ var Field = function Field(_ref) {
10876
10862
  };
10877
10863
  var GuideWrapper = /*#__PURE__*/function (_Component) {
10878
10864
  _inherits(GuideWrapper, _Component);
10879
- var _super = _createSuper(GuideWrapper);
10880
10865
  function GuideWrapper() {
10881
10866
  _classCallCheck(this, GuideWrapper);
10882
- return _super.apply(this, arguments);
10867
+ return _callSuper(this, GuideWrapper, arguments);
10883
10868
  }
10884
10869
  _createClass(GuideWrapper, [{
10885
10870
  key: "render",
@@ -10991,14 +10976,13 @@ var SortableBody$1 = reactSortableHoc.SortableContainer(function (props) {
10991
10976
  });
10992
10977
  var SortableTable = /*#__PURE__*/function (_React$Component) {
10993
10978
  _inherits(SortableTable, _React$Component);
10994
- var _super = _createSuper(SortableTable);
10995
10979
  function SortableTable() {
10996
10980
  var _this;
10997
10981
  _classCallCheck(this, SortableTable);
10998
10982
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10999
10983
  args[_key] = arguments[_key];
11000
10984
  }
11001
- _this = _super.call.apply(_super, [this].concat(args));
10985
+ _this = _callSuper(this, SortableTable, [].concat(args));
11002
10986
  _this.state = {
11003
10987
  dataSource: [],
11004
10988
  columns: [],
@@ -11616,11 +11600,10 @@ var _excluded$8 = ["onResize", "width"],
11616
11600
  var Text = antd.Typography.Text;
11617
11601
  var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
11618
11602
  _inherits(ColumnSettingSulaTable, _React$Component);
11619
- var _super = _createSuper(ColumnSettingSulaTable);
11620
11603
  function ColumnSettingSulaTable(_props) {
11621
11604
  var _this;
11622
11605
  _classCallCheck(this, ColumnSettingSulaTable);
11623
- _this = _super.call(this, _props);
11606
+ _this = _callSuper(this, ColumnSettingSulaTable, [_props]);
11624
11607
  _this.sulaTableRef = void 0;
11625
11608
  _this.state = void 0;
11626
11609
  _this.setInitialShowColumn = function (columns) {
@@ -11865,11 +11848,10 @@ var _excluded$9 = ["onResize", "width"],
11865
11848
  var Text$1 = antd.Typography.Text;
11866
11849
  var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
11867
11850
  _inherits(ColumnSettingTable, _React$Component);
11868
- var _super = _createSuper(ColumnSettingTable);
11869
11851
  function ColumnSettingTable(_props) {
11870
11852
  var _this;
11871
11853
  _classCallCheck(this, ColumnSettingTable);
11872
- _this = _super.call(this, _props);
11854
+ _this = _callSuper(this, ColumnSettingTable, [_props]);
11873
11855
  _this.state = void 0;
11874
11856
  _this.setInitialShowColumn = function (columns) {
11875
11857
  // 获取当前列表定义数据
@@ -12113,16 +12095,21 @@ var doDetailPageAction = function doDetailPageAction(config) {
12113
12095
  successMessage: config === null || config === void 0 ? void 0 : config.successMessage
12114
12096
  };
12115
12097
  var onOk = function onOk() {
12116
- bssula.request(requestConfig).then(function (res) {
12117
- if (config.backPath) {
12118
- umi.history.push({
12119
- pathname: config.backPath
12120
- });
12121
- }
12122
- // 是否执行成功之后的回调
12123
- if (typeof config.successCb === 'function') {
12124
- config.successCb(res);
12125
- }
12098
+ return new Promise(function (resolve, reject) {
12099
+ bssula.request(requestConfig).then(function (res) {
12100
+ resolve(res);
12101
+ if (config.backPath) {
12102
+ umi.history.push({
12103
+ pathname: config.backPath
12104
+ });
12105
+ }
12106
+ // 是否执行成功之后的回调
12107
+ if (typeof config.successCb === 'function') {
12108
+ config.successCb(res);
12109
+ }
12110
+ }).catch(function (error) {
12111
+ return reject(error);
12112
+ });
12126
12113
  });
12127
12114
  };
12128
12115
  if (config.noConfirm) {
@@ -12570,14 +12557,13 @@ var SortableBody$2 = reactSortableHoc.SortableContainer(function (props) {
12570
12557
  });
12571
12558
  var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12572
12559
  _inherits(SortableTable, _React$Component);
12573
- var _super = _createSuper(SortableTable);
12574
12560
  function SortableTable() {
12575
12561
  var _this;
12576
12562
  _classCallCheck(this, SortableTable);
12577
12563
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12578
12564
  args[_key] = arguments[_key];
12579
12565
  }
12580
- _this = _super.call.apply(_super, [this].concat(args));
12566
+ _this = _callSuper(this, SortableTable, [].concat(args));
12581
12567
  _this.state = {
12582
12568
  dataSource: [],
12583
12569
  columns: [],
@@ -13322,14 +13308,13 @@ var SortableBody$3 = reactSortableHoc.SortableContainer(function (props) {
13322
13308
  });
13323
13309
  var SearchItemTable = /*#__PURE__*/function (_React$Component) {
13324
13310
  _inherits(SearchItemTable, _React$Component);
13325
- var _super = _createSuper(SearchItemTable);
13326
13311
  function SearchItemTable() {
13327
13312
  var _this;
13328
13313
  _classCallCheck(this, SearchItemTable);
13329
13314
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13330
13315
  args[_key] = arguments[_key];
13331
13316
  }
13332
- _this = _super.call.apply(_super, [this].concat(args));
13317
+ _this = _callSuper(this, SearchItemTable, [].concat(args));
13333
13318
  _this.state = {
13334
13319
  dataSource: [],
13335
13320
  columns: [],
@@ -15190,14 +15175,13 @@ var getParentKey = function getParentKey(path, tree) {
15190
15175
  };
15191
15176
  var LeftTree = /*#__PURE__*/function (_React$Component) {
15192
15177
  _inherits(LeftTree, _React$Component);
15193
- var _super = _createSuper(LeftTree);
15194
15178
  function LeftTree() {
15195
15179
  var _this;
15196
15180
  _classCallCheck(this, LeftTree);
15197
15181
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15198
15182
  args[_key] = arguments[_key];
15199
15183
  }
15200
- _this = _super.call.apply(_super, [this].concat(args));
15184
+ _this = _callSuper(this, LeftTree, [].concat(args));
15201
15185
  _this.state = {
15202
15186
  treeData: [],
15203
15187
  expandedKeys: [],
@@ -15398,11 +15382,10 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
15398
15382
  var TreeNode$1 = antd.Tree.TreeNode;
15399
15383
  var rightTree = /*#__PURE__*/function (_React$Component) {
15400
15384
  _inherits(rightTree, _React$Component);
15401
- var _super = _createSuper(rightTree);
15402
15385
  function rightTree(props) {
15403
15386
  var _this;
15404
15387
  _classCallCheck(this, rightTree);
15405
- _this = _super.call(this, props);
15388
+ _this = _callSuper(this, rightTree, [props]);
15406
15389
  _this.formRef = /*#__PURE__*/React__default['default'].createRef();
15407
15390
  _this.state = {
15408
15391
  // treeData: [],
@@ -16534,11 +16517,10 @@ var ItemMenu = function ItemMenu(props) {
16534
16517
  };
16535
16518
  var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16536
16519
  _inherits(BasicLayout, _React$PureComponent);
16537
- var _super = _createSuper(BasicLayout);
16538
16520
  function BasicLayout(props) {
16539
16521
  var _this;
16540
16522
  _classCallCheck(this, BasicLayout);
16541
- _this = _super.call(this, props);
16523
+ _this = _callSuper(this, BasicLayout, [props]);
16542
16524
  _this.allFunc = /*#__PURE__*/React.createRef('');
16543
16525
  _this.customerMenuRef = /*#__PURE__*/React.createRef('');
16544
16526
  _this.actionRef = /*#__PURE__*/React.createRef();
@@ -17543,10 +17525,9 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
17543
17525
  }(React__default['default'].PureComponent);
17544
17526
  var WrapperComponent = /*#__PURE__*/function (_React$Component) {
17545
17527
  _inherits(WrapperComponent, _React$Component);
17546
- var _super2 = _createSuper(WrapperComponent);
17547
17528
  function WrapperComponent(props) {
17548
17529
  _classCallCheck(this, WrapperComponent);
17549
- return _super2.call(this, props);
17530
+ return _callSuper(this, WrapperComponent, [props]);
17550
17531
  }
17551
17532
  _createClass(WrapperComponent, [{
17552
17533
  key: "shouldComponentUpdate",
@@ -23853,10 +23834,9 @@ function TreeNode$2(props) {
23853
23834
  var prefixCls = 'tree-compact';
23854
23835
  var CompactArrayView = /*#__PURE__*/function (_React$Component) {
23855
23836
  _inherits(CompactArrayView, _React$Component);
23856
- var _super = _createSuper(CompactArrayView);
23857
23837
  function CompactArrayView() {
23858
23838
  _classCallCheck(this, CompactArrayView);
23859
- return _super.apply(this, arguments);
23839
+ return _callSuper(this, CompactArrayView, arguments);
23860
23840
  }
23861
23841
  _createClass(CompactArrayView, [{
23862
23842
  key: "shouldComponentUpdate",
@@ -23882,10 +23862,9 @@ var CompactArrayView = /*#__PURE__*/function (_React$Component) {
23882
23862
  var prefixCls$1 = 'tree-compact';
23883
23863
  var CompactObjectView = /*#__PURE__*/function (_React$Component) {
23884
23864
  _inherits(CompactObjectView, _React$Component);
23885
- var _super = _createSuper(CompactObjectView);
23886
23865
  function CompactObjectView() {
23887
23866
  _classCallCheck(this, CompactObjectView);
23888
- return _super.apply(this, arguments);
23867
+ return _callSuper(this, CompactObjectView, arguments);
23889
23868
  }
23890
23869
  _createClass(CompactObjectView, [{
23891
23870
  key: "shouldComponentUpdate",
@@ -26847,14 +26826,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
26847
26826
 
26848
26827
  var EllipsisTooltip = /*#__PURE__*/function (_React$Component) {
26849
26828
  _inherits(EllipsisTooltip, _React$Component);
26850
- var _super = _createSuper(EllipsisTooltip);
26851
26829
  function EllipsisTooltip() {
26852
26830
  var _this;
26853
26831
  _classCallCheck(this, EllipsisTooltip);
26854
26832
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26855
26833
  args[_key] = arguments[_key];
26856
26834
  }
26857
- _this = _super.call.apply(_super, [this].concat(args));
26835
+ _this = _callSuper(this, EllipsisTooltip, [].concat(args));
26858
26836
  _this.state = {
26859
26837
  visible: false
26860
26838
  };
@@ -27196,11 +27174,10 @@ var fullDateFormat = 'YYYY-MM-DD HH:mm:ss';
27196
27174
  var RangePicker = antd.DatePicker.RangePicker;
27197
27175
  var RuleField = /*#__PURE__*/function (_Component) {
27198
27176
  _inherits(RuleField, _Component);
27199
- var _super = _createSuper(RuleField);
27200
27177
  function RuleField(props) {
27201
27178
  var _this;
27202
27179
  _classCallCheck(this, RuleField);
27203
- _this = _super.call(this, props);
27180
+ _this = _callSuper(this, RuleField, [props]);
27204
27181
  _this.eventHandle = function (obj) {
27205
27182
  var thresholdQuery = _this.state.thresholdQuery;
27206
27183
  var _this$props = _this.props,
@@ -29984,12 +29961,11 @@ function handleRTypeData(props) {
29984
29961
  }
29985
29962
  var RuleField$1 = /*#__PURE__*/function (_Component) {
29986
29963
  _inherits(RuleField, _Component);
29987
- var _super = _createSuper(RuleField);
29988
29964
  function RuleField(props) {
29989
29965
  var _props$extraInfo2;
29990
29966
  var _this;
29991
29967
  _classCallCheck(this, RuleField);
29992
- _this = _super.call(this, props);
29968
+ _this = _callSuper(this, RuleField, [props]);
29993
29969
  _this.handleActionName = function (functionDetail) {
29994
29970
  var result = functionDetail.functionName;
29995
29971
  var code = functionDetail.functionInfo.code;
@@ -30116,11 +30092,10 @@ var InnerSelect = (function (props) {
30116
30092
  var RangePicker$1 = antd.DatePicker.RangePicker;
30117
30093
  var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30118
30094
  _inherits(RuleObjectComponent, _Component);
30119
- var _super = _createSuper(RuleObjectComponent);
30120
30095
  function RuleObjectComponent(props) {
30121
30096
  var _this;
30122
30097
  _classCallCheck(this, RuleObjectComponent);
30123
- _this = _super.call(this, props);
30098
+ _this = _callSuper(this, RuleObjectComponent, [props]);
30124
30099
  _this.setRegularData = function (regularDataList) {
30125
30100
  _this.propertyCodeToRangeIdMap = {};
30126
30101
  _this.dictCodeToRangeIdMap = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.4.21",
3
+ "version": "2.4.23",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -336,6 +336,7 @@ export const AddSkuSelect = (parProps: any) => {
336
336
  name: 'qp-skuCode-like', label: 'SKU编码'
337
337
  },
338
338
  { name: 'qp-skuName-like', label: 'SKU名称' },
339
+ { name: 'qp-externalCode-like', label: '外部SPU编码' },
339
340
  ...(isNoUseItemBarcode ? []: [
340
341
  { name: 'qp-code-in', label: '商品条码', field: {
341
342
  type: 'multipleQueryInput',
@@ -4,6 +4,7 @@ import { Modal } from 'antd';
4
4
  import { ExclamationCircleOutlined } from '@ant-design/icons';
5
5
  import React from 'react';
6
6
  import { history } from 'umi';
7
+ import { handleError } from '@/utils/requestUtils';
7
8
 
8
9
  interface actionItem {
9
10
  [propName: string]: any;
@@ -21,17 +22,20 @@ export const doDetailPageAction = (config: actionItem) => {
21
22
 
22
23
 
23
24
  const onOk = () => {
24
- request(requestConfig).then((res) => {
25
- if (config.backPath) {
26
- history.push({
27
- pathname: config.backPath
28
- })
29
- }
30
- // 是否执行成功之后的回调
31
- if (typeof (config.successCb) === 'function') {
32
- config.successCb(res);
33
- }
34
- });
25
+ return new Promise((resolve, reject) => {
26
+ request(requestConfig).then((res) => {
27
+ resolve(res);
28
+ if (config.backPath) {
29
+ history.push({
30
+ pathname: config.backPath
31
+ })
32
+ }
33
+ // 是否执行成功之后的回调
34
+ if (typeof (config.successCb) === 'function') {
35
+ config.successCb(res);
36
+ }
37
+ }).catch(error => reject(error));
38
+ })
35
39
  };
36
40
 
37
41
  if (config.noConfirm) {