@bit-sun/business-component 2.0.14 → 2.0.17-alpha.0

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/.fatherrc.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export default {
2
2
  esm: 'rollup',
3
3
  cjs: 'rollup',
4
+ umd: true,
4
5
  };
@@ -0,0 +1,6 @@
1
+ import { Component } from "react";
2
+ import './index.less';
3
+ export default class GuideWrapper extends Component {
4
+ static Field: ({ children, ...props }: any) => JSX.Element;
5
+ render(): JSX.Element;
6
+ }
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const SearchSelect: (props: any) => JSX.Element;
3
+ declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
4
  export default SearchSelect;
package/dist/index.d.ts CHANGED
@@ -11,3 +11,5 @@ export { default as CommodityEntry } from './components/Business/CommodityEntry'
11
11
  export { default as CheckOneUser } from './utils/CheckOneUser';
12
12
  export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
13
13
  export { default as BusinessTreeSearchSelect } from './components/Business/TreeSearchSelect';
14
+ export { default as StateFlow } from './components/Business/StateFlow';
15
+ export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useRef, useMemo } from 'react';
2
+ import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useImperativeHandle, useRef, useMemo, Component } from 'react';
3
3
  import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover } from 'antd';
4
4
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
5
5
  import classNames from 'classnames';
@@ -2399,7 +2399,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2399
2399
  validDataUrl = _this$props.validDataUrl,
2400
2400
  updateData = _this$props.updateData,
2401
2401
  columns = _this$props.columns,
2402
- isBrandAuth = _this$props.isBrandAuth;
2402
+ isBrandAuth = _this$props.isBrandAuth,
2403
+ _this$props$isCheckSt = _this$props.isCheckStockNum,
2404
+ isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt;
2403
2405
 
