@bit-sun/business-component 2.2.35 → 2.2.37

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.js CHANGED
@@ -14,7 +14,7 @@ var reactResizable = require('react-resizable');
14
14
  var reactSortableHoc = require('react-sortable-hoc');
15
15
  var arrayMove = require('array-move');
16
16
  var umi = require('umi');
17
- var isEqual = require('lodash/isEqual');
17
+ var isEqual$1 = require('lodash/isEqual');
18
18
  var bssula = require('bssula');
19
19
  var ProLayout = require('@ant-design/pro-layout');
20
20
  var cloneDeep = require('lodash/cloneDeep');
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
33
33
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
34
34
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
35
35
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
36
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
37
37
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
38
38
  var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
39
39
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
@@ -153,6 +153,33 @@ axios__default['default'].interceptors.request.use(function (config) {
153
153
  return config;
154
154
  });
155
155
 
156
+ function _iterableToArrayLimit(arr, i) {
157
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
158
+ if (null != _i) {
159
+ var _s,
160
+ _e,
161
+ _x,
162
+ _r,
163
+ _arr = [],
164
+ _n = !0,
165
+ _d = !1;
166
+ try {
167
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
168
+ if (Object(_i) !== _i) return;
169
+ _n = !1;
170
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
171
+ } catch (err) {
172
+ _d = !0, _e = err;
173
+ } finally {
174
+ try {
175
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
176
+ } finally {
177
+ if (_d) throw _e;
178
+ }
179
+ }
180
+ return _arr;
181
+ }
182
+ }
156
183
  function ownKeys(object, enumerableOnly) {
157
184
  var keys = Object.keys(object);
158
185
  if (Object.getOwnPropertySymbols) {
@@ -309,14 +336,9 @@ function _regeneratorRuntime() {
309
336
  };
310
337
  }
311
338
  function maybeInvokeDelegate(delegate, context) {
312
- var method = delegate.iterator[context.method];
313
- if (undefined === method) {
314
- if (context.delegate = null, "throw" === context.method) {
315
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
316
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
317
- }
318
- return ContinueSentinel;
319
- }
339
+ var methodName = context.method,
340
+ method = delegate.iterator[methodName];
341
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
320
342
  var record = tryCatch(method, delegate.iterator, context.arg);
321
343
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
322
344
  var info = record.arg;
@@ -530,7 +552,7 @@ function _defineProperties(target, props) {
530
552
  descriptor.enumerable = descriptor.enumerable || false;
531
553
  descriptor.configurable = true;
532
554
  if ("value" in descriptor) descriptor.writable = true;
533
- Object.defineProperty(target, descriptor.key, descriptor);
555
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
534
556
  }
535
557
  }
536
558
  function _createClass(Constructor, protoProps, staticProps) {
@@ -542,6 +564,7 @@ function _createClass(Constructor, protoProps, staticProps) {
542
564
  return Constructor;
543
565
  }
544
566
  function _defineProperty(obj, key, value) {
567
+ key = _toPropertyKey(key);
545
568
  if (key in obj) {
546
569
  Object.defineProperty(obj, key, {
547
570
  value: value,
@@ -670,30 +693,6 @@ function _arrayWithHoles(arr) {
670
693
  function _iterableToArray(iter) {
671
694
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
672
695
  }
673
- function _iterableToArrayLimit(arr, i) {
674
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
675
- if (_i == null) return;
676
- var _arr = [];
677
- var _n = true;
678
- var _d = false;
679
- var _s, _e;
680
- try {
681
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
682
- _arr.push(_s.value);
683
- if (i && _arr.length === i) break;
684
- }
685
- } catch (err) {
686
- _d = true;
687
- _e = err;
688
- } finally {
689
- try {
690
- if (!_n && _i["return"] != null) _i["return"]();
691
- } finally {
692
- if (_d) throw _e;
693
- }
694
- }
695
- return _arr;
696
- }
697
696
  function _unsupportedIterableToArray(o, minLen) {
698
697
  if (!o) return;
699
698
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -713,6 +712,20 @@ function _nonIterableSpread() {
713
712
  function _nonIterableRest() {
714
713
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
715
714
  }
715
+ function _toPrimitive(input, hint) {
716
+ if (typeof input !== "object" || input === null) return input;
717
+ var prim = input[Symbol.toPrimitive];
718
+ if (prim !== undefined) {
719
+ var res = prim.call(input, hint || "default");
720
+ if (typeof res !== "object") return res;
721
+ throw new TypeError("@@toPrimitive must return a primitive value.");
722
+ }
723
+ return (hint === "string" ? String : Number)(input);
724
+ }
725
+ function _toPropertyKey(arg) {
726
+ var key = _toPrimitive(arg, "string");
727
+ return typeof key === "symbol" ? key : String(key);
728
+ }
716
729
 
717
730
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
718
731
  var errorMessage = _objectSpread2({
@@ -3680,41 +3693,52 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
3680
3693
  callback(showColumns);
3681
3694
  };
3682
3695
 
3683
- var simpleIsEqual = function simpleIsEqual(a, b) {
3684
- return a === b;
3685
- };
3686
-
3687
- function index (resultFn, isEqual) {
3688
- if (isEqual === void 0) {
3689
- isEqual = simpleIsEqual;
3690
- }
3691
-
3692
- var lastThis;
3693
- var lastArgs = [];
3694
- var lastResult;
3695
- var calledOnce = false;
3696
-
3697
- var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
3698
- return isEqual(newArg, lastArgs[index], index);
3699
- };
3700
-
3701
- var result = function result() {
3702
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
3703
- newArgs[_key] = arguments[_key];
3696
+ var safeIsNaN = Number.isNaN ||
3697
+ function ponyfill(value) {
3698
+ return typeof value === 'number' && value !== value;
3699
+ };
3700
+ function isEqual(first, second) {
3701
+ if (first === second) {
3702
+ return true;
3704
3703
  }
3705
-
3706
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
3707
- return lastResult;
3704
+ if (safeIsNaN(first) && safeIsNaN(second)) {
3705
+ return true;
3708
3706
  }
3707
+ return false;
3708
+ }
3709
+ function areInputsEqual(newInputs, lastInputs) {
3710
+ if (newInputs.length !== lastInputs.length) {
3711
+ return false;
3712
+ }
3713
+ for (var i = 0; i < newInputs.length; i++) {
3714
+ if (!isEqual(newInputs[i], lastInputs[i])) {
3715
+ return false;
3716
+ }
3717
+ }
3718
+ return true;
3719
+ }
3709
3720
 
3710
- lastResult = resultFn.apply(this, newArgs);
3711
- calledOnce = true;
3712
- lastThis = this;
3713
- lastArgs = newArgs;
3714
- return lastResult;
3715
- };
3716
-
3717
- return result;
3721
+ function memoizeOne(resultFn, isEqual) {
3722
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
3723
+ var lastThis;
3724
+ var lastArgs = [];
3725
+ var lastResult;
3726
+ var calledOnce = false;
3727
+ function memoized() {
3728
+ var newArgs = [];
3729
+ for (var _i = 0; _i < arguments.length; _i++) {
3730
+ newArgs[_i] = arguments[_i];
3731
+ }
3732
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
3733
+ return lastResult;
3734
+ }
3735
+ lastResult = resultFn.apply(this, newArgs);
3736
+ calledOnce = true;
3737
+ lastThis = this;
3738
+ lastArgs = newArgs;
3739
+ return lastResult;
3740
+ }
3741
+ return memoized;
3718
3742
  }
3719
3743
 
3720
3744
  //! moment.js
@@ -9674,7 +9698,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
9674
9698
  return item;
9675
9699
  });
9676
9700
  };
9677
- var memoizeOneFormatter = index(formatter, isEqual__default['default']);
9701
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
9678
9702
  var go2BackAndClose = function go2BackAndClose() {
9679
9703
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
9680
9704
  umi.history.goBack();
@@ -10799,8 +10823,15 @@ var AddSelect = function AddSelect(props) {
10799
10823
  handleLoading(isContinue, true);
10800
10824
  onSaveCallback(popvalue).then(function (res) {
10801
10825
  {
10802
- var _document$getElementB3;
10803
- antd.message.success('保存成功');
10826
+ var _Object$keys, _document$getElementB3;
10827
+ // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
10828
+ var initSuccessMessage = '保存成功';
10829
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
10830
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
10831
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
10832
+ } else {
10833
+ antd.message.success(initSuccessMessage);
10834
+ }
10804
10835
  deleteSelectRows();
10805
10836
  (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
10806
10837
  !isContinue && handleCancel();
@@ -12074,7 +12105,14 @@ var BillEntry = function BillEntry(_ref3) {
12074
12105
  setLoading(true);
12075
12106
  onSaveCallback(data).then(function (res) {
12076
12107
  {
12077
- antd.message.success('保存成功');
12108
+ var _Object$keys;
12109
+ var initSuccessMessage = '保存成功';
12110
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12111
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12112
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12113
+ } else {
12114
+ antd.message.success(initSuccessMessage);
12115
+ }
12078
12116
  }
12079
12117
  setLoading(false);
12080
12118
  }).catch(function (Error) {
@@ -13499,6 +13537,8 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
13499
13537
  mappingTextField: 'name',
13500
13538
  mappingValueField: 'code',
13501
13539
  otherParams: {
13540
+ 'qp-isMain-eq': 1,
13541
+ 'qp-status-eq': 1,
13502
13542
  sorter: 'desc-id'
13503
13543
  },
13504
13544
  sourceName: 'customCode'
@@ -14137,7 +14177,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
14137
14177
  }]
14138
14178
  }, modalTableBusProps);
14139
14179
  }
14140
- // 规则场景选择器
14180
+ // 规则模板选择器
14141
14181
  if (type === 'ruleTemplate') {
14142
14182
  requestConfig = _objectSpread2({
14143
14183
  url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
@@ -14152,19 +14192,19 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
14152
14192
  }, requestConfigProp);
14153
14193
  tableSearchForm = [{
14154
14194
  name: 'qp-name-like',
14155
- label: '规则场景名称'
14195
+ label: '规则模板名称'
14156
14196
  }, {
14157
14197
  name: 'qp-code-like',
14158
- label: '规则场景编码'
14198
+ label: '规则模板编码'
14159
14199
  }];
14160
14200
  modalTableProps = _objectSpread2({
14161
- modalTableTitle: '选择规则场景',
14201
+ modalTableTitle: '选择规则模板',
14162
14202
  tableSearchForm: tableSearchForm,
14163
14203
  tableColumns: [{
14164
- title: '规则场景编码',
14204
+ title: '规则模板编码',
14165
14205
  dataIndex: 'code'
14166
14206
  }, {
14167
- title: '规则场景名称',
14207
+ title: '规则模板名称',
14168
14208
  dataIndex: 'name',
14169
14209
  render: function render(text) {
14170
14210
  return handleTextOverflow(text);
@@ -15217,7 +15257,7 @@ var CommodityEntry = function CommodityEntry(props) {
15217
15257
  * @LastEditTime: 2022-01-14 17:17:26
15218
15258
  * @LastEditors: rodchen
15219
15259
  */
15220
- var index$1 = (function (storageKeyString) {
15260
+ var index = (function (storageKeyString) {
15221
15261
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
15222
15262
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
15223
15263
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -15560,7 +15600,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
15560
15600
  }, [props === null || props === void 0 ? void 0 : props.value]);
15561
15601
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
15562
15602
  };
15563
- var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15603
+ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSelect, function (props, nextProps) {
15564
15604
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
15565
15605
  return false;
15566
15606
  }
@@ -15573,7 +15613,7 @@ var index$2 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
15573
15613
  var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
15574
15614
  styleInject(css_248z$8);
15575
15615
 
15576
- var index$3 = (function (props) {
15616
+ var index$2 = (function (props) {
15577
15617
  var _props$formStatusMapp = props.formStatusMapping,
15578
15618
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
15579
15619
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -16997,7 +17037,7 @@ var iconMap = {
16997
17037
  src: moreIcon
16998
17038
  })
16999
17039
  };
17000
- var index$4 = (function (props) {
17040
+ var index$3 = (function (props) {
17001
17041
  var _useLocation = umi.useLocation(),
17002
17042
  pathname = _useLocation.pathname;
17003
17043
  var _useState = React.useState(pathname + 'id'),
@@ -17214,7 +17254,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
17214
17254
  styleInject(css_248z$d);
17215
17255
 
17216
17256
  var _excluded$c = ["children"];
17217
- var index$5 = (function (props) {
17257
+ var index$4 = (function (props) {
17218
17258
  var _useLocation = umi.useLocation(),
17219
17259
  pathname = _useLocation.pathname;
17220
17260
  var _useState = React.useState(pathname + 'id'),
@@ -22230,7 +22270,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22230
22270
  }]);
22231
22271
  return WrapperComponent;
22232
22272
  }(React__default['default'].Component);
22233
- var index$6 = (function (props) {
22273
+ var index$5 = (function (props) {
22234
22274
  var _useModel = umi.useModel('@@initialState'),
22235
22275
  _useModel$initialStat = _useModel.initialState,
22236
22276
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -22373,7 +22413,7 @@ var headersToRows = function headersToRows(originColumns) {
22373
22413
  var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
22374
22414
  styleInject(css_248z$n);
22375
22415
 
22376
- var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22416
+ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22377
22417
  var _useState = React.useState(false),
22378
22418
  _useState2 = _slicedToArray(_useState, 2),
22379
22419
  show = _useState2[0],
@@ -22623,7 +22663,7 @@ var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
22623
22663
  return /*#__PURE__*/React__default['default'].createElement("td", {
22624
22664
  style: {
22625
22665
  display: tdHidden,
22626
- background: index % 2 === 1 || item.fixed ? '#FAFAFA' : '#fff',
22666
+ background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
22627
22667
  minWidth: '100px',
22628
22668
  width: "".concat(itemWidth, "px"),
22629
22669
  height: '40px',
@@ -29630,7 +29670,7 @@ var choiceType = Object.freeze({
29630
29670
  280: '库存组织选择器',
29631
29671
  310: '配送方式选择器',
29632
29672
  330: '变量',
29633
- 340: '规则场景选择器',
29673
+ 340: '规则模板选择器',
29634
29674
  350: '营销区域选择器'
29635
29675
  });
29636
29676
  var inputType = {
@@ -31076,24 +31116,24 @@ exports.AddSkcSelect = AddSkcSelect;
31076
31116
  exports.AddSkuSelect = AddSkuSelect;
31077
31117
  exports.AddSpuSelect = AddSpuSelect;
31078
31118
  exports.BillEntry = BillEntry;
31079
- exports.BsLayout = index$6;
31119
+ exports.BsLayout = index$5;
31080
31120
  exports.BsSulaQueryTable = BsSulaQueryTable;
31081
31121
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
31082
- exports.BusinessTreeSearchSelect = index$2;
31083
- exports.CheckOneUser = index$1;
31122
+ exports.BusinessTreeSearchSelect = index$1;
31123
+ exports.CheckOneUser = index;
31084
31124
  exports.ColumnSettingTable = ColumnSettingTable;
31085
31125
  exports.CommodityEntry = CommodityEntry;
31086
31126
  exports.DataImport = DataImport;
31087
31127
  exports.DataValidation = DataValidation;
31088
- exports.DetailPageWrapper = index$4;
31128
+ exports.DetailPageWrapper = index$3;
31089
31129
  exports.ExportIcon = ExportIcon;
31090
31130
  exports.GuideWrapper = GuideWrapper;
31091
- exports.HomePageWrapper = index$5;
31131
+ exports.HomePageWrapper = index$4;
31092
31132
  exports.JsonQueryTable = JsonQueryTable;
31093
- exports.MoreTreeTable = index$7;
31133
+ exports.MoreTreeTable = index$6;
31094
31134
  exports.QueryMutipleInput = QueryMutipleInput;
31095
31135
  exports.SearchSelect = SearchSelect;
31096
- exports.StateFlow = index$3;
31136
+ exports.StateFlow = index$2;
31097
31137
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
31098
31138
  exports.TableColumnSetting = TableColumnSetting;
31099
31139
  exports.TreeSearchSelect = TreeSearchSelect;
@@ -1,9 +1,9 @@
1
- declare type mediaListType = {
1
+ type mediaListType = {
2
2
  type: number;
3
3
  url: string;
4
4
  [key: string]: any;
5
5
  };
6
- declare type recordType = {
6
+ type recordType = {
7
7
  mediaList?: mediaListType;
8
8
  [key: string]: any;
9
9
  };
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "@bit-sun/business-component",
3
- "version": "2.2.35",
4
- "scripts": {
5
- "start": "dumi dev",
6
- "docs:build": "dumi build",
7
- "docs:deploy": "gh-pages -d docs-dist",
8
- "build": "father-build",
9
- "deploy": "npm run docs:build && npm run docs:deploy",
10
- "release": "npm run build && npm publish",
11
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
12
- "test": "umi-test",
13
- "test:coverage": "umi-test --coverage"
14
- },
15
- "main": "dist/index.js",
16
- "module": "dist/index.esm.js",
17
- "typings": "dist/index.d.ts",
18
- "gitHooks": {
19
- "pre-commit": "lint-staged"
20
- },
21
- "lint-staged": {
22
- "*.{js,jsx,less,md,json}": [
23
- "prettier --write"
24
- ],
25
- "*.ts?(x)": [
26
- "prettier --parser=typescript --write"
27
- ]
28
- },
29
- "peerDependencies": {
30
- "antd": "^4.17.2",
31
- "bssula": "^2.0.0",
32
- "umi-plugin-bssula": "1.0.13",
33
- "umi": "^3.5.20",
34
- "@ant-design/pro-layout": "^6.5.0",
35
- "react-dnd": "^16.0.1",
36
- "react-dnd-html5-backend": "^16.0.1"
37
- },
38
- "dependencies": {
39
- "@ant-design/icons": "^4.7.0",
40
- "@monaco-editor/react": "^3.3.0",
41
- "serialize-javascript": "^6.0.0",
42
- "@types/react-resizable": "^1.7.4",
43
- "@umijs/plugin-antd": "latest",
44
- "ahooks": "^3.1.2",
45
- "array-move": "^4.0.0",
46
- "axios": "^0.24.0",
47
- "classnames": "^2.3.1",
48
- "lodash": "^4.17.21",
49
- "querystring": "^0.2.1",
50
- "react": "^16.12.0",
51
- "react-beautiful-dnd": "10.0.0",
52
- "react-resizable": "^3.0.4",
53
- "react-sortable-hoc": "^2.0.0",
54
- "warning": "^4.0.3",
55
- "ast-types": "^0.13.3"
56
- },
57
- "devDependencies": {
58
- "@ant-design/pro-layout": "^7.1.3",
59
- "@types/lodash": "^4.14.185",
60
- "@umijs/test": "^3.0.5",
61
- "acorn": "^7.2.0",
62
- "acorn-walk": "^7.1.1",
63
- "antd": "^4.17.2",
64
- "bssula": "^2.1.29",
65
- "dumi": "^1.0.14",
66
- "father-build": "^1.17.2",
67
- "gh-pages": "^3.0.0",
68
- "lint-staged": "^10.0.7",
69
- "prettier": "^2.2.1",
70
- "react-dnd": "^16.0.1",
71
- "react-dnd-html5-backend": "^16.0.1",
72
- "rollup-plugin-commonjs": "^10.1.0"
73
- },
74
- "publishConfig": {
75
- "access": "public"
76
- }
77
- }
1
+ {
2
+ "name": "@bit-sun/business-component",
3
+ "version": "2.2.37",
4
+ "scripts": {
5
+ "start": "dumi dev",
6
+ "docs:build": "dumi build",
7
+ "docs:deploy": "gh-pages -d docs-dist",
8
+ "build": "father-build",
9
+ "deploy": "npm run docs:build && npm run docs:deploy",
10
+ "release": "npm run build && npm publish",
11
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
12
+ "test": "umi-test",
13
+ "test:coverage": "umi-test --coverage"
14
+ },
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.esm.js",
17
+ "typings": "dist/index.d.ts",
18
+ "gitHooks": {
19
+ "pre-commit": "lint-staged"
20
+ },
21
+ "lint-staged": {
22
+ "*.{js,jsx,less,md,json}": [
23
+ "prettier --write"
24
+ ],
25
+ "*.ts?(x)": [
26
+ "prettier --parser=typescript --write"
27
+ ]
28
+ },
29
+ "peerDependencies": {
30
+ "antd": "^4.17.2",
31
+ "bssula": "^2.0.0",
32
+ "umi-plugin-bssula": "1.0.13",
33
+ "umi": "^3.5.20",
34
+ "@ant-design/pro-layout": "^6.5.0",
35
+ "react-dnd": "^16.0.1",
36
+ "react-dnd-html5-backend": "^16.0.1"
37
+ },
38
+ "dependencies": {
39
+ "@ant-design/icons": "^4.7.0",
40
+ "@monaco-editor/react": "^3.3.0",
41
+ "serialize-javascript": "^6.0.0",
42
+ "@types/react-resizable": "^1.7.4",
43
+ "@umijs/plugin-antd": "latest",
44
+ "ahooks": "^3.1.2",
45
+ "array-move": "^4.0.0",
46
+ "axios": "^0.24.0",
47
+ "classnames": "^2.3.1",
48
+ "lodash": "^4.17.21",
49
+ "querystring": "^0.2.1",
50
+ "react": "^16.12.0",
51
+ "react-beautiful-dnd": "10.0.0",
52
+ "react-resizable": "^3.0.4",
53
+ "react-sortable-hoc": "^2.0.0",
54
+ "warning": "^4.0.3",
55
+ "ast-types": "^0.13.3"
56
+ },
57
+ "devDependencies": {
58
+ "@ant-design/pro-layout": "^7.1.3",
59
+ "@types/lodash": "^4.14.185",
60
+ "@umijs/test": "^3.0.5",
61
+ "acorn": "^7.2.0",
62
+ "acorn-walk": "^7.1.1",
63
+ "antd": "^4.17.2",
64
+ "bssula": "^2.1.29",
65
+ "dumi": "^1.0.14",
66
+ "father-build": "^1.17.2",
67
+ "gh-pages": "^3.0.0",
68
+ "lint-staged": "^10.0.7",
69
+ "prettier": "^2.2.1",
70
+ "react-dnd": "^16.0.1",
71
+ "react-dnd-html5-backend": "^16.0.1",
72
+ "rollup-plugin-commonjs": "^10.1.0"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ }
77
+ }
@@ -365,7 +365,7 @@ export const choiceType = Object.freeze({
365
365
 
366
366
  310: '配送方式选择器',
367
367
  330: '变量',
368
- 340: '规则场景选择器',
368
+ 340: '规则模板选择器',
369
369
  350: '营销区域选择器',
370
370
  });
371
371
  export const inputType:any ={
@@ -1088,6 +1088,8 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
1088
1088
  mappingTextField: 'name',
1089
1089
  mappingValueField: 'code',
1090
1090
  otherParams: {
1091
+ 'qp-isMain-eq': 1, // 员工权限过滤,若不需要不要加
1092
+ 'qp-status-eq': 1, // 1启用 0禁用
1091
1093
  sorter: 'desc-id'
1092
1094
  }, // 默认参数
1093
1095
  sourceName: 'customCode',
@@ -1675,7 +1677,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
1675
1677
  }
1676
1678
  }
1677
1679
 
1678
- // 规则场景选择器
1680
+ // 规则模板选择器
1679
1681
  if(type === 'ruleTemplate') {
1680
1682
  requestConfig = {
1681
1683
  url: `${prefixUrl.selectPrefix}/ruleTemplate`,
@@ -1690,19 +1692,19 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
1690
1692
  ...requestConfigProp
1691
1693
  }
1692
1694
  tableSearchForm = [
1693
- { name: 'qp-name-like', label: '规则场景名称' },
1694
- { name: 'qp-code-like', label: '规则场景编码' },
1695
+ { name: 'qp-name-like', label: '规则模板名称' },
1696
+ { name: 'qp-code-like', label: '规则模板编码' },
1695
1697
  ]
1696
1698
  modalTableProps = {
1697
- modalTableTitle: '选择规则场景',
1699
+ modalTableTitle: '选择规则模板',
1698
1700
  tableSearchForm,
1699
1701
  tableColumns: [
1700
1702
  {
1701
- title: '规则场景编码',
1703
+ title: '规则模板编码',
1702
1704
  dataIndex: 'code',
1703
1705
  },
1704
1706
  {
1705
- title: '规则场景名称',
1707
+ title: '规则模板名称',
1706
1708
  dataIndex: 'name',
1707
1709
  render: (text: any) => handleTextOverflow(text),
1708
1710
  },
@@ -1259,7 +1259,7 @@ export default () => {
1259
1259
  More skills for writing demo: https://d.umijs.org/guide/demo-principle
1260
1260
 
1261
1261
 
1262
- ## 规则场景选择器 Select-GZCJ-001
1262
+ ## 规则模板选择器 Select-GZCJ-001
1263
1263
 
1264
1264
  ```tsx
1265
1265
  import React, { useState } from 'react';