@bit-sun/business-component 2.0.14 → 2.0.17

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
@@ -2410,7 +2410,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2410
2410
  validDataUrl = _this$props.validDataUrl,
2411
2411
  updateData = _this$props.updateData,
2412
2412
  columns = _this$props.columns,
2413
- isBrandAuth = _this$props.isBrandAuth;
2413
+ isBrandAuth = _this$props.isBrandAuth,
2414
+ _this$props$isCheckSt = _this$props.isCheckStockNum,
2415
+ isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt;
2414
2416
 
2415
2417
  var resultData = _this.getData().filter(function (d) {
2416
2418
  return ___default['default'].compact(Object.values(d)).length;
@@ -2427,7 +2429,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2427
2429
 
2428
2430
  axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
2429
2431
  columns: columns,
2430
- data: resultData
2432
+ data: resultData,
2433
+ checkStockNum: isCheckStockNum
2431
2434
  })).then(function (result) {
2432
2435
  result = result.data;
2433
2436
 
@@ -3479,8 +3482,7 @@ var css_248z$3 = ".search_select_show {\n display: flex;\n}\n.search_select_exp
3479
3482
  styleInject(css_248z$3);
3480
3483
 
3481
3484
  var Option = antd.Select.Option;
3482
-
3483
- var SearchSelect = function SearchSelect(props) {
3485
+ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3484
3486
  var value = props.value,
3485
3487
  onChange = props.onChange,
3486
3488
  _props$selectProps = props.selectProps,
@@ -3495,7 +3497,8 @@ var SearchSelect = function SearchSelect(props) {
3495
3497
  _props$needModalTable = props.needModalTable,
3496
3498
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
3497
3499
  _props$getPopupContai = props.getPopupContainer,
3498
- _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai;
3500
+ _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
3501
+ fieldComponent = props.fieldComponent;
3499
3502
 
3500
3503
  var _ref = requestConfig || {},
3501
3504
  url = _ref.url,
@@ -3508,7 +3511,11 @@ var SearchSelect = function SearchSelect(props) {
3508
3511
  mappingTextShowKeyField = _ref.mappingTextShowKeyField,
3509
3512
  _ref$mappingValueFiel = _ref.mappingValueField,
3510
3513
  mappingValueField = _ref$mappingValueFiel === void 0 ? 'code' : _ref$mappingValueFiel,
3511
- mappingTextShowTextField = _ref.mappingTextShowTextField;
3514
+ mappingTextShowTextField = _ref.mappingTextShowTextField,
3515
+ _ref$init = _ref.init,
3516
+ init = _ref$init === void 0 ? true : _ref$init,
3517
+ _ref$extralHeaders = _ref.extralHeaders,
3518
+ extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders;
3512
3519
 
3513
3520
  var resultSourceKey = sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode';
3514
3521
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
@@ -3646,8 +3653,30 @@ var SearchSelect = function SearchSelect(props) {
3646
3653
  var _useState33 = React.useState(false),
3647
3654
  _useState34 = _slicedToArray(_useState33, 2),
3648
3655
  tooltipVisible = _useState34[0],
3649
- setTooltipVisible = _useState34[1]; // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
3656
+ setTooltipVisible = _useState34[1];
3650
3657
 
3658
+ React.useImperativeHandle(ref, function () {
3659
+ return {
3660
+ refreshDataSource: function refreshDataSource() {
3661
+ var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
3662
+
3663
+ if (reset) {
3664
+ if (init) {
3665
+ run('init');
3666
+ } else {
3667
+ setItems([]);
3668
+ setItemsTotal(0);
3669
+ }
3670
+ } else {
3671
+ run();
3672
+ }
3673
+ },
3674
+ clearDataSource: function clearDataSource() {
3675
+ setItems([]);
3676
+ setItemsTotal(0);
3677
+ }
3678
+ };
3679
+ }); // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
3651
3680
 
3652
3681
  var getData = function getData() {
3653
3682
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -3770,7 +3799,9 @@ var SearchSelect = function SearchSelect(props) {
3770
3799
  currentPage: currentPage
3771
3800
  }, otherParams), fixedParam), params);
3772
3801
 
3773
- axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
3802
+ axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams)), {
3803
+ headers: _objectSpread2({}, extralHeaders)
3804
+ }).then(function (result) {
3774
3805
  var _result, _result2;
3775
3806
 
3776
3807
  setFetching(false);
@@ -3893,7 +3924,9 @@ var SearchSelect = function SearchSelect(props) {
3893
3924
  };
3894
3925
 
3895
3926
  React.useEffect(function () {
3896
- run('init');
3927
+ if (init) {
3928
+ run('init');
3929
+ }
3897
3930
  }, []);
3898
3931
  React.useEffect(function () {
3899
3932
  if (value) {
@@ -3991,14 +4024,36 @@ var SearchSelect = function SearchSelect(props) {
3991
4024
  }
3992
4025
  };
3993
4026
 
4027
+ var refreshItems = function refreshItems() {
4028
+ // 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
4029
+ if (fieldValToParam && ctx) {
4030
+ var formValueList = [];
4031
+ fieldValToParam.forEach(function (item, index) {
4032
+ var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
4033
+ formValueList.push(fixedParamVal);
4034
+ });
4035
+
4036
+ if (formValueList.filter(function (item) {
4037
+ return item;
4038
+ }).length > 0) {
4039
+ run();
4040
+ } else {
4041
+ setItems([]);
4042
+ setItemsTotal(0);
4043
+ }
4044
+ } else {
4045
+ run();
4046
+ }
4047
+ };
4048
+
3994
4049
  var onSearchChange = function onSearchChange(e) {
3995
4050
  setSearchValue(e.target.value);
3996
- run();
4051
+ refreshItems();
3997
4052
  };
3998
4053
 
3999
4054
  var onSearchBlur = function onSearchBlur() {
4000
4055
  setSearchValue('');
4001
- run();
4056
+ refreshItems();
4002
4057
  };
4003
4058
 
4004
4059
  var onSearchTable = function onSearchTable() {
@@ -4150,13 +4205,13 @@ var SearchSelect = function SearchSelect(props) {
4150
4205
  },
4151
4206
  getCheckboxProps: function getCheckboxProps() {
4152
4207
  return {
4153
- disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
4208
+ disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled) || !items.length
4154
4209
  };
4155
4210
  }
4156
4211
  };
4157
4212
 
4158
4213
  var onDoubleClickSelect = function onDoubleClickSelect(e, record) {
4159
- if (!selectMode) {
4214
+ if (!selectMode && !((selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled) || !items.length)) {
4160
4215
  var srs = [JSON.parse(JSON.stringify(record))];
4161
4216
  var sks = srs.map(function (i) {
4162
4217
  return i.value;
@@ -4279,7 +4334,14 @@ var SearchSelect = function SearchSelect(props) {
4279
4334
 
4280
4335
  return /*#__PURE__*/React__default['default'].createElement("div", {
4281
4336
  className: 'search_select'
4282
- }, /*#__PURE__*/React__default['default'].createElement("div", {
4337
+ }, fieldComponent ? /*#__PURE__*/React__default['default'].createElement("div", {
4338
+ onClick: function onClick() {
4339
+ var _fieldComponent$props, _fieldComponent$props2;
4340
+
4341
+ (_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
4342
+ showModal();
4343
+ }
4344
+ }, fieldComponent) : /*#__PURE__*/React__default['default'].createElement("div", {
4283
4345
  className: "search_select_show",
4284
4346
  id: "search_select_div_".concat(uniqueValue)
4285
4347
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
@@ -4287,6 +4349,7 @@ var SearchSelect = function SearchSelect(props) {
4287
4349
  labelInValue: labelInValue,
4288
4350
  value: value,
4289
4351
  onChange: onChange,
4352
+ disabled: props.disabled,
4290
4353
  dropdownRender: function dropdownRender(menu) {
4291
4354
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
4292
4355
  value: searchValue,
@@ -4439,7 +4502,7 @@ var SearchSelect = function SearchSelect(props) {
4439
4502
  onChange: onChangeCheckAll,
4440
4503
  disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
4441
4504
  }), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
4442
- };
4505
+ });
4443
4506
 
4444
4507
  var css_248z$4 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
4445
4508
  styleInject(css_248z$4);
@@ -6088,7 +6151,6 @@ var BillEntry = function BillEntry(_ref3) {
6088
6151
  title: '单位',
6089
6152
  dataIndex: 'selectUnitCode',
6090
6153
  width: 100,
6091
- isSelectItem: true,
6092
6154
  render: function render(text, record) {
6093
6155
  var _record$packingUnitLi;
6094
6156
 
@@ -7996,13 +8058,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7996
8058
  }
7997
8059
 
7998
8060
  var MemoSearchSelect = /*#__PURE__*/React__default['default'].memo(SearchSelect);
7999
-
8000
- var BusinessSearchSelect = function BusinessSearchSelect(props) {
8061
+ var BusinessSearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
8001
8062
  var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'supplier';
8002
8063
  var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
8003
8064
  selectPrefix: handleDefaultPrefixUrl(businessType),
8004
8065
  formSelectFix: handleDefaultPrefixUrl(businessType)
8005
8066
  };
8067
+ var innerRef = React.useRef();
8006
8068
 
8007
8069
  var _commonFun = commonFun(businessType, prefixUrl, (props === null || props === void 0 ? void 0 : props.requestConfig) || {}, (props === null || props === void 0 ? void 0 : props.modalTableProps) || {}),
8008
8070
  requestConfig = _commonFun.requestConfig,
@@ -8016,9 +8078,17 @@ var BusinessSearchSelect = function BusinessSearchSelect(props) {
8016
8078
  modalTableProps: modalTableProps
8017
8079
  });
8018
8080
  }, [props === null || props === void 0 ? void 0 : props.value]);
8019
- return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoSearchSelect, _objectSpread2({}, currentProps)));
8020
- };
8021
-
8081
+ React.useImperativeHandle(ref, function () {
8082
+ return {
8083
+ getRef: function getRef() {
8084
+ return innerRef;
8085
+ }
8086
+ };
8087
+ });
8088
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(MemoSearchSelect, _objectSpread2(_objectSpread2({}, currentProps), {}, {
8089
+ ref: innerRef
8090
+ })));
8091
+ });
8022
8092
  var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(BusinessSearchSelect, function (props, nextProps) {
8023
8093
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
8024
8094
  return false;
@@ -8331,7 +8401,9 @@ var CommodityEntry = function CommodityEntry(props) {
8331
8401
  _props$validDataUrl = props.validDataUrl,
8332
8402
  validDataUrl = _props$validDataUrl === void 0 ? "/items/sku/import/check" : _props$validDataUrl,
8333
8403
  _props$isBrandAuth = props.isBrandAuth,
8334
- isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth;
8404
+ isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
8405
+ _props$isCheckStockNu = props.isCheckStockNum,
8406
+ isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu;
8335
8407
 
8336
8408
  var _useState = React.useState({
8337
8409
  maskClosable: false,
@@ -8395,7 +8467,8 @@ var CommodityEntry = function CommodityEntry(props) {
8395
8467
  },
8396
8468
  columns: columns,
8397
8469
  validDataUrl: validDataUrl,
8398
- isBrandAuth: isBrandAuth
8470
+ isBrandAuth: isBrandAuth,
8471
+ isCheckStockNum: isCheckStockNum
8399
8472
  })) || '');
8400
8473
  };
8401
8474
 
@@ -8771,6 +8844,153 @@ var index$1 = /*#__PURE__*/React__default['default'].memo(BusinessTreeSearchSele
8771
8844
  return true;
8772
8845
  });
8773
8846
 
8847
+ var css_248z$6 = ".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";
8848
+ styleInject(css_248z$6);
8849
+
8850
+ var index$2 = (function (props) {
8851
+ var _props$formStatusMapp = props.formStatusMapping,
8852
+ formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
8853
+ return /*#__PURE__*/React__default['default'].createElement("div", {
8854
+ style: {
8855
+ display: 'flex',
8856
+ padding: '10px 60px 0px',
8857
+ background: '#FFFFFF'
8858
+ }
8859
+ }, formStatusMapping.map(function (item, index) {
8860
+ return /*#__PURE__*/React__default['default'].createElement("div", {
8861
+ style: {
8862
+ width: "".concat((100 / formStatusMapping.length).toFixed(2), "%")
8863
+ },
8864
+ className: "form-status-label ".concat(item.isDone ? 'choosed-status-label' : '', " ").concat(formStatusMapping.length === 1 ? 'only-one-child' : '')
8865
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
8866
+ className: 'status-label-key'
8867
+ }, /*#__PURE__*/React__default['default'].createElement("span", {
8868
+ className: 'status-label-index'
8869
+ }, index + 1)), /*#__PURE__*/React__default['default'].createElement("div", {
8870
+ className: 'status-label-operate'
8871
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
8872
+ style: !item.isDone ? {
8873
+ height: '40px',
8874
+ lineHeight: '40px'
8875
+ } : {}
8876
+ }, item.text), item.isDone ? /*#__PURE__*/React__default['default'].createElement("div", {
8877
+ title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
8878
+ }, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')) : null), /*#__PURE__*/React__default['default'].createElement("div", {
8879
+ style: {
8880
+ clear: 'both'
8881
+ }
8882
+ }));
8883
+ }));
8884
+ });
8885
+
8886
+ var dragImg = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%3E%20%20%3Cdefs%3E%20%20%20%20%3ClinearGradient%20x1%3D%22100%25%22%20y1%3D%2250%25%22%20x2%3D%220%25%22%20y2%3D%2250%25%22%20id%3D%22l1lf23lgga%22%3E%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%2310295B%22%20offset%3D%220%25%22%2F%3E%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%230F2A61%22%20offset%3D%22100%25%22%2F%3E%20%20%20%20%3C%2FlinearGradient%3E%20%20%20%20%3Cpath%20id%3D%22okxu11mz5b%22%20d%3D%22M0%200H24V24H0z%22%2F%3E%20%20%3C%2Fdefs%3E%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cmask%20id%3D%227u8dk2lilc%22%20fill%3D%22%23fff%22%3E%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23okxu11mz5b%22%2F%3E%20%20%20%20%3C%2Fmask%3E%20%20%20%20%3Cg%20mask%3D%22url%28%237u8dk2lilc%29%22%20fill%3D%22%23999%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M1.31655092%2C7%20C2.03935948%2C7%202.6253116%2C7.58595212%202.6253116%2C8.30876068%20C2.6253116%2C9.03156925%202.03935948%2C9.61752137%201.31655092%2C9.61752137%20C0.593742351%2C9.61752137%200.00779023438%2C9.03156925%200.00779023438%2C8.30876068%20C0.00779023438%2C7.58595212%200.593742351%2C7%201.31655092%2C7%20Z%20M6.99034011%2C7%20C7.71314867%2C7%208.29910079%2C7.58595212%208.29910079%2C8.30876068%20C8.29910079%2C9.03156925%207.71314867%2C9.61752137%206.99034011%2C9.61752137%20C6.26753154%2C9.61752137%205.68157942%2C9.03156925%205.68157942%2C8.30876068%20C5.68157942%2C7.58595212%206.26753154%2C7%206.99034011%2C7%20Z%20M12.6641293%2C7%20C13.3869378%2C7%2013.97289%2C7.58595212%2013.97289%2C8.30876068%20C13.97289%2C9.03156925%2013.3869378%2C9.61752137%2012.6641293%2C9.61752137%20C11.9413207%2C9.61752137%2011.3553686%2C9.03156925%2011.3553686%2C8.30876068%20C11.3553686%2C7.58595212%2011.9413207%2C7%2012.6641293%2C7%20Z%20M1.31655092%2C-5.32907052e-15%20C2.03935948%2C-5.32907052e-15%202.6253116%2C0.585952117%202.6253116%2C1.30876068%20C2.6253116%2C2.03156925%202.03935948%2C2.61752137%201.31655092%2C2.61752137%20C0.593742351%2C2.61752137%200.00779023438%2C2.03156925%200.00779023438%2C1.30876068%20C0.00779023438%2C0.585952117%200.593742351%2C-5.32907052e-15%201.31655092%2C-5.32907052e-15%20Z%20M6.99034011%2C-5.32907052e-15%20C7.71314867%2C-5.32907052e-15%208.29910079%2C0.585952117%208.29910079%2C1.30876068%20C8.29910079%2C2.03156925%207.71314867%2C2.61752137%206.99034011%2C2.61752137%20C6.26753154%2C2.61752137%205.68157942%2C2.03156925%205.68157942%2C1.30876068%20C5.68157942%2C0.585952117%206.26753154%2C-5.32907052e-15%206.99034011%2C-5.32907052e-15%20Z%20M12.6641293%2C-5.32907052e-15%20C13.3869378%2C-5.32907052e-15%2013.97289%2C0.585952117%2013.97289%2C1.30876068%20C13.97289%2C2.03156925%2013.3869378%2C2.61752137%2012.6641293%2C2.61752137%20C11.9413207%2C2.61752137%2011.3553686%2C2.03156925%2011.3553686%2C1.30876068%20C11.3553686%2C0.585952117%2011.9413207%2C-5.32907052e-15%2012.6641293%2C-5.32907052e-15%20Z%22%20transform%3D%22translate%285%207%29%22%2F%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
8887
+
8888
+ var label_icon_bottom = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%203%E5%A4%87%E4%BB%BD%204%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE-%E8%AF%A6%E6%83%85%E9%A1%B5%EF%BC%88%E4%BA%8C%E7%BA%A7%E9%A1%B5%EF%BC%89-%E4%B8%8B%E6%8B%89%22%20transform%3D%22translate%28-1858.000000%2C%20-1326.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-20%22%20transform%3D%22translate%28280.000000%2C%20866.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%281554.000000%2C%20179.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%E5%A4%87%E4%BB%BD-4%22%20transform%3D%22translate%2824.000000%2C%20281.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%203.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.99072727%2C0.237481917%20C6.50454545%2C-0.0418576482%206.56509091%2C-0.0745634228%206.97254545%2C0.138292264%20L7.15527271%2C0.236945765%20C7.31727271%2C0.445512161%207.34672726%2C0.483579531%207.3761818%2C0.664265595%20L7.39690908%2C0.809565049%20L7.39690908%2C17%20L5.76054545%2C17%20L5.76054545%2C2.73974241%20L1.15690909%2C7.26654448%20L0%2C6.12934831%20L5.99072727%2C0.237481917%20Z%20M13.0909091%2C13.6720525%20L13.0909091%2C15.2805337%20L9.81818182%2C15.2805337%20L9.81818182%2C13.6720525%20L13.0909091%2C13.6720525%20Z%20M14.7272727%2C9.91892987%20L14.7272727%2C11.527411%20L9.81818182%2C11.527411%20L9.81818182%2C9.91892987%20L14.7272727%2C9.91892987%20Z%20M16.3636364%2C6.16580723%20L16.3636364%2C7.77428836%20L9.81818182%2C7.77428836%20L9.81818182%2C6.16580723%20L16.3636364%2C6.16580723%20Z%20M18%2C2.41268459%20L18%2C4.02116572%20L9.81818182%2C4.02116572%20L9.81818182%2C2.41268459%20L18%2C2.41268459%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
8889
+
8890
+ var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAuBJREFUaEPtl0urjlEUx3/HXUkpErkkJAYoGbhkJB2SW2IgBibKVL6Cz2BgQMqAXCKXiHIGBhiIDJEJyjXlfu2vtWp36nj2fvZ+HG/tXW/n7bz7Wft/WXut9fTR46uvx/FTCQy3g9WB6kCmAjWFMgXMfrw6kC1hZoDqQKaA2Y//Cwd0xq9spEME6JLACOCnnRt+L8qlKwIOeDT8GRi/Ap2Q6ILASOAHsAo4DEwGDgAnAP+tmAulCTjANcBpA6/812e3kRgFfC/FoCQBByblzxl4Tx399hnYA5wq6UQpAq78ClN+mqWR/q+llNL3T8BO4AJQxIkSBBz8cgM2FfgCjAXOAC+A/cA3QJf6vZG4UoJELgEHvww4C8wMgF40oB+BI8Bey30p/xbYDtzITaccAg5+CXAJmB4oL3UF8IMBVD84DuwK9rwCNgO3cki0JeDgF9uFnRMof83AK1VU+7VEYBxwDNgR7H0GbAVutyXRhoCDXwhcBmYHql4HtlmeD+7EKqW6A6pCm4JnRGI9cL8NiVQCDn6RKT/fuuwY4CawBXg3BBAnNAE4aaD9Yj+ydHqYSiKFgIOfByjH5wYqDlgqvGkYGZzERCu3a4MYIrEOeJxCIpaAT5RSXE1KDqhJSXldQqXE68iDXYhJwHlgdRDrgTnxxGaoxik2hoCrNgu4CiwIVBN4pc3LxGHNY04xQVYGMXUX+oHnMTFjCPjYouoiyzUSqKLcBTYY+DZd1Z1Q41NKLg1iq4dsjJmXmgh46owHngJSTOuOKa8KkjMmh+4qndRTtHSXZtjo8dcXoiYCCuYB1IQOAfeAfTYitFF+sLDuhMrxUXPioHXvxre5GALhgarjGszUmBqDx6SA7fFYEkSENEtFrRQCfoj+6uOvi1EHRWxyLKo80eKkEIjAUGRLNHjP7yKnDleQ/9GBJC0qgSS5OthcHehA1KSQ1YEkuTrYXB3oQNSkkNWBJLk62NzzDvwGGnWoMahVpG4AAAAASUVORK5CYII=";
8891
+
8892
+ var css_248z$7 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
8893
+ styleInject(css_248z$7);
8894
+
8895
+ var _excluded$5 = ["children"],
8896
+ _excluded2$2 = ["children"];
8897
+
8898
+ var Field = function Field(_ref) {
8899
+ var children = _ref.children,
8900
+ props = _objectWithoutProperties(_ref, _excluded$5);
8901
+
8902
+ var _React$useState = React__default['default'].useState(true),
8903
+ _React$useState2 = _slicedToArray(_React$useState, 2),
8904
+ fieldGroupVisible = _React$useState2[0],
8905
+ setVisible = _React$useState2[1];
8906
+
8907
+ return /*#__PURE__*/React__default['default'].createElement("div", {
8908
+ className: "bitsun-form-card-class \n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', " \n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
8909
+ id: props.id
8910
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
8911
+ className: "ant-card-head"
8912
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
8913
+ className: "ant-card-head-title"
8914
+ }, /*#__PURE__*/React__default['default'].createElement("span", {
8915
+ className: 'title-left-line'
8916
+ }), /*#__PURE__*/React__default['default'].createElement("span", {
8917
+ style: {
8918
+ marginRight: '5px'
8919
+ }
8920
+ }, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React__default['default'].createElement("img", {
8921
+ width: 24,
8922
+ style: {
8923
+ transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
8924
+ cursor: 'pointer'
8925
+ },
8926
+ src: arrow_top,
8927
+ onClick: function onClick(e) {
8928
+ e.stopPropagation();
8929
+ setVisible(!fieldGroupVisible);
8930
+ }
8931
+ }))), /*#__PURE__*/React__default['default'].createElement("div", {
8932
+ className: "ant-card-body"
8933
+ }, children));
8934
+ };
8935
+
8936
+ var GuideWrapper = /*#__PURE__*/function (_Component) {
8937
+ _inherits(GuideWrapper, _Component);
8938
+
8939
+ var _super = _createSuper(GuideWrapper);
8940
+
8941
+ function GuideWrapper() {
8942
+ _classCallCheck(this, GuideWrapper);
8943
+
8944
+ return _super.apply(this, arguments);
8945
+ }
8946
+
8947
+ _createClass(GuideWrapper, [{
8948
+ key: "render",
8949
+ value: function render() {
8950
+ var _this$props = this.props,
8951
+ _this$props$children = _this$props.children,
8952
+ children = _this$props$children === void 0 ? [] : _this$props$children,
8953
+ props = _objectWithoutProperties(_this$props, _excluded2$2);
8954
+
8955
+ var cardGroups = children.filter(function (item) {
8956
+ var _item$props, _item$props2;
8957
+
8958
+ return (item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.id) && (item === null || item === void 0 ? void 0 : (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.title);
8959
+ });
8960
+ return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread2({}, props), children, /*#__PURE__*/React__default['default'].createElement("div", {
8961
+ className: 'form-guide'
8962
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
8963
+ className: 'form-guide-top'
8964
+ }, /*#__PURE__*/React__default['default'].createElement("img", {
8965
+ width: 24,
8966
+ src: dragImg
8967
+ })), /*#__PURE__*/React__default['default'].createElement("div", {
8968
+ className: 'form-guide-center'
8969
+ }, cardGroups.map(function (item) {
8970
+ return /*#__PURE__*/React__default['default'].createElement("span", {
8971
+ className: 'form-guide-item',
8972
+ onClick: function onClick() {
8973
+ var currentDom = document.getElementById(item.props.id);
8974
+ currentDom && currentDom.scrollIntoView({
8975
+ block: 'center',
8976
+ behavior: 'smooth'
8977
+ });
8978
+ }
8979
+ }, item.props.title);
8980
+ })), /*#__PURE__*/React__default['default'].createElement("div", {
8981
+ className: 'form-guide-bottom'
8982
+ }, /*#__PURE__*/React__default['default'].createElement("img", {
8983
+ width: 24,
8984
+ src: label_icon_bottom
8985
+ }))));
8986
+ }
8987
+ }]);
8988
+
8989
+ return GuideWrapper;
8990
+ }(React.Component);
8991
+
8992
+ GuideWrapper.Field = Field;
8993
+
8774
8994
  exports.AddSelect = AddSelect;