2404
2406
  var resultData = _this.getData().filter(function (d) {
2405
2407
  return _.compact(Object.values(d)).length;
@@ -2416,7 +2418,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2416
2418
 
2417
2419
  axios.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
2418
2420
  columns: columns,
2419
- data: resultData
2421
+ data: resultData,
2422
+ checkStockNum: isCheckStockNum
2420
2423
  })).then(function (result) {
2421
2424
  result = result.data;
2422
2425
 
@@ -3468,8 +3471,7 @@ var css_248z$3 = ".search_select_show {\n display: flex;\n}\n.search_select_exp
3468
3471
  styleInject(css_248z$3);
3469
3472
 
3470
3473
  var Option = Select.Option;
3471
-
3472
- var SearchSelect = function SearchSelect(props) {
3474
+ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3473
3475
  var value = props.value,
3474
3476
  onChange = props.onChange,
3475
3477
  _props$selectProps = props.selectProps,
@@ -3484,7 +3486,8 @@ var SearchSelect = function SearchSelect(props) {
3484
3486
  _props$needModalTable = props.needModalTable,
3485
3487
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
3486
3488
  _props$getPopupContai = props.getPopupContainer,
3487
- _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai;
3489
+ _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
3490
+ fieldComponent = props.fieldComponent;
3488
3491
 
3489
3492
  var _ref = requestConfig || {},
3490
3493
  url = _ref.url,
@@ -3497,7 +3500,11 @@ var SearchSelect = function SearchSelect(props) {
3497
3500
  mappingTextShowKeyField = _ref.mappingTextShowKeyField,
3498
3501
  _ref$mappingValueFiel = _ref.mappingValueField,
3499
3502
  mappingValueField = _ref$mappingValueFiel === void 0 ? 'code' : _ref$mappingValueFiel,
3500
- mappingTextShowTextField = _ref.mappingTextShowTextField;
3503
+ mappingTextShowTextField = _ref.mappingTextShowTextField,
3504
+ _ref$init = _ref.init,
3505
+ init = _ref$init === void 0 ? true : _ref$init,
3506
+ _ref$extralHeaders = _ref.extralHeaders,
3507
+ extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders;
3501
3508
 
3502
3509
  var resultSourceKey = sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode';
3503
3510
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
@@ -3635,8 +3642,30 @@ var SearchSelect = function SearchSelect(props) {
3635
3642
  var _useState33 = useState(false),
3636
3643
  _useState34 = _slicedToArray(_useState33, 2),
3637
3644
  tooltipVisible = _useState34[0],
3638
- setTooltipVisible = _useState34[1]; // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
3645
+ setTooltipVisible = _useState34[1];
3639
3646
 
3647
+ useImperativeHandle(ref, function () {
3648
+ return {
3649
+ refreshDataSource: function refreshDataSource() {
3650
+ var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
3651
+
3652
+ if (reset) {
3653
+ if (init) {
3654
+ run('init');
3655
+ } else {
3656
+ setItems([]);
3657
+ setItemsTotal(0);
3658
+ }
3659
+ } else {
3660
+ run();
3661
+ }
3662
+ },
3663
+ clearDataSource: function clearDataSource() {
3664
+ setItems([]);
3665
+ setItemsTotal(0);
3666
+ }
3667
+ };
3668
+ }); // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
3640
3669
 
3641
3670
  var getData = function getData() {
3642
3671
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -3759,7 +3788,9 @@ var SearchSelect = function SearchSelect(props) {
3759
3788
  currentPage: currentPage
3760
3789
  }, otherParams), fixedParam), params);
3761
3790
 
3762
- axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
3791
+ axios.get("".concat(url, "?").concat(stringify(queryParams)), {
3792
+ headers: _objectSpread2({}, extralHeaders)
3793
+ }).then(function (result) {
3763
3794
  var _result, _result2;
3764
3795
 
3765
3796
  setFetching(false);
@@ -3882,7 +3913,9 @@ var SearchSelect = function SearchSelect(props) {
3882
3913
  };
3883
3914
 
3884
3915
  useEffect(function () {
3885
- run('init');
3916
+ if (init) {
3917
+ run('init');
3918
+ }
3886
3919
  }, []);
3887
3920
  useEffect(function () {
3888
3921
  if (value) {
@@ -3980,14 +4013,36 @@ var SearchSelect = function SearchSelect(props) {
3980
4013
  }
3981
4014
  };
3982
4015
 
4016
+ var refreshItems = function refreshItems() {
4017
+ // 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
4018
+ if (fieldValToParam && ctx) {
4019
+ var formValueList = [];
4020
+ fieldValToParam.forEach(function (item, index) {
4021
+ var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
4022
+ formValueList.push(fixedParamVal);
4023
+ });
4024
+
4025
+ if (formValueList.filter(function (item) {
4026
+ return item;
4027
+ }).length > 0) {
4028
+ run();
4029
+ } else {
4030
+ setItems([]);
4031
+ setItemsTotal(0);
4032
+ }
4033
+ } else {
4034
+ run();
4035
+ }
4036
+ };
4037
+
3983
4038
  var onSearchChange = function onSearchChange(e) {
3984
4039
  setSearchValue(e.target.value);
3985
- run();
4040
+ refreshItems();
3986
4041
  };
3987
4042
 
3988
4043
  var onSearchBlur = function onSearchBlur() {
3989
4044
  setSearchValue('');
3990
- run();
4045
+ refreshItems();
3991
4046
  };
3992
4047
 
3993
4048
  var onSearchTable = function onSearchTable() {
@@ -4139,13 +4194,13 @@ var SearchSelect = function SearchSelect(props) {
4139
4194
  },
4140
4195
  getCheckboxProps: function getCheckboxProps() {
4141
4196
  return {
4142
- disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
4197
+ disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled) || !items.length
4143
4198
  };
4144
4199
  }
4145
4200
  };
4146
4201
 
4147
4202
  var onDoubleClickSelect = function onDoubleClickSelect(e, record) {
4148
- if (!selectMode) {
4203
+ if (!selectMode && !((selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled) || !items.length)) {
4149
4204
  var srs = [JSON.parse(JSON.stringify(record))];
4150
4205
  var sks = srs.map(function (i) {
4151
4206
  return i.value;
@@ -4268,7 +4323,14 @@ var SearchSelect = function SearchSelect(props) {
4268
4323
 
4269
4324
  return /*#__PURE__*/React.createElement("div", {
4270
4325
  className: 'search_select'
4271
- }, /*#__PURE__*/React.createElement("div", {
4326
+ }, fieldComponent ? /*#__PURE__*/React.createElement("div", {
4327
+ onClick: function onClick() {
4328
+ var _fieldComponent$props, _fieldComponent$props2;
4329
+
4330
+ (_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);
4331
+ showModal();
4332
+ }
4333
+ }, fieldComponent) : /*#__PURE__*/React.createElement("div", {
4272
4334
  className: "search_select_show",
4273
4335
  id: "search_select_div_".concat(uniqueValue)
4274
4336
  }, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
@@ -4276,6 +4338,7 @@ var SearchSelect = function SearchSelect(props) {
4276
4338
  labelInValue: labelInValue,
4277
4339
  value: value,
4278
4340
  onChange: onChange,
4341
+ disabled: props.disabled,
4279
4342
  dropdownRender: function dropdownRender(menu) {
4280
4343
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
4281
4344
  value: searchValue,
@@ -4428,7 +4491,7 @@ var SearchSelect = function SearchSelect(props) {
4428
4491
  onChange: onChangeCheckAll,
4429
4492
  disabled: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled)
4430
4493
  }), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
4431
- };
4494
+ });
4432
4495
 
4433
4496
  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";
4434
4497
  styleInject(css_248z$4);
@@ -6077,7 +6140,6 @@ var BillEntry = function BillEntry(_ref3) {
6077
6140
  title: '单位',
6078
6141
  dataIndex: 'selectUnitCode',
6079
6142
  width: 100,
6080
- isSelectItem: true,
6081
6143
  render: function render(text, record) {
6082
6144
  var _record$packingUnitLi;
6083
6145
 
@@ -7985,13 +8047,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7985
8047
  }
7986
8048
 
7987
8049
  var MemoSearchSelect = /*#__PURE__*/React.memo(SearchSelect);
7988
-
7989
- var BusinessSearchSelect = function BusinessSearchSelect(props) {
8050
+ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
7990
8051
  var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'supplier';
7991
8052
  var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
7992
8053
  selectPrefix: handleDefaultPrefixUrl(businessType),
7993
8054
  formSelectFix: handleDefaultPrefixUrl(businessType)
7994
8055
  };
8056
+ var innerRef = useRef();
7995
8057
 
7996
8058
  var _commonFun = commonFun(businessType, prefixUrl, (props === null || props === void 0 ? void 0 : props.requestConfig) || {}, (props === null || props === void 0 ? void 0 : props.modalTableProps) || {}),
7997
8059
  requestConfig = _commonFun.requestConfig,
@@ -8005,9 +8067,17 @@ var BusinessSearchSelect = function BusinessSearchSelect(props) {
8005
8067
  modalTableProps: modalTableProps
8006
8068
  });
8007
8069
  }, [props === null || props === void 0 ? void 0 : props.value]);
8008
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoSearchSelect, _objectSpread2({}, currentProps)));
8009
- };
8010
-
8070
+ useImperativeHandle(ref, function () {
8071
+ return {
8072
+ getRef: function getRef() {
8073
+ return innerRef;
8074
+ }
8075
+ };
8076
+ });
8077
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoSearchSelect, _objectSpread2(_objectSpread2({}, currentProps), {}, {
8078
+ ref: innerRef
8079
+ })));
8080
+ });
8011
8081
  var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, function (props, nextProps) {
8012
8082
  if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
8013
8083
  return false;
@@ -8320,7 +8390,9 @@ var CommodityEntry = function CommodityEntry(props) {
8320
8390
  _props$validDataUrl = props.validDataUrl,
8321
8391
  validDataUrl = _props$validDataUrl === void 0 ? "/items/sku/import/check" : _props$validDataUrl,
8322
8392
  _props$isBrandAuth = props.isBrandAuth,
8323
- isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth;
8393
+ isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
8394
+ _props$isCheckStockNu = props.isCheckStockNum,
8395
+ isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu;
8324
8396
 
8325
8397
  var _useState = useState({
8326
8398
  maskClosable: false,
@@ -8384,7 +8456,8 @@ var CommodityEntry = function CommodityEntry(props) {
8384
8456
  },
8385
8457
  columns: columns,
8386
8458
  validDataUrl: validDataUrl,
8387
- isBrandAuth: isBrandAuth
8459
+ isBrandAuth: isBrandAuth,
8460
+ isCheckStockNum: isCheckStockNum
8388
8461
  })) || '');
8389
8462
  };
8390
8463
 
@@ -8760,4 +8833,151 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
8760
8833
  return true;
8761
8834
  });
8762
8835
 
8763
- export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
8836
+ 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";
8837
+ styleInject(css_248z$6);
8838
+
8839
+ var index$2 = (function (props) {
8840
+ var _props$formStatusMapp = props.formStatusMapping,
8841
+ formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
8842
+ return /*#__PURE__*/React.createElement("div", {
8843
+ style: {
8844
+ display: 'flex',
8845
+ padding: '10px 60px 0px',
8846
+ background: '#FFFFFF'
8847
+ }
8848
+ }, formStatusMapping.map(function (item, index) {
8849
+ return /*#__PURE__*/React.createElement("div", {
8850
+ style: {
8851
+ width: "".concat((100 / formStatusMapping.length).toFixed(2), "%")
8852
+ },
8853
+ className: "form-status-label ".concat(item.isDone ? 'choosed-status-label' : '', " ").concat(formStatusMapping.length === 1 ? 'only-one-child' : '')
8854
+ }, /*#__PURE__*/React.createElement("div", {
8855
+ className: 'status-label-key'
8856
+ }, /*#__PURE__*/React.createElement("span", {
8857
+ className: 'status-label-index'
8858
+ }, index + 1)), /*#__PURE__*/React.createElement("div", {
8859
+ className: 'status-label-operate'
8860
+ }, /*#__PURE__*/React.createElement("div", {
8861
+ style: !item.isDone ? {
8862
+ height: '40px',
8863
+ lineHeight: '40px'
8864
+ } : {}
8865
+ }, item.text), item.isDone ? /*#__PURE__*/React.createElement("div", {
8866
+ title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
8867
+ }, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')) : null), /*#__PURE__*/React.createElement("div", {
8868
+ style: {
8869
+ clear: 'both'
8870
+ }
8871
+ }));
8872
+ }));
8873
+ });
8874
+
8875
+ 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";
8876
+
8877
+ 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";
8878
+
8879
+ 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=";
8880
+
8881
+ 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";
8882
+ styleInject(css_248z$7);
8883
+
8884
+ var _excluded$5 = ["children"],
8885
+ _excluded2$2 = ["children"];
8886
+
8887
+ var Field = function Field(_ref) {
8888
+ var children = _ref.children,
8889
+ props = _objectWithoutProperties(_ref, _excluded$5);
8890
+
8891
+ var _React$useState = React.useState(true),
8892
+ _React$useState2 = _slicedToArray(_React$useState, 2),
8893
+ fieldGroupVisible = _React$useState2[0],
8894
+ setVisible = _React$useState2[1];
8895
+
8896
+ return /*#__PURE__*/React.createElement("div", {
8897
+ className: "bitsun-form-card-class \n ".concat(fieldGroupVisible ? '' : 'field-group-hidden', " \n ").concat(props.isWhiteCard ? 'white-card' : '', "\n "),
8898
+ id: props.id
8899
+ }, /*#__PURE__*/React.createElement("div", {
8900
+ className: "ant-card-head"
8901
+ }, /*#__PURE__*/React.createElement("div", {
8902
+ className: "ant-card-head-title"
8903
+ }, /*#__PURE__*/React.createElement("span", {
8904
+ className: 'title-left-line'
8905
+ }), /*#__PURE__*/React.createElement("span", {
8906
+ style: {
8907
+ marginRight: '5px'
8908
+ }
8909
+ }, props === null || props === void 0 ? void 0 : props.title), /*#__PURE__*/React.createElement("img", {
8910
+ width: 24,
8911
+ style: {
8912
+ transform: fieldGroupVisible ? 'inherit' : 'rotate(180deg)',
8913
+ cursor: 'pointer'
8914
+ },
8915
+ src: arrow_top,
8916
+ onClick: function onClick(e) {
8917
+ e.stopPropagation();
8918
+ setVisible(!fieldGroupVisible);
8919
+ }
8920
+ }))), /*#__PURE__*/React.createElement("div", {
8921
+ className: "ant-card-body"
8922
+ }, children));
8923
+ };
8924
+
8925
+ var GuideWrapper = /*#__PURE__*/function (_Component) {
8926
+ _inherits(GuideWrapper, _Component);
8927
+
8928
+ var _super = _createSuper(GuideWrapper);
8929
+
8930
+ function GuideWrapper() {
8931
+ _classCallCheck(this, GuideWrapper);
8932
+
8933
+ return _super.apply(this, arguments);
8934
+ }
8935
+
8936
+ _createClass(GuideWrapper, [{
8937
+ key: "render",
8938
+ value: function render() {
8939
+ var _this$props = this.props,
8940
+ _this$props$children = _this$props.children,
8941
+ children = _this$props$children === void 0 ? [] : _this$props$children,
8942
+ props = _objectWithoutProperties(_this$props, _excluded2$2);
8943
+
8944
+ var cardGroups = children.filter(function (item) {
8945
+ var _item$props, _item$props2;
8946
+
8947
+ 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);
8948
+ });
8949
+ return /*#__PURE__*/React.createElement("div", _objectSpread2({}, props), children, /*#__PURE__*/React.createElement("div", {
8950
+ className: 'form-guide'
8951
+ }, /*#__PURE__*/React.createElement("div", {
8952
+ className: 'form-guide-top'
8953
+ }, /*#__PURE__*/React.createElement("img", {
8954
+ width: 24,
8955
+ src: dragImg
8956
+ })), /*#__PURE__*/React.createElement("div", {
8957
+ className: 'form-guide-center'
8958
+ }, cardGroups.map(function (item) {
8959
+ return /*#__PURE__*/React.createElement("span", {
8960
+ className: 'form-guide-item',
8961
+ onClick: function onClick() {
8962
+ var currentDom = document.getElementById(item.props.id);
8963
+ currentDom && currentDom.scrollIntoView({
8964
+ block: 'center',
8965
+ behavior: 'smooth'
8966
+ });
8967
+ }
8968
+ }, item.props.title);
8969
+ })), /*#__PURE__*/React.createElement("div", {
8970
+ className: 'form-guide-bottom'
8971
+ }, /*#__PURE__*/React.createElement("img", {
8972
+ width: 24,
8973
+ src: label_icon_bottom
8974
+ }))));
8975
+ }
8976
+ }]);
8977
+
8978
+ return GuideWrapper;
8979
+ }(Component);
8980
+
8981
+ GuideWrapper.Field = Field;
8982
+
8983
+ export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, GuideWrapper, QueryMutipleInput, SearchSelect, index$2 as StateFlow, TreeSearchSelect };