8775
8995
  exports.AddSkuSelect = AddSkuSelect;
8776
8996
  exports.BillEntry = BillEntry;
@@ -8780,6 +9000,8 @@ exports.CheckOneUser = index;
8780
9000
  exports.CommodityEntry = CommodityEntry;
8781
9001
  exports.DataImport = DataImport;
8782
9002
  exports.DataValidation = DataValidation;
9003
+ exports.GuideWrapper = GuideWrapper;
8783
9004
  exports.QueryMutipleInput = QueryMutipleInput;
8784
9005
  exports.SearchSelect = SearchSelect;
9006
+ exports.StateFlow = index$2;
8785
9007
  exports.TreeSearchSelect = TreeSearchSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.0.14",
3
+ "version": "2.0.17",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
Binary file
@@ -0,0 +1,17 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" class="design-iconfont">
2
+ <defs>
3
+ <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="l1lf23lgga">
4
+ <stop stop-color="#10295B" offset="0%"/>
5
+ <stop stop-color="#0F2A61" offset="100%"/>
6
+ </linearGradient>
7
+ <path id="okxu11mz5b" d="M0 0H24V24H0z"/>
8
+ </defs>
9
+ <g fill="none" fill-rule="evenodd">
10
+ <mask id="7u8dk2lilc" fill="#fff">
11
+ <use xlink:href="#okxu11mz5b"/>
12
+ </mask>
13
+ <g mask="url(#7u8dk2lilc)" fill="#999" fill-rule="nonzero">
14
+ <path d="M1.31655092,7 C2.03935948,7 2.6253116,7.58595212 2.6253116,8.30876068 C2.6253116,9.03156925 2.03935948,9.61752137 1.31655092,9.61752137 C0.593742351,9.61752137 0.00779023438,9.03156925 0.00779023438,8.30876068 C0.00779023438,7.58595212 0.593742351,7 1.31655092,7 Z M6.99034011,7 C7.71314867,7 8.29910079,7.58595212 8.29910079,8.30876068 C8.29910079,9.03156925 7.71314867,9.61752137 6.99034011,9.61752137 C6.26753154,9.61752137 5.68157942,9.03156925 5.68157942,8.30876068 C5.68157942,7.58595212 6.26753154,7 6.99034011,7 Z M12.6641293,7 C13.3869378,7 13.97289,7.58595212 13.97289,8.30876068 C13.97289,9.03156925 13.3869378,9.61752137 12.6641293,9.61752137 C11.9413207,9.61752137 11.3553686,9.03156925 11.3553686,8.30876068 C11.3553686,7.58595212 11.9413207,7 12.6641293,7 Z M1.31655092,-5.32907052e-15 C2.03935948,-5.32907052e-15 2.6253116,0.585952117 2.6253116,1.30876068 C2.6253116,2.03156925 2.03935948,2.61752137 1.31655092,2.61752137 C0.593742351,2.61752137 0.00779023438,2.03156925 0.00779023438,1.30876068 C0.00779023438,0.585952117 0.593742351,-5.32907052e-15 1.31655092,-5.32907052e-15 Z M6.99034011,-5.32907052e-15 C7.71314867,-5.32907052e-15 8.29910079,0.585952117 8.29910079,1.30876068 C8.29910079,2.03156925 7.71314867,2.61752137 6.99034011,2.61752137 C6.26753154,2.61752137 5.68157942,2.03156925 5.68157942,1.30876068 C5.68157942,0.585952117 6.26753154,-5.32907052e-15 6.99034011,-5.32907052e-15 Z M12.6641293,-5.32907052e-15 C13.3869378,-5.32907052e-15 13.97289,0.585952117 13.97289,1.30876068 C13.97289,2.03156925 13.3869378,2.61752137 12.6641293,2.61752137 C11.9413207,2.61752137 11.3553686,2.03156925 11.3553686,1.30876068 C11.3553686,0.585952117 11.9413207,-5.32907052e-15 12.6641293,-5.32907052e-15 Z" transform="translate(5 7)"/>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 3备份 4</title>
4
+ <defs>
5
+ <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
+ </defs>
7
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="单据-详情页(二级页)-下拉" transform="translate(-1858.000000, -1326.000000)">
9
+ <g id="编组-20" transform="translate(280.000000, 866.000000)">
10
+ <g id="编组-5" transform="translate(1554.000000, 179.000000)">
11
+ <g id="编组-3备份-4" transform="translate(24.000000, 281.000000)">
12
+ <mask id="mask-2" fill="white">
13
+ <use xlink:href="#path-1"></use>
14
+ </mask>
15
+ <use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
16
+ <g id="编组" mask="url(#mask-2)" fill="#B1BAD4" fill-rule="nonzero">
17
+ <g transform="translate(3.000000, 3.000000)" id="形状">
18
+ <path d="M5.99072727,0.237481917 C6.50454545,-0.0418576482 6.56509091,-0.0745634228 6.97254545,0.138292264 L7.15527271,0.236945765 C7.31727271,0.445512161 7.34672726,0.483579531 7.3761818,0.664265595 L7.39690908,0.809565049 L7.39690908,17 L5.76054545,17 L5.76054545,2.73974241 L1.15690909,7.26654448 L0,6.12934831 L5.99072727,0.237481917 Z M13.0909091,13.6720525 L13.0909091,15.2805337 L9.81818182,15.2805337 L9.81818182,13.6720525 L13.0909091,13.6720525 Z M14.7272727,9.91892987 L14.7272727,11.527411 L9.81818182,11.527411 L9.81818182,9.91892987 L14.7272727,9.91892987 Z M16.3636364,6.16580723 L16.3636364,7.77428836 L9.81818182,7.77428836 L9.81818182,6.16580723 L16.3636364,6.16580723 Z M18,2.41268459 L18,4.02116572 L9.81818182,4.02116572 L9.81818182,2.41268459 L18,2.41268459 Z"></path>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
+ </g>
26
+ </svg>
@@ -53,7 +53,8 @@ export default () => {
53
53
 
54
54
  const props = {
55
55
  callbackHideModal,
56
- callbackHandleOk
56
+ callbackHandleOk,
57
+ isCheckStockNum: false // 默认为true,校验库存数量,false,则不校验库存
57
58
  }
58
59
 
59
60
  return (
@@ -14,7 +14,8 @@ const CommodityEntry = (props: any) => {
14
14
  callbackHandleOk,
15
15
  columns=["skuCode", "quantity", "price"],
16
16
  validDataUrl="/items/sku/import/check",
17
- isBrandAuth = true // 默认做品牌过滤
17
+ isBrandAuth = true, // 默认做品牌过滤
18
+ isCheckStockNum = true
18
19
  } = props;
19
20
 
20
21
  const [modalProps, setModalProps]: any = useState({
@@ -68,6 +69,7 @@ const CommodityEntry = (props: any) => {
68
69
  columns={columns}
69
70
  validDataUrl={validDataUrl}
70
71
  isBrandAuth={isBrandAuth}
72
+ isCheckStockNum={isCheckStockNum}
71
73
  />
72
74
  </Modal>
73
75
  ) || ''}
@@ -0,0 +1,112 @@
1
+ .form-guide {
2
+ cursor: pointer;
3
+ position: fixed;
4
+ right: 5px;
5
+ color: #B1BAD4;
6
+ padding: 5px 0;
7
+ width: 48px;
8
+ z-index: 10;
9
+ top: 50%;
10
+ transform: translateY(-50%);
11
+ background-color: #141620;
12
+ .form-guide-top {
13
+ padding: 0px 10px;
14
+ display: flex;
15
+ justify-content: center;
16
+ }
17
+ border-radius: 5px;
18
+ .form-guide-center {
19
+ border-top: 1px solid #6E7588;
20
+ border-bottom: 1px solid #6E7588;
21
+ padding: 0px 10px;
22
+ }
23
+ .form-guide-item {
24
+ width: 28px;
25
+ padding: 5px 0;
26
+ display: block;
27
+ word-break: break-all;
28
+ color: #B1BAD4;
29
+ font-size: 14px;
30
+ line-height: 16px;
31
+ position: relative;
32
+ }
33
+ .form-guide-item::after {
34
+ content: '';
35
+ display: block;
36
+ width: 15px;
37
+ height: 1px;
38
+ background-color: #6E7588;
39
+ position: absolute;
40
+ bottom: 0px;
41
+ left: 7px;
42
+ }
43
+
44
+ .form-guide-bottom {
45
+ padding: 5px 10px;
46
+ display: flex;
47
+ justify-content: center;
48
+ }
49
+ .form-guide-item:last-child::after {
50
+ content: '';
51
+ display: none;
52
+ width: 15px;
53
+ height: 1px;
54
+ background-color: #6E7588;
55
+ position: absolute;
56
+ bottom: 0px;
57
+ left: 7px;
58
+ }
59
+ }
60
+
61
+ .white-card.bitsun-form-card-class {
62
+ .ant-card-body {
63
+ background-color: #FFFFFF;
64
+ padding: 0px;
65
+ }
66
+ }
67
+
68
+ .bitsun-form-card-class {
69
+ &>.ant-card-body {
70
+ margin-bottom: 10px;
71
+ }
72
+ }
73
+
74
+ .bitsun-form-card-class {
75
+ .ant-card-head {
76
+ border: 0px;
77
+ padding: 0px;
78
+ height: 48px;
79
+ }
80
+
81
+ .ant-card-body {
82
+ padding: 12px 0 0;
83
+ margin-top: -4px;
84
+ background-color: #F3F3F3;
85
+ }
86
+
87
+ .ant-card-head-title {
88
+ display: flex;
89
+ align-items: center;
90
+ font-size: 16px;
91
+ color: #000000;
92
+ font-weight: 600;
93
+ font-family: PingFangSC;
94
+ background-color: #FFFFFF;
95
+ padding: 8px 0;
96
+ margin: 0px;
97
+ .title-left-line {
98
+ display: inline-block;
99
+ width: 4px;
100
+ height: 100%;
101
+ background-color: #005CFF;
102
+ height: 20px;
103
+ margin-right: 16px;
104
+ }
105
+ }
106
+ }
107
+
108
+ .field-group-hidden {
109
+ .ant-card-body {
110
+ display: none !important;
111
+ }
112
+ }