@bit-sun/business-component 4.2.1-alpha.8 → 4.2.1-alpha.8-longya

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -4850,14 +4850,14 @@ function ToCDB$1(selectStr) {
4850
4850
  return tmp;
4851
4851
  }
4852
4852
 
4853
- var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
4853
+ var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .search_select_current_page_filter_column {\n min-width: 140px;\n}\n.search_select_modal_wrapper .search_select_current_page_filter_column .ant-table-filter-column {\n min-width: 108px;\n}\n.search_select_modal_wrapper .search_select_current_page_filter_column .ant-table-column-title {\n min-width: 64px;\n white-space: nowrap;\n}\n.search_select_modal_wrapper .search_select_current_page_filter_column .ant-table-filter-trigger {\n flex: 0 0 32px;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
4854
4854
  styleInject(css_248z$6);
4855
4855
 
4856
- var SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 100;
4857
- var SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS = [10, 20, 50, 100, 500, 1000];
4856
+ var SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 200;
4857
+ var SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS = [10, 20, 50, 100, 200, 300, 500, 1000];
4858
4858
  var SEARCH_SELECT_MODAL_PAGE_SIZE_CACHE_KEY = 'businessComponentSearchSelectPageSize';
4859
4859
  /**
4860
- * 规范化选择器弹窗分页大小,缓存异常时统一回退到每页 100 条。
4860
+ * 规范化选择器弹窗分页大小,缓存异常时统一回退到默认条数。
4861
4861
  *
4862
4862
  * @param pageSize 待校验的分页大小
4863
4863
  * @returns 合法的分页大小
@@ -4869,7 +4869,7 @@ var normalizeSearchSelectModalPageSize = function normalizeSearchSelectModalPage
4869
4869
  /**
4870
4870
  * 读取所有选择器弹窗共用的分页大小。
4871
4871
  *
4872
- * @returns 缓存中的分页大小,无有效缓存时返回每页 100 条
4872
+ * @returns 缓存中的分页大小,无有效缓存时返回默认条数
4873
4873
  */
4874
4874
  var getSearchSelectModalPageSize = function getSearchSelectModalPageSize() {
4875
4875
  if (typeof window === 'undefined') {
@@ -5361,6 +5361,103 @@ var ItemPropertySelector = function ItemPropertySelector(_ref) {
5361
5361
  }));
5362
5362
  };
5363
5363
 
5364
+ var _excluded$5 = ["currentPageFilter", "children"];
5365
+ /**
5366
+ * SKU 选择弹框「当前页列筛选」默认字段(合并 BusinessSearchSelect / AddSkuSelect 命名)。
5367
+ * Functional 层按 dataIndex 命中自动开启,业务列不必再散标 currentPageFilter。
5368
+ */
5369
+ var SKU_CURRENT_PAGE_FILTER_DATA_INDEXES = ['skuCode', 'skuName', 'name', 'itemName', 'itemCode', 'styleCode', 'pinCode', 'longyaStyleCode', 'longyaPinCode', 'colorName', 'sizeName'];
5370
+ /**
5371
+ * 按 dataIndex 白名单为表格列打上 currentPageFilter。
5372
+ *
5373
+ * @param columns 原始表格列
5374
+ * @param dataIndexes 需要开启当前页筛选的字段
5375
+ * @returns 已标记的表格列
5376
+ */
5377
+ var markCurrentPageFilterByDataIndex = function markCurrentPageFilterByDataIndex() {
5378
+ var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
5379
+ var dataIndexes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SKU_CURRENT_PAGE_FILTER_DATA_INDEXES;
5380
+ return columns.map(function (column) {
5381
+ return dataIndexes.includes(column === null || column === void 0 ? void 0 : column.dataIndex) ? _objectSpread2(_objectSpread2({}, column), {}, {
5382
+ currentPageFilter: true,
5383
+ width: column.width || 140
5384
+ }) : column;
5385
+ });
5386
+ };
5387
+ /**
5388
+ * 从当前页数据中提取指定字段的筛选项,过滤空值后按名称去重、排序。
5389
+ *
5390
+ * @param dataSource 当前页表格数据
5391
+ * @param dataIndex 作为筛选值的数据字段
5392
+ * @returns 当前页可用的筛选项
5393
+ */
5394
+ var getCurrentPageFilterOptions = function getCurrentPageFilterOptions() {
5395
+ var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
5396
+ var dataIndex = arguments.length > 1 ? arguments[1] : undefined;
5397
+ if (!dataIndex) {
5398
+ return [];
5399
+ }
5400
+ var optionMap = new Map();
5401
+ dataSource.forEach(function (record) {
5402
+ var rawValue = record === null || record === void 0 ? void 0 : record[dataIndex];
5403
+ if (rawValue === null || rawValue === undefined) {
5404
+ return;
5405
+ }
5406
+ var value = String(rawValue).trim();
5407
+ if (!value || optionMap.has(value)) {
5408
+ return;
5409
+ }
5410
+ optionMap.set(value, {
5411
+ text: value,
5412
+ value: value
5413
+ });
5414
+ });
5415
+ return Array.from(optionMap.values()).sort(function (left, right) {
5416
+ return left.text.localeCompare(right.text, 'zh-CN', {
5417
+ numeric: true
5418
+ });
5419
+ });
5420
+ };
5421
+ /**
5422
+ * 为声明了 currentPageFilter 的表格列注入当前页筛选能力。
5423
+ *
5424
+ * @param columns 原始表格列
5425
+ * @param dataSource 当前页表格数据
5426
+ * @param filteredValues 当前已选筛选值
5427
+ * @param enabled 是否启用筛选;已选结果表仅移除内部配置,不启用筛选
5428
+ * @returns 可直接传给 Ant Design Table 的表格列
5429
+ */
5430
+ var _buildCurrentPageFilterColumns = function buildCurrentPageFilterColumns() {
5431
+ var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
5432
+ var dataSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
5433
+ var filteredValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
5434
+ var enabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
5435
+ return columns.map(function (column) {
5436
+ var currentPageFilter = column.currentPageFilter,
5437
+ children = column.children,
5438
+ columnProps = _objectWithoutProperties(column, _excluded$5);
5439
+ var nextColumn = _objectSpread2(_objectSpread2({}, columnProps), (children === null || children === void 0 ? void 0 : children.length) ? {
5440
+ children: _buildCurrentPageFilterColumns(children, dataSource, filteredValues, enabled)
5441
+ } : {});
5442
+ if (!currentPageFilter || !enabled || !column.dataIndex) {
5443
+ return nextColumn;
5444
+ }
5445
+ var dataIndex = column.dataIndex;
5446
+ var currentPageFilterClassName = [columnProps.className, 'search_select_current_page_filter_column'].filter(Boolean).join(' ');
5447
+ return _objectSpread2(_objectSpread2({}, nextColumn), {}, {
5448
+ width: columnProps.width || 140,
5449
+ className: currentPageFilterClassName,
5450
+ filters: getCurrentPageFilterOptions(dataSource, dataIndex),
5451
+ filterSearch: true,
5452
+ filteredValue: filteredValues[dataIndex] || null,
5453
+ onFilter: function onFilter(filterValue, record) {
5454
+ var _record$dataIndex;
5455
+ return String((_record$dataIndex = record === null || record === void 0 ? void 0 : record[dataIndex]) !== null && _record$dataIndex !== void 0 ? _record$dataIndex : '') === String(filterValue);
5456
+ }
5457
+ });
5458
+ });
5459
+ };
5460
+
5364
5461
  var Option$1 = Select.Option;
5365
5462
  var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5366
5463
  var _pathname$match;
@@ -5402,7 +5499,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5402
5499
  mappingTextShowKeyField = _ref.mappingTextShowKeyField,
5403
5500
  _ref$mappingValueFiel = _ref.mappingValueField,
5404
5501
  mappingValueField = _ref$mappingValueFiel === void 0 ? 'code' : _ref$mappingValueFiel,
5405
- mappingOutputField = _ref.mappingOutputField,
5406
5502
  mappingTextShowTextField = _ref.mappingTextShowTextField,
5407
5503
  _ref$init = _ref.init,
5408
5504
  init = _ref$init === void 0 ? false : _ref$init,
@@ -5429,7 +5525,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5429
5525
  mappingTextField: mappingTextField,
5430
5526
  mappingTextShowKeyField: mappingTextShowKeyField,
5431
5527
  mappingValueField: mappingValueField,
5432
- mappingOutputField: mappingOutputField,
5433
5528
  mappingTextShowTextField: mappingTextShowTextField,
5434
5529
  init: init,
5435
5530
  extralHeaders: extralHeaders,
@@ -5493,77 +5588,42 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5493
5588
  _useState2 = _slicedToArray(_useState, 2),
5494
5589
  items = _useState2[0],
5495
5590
  setItems = _useState2[1];
5496
- var selectedRecordsRef = useRef([]);
5497
- var _useState3 = useState(0),
5591
+ var _useState3 = useState(false),
5498
5592
  _useState4 = _slicedToArray(_useState3, 2),
5499
- refreshSelectedRecords = _useState4[1];
5500
- /**
5501
- * 使用记录标识维护选中状态,同时保留原有表单业务值。
5502
- */
5503
- var getSelectedRecords = function getSelectedRecords() {
5504
- if (!mappingOutputField || !value) return [];
5505
- var outputValues = selectMode ? value : [value];
5506
- var codes = new Set((Array.isArray(outputValues) ? outputValues : [outputValues]).map(function (item) {
5507
- var _item$value;
5508
- return labelInValue ? (_item$value = item === null || item === void 0 ? void 0 : item.value) !== null && _item$value !== void 0 ? _item$value : item === null || item === void 0 ? void 0 : item.key : item;
5509
- }));
5510
- return _toConsumableArray(codes).flatMap(function (code) {
5511
- var cached = selectedRecordsRef.current.filter(function (item) {
5512
- return item[mappingOutputField] === code;
5513
- });
5514
- return cached.length ? cached : items.filter(function (item) {
5515
- return item[mappingOutputField] === code;
5516
- }).slice(0, 1);
5517
- });
5518
- };
5519
- var getIdentityValue = function getIdentityValue() {
5520
- if (!mappingOutputField) return value;
5521
- var keys = getSelectedRecords().map(function (item) {
5522
- return labelInValue ? {
5523
- key: item[mappingValueField],
5524
- value: item[mappingValueField],
5525
- label: item[mappingTextField]
5526
- } : item[mappingValueField];
5527
- });
5528
- if (!keys.length) return value;
5529
- return selectMode ? keys : keys[0];
5530
- };
5593
+ selectOpen = _useState4[0],
5594
+ setSelectOpen = _useState4[1];
5531
5595
  var _useState5 = useState(false),
5532
5596
  _useState6 = _slicedToArray(_useState5, 2),
5533
- selectOpen = _useState6[0],
5534
- setSelectOpen = _useState6[1];
5535
- var _useState7 = useState(false),
5597
+ isMaxTagsOpen = _useState6[0],
5598
+ setIsMaxTagsOpen = _useState6[1];
5599
+ var _useState7 = useState(1),
5536
5600
  _useState8 = _slicedToArray(_useState7, 2),
5537
- isMaxTagsOpen = _useState8[0],
5538
- setIsMaxTagsOpen = _useState8[1];
5539
- var _useState9 = useState(1),
5601
+ scrollPage = _useState8[0],
5602
+ setScrollPage = _useState8[1];
5603
+ var _useState9 = useState(0),
5540
5604
  _useState0 = _slicedToArray(_useState9, 2),
5541
- scrollPage = _useState0[0],
5542
- setScrollPage = _useState0[1];
5543
- var _useState1 = useState(0),
5605
+ itemsTotal = _useState0[0],
5606
+ setItemsTotal = _useState0[1];
5607
+ var _useState1 = useState(false),
5544
5608
  _useState10 = _slicedToArray(_useState1, 2),
5545
- itemsTotal = _useState10[0],
5546
- setItemsTotal = _useState10[1];
5547
- var _useState11 = useState(false),
5609
+ fetching = _useState10[0],
5610
+ setFetching = _useState10[1];
5611
+ var _useState11 = useState(''),
5548
5612
  _useState12 = _slicedToArray(_useState11, 2),
5549
- fetching = _useState12[0],
5550
- setFetching = _useState12[1];
5551
- var _useState13 = useState(''),
5613
+ searchValue = _useState12[0],
5614
+ setSearchValue = _useState12[1];
5615
+ var _useState13 = useState(false),
5552
5616
  _useState14 = _slicedToArray(_useState13, 2),
5553
- searchValue = _useState14[0],
5554
- setSearchValue = _useState14[1];
5555
- var _useState15 = useState(false),
5617
+ isModalVisible = _useState14[0],
5618
+ setIsModalVisible = _useState14[1];
5619
+ var _useState15 = useState(initVal),
5556
5620
  _useState16 = _slicedToArray(_useState15, 2),
5557
- isModalVisible = _useState16[0],
5558
- setIsModalVisible = _useState16[1];
5559
- var _useState17 = useState(initVal),
5621
+ popvalue = _useState16[0],
5622
+ setPopValue = _useState16[1];
5623
+ var _useState17 = useState(resultSourceKey),
5560
5624
  _useState18 = _slicedToArray(_useState17, 2),
5561
- popvalue = _useState18[0],
5562
- setPopValue = _useState18[1];
5563
- var _useState19 = useState(resultSourceKey),
5564
- _useState20 = _slicedToArray(_useState19, 2),
5565
- uniqueValue = _useState20[0],
5566
- setUniqueValue = _useState20[1];
5625
+ uniqueValue = _useState18[0],
5626
+ setUniqueValue = _useState18[1];
5567
5627
  var _useDebounceFn = useDebounceFn(function (v) {
5568
5628
  // 优化搜索参数 支持传多个
5569
5629
  var searchParams = {};
@@ -5592,50 +5652,55 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5592
5652
  var _Form$useForm = Form.useForm(),
5593
5653
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5594
5654
  form = _Form$useForm2[0];
5655
+ var _useState19 = useState(true),
5656
+ _useState20 = _slicedToArray(_useState19, 2),
5657
+ collapsed = _useState20[0],
5658
+ setCollapsed = _useState20[1];
5595
5659
  var _useState21 = useState(true),
5596
5660
  _useState22 = _slicedToArray(_useState21, 2),
5597
- collapsed = _useState22[0],
5598
- setCollapsed = _useState22[1];
5599
- var _useState23 = useState(true),
5661
+ caretLeftFlag = _useState22[0],
5662
+ setCaretLeftFlag = _useState22[1];
5663
+ var _useState23 = useState([]),
5600
5664
  _useState24 = _slicedToArray(_useState23, 2),
5601
- caretLeftFlag = _useState24[0],
5602
- setCaretLeftFlag = _useState24[1];
5603
- var _useState25 = useState([]),
5665
+ tableData = _useState24[0],
5666
+ setTableData = _useState24[1];
5667
+ var _useState25 = useState(tableInitPagination),
5604
5668
  _useState26 = _slicedToArray(_useState25, 2),
5605
- tableData = _useState26[0],
5606
- setTableData = _useState26[1];
5607
- var _useState27 = useState(tableInitPagination),
5669
+ tablePagination = _useState26[0],
5670
+ setTablePagination = _useState26[1];
5671
+ var _useState27 = useState([]),
5608
5672
  _useState28 = _slicedToArray(_useState27, 2),
5609
- tablePagination = _useState28[0],
5610
- setTablePagination = _useState28[1];
5673
+ selectedRowKeys = _useState28[0],
5674
+ setSelectedRowKeys = _useState28[1];
5611
5675
  var _useState29 = useState([]),
5612
5676
  _useState30 = _slicedToArray(_useState29, 2),
5613
- selectedRowKeys = _useState30[0],
5614
- setSelectedRowKeys = _useState30[1];
5615
- var _useState31 = useState([]),
5677
+ selectedRows = _useState30[0],
5678
+ setSelectedRows = _useState30[1];
5679
+ var selectedLookupVersion = useRef(0);
5680
+ var _useState31 = useState(false),
5616
5681
  _useState32 = _slicedToArray(_useState31, 2),
5617
- selectedRows = _useState32[0],
5618
- setSelectedRows = _useState32[1];
5682
+ checkedAll = _useState32[0],
5683
+ setCheckedAll = _useState32[1];
5619
5684
  var _useState33 = useState(false),
5620
5685
  _useState34 = _slicedToArray(_useState33, 2),
5621
- checkedAll = _useState34[0],
5622
- setCheckedAll = _useState34[1];
5623
- var _useState35 = useState(false),
5686
+ indeterminate = _useState34[0],
5687
+ setIndeterminate = _useState34[1];
5688
+ var _useState35 = useState({}),
5624
5689
  _useState36 = _slicedToArray(_useState35, 2),
5625
- indeterminate = _useState36[0],
5626
- setIndeterminate = _useState36[1];
5627
- var _useState37 = useState({}),
5690
+ tableFormParams = _useState36[0],
5691
+ setTableFormParams = _useState36[1];
5692
+ var _useState37 = useState(false),
5628
5693
  _useState38 = _slicedToArray(_useState37, 2),
5629
- tableFormParams = _useState38[0],
5630
- setTableFormParams = _useState38[1];
5631
- var _useState39 = useState(false),
5694
+ tooltipVisible = _useState38[0],
5695
+ setTooltipVisible = _useState38[1];
5696
+ var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5632
5697
  _useState40 = _slicedToArray(_useState39, 2),
5633
- tooltipVisible = _useState40[0],
5634
- setTooltipVisible = _useState40[1];
5635
- var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5698
+ tableShowColumns = _useState40[0],
5699
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5700
+ var _useState41 = useState({}),
5636
5701
  _useState42 = _slicedToArray(_useState41, 2),
5637
- tableShowColumns = _useState42[0],
5638
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5702
+ currentPageFilters = _useState42[0],
5703
+ setCurrentPageFilters = _useState42[1];
5639
5704
  var _useState43 = useState(false),
5640
5705
  _useState44 = _slicedToArray(_useState43, 2),
5641
5706
  confirmLoading = _useState44[0],
@@ -5698,7 +5763,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5698
5763
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
5699
5764
  var callback = arguments.length > 2 ? arguments[2] : undefined;
5700
5765
  if (!requestConfig) return;
5701
- setFetching(true);
5766
+ if (type !== 3) setFetching(true);
5702
5767
  // 处理dependence参数
5703
5768
  var fixedParam = {};
5704
5769
  if (isHaveDependency) {
@@ -5707,7 +5772,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5707
5772
  if (fixedParamVal) {
5708
5773
  fixedParam[item] = fixedParamVal;
5709
5774
  // 解决依赖项在弹窗中回显/更改(如果不能更改,传参fixedparamsDisabled为true即可)
5710
- if (type == 2 || type == 3) {
5775
+ if (type == 2) {
5711
5776
  var fixedChangeParamVal = form.getFieldValue(item);
5712
5777
  var isDependenceValueChange = false;
5713
5778
  var dependenceValue = fixedParamVal;
@@ -5733,7 +5798,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5733
5798
  pageSize: pageSize,
5734
5799
  currentPage: currentPage
5735
5800
  }, otherParams), fixedParam), params);
5736
- if (isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
5801
+ if (type !== 3 && isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
5737
5802
  var _searchValue$trim;
5738
5803
  queryParams[selectParamsKey] = searchValue === null || searchValue === void 0 ? void 0 : (_searchValue$trim = searchValue.trim) === null || _searchValue$trim === void 0 ? void 0 : _searchValue$trim.call(searchValue);
5739
5804
  }
@@ -5757,9 +5822,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5757
5822
  headers: _objectSpread2({}, extralHeaders)
5758
5823
  });
5759
5824
  }
5760
- if (!url || !getRequest) return;
5825
+ if (!url || !getRequest) {
5826
+ if (type !== 3) setFetching(false);
5827
+ return;
5828
+ }
5761
5829
  getRequest.then(function (result) {
5762
- setFetching(false);
5830
+ if (type !== 3) setFetching(false);
5763
5831
  result = result.data;
5764
5832
  if (judgeIsRequestError(result)) {
5765
5833
  message$1.error(result.msg);
@@ -5769,7 +5837,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5769
5837
  var source = convertResData(requestConfig, res, {
5770
5838
  selectMode: selectMode,
5771
5839
  labelInValue: labelInValue,
5772
- value: getIdentityValue(),
5840
+ value: value,
5773
5841
  type: type,
5774
5842
  items: items,
5775
5843
  queryParams: queryParams,
@@ -5783,6 +5851,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5783
5851
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
5784
5852
  setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
5785
5853
  } else {
5854
+ setCurrentPageFilters({});
5786
5855
  setTableData(source);
5787
5856
  setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
5788
5857
  total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
@@ -5792,7 +5861,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5792
5861
  }
5793
5862
  }
5794
5863
  }).catch(function (err) {
5795
- setFetching(false);
5864
+ if (type !== 3) setFetching(false);
5796
5865
  });
5797
5866
  };
5798
5867
  var SelectScroll = function SelectScroll(e) {
@@ -5906,6 +5975,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5906
5975
  return newValue;
5907
5976
  };
5908
5977
  var showModal = function showModal() {
5978
+ var _requestConfig$filter, _requestConfig$filter2;
5909
5979
  if (sDisabled) return;
5910
5980
  var cachedPageSize = getSearchSelectModalPageSize();
5911
5981
  setSelectOpen(false);
@@ -5916,17 +5986,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5916
5986
  current: 1
5917
5987
  }));
5918
5988
  setIsModalVisible(true);
5919
- if (mappingOutputField) {
5920
- var records = getSelectedRecords();
5921
- setSelectedRowKeys(records.map(function (item) {
5922
- return item[mappingValueField];
5923
- }));
5924
- setSelectedRows(records);
5925
- setPopValue(records);
5926
- setIndeterminate(!!records.length && records.length < itemsTotal);
5927
- setCheckedAll(!!itemsTotal && records.length === itemsTotal);
5928
- return;
5929
- }
5930
5989
  // 回显
5931
5990
  if (value) {
5932
5991
  if (selectMode) {
@@ -5962,6 +6021,28 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5962
6021
  }]);
5963
6022
  }
5964
6023
  }
6024
+ /** 根据已选值查询完整记录,更新弹窗右侧的回显列。 */
6025
+ var selectedValues = selectMode ? getShowValue(value) : value == null ? [] : [value];
6026
+ var selectedKeys = selectedValues.map(function (item) {
6027
+ var _item$key;
6028
+ return labelInValue ? (_item$key = item === null || item === void 0 ? void 0 : item.key) !== null && _item$key !== void 0 ? _item$key : item === null || item === void 0 ? void 0 : item.value : item;
6029
+ }).filter(function (key) {
6030
+ return key !== null && key !== undefined && key !== '';
6031
+ });
6032
+ var lookupKey = (requestConfig === null || requestConfig === void 0 ? void 0 : (_requestConfig$filter = requestConfig.filterInit) === null || _requestConfig$filter === void 0 ? void 0 : (_requestConfig$filter2 = _requestConfig$filter.endsWith) === null || _requestConfig$filter2 === void 0 ? void 0 : _requestConfig$filter2.call(_requestConfig$filter, '-in')) ? requestConfig.filterInit : "qp-".concat(mappingValueField, "-in");
6033
+ var lookupVersion = ++selectedLookupVersion.current;
6034
+ if (selectedKeys.length && url) {
6035
+ getData(_defineProperty(_defineProperty(_defineProperty({}, lookupKey, selectedKeys.join(',')), "pageSize", Math.max(selectedKeys.length, tableInitPageSize)), "currentPage", 1), 3, function (source) {
6036
+ if (lookupVersion !== selectedLookupVersion.current) return;
6037
+ setSelectedRows(function (previous) {
6038
+ return previous.map(function (row) {
6039
+ return source.find(function (item) {
6040
+ return String(item.value) === String(row.value);
6041
+ }) || row;
6042
+ });
6043
+ });
6044
+ });
6045
+ }
5965
6046
  };
5966
6047
  var handleSelectOver = function handleSelectOver(selectedValue) {
5967
6048
  if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
@@ -6025,12 +6106,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6025
6106
  }
6026
6107
  };
6027
6108
  var formaData = function formaData(value, source) {
6028
- if (mappingOutputField) {
6029
- selectedRecordsRef.current = value;
6030
- refreshSelectedRecords(function (current) {
6031
- return current + 1;
6032
- });
6033
- }
6034
6109
  if (labelInValue) {
6035
6110
  var getFromat = function getFromat(format, val) {
6036
6111
  return format.map(function (_ref8) {
@@ -6041,24 +6116,24 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6041
6116
  };
6042
6117
  var formatResult = value.map(function (i) {
6043
6118
  return Object.assign.apply(Object, [{
6044
- key: i[mappingOutputField || mappingValueField] || i.key,
6119
+ key: i[mappingValueField] || i.key,
6045
6120
  label: i[mappingTextField] || i.label,
6046
- value: i[mappingOutputField || mappingValueField] || i.value
6121
+ value: i[mappingValueField] || i.value
6047
6122
  }].concat(_toConsumableArray(getFromat(returnFormat, i))));
6048
6123
  });
6049
- onChange(selectMode ? mappingOutputField ? _.uniqBy(formatResult, 'value') : formatResult : formatResult[0], value, source);
6124
+ onChange(selectMode ? formatResult : formatResult[0], value, source);
6050
6125
  } else {
6051
- var _value$;
6052
6126
  var _formatResult = selectMode ? value.map(function (i) {
6053
- return mappingOutputField ? i[mappingOutputField] : i.value;
6054
- }) : mappingOutputField ? (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$[mappingOutputField] : _.get(value[0], 'value');
6055
- onChange(selectMode && mappingOutputField ? _.uniq(_formatResult) : _formatResult, value, source);
6127
+ return i.value;
6128
+ }) : _.get(value[0], 'value');
6129
+ onChange(_formatResult, value, source);
6056
6130
  }
6057
6131
  };
6058
6132
  var clearModalTable = function clearModalTable() {
6059
6133
  form.resetFields();
6060
6134
  setTableFormParams({});
6061
6135
  setTableData([]);
6136
+ setCurrentPageFilters({});
6062
6137
  setTablePagination(tableInitPagination);
6063
6138
  setSelectedRowKeys([]);
6064
6139
  setSelectedRows([]);
@@ -6066,6 +6141,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6066
6141
  setIndeterminate(false);
6067
6142
  };
6068
6143
  var handleCancel = function handleCancel() {
6144
+ selectedLookupVersion.current += 1;
6069
6145
  clearModalTable();
6070
6146
  setIsModalVisible(false);
6071
6147
  };
@@ -6092,6 +6168,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6092
6168
  var pageSize = normalizeSearchSelectModalPageSize(tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
6093
6169
  setModalSearched(true);
6094
6170
  setTableFormParams(params);
6171
+ setCurrentPageFilters({});
6095
6172
  getData(_objectSpread2(_objectSpread2({}, params), {}, {
6096
6173
  pageSize: pageSize,
6097
6174
  currentPage: 1
@@ -6101,6 +6178,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6101
6178
  var pageSize = normalizeSearchSelectModalPageSize(tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
6102
6179
  form.resetFields();
6103
6180
  setTableFormParams({});
6181
+ setCurrentPageFilters({});
6104
6182
  getData({
6105
6183
  pageSize: pageSize,
6106
6184
  currentPage: 1
@@ -6109,9 +6187,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6109
6187
  var toggleCollapsed = function toggleCollapsed() {
6110
6188
  setCollapsed(!collapsed);
6111
6189
  };
6112
- var handleTableChange = function handleTableChange(pagination) {
6190
+ var handleTableChange = function handleTableChange(pagination, filters, sorter, extra) {
6191
+ if ((extra === null || extra === void 0 ? void 0 : extra.action) === 'filter') {
6192
+ setCurrentPageFilters(filters || {});
6193
+ return;
6194
+ }
6113
6195
  var pageSize = normalizeSearchSelectModalPageSize(pagination.pageSize);
6114
6196
  setSearchSelectModalPageSize(pageSize);
6197
+ setCurrentPageFilters({});
6115
6198
  getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
6116
6199
  pageSize: pageSize,
6117
6200
  currentPage: pagination.current
@@ -6391,6 +6474,33 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6391
6474
  var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
6392
6475
  var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
6393
6476
  var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
6477
+ var currentColumns = _buildCurrentPageFilterColumns(markCurrentPageFilterByDataIndex(tableShowColumns), tableList, currentPageFilters, type !== 'noPage');
6478
+ // 无 width 的列在固定 scroll.x 下会被挤没;先兜底宽度再按列宽求和
6479
+ var DEFAULT_COLUMN_WIDTH = 120;
6480
+ var columnsWithWidth = currentColumns.map(function (col) {
6481
+ if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' && col.width > 0) {
6482
+ return col;
6483
+ }
6484
+ if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'string') {
6485
+ var parsed = parseFloat(col.width);
6486
+ if (Number.isFinite(parsed) && parsed > 0) {
6487
+ return _objectSpread2(_objectSpread2({}, col), {}, {
6488
+ width: parsed
6489
+ });
6490
+ }
6491
+ }
6492
+ return _objectSpread2(_objectSpread2({}, col), {}, {
6493
+ width: DEFAULT_COLUMN_WIDTH
6494
+ });
6495
+ });
6496
+ var sumColumnScrollX = function sumColumnScrollX(columns) {
6497
+ var extraWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
6498
+ var sum = (columns || []).reduce(function (total, col) {
6499
+ return total + (Number(col === null || col === void 0 ? void 0 : col.width) || DEFAULT_COLUMN_WIDTH);
6500
+ }, extraWidth);
6501
+ return sum > extraWidth ? sum : undefined;
6502
+ };
6503
+ var tableScrollX = modalTableProps.overScrollX || sumColumnScrollX(columnsWithWidth, rowSelection ? 60 : 0) || true;
6394
6504
  return /*#__PURE__*/React$1.createElement("div", {
6395
6505
  style: {
6396
6506
  height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
@@ -6399,8 +6509,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6399
6509
  bordered: true,
6400
6510
  size: "middle",
6401
6511
  rowSelection: rowSelection,
6402
- columns: tableShowColumns,
6403
- dataSource: tableList
6512
+ columns: columnsWithWidth,
6513
+ dataSource: tableList,
6514
+ getPopupContainer: function getPopupContainer(triggerNode) {
6515
+ var _modalTableProps$getF;
6516
+ return (modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$getF = modalTableProps.getFilterPopupContainer) === null || _modalTableProps$getF === void 0 ? void 0 : _modalTableProps$getF.call(modalTableProps, triggerNode)) || document.body;
6517
+ }
6404
6518
  }, type == 'noPage' ? {
6405
6519
  pagination: _objectSpread2(_objectSpread2({}, initPagination), {}, {
6406
6520
  showSizeChanger: false
@@ -6418,7 +6532,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6418
6532
  }), {}, {
6419
6533
  rowKey: mappingValueField,
6420
6534
  scroll: {
6421
- x: modalTableProps.overScrollX || 'max-content',
6535
+ x: tableScrollX,
6422
6536
  y: modalTableProps.overScrollY || oSY
6423
6537
  },
6424
6538
  onRow: function onRow(record) {
@@ -6467,7 +6581,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6467
6581
  resetSelectDataSource(true);
6468
6582
  };
6469
6583
  var onDeselect = function onDeselect() {
6470
- var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
6584
+ var oldSelect = formatSelectedValue(value);
6471
6585
  var deRecord = arguments.length <= 1 ? undefined : arguments[1];
6472
6586
  var srs = oldSelect.filter(function (s) {
6473
6587
  return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
@@ -6492,7 +6606,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6492
6606
  }
6493
6607
  };
6494
6608
  var renderTable = function renderTable(dataSource) {
6495
- var currentSRKs = getCurrentSRKs(selectMode, labelInValue, getIdentityValue());
6609
+ var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
6496
6610
  var renderSource = getRenderSource(currentSRKs, items);
6497
6611
  return /*#__PURE__*/React$1.createElement("div", {
6498
6612
  className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
@@ -6506,7 +6620,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6506
6620
  selectedRowKeys: currentSRKs,
6507
6621
  preserveSelectedRowKeys: true,
6508
6622
  onChange: function onChange(sks, srs) {
6509
- var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
6623
+ var oldSelect = formatSelectedValue(value);
6510
6624
  var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
6511
6625
  return item != undefined;
6512
6626
  });
@@ -6525,7 +6639,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6525
6639
  onClick: function onClick(event) {
6526
6640
  event.stopPropagation();
6527
6641
  event.nativeEvent.stopImmediatePropagation();
6528
- var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
6642
+ var oldSelect = formatSelectedValue(value);
6529
6643
  var newSelect = [JSON.parse(JSON.stringify(record))];
6530
6644
  var srs = getRealStr(oldSelect, newSelect, record);
6531
6645
  onSelectClick(srs, dataSource, false);
@@ -6558,16 +6672,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6558
6672
  }
6559
6673
  })));
6560
6674
  };
6561
- /**
6562
- * 折叠标签移除记录时,先按内部标识更新选中项,再回传业务值。
6563
- */
6564
- var onRemoveIdentityTag = function onRemoveIdentityTag(remainingValue) {
6565
- var keys = getCurrentSRKs(selectMode, labelInValue, remainingValue);
6566
- var records = getSelectedRecords().filter(function (item) {
6567
- return keys.includes(item[mappingValueField]);
6568
- });
6569
- onSelectClick(records, items, false);
6570
- };
6571
6675
  var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
6572
6676
  return /*#__PURE__*/React$1.createElement("div", {
6573
6677
  className: 'search_select'
@@ -6582,7 +6686,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6582
6686
  viewShowValueStr: viewShowValueStr,
6583
6687
  labelInValue: labelInValue,
6584
6688
  selectMode: selectMode,
6585
- value: getIdentityValue(),
6689
+ value: value,
6586
6690
  items: items
6587
6691
  }),
6588
6692
  style: {
@@ -6595,14 +6699,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6595
6699
  viewShowValueStr: viewShowValueStr,
6596
6700
  labelInValue: labelInValue,
6597
6701
  selectMode: selectMode,
6598
- value: getIdentityValue(),
6702
+ value: value,
6599
6703
  items: items
6600
6704
  }))) : /*#__PURE__*/React$1.createElement("div", {
6601
6705
  className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
6602
6706
  id: "search_select_div_".concat(uniqueValue)
6603
6707
  }, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
6604
6708
  labelInValue: labelInValue,
6605
- value: getIdentityValue(),
6709
+ value: value,
6606
6710
  onChange: onchange,
6607
6711
  onClear: onClear,
6608
6712
  onDeselect: onDeselect,
@@ -6634,8 +6738,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6634
6738
  selectProps: {
6635
6739
  labelInValue: labelInValue
6636
6740
  },
6637
- onChange: mappingOutputField ? onRemoveIdentityTag : onChange,
6638
- value: getIdentityValue(),
6741
+ onChange: onChange,
6742
+ value: value,
6639
6743
  setIsMaxTagsOpen: setIsMaxTagsOpen
6640
6744
  });
6641
6745
  },
@@ -6752,7 +6856,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6752
6856
  })) : null)))));
6753
6857
  });
6754
6858
 
6755
- var css_248z$8 = ".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";
6859
+ var css_248z$8 = ".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 .search_select_current_page_filter_column {\n min-width: 140px;\n}\n.add_select_wrapper .search_select_current_page_filter_column .ant-table-filter-column {\n min-width: 108px;\n}\n.add_select_wrapper .search_select_current_page_filter_column .ant-table-column-title {\n min-width: 64px;\n white-space: nowrap;\n}\n.add_select_wrapper .search_select_current_page_filter_column .ant-table-filter-trigger {\n flex: 0 0 32px;\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";
6756
6860
  styleInject(css_248z$8);
6757
6861
 
6758
6862
  var shezhi = "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%E8%92%99%E7%89%88%401x%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%221.97175609e-13%200%2024%200%2024%2024%201.97175609e-13%2024%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E3%80%90%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95%E3%80%91-%E5%88%97%E8%A1%A8%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%E7%BC%96%E7%BB%84-13%E5%A4%87%E4%BB%BD%22%3E%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%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%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%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23FAFAFA%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%3Cpath%20d%3D%22M11.0539833%2C6%20L12.9893599%2C6.00306539%20C13.5902684%2C6.0041207%2014.0770953%2C6.51753931%2014.0778957%2C7.15105962%20L14.0786226%2C7.48365607%20C14.4535346%2C7.64767515%2014.8086815%2C7.85797334%2015.1366285%2C8.11014825%20L15.3957691%2C7.95304625%20C15.9165865%2C7.6370624%2016.5817222%2C7.82488039%2016.8830106%2C8.37300674%20L17.8530614%2C10.1386801%20C18.1419103%2C10.664498%2017.9927093%2C11.3364989%2017.5125078%2C11.6725322%20L17.4532653%2C11.7108498%20L17.1930343%2C11.8691013%20C17.2377388%2C12.3043888%2017.232287%2C12.7465735%2017.1737714%2C13.186076%20L17.3576776%2C13.2983464%20C17.857707%2C13.60263%2018.0460753%2C14.2651041%2017.7872767%2C14.809208%20L17.7571103%2C14.8686002%20L16.8484828%2C16.5277508%20C16.5598628%2C17.0549169%2015.9314906%2C17.253508%2015.4153954%2C16.9806644%20L15.3586971%2C16.9484776%20L15.1075524%2C16.7952074%20C14.7917375%2C17.034765%2014.4508932%2C17.235328%2014.0917069%2C17.3929614%20L14.0917069%2C17.8489404%20C14.0924552%2C18.4564109%2013.6447505%2C18.9596333%2013.0696826%2C18.9977009%20L13.0002635%2C19%20L11.0648868%2C18.9969346%20C10.46412%2C18.9958799%209.97735149%2C18.4826942%209.97635104%2C17.8493235%20L9.97526069%2C17.2994665%20C9.67532321%2C17.1509864%209.38966197%2C16.9723666%209.12224117%2C16.766086%20L8.65847768%2C17.0473369%20C8.13756521%2C17.3632563%207.47240027%2C17.1752586%207.17123614%2C16.6269932%20L6.20118538%2C14.8617031%20C5.91210367%2C14.335799%206.06132792%2C13.6635256%206.54173898%2C13.3274678%20L6.6009815%2C13.2891502%20L7.0727409%2C13.002918%20C7.03639581%2C12.6389012%207.03457855%2C12.2706694%207.06946985%2C11.9032039%20L6.54573694%2C11.5840186%20C6.04557344%2C11.2798633%205.85703718%2C10.6173586%206.1157744%2C10.0731571%20L6.14630429%2C10.0137648%20L7.05493181%2C8.35461431%20C7.3435518%2C7.82744812%207.97192398%2C7.62885707%208.48801915%2C7.9017007%20L8.54435406%2C7.93388746%20L9.00084853%2C8.2116898%20C9.29835141%2C7.96712383%209.62078477%2C7.75828095%209.96217645%2C7.58902938%20L9.96217645%2C7.15144279%20C9.96123583%2C6.54382459%2010.4089927%2C6.0403757%2010.9842007%2C6.00229905%20L11.0536198%2C6%20L11.0539833%2C6%20Z%20M11.0525295%2C7.14952693%20L11.0536198%2C8.31821262%20L10.4270303%2C8.62896808%20C10.1588035%2C8.76193003%209.90547811%2C8.92592919%209.67214254%2C9.11790019%20L9.09280163%2C9.5945707%20L8.02679981%2C8.94547115%20L7.99954099%2C8.92937778%20L7.09091346%2C10.5885283%20L8.22488062%2C11.2786276%20L8.15437112%2C12.0177735%20C8.12711229%2C12.304772%208.12820264%2C12.5944528%208.15691528%2C12.8814513%20L8.23178618%2C13.6255784%20L7.14506767%2C14.2854069%20L8.11475496%2C16.0506971%20L9.19384102%2C15.3966163%20L9.76627637%2C15.8384178%20C9.97702523%2C16.0011688%2010.2022%2C16.142066%2010.4386607%2C16.2591446%20L11.0645234%2C16.5691337%20L11.0667041%2C17.8474077%20L13.0017173%2C17.8504731%20L13.0006269%2C16.6262269%20L13.6730113%2C16.3311816%20C13.9550669%2C16.2075098%2014.2227404%2C16.0501462%2014.4707863%2C15.8621747%20L15.0428581%2C15.428803%20L15.904237%2C15.9529873%20L16.8121377%2C14.2934536%20L15.9921922%2C13.7937926%20L16.0939585%2C13.0270581%20C16.1393899%2C12.6841159%2016.1444782%2C12.3369588%2016.1092234%2C11.9924839%20L16.0328987%2C11.2479736%20L16.9095425%2C10.7145931%20L15.9394918%2C8.9493029%20L15.0672094%2C9.47923482%20L14.4944106%2C9.038966%20C14.2359425%2C8.84023491%2013.9560781%2C8.67444458%2013.6606539%2C8.54505261%20L12.9897234%2C8.25154006%20L12.9875427%2C7.15259232%20L11.0525295%2C7.14952693%20L11.0525295%2C7.14952693%20Z%20M13.2226955%2C10.4494355%20C14.2654163%2C11.0852141%2014.6228641%2C12.4911028%2014.0215608%2C13.5914758%20C13.7329275%2C14.1197135%2013.2568818%2C14.5052495%2012.6983658%2C14.6630942%20C12.1398499%2C14.8209389%2011.5447201%2C14.7381326%2011.0441701%2C14.4329295%20C10.0015813%2C13.7970198%209.64430382%2C12.3911621%2010.2456682%2C11.2908893%20C10.5343004%2C10.7627557%2011.0102799%2C10.3772944%2011.5687082%2C10.2194552%20C12.1271364%2C10.0616161%2012.7221782%2C10.1443543%2013.2226955%2C10.4494355%20L13.2226955%2C10.4494355%20Z%20M11.189914%2C11.8648864%20C10.8889471%2C12.4157197%2011.0678166%2C13.119454%2011.5897101%2C13.4378224%20C11.8397194%2C13.5903842%2012.1370318%2C13.6318051%2012.4160482%2C13.5529458%20C12.6950647%2C13.4740865%2012.9328544%2C13.2814281%2013.0769516%2C13.0174787%20C13.3654467%2C12.4893922%2013.2141569%2C11.8157971%2012.7316732%2C11.480178%20L12.6771555%2C11.4445427%20L12.6208206%2C11.4127391%20C12.1055879%2C11.1395918%2011.4777022%2C11.3379953%2011.189914%2C11.8648864%20L11.189914%2C11.8648864%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%234C4E4D%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
@@ -6772,7 +6876,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
6772
6876
  var css_248z$9 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-tbody::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tbody tr:first-child {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
6773
6877
  styleInject(css_248z$9);
6774
6878
 
6775
- var _excluded$5 = ["className", "style"];
6879
+ var _excluded$6 = ["className", "style"];
6776
6880
  var Search = Input.Search;
6777
6881
  var DragHandle = SortableHandle(function () {
6778
6882
  return /*#__PURE__*/React$1.createElement("img", {
@@ -7124,7 +7228,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
7124
7228
  _this.DraggableBodyRow = function (_ref2) {
7125
7229
  var className = _ref2.className,
7126
7230
  style = _ref2.style,
7127
- restProps = _objectWithoutProperties(_ref2, _excluded$5);
7231
+ restProps = _objectWithoutProperties(_ref2, _excluded$6);
7128
7232
  var sortDataSource = _this.state.sortDataSource;
7129
7233
  // function findIndex base on Table rowKey props and should always be a right array index
7130
7234
  var index = sortDataSource.findIndex(function (x) {
@@ -7556,6 +7660,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
7556
7660
  var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
7557
7661
  var _reData$position;
7558
7662
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
7663
+ if (!Array.isArray(changeSearchForm) || !changeSearchForm[changePosition]) return;
7559
7664
  var data = reData && ((_reData$position = reData[position]) === null || _reData$position === void 0 ? void 0 : _reData$position.data);
7560
7665
  var list = Array.isArray(data) ? data : (data === null || data === void 0 ? void 0 : data.items) || (data === null || data === void 0 ? void 0 : data.list) || (data === null || data === void 0 ? void 0 : data.children) || [];
7561
7666
  var formatData = (list === null || list === void 0 ? void 0 : list.length) ? list.map(function (v) {
@@ -7584,8 +7689,9 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
7584
7689
  };
7585
7690
  };
7586
7691
  var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
7587
- var _reData$position2;
7692
+ var _changeSearchForm$cha, _changeSearchForm$cha2, _reData$position2;
7588
7693
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
7694
+ if (!Array.isArray(changeSearchForm) || !((_changeSearchForm$cha = changeSearchForm[changePosition]) === null || _changeSearchForm$cha === void 0 ? void 0 : (_changeSearchForm$cha2 = _changeSearchForm$cha.field) === null || _changeSearchForm$cha2 === void 0 ? void 0 : _changeSearchForm$cha2.props)) return;
7589
7695
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
7590
7696
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
7591
7697
  return _mapSearchTree(ites, resKeyValue);
@@ -7605,7 +7711,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
7605
7711
  });
7606
7712
  };
7607
7713
 
7608
- var _excluded$6 = ["onResize", "width"],
7714
+ var _excluded$7 = ["onResize", "width"],
7609
7715
  _excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
7610
7716
  var checkSpuMatchCode = function checkSpuMatchCode(data) {
7611
7717
  return new Promise(function (resolve, reject) {
@@ -7625,7 +7731,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
7625
7731
  var ResizeableTitle = function ResizeableTitle(props) {
7626
7732
  var onResize = props.onResize,
7627
7733
  width = props.width,
7628
- restProps = _objectWithoutProperties(props, _excluded$6);
7734
+ restProps = _objectWithoutProperties(props, _excluded$7);
7629
7735
  if (!width) {
7630
7736
  return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
7631
7737
  }
@@ -7689,7 +7795,7 @@ var AddSelect = function AddSelect(props) {
7689
7795
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
7690
7796
  var initVal = value || (selectMode ? [] : null);
7691
7797
  var pageSize = 100; // 下拉框默认分页 条数
7692
- var tableInitPageSize = (modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$topT = modalTableProps.topTablePagination) === null || _modalTableProps$topT === void 0 ? void 0 : _modalTableProps$topT.pageSize) || 10; // 弹框默认分页 条数
7798
+ var tableInitPageSize = (modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$topT = modalTableProps.topTablePagination) === null || _modalTableProps$topT === void 0 ? void 0 : _modalTableProps$topT.pageSize) || SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE; // 弹框默认分页 条数
7693
7799
  var currentPage = 1;
7694
7800
  var _useState = useState(false),
7695
7801
  _useState2 = _slicedToArray(_useState, 2),
@@ -7731,38 +7837,42 @@ var AddSelect = function AddSelect(props) {
7731
7837
  _useState14 = _slicedToArray(_useState13, 2),
7732
7838
  tablePagination = _useState14[0],
7733
7839
  setTablePagination = _useState14[1];
7734
- var _useState15 = useState([]),
7840
+ var _useState15 = useState({}),
7735
7841
  _useState16 = _slicedToArray(_useState15, 2),
7736
- selectedRowKeys = _useState16[0],
7737
- setSelectedRowKeys = _useState16[1];
7738
- var _useState17 = useState({}),
7842
+ currentPageFilters = _useState16[0],
7843
+ setCurrentPageFilters = _useState16[1];
7844
+ var _useState17 = useState([]),
7739
7845
  _useState18 = _slicedToArray(_useState17, 2),
7740
- tableFormParams = _useState18[0],
7741
- setTableFormParams = _useState18[1];
7742
- var _useState19 = useState(false),
7846
+ selectedRowKeys = _useState18[0],
7847
+ setSelectedRowKeys = _useState18[1];
7848
+ var _useState19 = useState({}),
7743
7849
  _useState20 = _slicedToArray(_useState19, 2),
7744
- confirmLoading = _useState20[0],
7745
- setConfirmLoading = _useState20[1];
7850
+ tableFormParams = _useState20[0],
7851
+ setTableFormParams = _useState20[1];
7746
7852
  var _useState21 = useState(false),
7747
7853
  _useState22 = _slicedToArray(_useState21, 2),
7748
- confirmContinueLoading = _useState22[0],
7749
- setConfirmContinueLoading = _useState22[1];
7750
- var _useState23 = useState([]),
7854
+ confirmLoading = _useState22[0],
7855
+ setConfirmLoading = _useState22[1];
7856
+ var _useState23 = useState(false),
7751
7857
  _useState24 = _slicedToArray(_useState23, 2),
7752
- selectColumns = _useState24[0],
7753
- setSelectColumns = _useState24[1];
7858
+ confirmContinueLoading = _useState24[0],
7859
+ setConfirmContinueLoading = _useState24[1];
7754
7860
  var _useState25 = useState([]),
7755
7861
  _useState26 = _slicedToArray(_useState25, 2),
7756
- showColumns = _useState26[0],
7757
- setShowColumns = _useState26[1];
7862
+ selectColumns = _useState26[0],
7863
+ setSelectColumns = _useState26[1];
7758
7864
  var _useState27 = useState([]),
7759
7865
  _useState28 = _slicedToArray(_useState27, 2),
7760
- tableColumns = _useState28[0],
7761
- setTableColumns = _useState28[1];
7866
+ showColumns = _useState28[0],
7867
+ setShowColumns = _useState28[1];
7762
7868
  var _useState29 = useState([]),
7763
7869
  _useState30 = _slicedToArray(_useState29, 2),
7764
- showToChooseColumns = _useState30[0],
7765
- setShowToChooseColumns = _useState30[1];
7870
+ tableColumns = _useState30[0],
7871
+ setTableColumns = _useState30[1];
7872
+ var _useState31 = useState([]),
7873
+ _useState32 = _slicedToArray(_useState31, 2),
7874
+ showToChooseColumns = _useState32[0],
7875
+ setShowToChooseColumns = _useState32[1];
7766
7876
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7767
7877
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7768
7878
  // FIXME: 特殊业务逻辑
@@ -8417,11 +8527,14 @@ var AddSelect = function AddSelect(props) {
8417
8527
  // 数据源 不可以有重复key
8418
8528
  source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
8419
8529
  setTableData(source);
8420
- setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
8421
- total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
8422
- pageSize: Number((res === null || res === void 0 ? void 0 : res.size) || (res === null || res === void 0 ? void 0 : res.pageSize) || (params === null || params === void 0 ? void 0 : params.pageSize) || pageSize),
8423
- current: Number((res === null || res === void 0 ? void 0 : res.page) || (res === null || res === void 0 ? void 0 : res.currentPage) || (params === null || params === void 0 ? void 0 : params.currentPage) || currentPage)
8424
- }));
8530
+ setCurrentPageFilters({});
8531
+ setTablePagination(function (previousPagination) {
8532
+ return _objectSpread2(_objectSpread2({}, previousPagination), {}, {
8533
+ total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
8534
+ pageSize: Number((res === null || res === void 0 ? void 0 : res.size) || (res === null || res === void 0 ? void 0 : res.pageSize) || (params === null || params === void 0 ? void 0 : params.pageSize) || pageSize),
8535
+ current: Number((res === null || res === void 0 ? void 0 : res.page) || (res === null || res === void 0 ? void 0 : res.currentPage) || (params === null || params === void 0 ? void 0 : params.currentPage) || currentPage)
8536
+ });
8537
+ });
8425
8538
  }).catch(function (err) {
8426
8539
  setFetching(false);
8427
8540
  });
@@ -8446,6 +8559,7 @@ var AddSelect = function AddSelect(props) {
8446
8559
  }, [sourceName]);
8447
8560
  var showModal = function showModal() {
8448
8561
  // getData({ pageSize: tableInitPageSize, currentPage: 1 }, 2)
8562
+ setCurrentPageFilters({});
8449
8563
  setIsModalVisible(true);
8450
8564
  // 回显
8451
8565
  if (value) {
@@ -8534,6 +8648,7 @@ var AddSelect = function AddSelect(props) {
8534
8648
  var handleCancel = function handleCancel() {
8535
8649
  form.resetFields();
8536
8650
  setTableFormParams({});
8651
+ setCurrentPageFilters({});
8537
8652
  setIsModalVisible(false);
8538
8653
  setTableData([]);
8539
8654
  onCancelCallback && onCancelCallback();
@@ -8544,27 +8659,38 @@ var AddSelect = function AddSelect(props) {
8544
8659
  var onSearchTable = function onSearchTable() {
8545
8660
  form.validateFields().then(function () {
8546
8661
  var params = form.getFieldsValue();
8662
+ var currentTablePageSize = businessType === 'sku' ? Number((tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize) || tableInitPageSize) : tableInitPageSize;
8547
8663
  setTableFormParams(params);
8664
+ setCurrentPageFilters({});
8548
8665
  getData(_objectSpread2(_objectSpread2({}, params), {}, {
8549
- pageSize: tableInitPageSize
8666
+ pageSize: currentTablePageSize,
8667
+ currentPage: 1
8550
8668
  }), 2);
8551
8669
  });
8552
8670
  };
8553
8671
  var onResetTable = function onResetTable() {
8554
8672
  form.resetFields();
8555
8673
  setTableFormParams({});
8674
+ setCurrentPageFilters({});
8556
8675
  form.validateFields().then(function () {
8676
+ var currentTablePageSize = businessType === 'sku' ? Number((tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize) || tableInitPageSize) : tableInitPageSize;
8557
8677
  getData({
8558
- pageSize: tableInitPageSize,
8678
+ pageSize: currentTablePageSize,
8559
8679
  currentPage: 1
8560
8680
  }, 2);
8561
8681
  }).catch(function () {
8562
8682
  setTableData([]);
8563
8683
  });
8564
8684
  };
8565
- var handleTableChange = function handleTableChange(pagination) {
8566
- // 设置分页tablePagination
8567
- setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
8685
+ var handleTableChange = function handleTableChange(pagination, filters, sorter, extra) {
8686
+ if ((extra === null || extra === void 0 ? void 0 : extra.action) === 'filter') {
8687
+ setCurrentPageFilters(filters || {});
8688
+ return;
8689
+ }
8690
+ setCurrentPageFilters({});
8691
+ setTablePagination(function (previousPagination) {
8692
+ return _objectSpread2(_objectSpread2({}, previousPagination), pagination);
8693
+ });
8568
8694
  getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
8569
8695
  pageSize: pagination.pageSize,
8570
8696
  currentPage: pagination.current
@@ -8806,6 +8932,7 @@ var AddSelect = function AddSelect(props) {
8806
8932
  _handleColumns(showToChooseCol, [], function (res) {
8807
8933
  return setShowToChooseColumnsCallback(res);
8808
8934
  });
8935
+ var currentPageTableColumns = _buildCurrentPageFilterColumns(businessType === 'sku' ? markCurrentPageFilterByDataIndex(showToChooseCol) : showToChooseCol, tableData, currentPageFilters);
8809
8936
  var showSelectedCol = showColumns.map(function (item) {
8810
8937
  handleAntdColumnsSpecialParams(item);
8811
8938
  return _objectSpread2({}, item);
@@ -8813,6 +8940,20 @@ var AddSelect = function AddSelect(props) {
8813
8940
  _handleColumns(showSelectedCol, [], function (res) {
8814
8941
  return setShowColumnsCallback(res);
8815
8942
  });
8943
+ // sku 上表勿用 scroll.x=max-content:会按当前页单元格内容重算列宽,分页切换时 SKU名称等列会忽宽忽窄
8944
+ var sumColumnScrollX = function sumColumnScrollX(columns) {
8945
+ var extraWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
8946
+ var sum = (columns || []).reduce(function (total, col) {
8947
+ if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'number') return total + col.width;
8948
+ if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'string') {
8949
+ var parsed = parseFloat(col.width);
8950
+ return Number.isFinite(parsed) ? total + parsed : total;
8951
+ }
8952
+ return total;
8953
+ }, extraWidth);
8954
+ return sum > extraWidth ? sum : undefined;
8955
+ };
8956
+ var skuTopTableScrollX = sumColumnScrollX(currentPageTableColumns, selectMode ? 60 : 0);
8816
8957
  var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
8817
8958
  return /*#__PURE__*/React$1.createElement("div", {
8818
8959
  className: 'add_select'
@@ -8916,14 +9057,21 @@ var AddSelect = function AddSelect(props) {
8916
9057
  })))), /*#__PURE__*/React$1.createElement(Table, {
8917
9058
  size: 'small',
8918
9059
  rowSelection: rowSelection,
8919
- columns: showToChooseCol,
9060
+ columns: currentPageTableColumns,
8920
9061
  dataSource: tableData,
9062
+ getPopupContainer: function getPopupContainer(triggerNode) {
9063
+ var _modalTableProps$getF;
9064
+ return (modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$getF = modalTableProps.getFilterPopupContainer) === null || _modalTableProps$getF === void 0 ? void 0 : _modalTableProps$getF.call(modalTableProps, triggerNode)) || document.body;
9065
+ },
8921
9066
  pagination: tablePagination,
8922
9067
  loading: fetching,
8923
9068
  onChange: handleTableChange,
8924
9069
  rowKey: mappingValueField,
8925
9070
  rowClassName: 'row-class',
8926
- scroll: {
9071
+ scroll: businessType === 'sku' ? {
9072
+ x: skuTopTableScrollX || true,
9073
+ y: 500
9074
+ } : {
8927
9075
  y: 500
8928
9076
  },
8929
9077
  components: {
@@ -9005,7 +9153,7 @@ var AddSelect = function AddSelect(props) {
9005
9153
  var css_248z$a = ".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 div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_gray {\n background: #C0C0C0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
9006
9154
  styleInject(css_248z$a);
9007
9155
 
9008
- var _excluded$7 = ["onResize", "width"];
9156
+ var _excluded$8 = ["onResize", "width"];
9009
9157
  var _this = undefined;
9010
9158
  var InputElement = function InputElement(_ref) {
9011
9159
  var _record$packingUnitLi, _record$packingUnitLi2;
@@ -9503,7 +9651,7 @@ var InputElement = function InputElement(_ref) {
9503
9651
  var ResizeableTitle$1 = function ResizeableTitle(props) {
9504
9652
  var onResize = props.onResize,
9505
9653
  width = props.width,
9506
- restProps = _objectWithoutProperties(props, _excluded$7);
9654
+ restProps = _objectWithoutProperties(props, _excluded$8);
9507
9655
  if (!width) {
9508
9656
  return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
9509
9657
  }
@@ -10578,6 +10726,14 @@ function commonFun(type, prefixUrl, parentProps) {
10578
10726
  }
10579
10727
  }
10580
10728
  }
10729
+ }, {
10730
+ name: 'qp-styleCode-in',
10731
+ label: '龙牙款号',
10732
+ type: 'multipleQueryInput'
10733
+ }, {
10734
+ name: 'qp-pinCode-in',
10735
+ label: '龙牙品号',
10736
+ type: 'multipleQueryInput'
10581
10737
  },
10582
10738
  // { name: 'qp-eancode-in', label: '商品条码', field: {
10583
10739
  // type: 'multipleQueryInput',
@@ -10680,9 +10836,9 @@ function commonFun(type, prefixUrl, parentProps) {
10680
10836
  currentPage: 1,
10681
10837
  'qp-labelType-eq': 1
10682
10838
  }, getQueryHeadersItem(_queryHeaderParams2, 'qp-itemLabelId-in'))]).then(function (x) {
10683
- formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10684
- formatTreeDataSource(x, 1, 4, tableSearchForm);
10685
- formatSource(x, 2, 6, tableSearchForm, ['id', 'name']);
10839
+ formatSource(x, 0, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm, ['id', 'name']);
10840
+ formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
10841
+ formatSource(x, 2, getFieldIndex(tableSearchForm, 'itemLabelId'), tableSearchForm, ['id', 'name']);
10686
10842
  });
10687
10843
  modalTableProps = _objectSpread2({
10688
10844
  modalTableTitle: '选择SKU',
@@ -10691,18 +10847,12 @@ function commonFun(type, prefixUrl, parentProps) {
10691
10847
  tableColumns: [{
10692
10848
  title: '序号',
10693
10849
  dataIndex: 'keyIndex',
10850
+ width: 60,
10694
10851
  defaultSort: 0
10695
- }, {
10696
- title: 'SKU编码',
10697
- dataIndex: 'skuCode',
10698
- defaultSort: 2
10699
- }, {
10700
- title: 'SKU名称',
10701
- dataIndex: 'skuName',
10702
- defaultSort: 3
10703
10852
  }, {
10704
10853
  title: '图片',
10705
10854
  dataIndex: 'itemUrl',
10855
+ width: 60,
10706
10856
  defaultSort: 1,
10707
10857
  render: function render(text, record) {
10708
10858
  return tableColumnsImage(getSkuImg(record), {
@@ -10710,34 +10860,79 @@ function commonFun(type, prefixUrl, parentProps) {
10710
10860
  height: 16
10711
10861
  });
10712
10862
  }
10863
+ }, {
10864
+ title: 'SKU名称',
10865
+ dataIndex: 'skuName',
10866
+ width: 200,
10867
+ defaultSort: 2,
10868
+ ellipsis: {
10869
+ showTitle: false
10870
+ },
10871
+ render: function render(text) {
10872
+ return handleTextOverflow(text, 200);
10873
+ }
10874
+ }, {
10875
+ title: '颜色名称',
10876
+ dataIndex: 'colorName',
10877
+ width: 140,
10878
+ defaultSort: 3
10879
+ }, {
10880
+ title: '尺码名称',
10881
+ dataIndex: 'sizeName',
10882
+ width: 100,
10883
+ defaultSort: 4
10884
+ }, {
10885
+ title: 'SKU编码',
10886
+ dataIndex: 'skuCode',
10887
+ width: 160,
10888
+ defaultSort: 5
10889
+ }, {
10890
+ title: '龙牙款号',
10891
+ dataIndex: 'styleCode',
10892
+ width: 160,
10893
+ defaultSort: 6
10894
+ }, {
10895
+ title: '龙牙品号',
10896
+ dataIndex: 'pinCode',
10897
+ width: 160,
10898
+ defaultSort: 7
10713
10899
  }, {
10714
10900
  title: '商品条码',
10715
- dataIndex: 'eancode'
10901
+ dataIndex: 'eancode',
10902
+ width: 140
10716
10903
  }, {
10717
10904
  title: 'SKC编码',
10718
- dataIndex: 'skcCode'
10905
+ dataIndex: 'skcCode',
10906
+ width: 140
10719
10907
  }, {
10720
10908
  title: '所属SPU名称',
10721
- dataIndex: 'itemName'
10909
+ dataIndex: 'itemName',
10910
+ width: 160
10722
10911
  }, {
10723
10912
  title: '所属SPU编码',
10724
- dataIndex: 'itemCode'
10913
+ dataIndex: 'itemCode',
10914
+ width: 140
10725
10915
  }, {
10726
10916
  title: '外部编码',
10727
- dataIndex: 'externalCode'
10917
+ dataIndex: 'externalCode',
10918
+ width: 140
10728
10919
  }, {
10729
10920
  title: '规格',
10730
- dataIndex: 'propertyNameAndValue'
10921
+ dataIndex: 'propertyNameAndValue',
10922
+ width: 140
10731
10923
  }, {
10732
10924
  title: '类目',
10733
- dataIndex: 'categoryName'
10925
+ dataIndex: 'categoryName',
10926
+ width: 120
10734
10927
  }, {
10735
10928
  title: '品类',
10736
- dataIndex: 'className'
10929
+ dataIndex: 'className',
10930
+ width: 120
10737
10931
  }, {
10738
10932
  title: '品牌',
10739
10933
  dataIndex: 'brandName',
10740
- defaultSort: 4
10934
+ width: 120,
10935
+ defaultSort: 8
10741
10936
  }]
10742
10937
  }, modalTableBusProps);
10743
10938
  }
@@ -11501,8 +11696,8 @@ function commonFun(type, prefixUrl, parentProps) {
11501
11696
  var areaDisabledJude = function areaDisabledJude(data) {
11502
11697
  return data['parent'] === '0';
11503
11698
  }; // 所属营销区域 树节点不能点判断
11504
- formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11505
- formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11699
+ formatTreeDataSource(x, 0, getFieldIndex(tableSearchForm, 'qp-channelCode-in'), tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11700
+ formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'qp-refCode-in'), tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11506
11701
  });
11507
11702
  tableSearchForm = [{
11508
11703
  name: 'realWarehouseName*multiInput',
@@ -11517,16 +11712,6 @@ function commonFun(type, prefixUrl, parentProps) {
11517
11712
  type: 'select',
11518
11713
  label: '逻辑仓类型',
11519
11714
  initialSource: getDictionarySource$1('SC00004')
11520
- }, {
11521
- name: 'belongArea',
11522
- field: {
11523
- type: 'select',
11524
- props: {
11525
- mode: 'multiple'
11526
- }
11527
- },
11528
- label: '管理大区',
11529
- initialSource: getDictionarySource$1('BUSINESS_belongArea')
11530
11715
  }, {
11531
11716
  name: 'qp-channelCode-in',
11532
11717
  type: 'treeSelect',
@@ -14284,7 +14469,7 @@ function handleFormSearchSourceLoad(c, parentProps) {
14284
14469
  return result;
14285
14470
  }
14286
14471
  var AddSkuSelect = function AddSkuSelect(parProps) {
14287
- var _parProps$requestConf, _parProps$requestConf2;
14472
+ var _parProps$requestConf, _parProps$requestConf2, _topTablePagination$p, _topTablePagination$s;
14288
14473
  var selectProps = {
14289
14474
  mode: 'multiple'
14290
14475
  };
@@ -14314,7 +14499,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14314
14499
  }
14315
14500
  }]), [{
14316
14501
  title: 'SKU名称',
14317
- width: 200,
14502
+ width: 300,
14318
14503
  ellipsis: {
14319
14504
  showTitle: false
14320
14505
  },
@@ -14322,9 +14507,32 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14322
14507
  return /*#__PURE__*/React$1.createElement(Tooltip, {
14323
14508
  placement: "topLeft",
14324
14509
  title: text
14325
- }, text);
14510
+ }, /*#__PURE__*/React$1.createElement("span", {
14511
+ style: {
14512
+ display: 'block',
14513
+ overflow: 'hidden',
14514
+ textOverflow: 'ellipsis',
14515
+ whiteSpace: 'nowrap'
14516
+ }
14517
+ }, text));
14326
14518
  },
14327
14519
  dataIndex: 'name'
14520
+ }, {
14521
+ title: '龙牙款号',
14522
+ width: 150,
14523
+ dataIndex: 'longyaStyleCode'
14524
+ }, {
14525
+ title: '龙牙品号',
14526
+ width: 150,
14527
+ dataIndex: 'longyaPinCode'
14528
+ }, {
14529
+ title: '颜色名称',
14530
+ width: 140,
14531
+ dataIndex: 'colorName'
14532
+ }, {
14533
+ title: '尺码名称',
14534
+ width: 140,
14535
+ dataIndex: 'sizeName'
14328
14536
  }, {
14329
14537
  title: '图片',
14330
14538
  dataIndex: 'itemUrl',
@@ -14397,7 +14605,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14397
14605
  dataIndex: 'skuCode'
14398
14606
  }, {
14399
14607
  title: 'SKU名称',
14400
- width: 200,
14608
+ width: 300,
14401
14609
  ellipsis: {
14402
14610
  showTitle: false
14403
14611
  },
@@ -14405,9 +14613,32 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14405
14613
  return /*#__PURE__*/React$1.createElement(Tooltip, {
14406
14614
  placement: "topLeft",
14407
14615
  title: text
14408
- }, text);
14616
+ }, /*#__PURE__*/React$1.createElement("span", {
14617
+ style: {
14618
+ display: 'block',
14619
+ overflow: 'hidden',
14620
+ textOverflow: 'ellipsis',
14621
+ whiteSpace: 'nowrap'
14622
+ }
14623
+ }, text));
14409
14624
  },
14410
14625
  dataIndex: 'name'
14626
+ }, {
14627
+ title: '龙牙款号',
14628
+ width: 150,
14629
+ dataIndex: 'longyaStyleCode'
14630
+ }, {
14631
+ title: '龙牙品号',
14632
+ width: 150,
14633
+ dataIndex: 'longyaPinCode'
14634
+ }, {
14635
+ title: '颜色名称',
14636
+ width: 140,
14637
+ dataIndex: 'colorName'
14638
+ }, {
14639
+ title: '尺码名称',
14640
+ width: 140,
14641
+ dataIndex: 'sizeName'
14411
14642
  }, {
14412
14643
  title: '图片',
14413
14644
  dataIndex: 'itemUrl',
@@ -14545,6 +14776,14 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14545
14776
  }, {
14546
14777
  name: 'qp-skuName-like',
14547
14778
  label: 'SKU名称'
14779
+ }, {
14780
+ name: 'qp-longyaStyleCode-in',
14781
+ label: '龙牙款号',
14782
+ type: 'multipleQueryInput'
14783
+ }, {
14784
+ name: 'qp-longyaPinCode-in',
14785
+ label: '龙牙品号',
14786
+ type: 'multipleQueryInput'
14548
14787
  }, {
14549
14788
  name: 'qp-externalCode-like',
14550
14789
  label: '外部SPU编码'
@@ -14610,7 +14849,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14610
14849
  'ctl-withAuth': true
14611
14850
  },
14612
14851
  resType: 'list',
14613
- resPosition: isNoUseItemBarcode ? 4 : 5,
14852
+ resPosition: mTpTableSearchForm.findIndex(function (item) {
14853
+ return item.name === 'qp-brandId-in';
14854
+ }),
14614
14855
  resKeyValue: ['id', 'name']
14615
14856
  }, {
14616
14857
  url: "/items/category/queryCategoryTree",
@@ -14619,9 +14860,17 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14619
14860
  currentPage: 1
14620
14861
  },
14621
14862
  resType: 'treeList',
14622
- resPosition: isNoUseItemBarcode ? 5 : 6
14863
+ resPosition: mTpTableSearchForm.findIndex(function (item) {
14864
+ return item.name === 'qp-categoryId-in';
14865
+ })
14623
14866
  }];
14624
14867
  var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
14868
+ var topTablePagination = (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {};
14869
+ var pageSizeOptions = Array.from(new Set([].concat(_toConsumableArray(SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS), _toConsumableArray(topTablePagination.pageSizeOptions || [])).map(function (option) {
14870
+ return String(option);
14871
+ }))).sort(function (left, right) {
14872
+ return Number(left) - Number(right);
14873
+ });
14625
14874
  var props = {
14626
14875
  buttonText: parProps.buttonText || '新增',
14627
14876
  buttonProps: parProps.buttonProps || {},
@@ -14657,7 +14906,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14657
14906
  tableColumns: mTpTableColumn,
14658
14907
  selectColumn: mTpSelectColumn,
14659
14908
  promiseLoadList: mTpPromiseLoadList,
14660
- topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
14909
+ topTablePagination: _objectSpread2(_objectSpread2({}, topTablePagination), {}, {
14910
+ pageSize: (_topTablePagination$p = topTablePagination.pageSize) !== null && _topTablePagination$p !== void 0 ? _topTablePagination$p : SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE,
14911
+ showSizeChanger: (_topTablePagination$s = topTablePagination.showSizeChanger) !== null && _topTablePagination$s !== void 0 ? _topTablePagination$s : true,
14912
+ pageSizeOptions: pageSizeOptions
14913
+ })
14661
14914
  };
14662
14915
  return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
14663
14916
  modalTableProps: modalTableProps
@@ -15434,7 +15687,7 @@ function getStorageVale(storageKeyString) {
15434
15687
  return "";
15435
15688
  }
15436
15689
 
15437
- var _excluded$8 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
15690
+ var _excluded$9 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
15438
15691
  var TreeSearchSelect = function TreeSearchSelect(props) {
15439
15692
  var _useState = useState([]),
15440
15693
  _useState2 = _slicedToArray(_useState, 2),
@@ -15476,7 +15729,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15476
15729
  } : _props$style,
15477
15730
  getTreeData = props.getTreeData,
15478
15731
  disabled = props.disabled,
15479
- restProps = _objectWithoutProperties(props, _excluded$8);
15732
+ restProps = _objectWithoutProperties(props, _excluded$9);
15480
15733
  var url = remoteSource.url,
15481
15734
  headers = remoteSource.headers,
15482
15735
  _remoteSource$paramsK = remoteSource.paramsKey,
@@ -15904,7 +16157,7 @@ var index$2 = (function (props) {
15904
16157
  var css_248z$c = ".guide-wrapper .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.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .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.guide-wrapper .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.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .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.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .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 background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .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.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
15905
16158
  styleInject(css_248z$c);
15906
16159
 
15907
- var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
16160
+ var _excluded$a = ["children", "titleExtra", "title", "extra", "bordered"],
15908
16161
  _excluded2$3 = ["children"];
15909
16162
  var Field = function Field(_ref) {
15910
16163
  var children = _ref.children,
@@ -15912,7 +16165,7 @@ var Field = function Field(_ref) {
15912
16165
  title = _ref.title,
15913
16166
  extra = _ref.extra,
15914
16167
  bordered = _ref.bordered,
15915
- props = _objectWithoutProperties(_ref, _excluded$9);
16168
+ props = _objectWithoutProperties(_ref, _excluded$a);
15916
16169
  var _React$useState = React$1.useState(true),
15917
16170
  _React$useState2 = _slicedToArray(_React$useState, 2),
15918
16171
  fieldGroupVisible = _React$useState2[0],
@@ -16039,7 +16292,7 @@ var ExportIcon = function ExportIcon(_ref) {
16039
16292
  var css_248z$d = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-tbody::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tbody tr:first-child {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
16040
16293
  styleInject(css_248z$d);
16041
16294
 
16042
- var _excluded$a = ["className", "style"];
16295
+ var _excluded$b = ["className", "style"];
16043
16296
  var Search$1 = Input.Search;
16044
16297
  var DragHandle$1 = SortableHandle(function () {
16045
16298
  return /*#__PURE__*/React$1.createElement("img", {
@@ -16472,7 +16725,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
16472
16725
  _this.DraggableBodyRow = function (_ref2) {
16473
16726
  var className = _ref2.className,
16474
16727
  style = _ref2.style,
16475
- restProps = _objectWithoutProperties(_ref2, _excluded$a);
16728
+ restProps = _objectWithoutProperties(_ref2, _excluded$b);
16476
16729
  var sortDataSource = _this.state.sortDataSource;
16477
16730
  // function findIndex base on Table rowKey props and should always be a right array index
16478
16731
  var index = sortDataSource.findIndex(function (x) {
@@ -16834,7 +17087,7 @@ var TableSumComponent = (function (_ref) {
16834
17087
  }));
16835
17088
  });
16836
17089
 
16837
- var _excluded$b = ["onResize", "width"],
17090
+ var _excluded$c = ["onResize", "width"],
16838
17091
  _excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll", "rowSelection"];
16839
17092
  var Text = Typography.Text;
16840
17093
  var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
@@ -17023,7 +17276,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
17023
17276
  _this.ResizeableTitle = function (props) {
17024
17277
  var onResize = props.onResize,
17025
17278
  width = props.width,
17026
- restProps = _objectWithoutProperties(props, _excluded$b);
17279
+ restProps = _objectWithoutProperties(props, _excluded$c);
17027
17280
  var _useState = useState(width),
17028
17281
  _useState2 = _slicedToArray(_useState, 2),
17029
17282
  innerWidth = _useState2[0],
@@ -17335,7 +17588,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
17335
17588
  }]);
17336
17589
  }(React$1.Component);
17337
17590
 
17338
- var _excluded$c = ["onResize", "width"],
17591
+ var _excluded$d = ["onResize", "width"],
17339
17592
  _excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll", "rowSelection"];
17340
17593
  var Text$1 = Typography.Text;
17341
17594
  var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
@@ -17515,7 +17768,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
17515
17768
  _this.ResizeableTitle = function (props) {
17516
17769
  var onResize = props.onResize,
17517
17770
  width = props.width,
17518
- restProps = _objectWithoutProperties(props, _excluded$c);
17771
+ restProps = _objectWithoutProperties(props, _excluded$d);
17519
17772
  if (!width) {
17520
17773
  return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
17521
17774
  }
@@ -17886,12 +18139,12 @@ var cancelIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org
17886
18139
  var css_248z$g = "";
17887
18140
  styleInject(css_248z$g);
17888
18141
 
17889
- var _excluded$d = ["message", "type"];
18142
+ var _excluded$e = ["message", "type"];
17890
18143
  var CommonAlert = (function (props) {
17891
18144
  var message = props.message,
17892
18145
  _props$type = props.type,
17893
18146
  type = _props$type === void 0 ? 'info' : _props$type,
17894
- reset = _objectWithoutProperties(props, _excluded$d);
18147
+ reset = _objectWithoutProperties(props, _excluded$e);
17895
18148
  return /*#__PURE__*/React$1.createElement("div", {
17896
18149
  style: {
17897
18150
  width: '100%',
@@ -17912,7 +18165,7 @@ var CommonAlert = (function (props) {
17912
18165
  }, reset)));
17913
18166
  });
17914
18167
 
17915
- var _excluded$e = ["children"];
18168
+ var _excluded$f = ["children"];
17916
18169
  var iconStyle = {
17917
18170
  width: 16,
17918
18171
  height: 16
@@ -17956,7 +18209,7 @@ var index$3 = (function (props) {
17956
18209
  _useState2 = _slicedToArray(_useState, 1),
17957
18210
  id = _useState2[0];
17958
18211
  var children = props.children,
17959
- restProps = _objectWithoutProperties(props, _excluded$e);
18212
+ restProps = _objectWithoutProperties(props, _excluded$f);
17960
18213
  return /*#__PURE__*/React$1.createElement("div", {
17961
18214
  id: id,
17962
18215
  className: 'detail_page_wrapper'
@@ -18285,7 +18538,7 @@ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons,
18285
18538
  var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
18286
18539
  styleInject(css_248z$h);
18287
18540
 
18288
- var _excluded$f = ["children"];
18541
+ var _excluded$g = ["children"];
18289
18542
  var index$4 = (function (props) {
18290
18543
  var _useLocation = useLocation(),
18291
18544
  pathname = _useLocation.pathname;
@@ -18293,7 +18546,7 @@ var index$4 = (function (props) {
18293
18546
  _useState2 = _slicedToArray(_useState, 1),
18294
18547
  id = _useState2[0];
18295
18548
  var children = props.children,
18296
- restProps = _objectWithoutProperties(props, _excluded$f);
18549
+ restProps = _objectWithoutProperties(props, _excluded$g);
18297
18550
  return /*#__PURE__*/React$1.createElement("div", {
18298
18551
  id: id,
18299
18552
  className: 'home_page_wrapper'
@@ -18370,7 +18623,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
18370
18623
  var css_248z$i = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-body::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tbody tr:first-child {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
18371
18624
  styleInject(css_248z$i);
18372
18625
 
18373
- var _excluded$g = ["className", "style"];
18626
+ var _excluded$h = ["className", "style"];
18374
18627
  var DragHandle$2 = SortableHandle(function () {
18375
18628
  return /*#__PURE__*/React$1.createElement("img", {
18376
18629
  width: 25,
@@ -18840,7 +19093,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
18840
19093
  _this.DraggableBodyRow = function (_ref2) {
18841
19094
  var className = _ref2.className,
18842
19095
  style = _ref2.style,
18843
- restProps = _objectWithoutProperties(_ref2, _excluded$g);
19096
+ restProps = _objectWithoutProperties(_ref2, _excluded$h);
18844
19097
  var sortDataSource = _this.state.sortDataSource;
18845
19098
  // function findIndex base on Table rowKey props and should always be a right array index
18846
19099
  var index = sortDataSource.findIndex(function (x) {
@@ -19224,7 +19477,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
19224
19477
  }]);
19225
19478
  }(React$1.Component);
19226
19479
 
19227
- var _excluded$h = ["className", "style"];
19480
+ var _excluded$i = ["className", "style"];
19228
19481
  var DragHandle$3 = SortableHandle(function () {
19229
19482
  return /*#__PURE__*/React$1.createElement("img", {
19230
19483
  width: 25,
@@ -19477,7 +19730,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
19477
19730
  _this.DraggableBodyRow = function (_ref2) {
19478
19731
  var className = _ref2.className,
19479
19732
  style = _ref2.style,
19480
- restProps = _objectWithoutProperties(_ref2, _excluded$h);
19733
+ restProps = _objectWithoutProperties(_ref2, _excluded$i);
19481
19734
  var sortDataSource = _this.state.sortDataSource;
19482
19735
  var index = sortDataSource.findIndex(function (x) {
19483
19736
  return x.name === restProps['data-row-key'];
@@ -19783,13 +20036,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
19783
20036
  var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
19784
20037
  styleInject(css_248z$j);
19785
20038
 
19786
- var _excluded$i = ["onResize", "width"];
20039
+ var _excluded$j = ["onResize", "width"];
19787
20040
  var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
19788
20041
  var Text$2 = Typography.Text;
19789
20042
  var ResizeableTitle$2 = function ResizeableTitle(props) {
19790
20043
  var onResize = props.onResize,
19791
20044
  width = props.width,
19792
- restProps = _objectWithoutProperties(props, _excluded$i);
20045
+ restProps = _objectWithoutProperties(props, _excluded$j);
19793
20046
  var _useState = useState(width),
19794
20047
  _useState2 = _slicedToArray(_useState, 2),
19795
20048
  innerWidth = _useState2[0],
@@ -23116,7 +23369,7 @@ var NoFoundPage = function NoFoundPage(props) {
23116
23369
  }));
23117
23370
  };
23118
23371
 
23119
- var _excluded$j = ["route"];
23372
+ var _excluded$k = ["route"];
23120
23373
  var TabPane = Tabs.TabPane;
23121
23374
  var getId = function getId(str) {
23122
23375
  // 找到最后一个 / 的位置
@@ -24057,7 +24310,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
24057
24310
  }); // 添加数据大屏
24058
24311
  var _this$props3 = this.props,
24059
24312
  route = _this$props3.route,
24060
- restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
24313
+ restPrpos = _objectWithoutProperties(_this$props3, _excluded$k);
24061
24314
  var exist = route.routes.find(function (route) {
24062
24315
  return route.path === '/homePage/data-show';
24063
24316
  });
@@ -25027,10 +25280,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
25027
25280
  }))))));
25028
25281
  });
25029
25282
 
25030
- var _excluded$k = ["children"];
25283
+ var _excluded$l = ["children"];
25031
25284
  var Drawer = (function (props) {
25032
25285
  var children = props.children,
25033
- restProps = _objectWithoutProperties(props, _excluded$k);
25286
+ restProps = _objectWithoutProperties(props, _excluded$l);
25034
25287
  return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
25035
25288
  mask: true,
25036
25289
  closable: false,
@@ -33802,7 +34055,7 @@ var formatListName = function formatListName(list, columns) {
33802
34055
  });
33803
34056
  };
33804
34057
 
33805
- var _excluded$l = ["sorter"];
34058
+ var _excluded$m = ["sorter"];
33806
34059
  /**
33807
34060
  * 删掉查询条件的qp- 和 -eq等
33808
34061
  * @param {object} data
@@ -33882,7 +34135,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
33882
34135
  var _requestConfig$method;
33883
34136
  var params = _ref.params;
33884
34137
  var sorter = params.sorter,
33885
- paramsTemp = _objectWithoutProperties(params, _excluded$l);
34138
+ paramsTemp = _objectWithoutProperties(params, _excluded$m);
33886
34139
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
33887
34140
  currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
33888
34141
  });
@@ -35110,6 +35363,9 @@ var RuleField = /*#__PURE__*/function (_Component) {
35110
35363
  var SET_TYPE = ['in', 'nin', 'cn', 'ncn', '5']; //集合类型 (数字为 兼容用户管理子应用使用规则组件)
35111
35364
  var INTERVAL_TYPE = ['be', 'bed', 'nbe', 'nbed', 'ber', 'bel']; //区间类型
35112
35365
  var IS_KONG = ['en']; // 为空
35366
+ // 兼容元数据新旧枚举:旧 11单选/12多选;新 20单选/30多选(与 MetaDataCenter / RenderCompItem 一致)
35367
+ var isMultiInputType = dataInputBusinessType == 12 || dataInputBusinessType == 30;
35368
+ var isSelectInputType = dataInputBusinessType == 11 || dataInputBusinessType == 12 || dataInputBusinessType == 20 || dataInputBusinessType == 30;
35113
35369
  if (IS_KONG.indexOf(selectOperation) > -1) {
35114
35370
  return '';
35115
35371
  }
@@ -35187,8 +35443,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35187
35443
  }, item.name);
35188
35444
  }));
35189
35445
  }
35190
- } else if (dataInputBusinessType == 11 || dataInputBusinessType == 12) {
35191
- // 11 单选 12 多选
35446
+ } else if (isSelectInputType) {
35447
+ // 11/20 单选 12/30 多选
35192
35448
  // 物理仓
35193
35449
  if (dataChoiceBusinessType == 110) {
35194
35450
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
@@ -35197,7 +35453,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35197
35453
  selectProps: _objectSpread2({
35198
35454
  style: styleCommon,
35199
35455
  placeholder: '请选择物理仓'
35200
- }, dataInputBusinessType === 12 ? {
35456
+ }, isMultiInputType ? {
35201
35457
  mode: 'multiple',
35202
35458
  maxTagCount: 1
35203
35459
  } : {}),
@@ -35209,7 +35465,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35209
35465
  filterInit: 'qp-physicalWarehouseCode-in'
35210
35466
  },
35211
35467
  onChange: function onChange(value) {
35212
- if (dataInputBusinessType === 12) {
35468
+ if (isMultiInputType) {
35213
35469
  values[0] = value.map(function (i) {
35214
35470
  return i.key;
35215
35471
  });
@@ -35230,7 +35486,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35230
35486
  selectProps: _objectSpread2({
35231
35487
  style: styleCommon,
35232
35488
  placeholder: '请选择物理仓'
35233
- }, dataInputBusinessType === 12 ? {
35489
+ }, isMultiInputType ? {
35234
35490
  mode: 'multiple',
35235
35491
  maxTagCount: 1
35236
35492
  } : {}),
@@ -35242,7 +35498,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35242
35498
  filterInit: 'qp-physicalWarehouseCode-in'
35243
35499
  },
35244
35500
  onChange: function onChange(value) {
35245
- if (dataInputBusinessType === 12) {
35501
+ if (isMultiInputType) {
35246
35502
  values[1] = value.map(function (i) {
35247
35503
  return i.key;
35248
35504
  });
@@ -35261,7 +35517,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35261
35517
  }));
35262
35518
  } else {
35263
35519
  var _values;
35264
- var currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
35520
+ var currentValue = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
35265
35521
  return {
35266
35522
  key: s,
35267
35523
  label: valueNames[vIndex],
@@ -35277,7 +35533,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35277
35533
  selectProps: _objectSpread2({
35278
35534
  style: styleCommon,
35279
35535
  placeholder: '请选择物理仓'
35280
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
35536
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35281
35537
  mode: 'multiple',
35282
35538
  maxTagCount: 1
35283
35539
  } : {}),
@@ -35289,7 +35545,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35289
35545
  filterInit: 'qp-physicalWarehouseCode-in'
35290
35546
  },
35291
35547
  onChange: function onChange(value) {
35292
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35548
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35293
35549
  values = value.map(function (i) {
35294
35550
  return i.key;
35295
35551
  }) || [];
@@ -35316,7 +35572,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35316
35572
  selectProps: _objectSpread2({
35317
35573
  style: styleCommon,
35318
35574
  placeholder: '请选择逻辑仓'
35319
- }, dataInputBusinessType === 12 ? {
35575
+ }, isMultiInputType ? {
35320
35576
  mode: 'multiple',
35321
35577
  maxTagCount: 1
35322
35578
  } : {}),
@@ -35328,7 +35584,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35328
35584
  filterInit: 'qp-realWarehouseCode-in'
35329
35585
  },
35330
35586
  onChange: function onChange(value) {
35331
- if (dataInputBusinessType === 12) {
35587
+ if (isMultiInputType) {
35332
35588
  values[0] = value.map(function (i) {
35333
35589
  return i.key;
35334
35590
  });
@@ -35349,7 +35605,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35349
35605
  selectProps: _objectSpread2({
35350
35606
  style: styleCommon,
35351
35607
  placeholder: '请选择逻辑仓'
35352
- }, dataInputBusinessType === 12 ? {
35608
+ }, isMultiInputType ? {
35353
35609
  mode: 'multiple',
35354
35610
  maxTagCount: 1
35355
35611
  } : {}),
@@ -35361,7 +35617,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35361
35617
  filterInit: 'qp-realWarehouseCode-in'
35362
35618
  },
35363
35619
  onChange: function onChange(value) {
35364
- if (dataInputBusinessType === 12) {
35620
+ if (isMultiInputType) {
35365
35621
  values[1] = value.map(function (i) {
35366
35622
  return i.key;
35367
35623
  });
@@ -35380,7 +35636,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35380
35636
  }));
35381
35637
  } else {
35382
35638
  var _values2;
35383
- var _currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
35639
+ var _currentValue = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
35384
35640
  return {
35385
35641
  key: s,
35386
35642
  label: valueNames[vIndex],
@@ -35396,7 +35652,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35396
35652
  selectProps: _objectSpread2({
35397
35653
  style: styleCommon,
35398
35654
  placeholder: '请选择逻辑仓'
35399
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
35655
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35400
35656
  mode: 'multiple',
35401
35657
  maxTagCount: 1
35402
35658
  } : {}),
@@ -35408,7 +35664,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35408
35664
  filterInit: 'qp-realWarehouseCode-in'
35409
35665
  },
35410
35666
  onChange: function onChange(value) {
35411
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35667
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35412
35668
  values = value.map(function (i) {
35413
35669
  return i.key;
35414
35670
  }) || [];
@@ -35435,7 +35691,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35435
35691
  selectProps: _objectSpread2({
35436
35692
  style: styleCommon,
35437
35693
  placeholder: '请选择虚拟仓'
35438
- }, dataInputBusinessType === 12 ? {
35694
+ }, isMultiInputType ? {
35439
35695
  mode: 'multiple',
35440
35696
  maxTagCount: 1
35441
35697
  } : {}),
@@ -35447,7 +35703,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35447
35703
  filterInit: 'qp-virtualWarehouseCode-in'
35448
35704
  },
35449
35705
  onChange: function onChange(value) {
35450
- if (dataInputBusinessType === 12) {
35706
+ if (isMultiInputType) {
35451
35707
  values[0] = value.map(function (i) {
35452
35708
  return i.key;
35453
35709
  });
@@ -35468,7 +35724,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35468
35724
  selectProps: _objectSpread2({
35469
35725
  style: styleCommon,
35470
35726
  placeholder: '请选择虚拟仓'
35471
- }, dataInputBusinessType === 12 ? {
35727
+ }, isMultiInputType ? {
35472
35728
  mode: 'multiple',
35473
35729
  maxTagCount: 1
35474
35730
  } : {}),
@@ -35480,7 +35736,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35480
35736
  filterInit: 'qp-virtualWarehouseCode-in'
35481
35737
  },
35482
35738
  onChange: function onChange(value) {
35483
- if (dataInputBusinessType === 12) {
35739
+ if (isMultiInputType) {
35484
35740
  values[1] = value.map(function (i) {
35485
35741
  return i.key;
35486
35742
  });
@@ -35499,7 +35755,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35499
35755
  }));
35500
35756
  } else {
35501
35757
  var _values3;
35502
- var _currentValue2 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
35758
+ var _currentValue2 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
35503
35759
  return {
35504
35760
  key: s,
35505
35761
  label: valueNames[vIndex],
@@ -35515,7 +35771,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35515
35771
  selectProps: _objectSpread2({
35516
35772
  style: styleCommon,
35517
35773
  placeholder: '请选择虚拟仓'
35518
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
35774
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35519
35775
  mode: 'multiple',
35520
35776
  maxTagCount: 1
35521
35777
  } : {}),
@@ -35527,7 +35783,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35527
35783
  filterInit: 'qp-virtualWarehouseCode-in'
35528
35784
  },
35529
35785
  onChange: function onChange(value) {
35530
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35786
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35531
35787
  values = value.map(function (i) {
35532
35788
  return i.key;
35533
35789
  }) || [];
@@ -35554,7 +35810,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35554
35810
  selectProps: _objectSpread2({
35555
35811
  style: styleCommon,
35556
35812
  placeholder: '请选择渠道仓'
35557
- }, dataInputBusinessType === 12 ? {
35813
+ }, isMultiInputType ? {
35558
35814
  mode: 'multiple',
35559
35815
  maxTagCount: 1
35560
35816
  } : {}),
@@ -35566,7 +35822,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35566
35822
  filterInit: 'qp-channelWarehouseCode-in'
35567
35823
  },
35568
35824
  onChange: function onChange(value) {
35569
- if (dataInputBusinessType === 12) {
35825
+ if (isMultiInputType) {
35570
35826
  values[0] = value.map(function (i) {
35571
35827
  return i.key;
35572
35828
  });
@@ -35587,7 +35843,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35587
35843
  selectProps: _objectSpread2({
35588
35844
  style: styleCommon,
35589
35845
  placeholder: '请选择渠道仓'
35590
- }, dataInputBusinessType === 12 ? {
35846
+ }, isMultiInputType ? {
35591
35847
  mode: 'multiple',
35592
35848
  maxTagCount: 1
35593
35849
  } : {}),
@@ -35599,7 +35855,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35599
35855
  filterInit: 'qp-channelWarehouseCode-in'
35600
35856
  },
35601
35857
  onChange: function onChange(value) {
35602
- if (dataInputBusinessType === 12) {
35858
+ if (isMultiInputType) {
35603
35859
  values[1] = value.map(function (i) {
35604
35860
  return i.key;
35605
35861
  });
@@ -35618,7 +35874,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35618
35874
  }));
35619
35875
  } else {
35620
35876
  var _values4;
35621
- var _currentValue3 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
35877
+ var _currentValue3 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
35622
35878
  return {
35623
35879
  key: s,
35624
35880
  label: valueNames[vIndex],
@@ -35634,7 +35890,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35634
35890
  selectProps: _objectSpread2({
35635
35891
  style: styleCommon,
35636
35892
  placeholder: '请选择渠道仓'
35637
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
35893
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35638
35894
  mode: 'multiple',
35639
35895
  maxTagCount: 1
35640
35896
  } : {}),
@@ -35646,7 +35902,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35646
35902
  filterInit: 'qp-channelWarehouseCode-in'
35647
35903
  },
35648
35904
  onChange: function onChange(value) {
35649
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35905
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35650
35906
  values = value.map(function (i) {
35651
35907
  return i.key;
35652
35908
  }) || [];
@@ -35673,7 +35929,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35673
35929
  selectProps: _objectSpread2({
35674
35930
  style: styleCommon,
35675
35931
  placeholder: '请选择SPU'
35676
- }, dataInputBusinessType === 12 ? {
35932
+ }, isMultiInputType ? {
35677
35933
  mode: 'multiple',
35678
35934
  maxTagCount: 1
35679
35935
  } : {}),
@@ -35684,7 +35940,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35684
35940
  filterInit: 'qp-itemCode-in'
35685
35941
  },
35686
35942
  onChange: function onChange(value) {
35687
- if (dataInputBusinessType === 12) {
35943
+ if (isMultiInputType) {
35688
35944
  values[0] = value.map(function (i) {
35689
35945
  return i.key;
35690
35946
  });
@@ -35705,7 +35961,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35705
35961
  selectProps: _objectSpread2({
35706
35962
  style: styleCommon,
35707
35963
  placeholder: '请选择SPU'
35708
- }, dataInputBusinessType === 12 ? {
35964
+ }, isMultiInputType ? {
35709
35965
  mode: 'multiple',
35710
35966
  maxTagCount: 1
35711
35967
  } : {}),
@@ -35716,7 +35972,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35716
35972
  filterInit: 'qp-itemCode-in'
35717
35973
  },
35718
35974
  onChange: function onChange(value) {
35719
- if (dataInputBusinessType === 12) {
35975
+ if (isMultiInputType) {
35720
35976
  values[1] = value.map(function (i) {
35721
35977
  return i.key;
35722
35978
  });
@@ -35735,7 +35991,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35735
35991
  }));
35736
35992
  } else {
35737
35993
  var _values5;
35738
- var _currentValue4 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
35994
+ var _currentValue4 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
35739
35995
  return {
35740
35996
  key: s,
35741
35997
  label: valueNames[vIndex],
@@ -35751,7 +36007,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35751
36007
  selectProps: _objectSpread2({
35752
36008
  style: styleCommon,
35753
36009
  placeholder: '请选择SPU'
35754
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36010
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35755
36011
  mode: 'multiple',
35756
36012
  maxTagCount: 1
35757
36013
  } : {}),
@@ -35762,7 +36018,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35762
36018
  filterInit: 'qp-itemCode-in'
35763
36019
  },
35764
36020
  onChange: function onChange(value) {
35765
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36021
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35766
36022
  values = value.map(function (i) {
35767
36023
  return i.key;
35768
36024
  }) || [];
@@ -35789,7 +36045,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35789
36045
  selectProps: _objectSpread2({
35790
36046
  style: styleCommon,
35791
36047
  placeholder: '请选择商品'
35792
- }, dataInputBusinessType === 12 ? {
36048
+ }, isMultiInputType ? {
35793
36049
  mode: 'multiple',
35794
36050
  maxTagCount: 1
35795
36051
  } : {}),
@@ -35800,7 +36056,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35800
36056
  filterInit: 'qp-skuCode-in'
35801
36057
  },
35802
36058
  onChange: function onChange(value) {
35803
- if (dataInputBusinessType === 12) {
36059
+ if (isMultiInputType) {
35804
36060
  values[0] = value.map(function (i) {
35805
36061
  return i.key;
35806
36062
  });
@@ -35821,7 +36077,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35821
36077
  selectProps: _objectSpread2({
35822
36078
  style: styleCommon,
35823
36079
  placeholder: '请选择商品'
35824
- }, dataInputBusinessType === 12 ? {
36080
+ }, isMultiInputType ? {
35825
36081
  mode: 'multiple',
35826
36082
  maxTagCount: 1
35827
36083
  } : {}),
@@ -35832,7 +36088,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35832
36088
  filterInit: 'qp-skuCode-in'
35833
36089
  },
35834
36090
  onChange: function onChange(value) {
35835
- if (dataInputBusinessType === 12) {
36091
+ if (isMultiInputType) {
35836
36092
  values[1] = value.map(function (i) {
35837
36093
  return i.key;
35838
36094
  });
@@ -35851,7 +36107,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35851
36107
  }));
35852
36108
  } else {
35853
36109
  var _values6;
35854
- var _currentValue5 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
36110
+ var _currentValue5 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
35855
36111
  return {
35856
36112
  key: s,
35857
36113
  label: valueNames[vIndex],
@@ -35867,7 +36123,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35867
36123
  selectProps: _objectSpread2({
35868
36124
  style: styleCommon,
35869
36125
  placeholder: '请选择商品'
35870
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36126
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
35871
36127
  mode: 'multiple',
35872
36128
  maxTagCount: 1
35873
36129
  } : {}),
@@ -35878,7 +36134,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35878
36134
  filterInit: 'qp-skuCode-in'
35879
36135
  },
35880
36136
  onChange: function onChange(value) {
35881
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36137
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
35882
36138
  values = value.map(function (i) {
35883
36139
  return i.key;
35884
36140
  }) || [];
@@ -36047,14 +36303,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36047
36303
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36048
36304
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36049
36305
  disabled: disabled,
36050
- treeCheckable: dataInputBusinessType === 12,
36306
+ treeCheckable: isMultiInputType,
36051
36307
  businessType: "department",
36052
36308
  labelInValue: true,
36053
- value: dataInputBusinessType === 12 ? values[0] : values[0][0],
36309
+ value: isMultiInputType ? values[0] : values[0][0],
36054
36310
  style: styleCommon,
36055
36311
  treeCheckStrictly: true,
36056
36312
  onChange: function onChange(value) {
36057
- if (dataInputBusinessType === 12) {
36313
+ if (isMultiInputType) {
36058
36314
  values[0] = value.map(function (i) {
36059
36315
  return i.key;
36060
36316
  });
@@ -36072,14 +36328,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36072
36328
  }
36073
36329
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36074
36330
  disabled: disabled,
36075
- treeCheckable: dataInputBusinessType === 12,
36331
+ treeCheckable: isMultiInputType,
36076
36332
  businessType: "department",
36077
36333
  labelInValue: true,
36078
- value: dataInputBusinessType === 12 ? values[1] : values[1][0],
36334
+ value: isMultiInputType ? values[1] : values[1][0],
36079
36335
  style: styleCommon,
36080
36336
  treeCheckStrictly: true,
36081
36337
  onChange: function onChange(value) {
36082
- if (dataInputBusinessType === 12) {
36338
+ if (isMultiInputType) {
36083
36339
  values[1] = value.map(function (i) {
36084
36340
  return i.key;
36085
36341
  });
@@ -36099,14 +36355,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36099
36355
  } else {
36100
36356
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36101
36357
  disabled: disabled,
36102
- treeCheckable: dataInputBusinessType === 12,
36358
+ treeCheckable: isMultiInputType,
36103
36359
  businessType: "department",
36104
36360
  labelInValue: true,
36105
- value: dataInputBusinessType === 12 ? values : values[0],
36361
+ value: isMultiInputType ? values : values[0],
36106
36362
  style: styleCommon,
36107
36363
  treeCheckStrictly: true,
36108
36364
  onChange: function onChange(value) {
36109
- if (dataInputBusinessType === 12) {
36365
+ if (isMultiInputType) {
36110
36366
  values = value.map(function (i) {
36111
36367
  return i.key;
36112
36368
  }) || [];
@@ -36130,14 +36386,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36130
36386
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36131
36387
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36132
36388
  disabled: disabled,
36133
- treeCheckable: dataInputBusinessType === 12,
36389
+ treeCheckable: isMultiInputType,
36134
36390
  businessType: "purchase-organization",
36135
36391
  labelInValue: true,
36136
- value: dataInputBusinessType === 12 ? values[0] : values[0][0],
36392
+ value: isMultiInputType ? values[0] : values[0][0],
36137
36393
  style: styleCommon,
36138
36394
  treeCheckStrictly: true,
36139
36395
  onChange: function onChange(value) {
36140
- if (dataInputBusinessType === 12) {
36396
+ if (isMultiInputType) {
36141
36397
  values[0] = value.map(function (i) {
36142
36398
  return i.key;
36143
36399
  });
@@ -36155,14 +36411,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36155
36411
  }
36156
36412
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36157
36413
  disabled: disabled,
36158
- treeCheckable: dataInputBusinessType === 12,
36414
+ treeCheckable: isMultiInputType,
36159
36415
  businessType: "purchase-organization",
36160
36416
  labelInValue: true,
36161
- value: dataInputBusinessType === 12 ? values[1] : values[1][0],
36417
+ value: isMultiInputType ? values[1] : values[1][0],
36162
36418
  style: styleCommon,
36163
36419
  treeCheckStrictly: true,
36164
36420
  onChange: function onChange(value) {
36165
- if (dataInputBusinessType === 12) {
36421
+ if (isMultiInputType) {
36166
36422
  values[1] = value.map(function (i) {
36167
36423
  return i.key;
36168
36424
  });
@@ -36182,14 +36438,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36182
36438
  } else {
36183
36439
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36184
36440
  disabled: disabled,
36185
- treeCheckable: dataInputBusinessType === 12,
36441
+ treeCheckable: isMultiInputType,
36186
36442
  businessType: "purchase-organization",
36187
36443
  labelInValue: true,
36188
- value: dataInputBusinessType === 12 ? values : values[0],
36444
+ value: isMultiInputType ? values : values[0],
36189
36445
  style: styleCommon,
36190
36446
  treeCheckStrictly: true,
36191
36447
  onChange: function onChange(value) {
36192
- if (dataInputBusinessType === 12) {
36448
+ if (isMultiInputType) {
36193
36449
  values = value.map(function (i) {
36194
36450
  return i.key;
36195
36451
  }) || [];
@@ -36213,14 +36469,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36213
36469
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36214
36470
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36215
36471
  disabled: disabled,
36216
- treeCheckable: dataInputBusinessType === 12,
36472
+ treeCheckable: isMultiInputType,
36217
36473
  businessType: "sales-organization",
36218
36474
  labelInValue: true,
36219
- value: dataInputBusinessType === 12 ? values[0] : values[0][0],
36475
+ value: isMultiInputType ? values[0] : values[0][0],
36220
36476
  style: styleCommon,
36221
36477
  treeCheckStrictly: true,
36222
36478
  onChange: function onChange(value) {
36223
- if (dataInputBusinessType === 12) {
36479
+ if (isMultiInputType) {
36224
36480
  values[0] = value.map(function (i) {
36225
36481
  return i.key;
36226
36482
  });
@@ -36238,14 +36494,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36238
36494
  }
36239
36495
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36240
36496
  disabled: disabled,
36241
- treeCheckable: dataInputBusinessType === 12,
36497
+ treeCheckable: isMultiInputType,
36242
36498
  businessType: "sales-organization",
36243
36499
  labelInValue: true,
36244
- value: dataInputBusinessType === 12 ? values[1] : values[1][0],
36500
+ value: isMultiInputType ? values[1] : values[1][0],
36245
36501
  style: styleCommon,
36246
36502
  treeCheckStrictly: true,
36247
36503
  onChange: function onChange(value) {
36248
- if (dataInputBusinessType === 12) {
36504
+ if (isMultiInputType) {
36249
36505
  values[1] = value.map(function (i) {
36250
36506
  return i.key;
36251
36507
  });
@@ -36265,14 +36521,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36265
36521
  } else {
36266
36522
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36267
36523
  disabled: disabled,
36268
- treeCheckable: dataInputBusinessType === 12,
36524
+ treeCheckable: isMultiInputType,
36269
36525
  businessType: "sales-organization",
36270
36526
  labelInValue: true,
36271
- value: dataInputBusinessType === 12 ? values : values[0],
36527
+ value: isMultiInputType ? values : values[0],
36272
36528
  style: styleCommon,
36273
36529
  treeCheckStrictly: true,
36274
36530
  onChange: function onChange(value) {
36275
- if (dataInputBusinessType === 12) {
36531
+ if (isMultiInputType) {
36276
36532
  values = value.map(function (i) {
36277
36533
  return i.key;
36278
36534
  }) || [];
@@ -36299,7 +36555,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36299
36555
  selectProps: _objectSpread2({
36300
36556
  style: styleCommon,
36301
36557
  placeholder: '请选择供应商'
36302
- }, dataInputBusinessType === 12 ? {
36558
+ }, isMultiInputType ? {
36303
36559
  mode: 'multiple',
36304
36560
  maxTagCount: 1
36305
36561
  } : {}),
@@ -36310,7 +36566,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36310
36566
  filterInit: 'qp-code-in'
36311
36567
  },
36312
36568
  onChange: function onChange(value) {
36313
- if (dataInputBusinessType === 12) {
36569
+ if (isMultiInputType) {
36314
36570
  values[0] = value.map(function (i) {
36315
36571
  return i.key;
36316
36572
  });
@@ -36331,7 +36587,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36331
36587
  selectProps: _objectSpread2({
36332
36588
  style: styleCommon,
36333
36589
  placeholder: '请选择供应商'
36334
- }, dataInputBusinessType === 12 ? {
36590
+ }, isMultiInputType ? {
36335
36591
  mode: 'multiple',
36336
36592
  maxTagCount: 1
36337
36593
  } : {}),
@@ -36342,7 +36598,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36342
36598
  filterInit: 'qp-code-in'
36343
36599
  },
36344
36600
  onChange: function onChange(value) {
36345
- if (dataInputBusinessType === 12) {
36601
+ if (isMultiInputType) {
36346
36602
  values[1] = value.map(function (i) {
36347
36603
  return i.key;
36348
36604
  });
@@ -36361,7 +36617,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36361
36617
  }));
36362
36618
  } else {
36363
36619
  var _values7;
36364
- var _currentValue6 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
36620
+ var _currentValue6 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
36365
36621
  return {
36366
36622
  key: s,
36367
36623
  label: valueNames[vIndex],
@@ -36377,7 +36633,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36377
36633
  selectProps: _objectSpread2({
36378
36634
  style: styleCommon,
36379
36635
  placeholder: '请选择供应商'
36380
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36636
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
36381
36637
  mode: 'multiple',
36382
36638
  maxTagCount: 1
36383
36639
  } : {}),
@@ -36388,7 +36644,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36388
36644
  filterInit: 'qp-code-in'
36389
36645
  },
36390
36646
  onChange: function onChange(value) {
36391
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36647
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
36392
36648
  values = value.map(function (i) {
36393
36649
  return i.key;
36394
36650
  }) || [];
@@ -36415,7 +36671,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36415
36671
  selectProps: _objectSpread2({
36416
36672
  style: styleCommon,
36417
36673
  placeholder: '请选择客户'
36418
- }, dataInputBusinessType === 12 ? {
36674
+ }, isMultiInputType ? {
36419
36675
  mode: 'multiple',
36420
36676
  maxTagCount: 1
36421
36677
  } : {}),
@@ -36426,7 +36682,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36426
36682
  filterInit: 'qp-code-in'
36427
36683
  },
36428
36684
  onChange: function onChange(value) {
36429
- if (dataInputBusinessType === 12) {
36685
+ if (isMultiInputType) {
36430
36686
  values[0] = value.map(function (i) {
36431
36687
  return i.key;
36432
36688
  });
@@ -36447,7 +36703,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36447
36703
  selectProps: _objectSpread2({
36448
36704
  style: styleCommon,
36449
36705
  placeholder: '请选择客户'
36450
- }, dataInputBusinessType === 12 ? {
36706
+ }, isMultiInputType ? {
36451
36707
  mode: 'multiple',
36452
36708
  maxTagCount: 1
36453
36709
  } : {}),
@@ -36458,7 +36714,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36458
36714
  filterInit: 'qp-code-in'
36459
36715
  },
36460
36716
  onChange: function onChange(value) {
36461
- if (dataInputBusinessType === 12) {
36717
+ if (isMultiInputType) {
36462
36718
  values[1] = value.map(function (i) {
36463
36719
  return i.key;
36464
36720
  });
@@ -36477,7 +36733,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36477
36733
  }));
36478
36734
  } else {
36479
36735
  var _values8;
36480
- var _currentValue7 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
36736
+ var _currentValue7 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
36481
36737
  return {
36482
36738
  key: s,
36483
36739
  label: valueNames[vIndex],
@@ -36493,7 +36749,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36493
36749
  selectProps: _objectSpread2({
36494
36750
  style: styleCommon,
36495
36751
  placeholder: '请选择客户'
36496
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36752
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
36497
36753
  mode: 'multiple',
36498
36754
  maxTagCount: 1
36499
36755
  } : {}),
@@ -36504,7 +36760,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36504
36760
  filterInit: 'qp-code-in'
36505
36761
  },
36506
36762
  onChange: function onChange(value) {
36507
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36763
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
36508
36764
  values = value.map(function (i) {
36509
36765
  return i.key;
36510
36766
  }) || [];
@@ -36531,7 +36787,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36531
36787
  selectProps: _objectSpread2({
36532
36788
  style: styleCommon,
36533
36789
  placeholder: '请选择店铺'
36534
- }, dataInputBusinessType === 12 ? {
36790
+ }, isMultiInputType ? {
36535
36791
  mode: 'multiple',
36536
36792
  maxTagCount: 1
36537
36793
  } : {}),
@@ -36542,7 +36798,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36542
36798
  filterInit: 'qp-code-in'
36543
36799
  },
36544
36800
  onChange: function onChange(value) {
36545
- if (dataInputBusinessType === 12) {
36801
+ if (isMultiInputType) {
36546
36802
  values[0] = value.map(function (i) {
36547
36803
  return i.key;
36548
36804
  });
@@ -36563,7 +36819,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36563
36819
  selectProps: _objectSpread2({
36564
36820
  style: styleCommon,
36565
36821
  placeholder: '请选择店铺'
36566
- }, dataInputBusinessType === 12 ? {
36822
+ }, isMultiInputType ? {
36567
36823
  mode: 'multiple',
36568
36824
  maxTagCount: 1
36569
36825
  } : {}),
@@ -36574,7 +36830,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36574
36830
  filterInit: 'qp-code-in'
36575
36831
  },
36576
36832
  onChange: function onChange(value) {
36577
- if (dataInputBusinessType === 12) {
36833
+ if (isMultiInputType) {
36578
36834
  values[1] = value.map(function (i) {
36579
36835
  return i.key;
36580
36836
  });
@@ -36593,7 +36849,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36593
36849
  }));
36594
36850
  } else {
36595
36851
  var _values9;
36596
- var _currentValue8 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
36852
+ var _currentValue8 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
36597
36853
  return {
36598
36854
  key: s,
36599
36855
  label: valueNames[vIndex],
@@ -36609,7 +36865,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36609
36865
  selectProps: _objectSpread2({
36610
36866
  style: styleCommon,
36611
36867
  placeholder: '请选择店铺'
36612
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36868
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
36613
36869
  mode: 'multiple',
36614
36870
  maxTagCount: 1
36615
36871
  } : {}),
@@ -36620,7 +36876,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36620
36876
  filterInit: 'qp-code-in'
36621
36877
  },
36622
36878
  onChange: function onChange(value) {
36623
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36879
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
36624
36880
  values = value.map(function (i) {
36625
36881
  return i.key;
36626
36882
  }) || [];
@@ -36647,7 +36903,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36647
36903
  selectProps: _objectSpread2({
36648
36904
  style: styleCommon,
36649
36905
  placeholder: '请选择员工'
36650
- }, dataInputBusinessType === 12 ? {
36906
+ }, isMultiInputType ? {
36651
36907
  mode: 'multiple',
36652
36908
  maxTagCount: 1
36653
36909
  } : {}),
@@ -36658,7 +36914,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36658
36914
  filterInit: 'qp-id-in'
36659
36915
  },
36660
36916
  onChange: function onChange(value) {
36661
- if (dataInputBusinessType === 12) {
36917
+ if (isMultiInputType) {
36662
36918
  values[0] = value.map(function (i) {
36663
36919
  return i.key;
36664
36920
  });
@@ -36679,7 +36935,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36679
36935
  selectProps: _objectSpread2({
36680
36936
  style: styleCommon,
36681
36937
  placeholder: '请选择员工'
36682
- }, dataInputBusinessType === 12 ? {
36938
+ }, isMultiInputType ? {
36683
36939
  mode: 'multiple',
36684
36940
  maxTagCount: 1
36685
36941
  } : {}),
@@ -36690,7 +36946,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36690
36946
  filterInit: 'qp-id-in'
36691
36947
  },
36692
36948
  onChange: function onChange(value) {
36693
- if (dataInputBusinessType === 12) {
36949
+ if (isMultiInputType) {
36694
36950
  values[1] = value.map(function (i) {
36695
36951
  return i.key;
36696
36952
  });
@@ -36709,7 +36965,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36709
36965
  }));
36710
36966
  } else {
36711
36967
  var _values0;
36712
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
36968
+ var _currentValue9 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
36713
36969
  return {
36714
36970
  key: s,
36715
36971
  label: valueNames[vIndex],
@@ -36725,7 +36981,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36725
36981
  selectProps: _objectSpread2({
36726
36982
  style: styleCommon,
36727
36983
  placeholder: '请选择员工'
36728
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
36984
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
36729
36985
  mode: 'multiple',
36730
36986
  maxTagCount: 1
36731
36987
  } : {}),
@@ -36736,7 +36992,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36736
36992
  filterInit: 'qp-id-in'
36737
36993
  },
36738
36994
  onChange: function onChange(value) {
36739
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36995
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
36740
36996
  values = value.map(function (i) {
36741
36997
  return i.key;
36742
36998
  }) || [];
@@ -36760,14 +37016,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36760
37016
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36761
37017
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36762
37018
  disabled: disabled,
36763
- treeCheckable: dataInputBusinessType === 12,
37019
+ treeCheckable: isMultiInputType,
36764
37020
  businessType: "stock-organization",
36765
37021
  labelInValue: true,
36766
- value: dataInputBusinessType === 12 ? values : values[0],
37022
+ value: isMultiInputType ? values : values[0],
36767
37023
  style: styleCommon,
36768
37024
  treeCheckStrictly: true,
36769
37025
  onChange: function onChange(value) {
36770
- if (dataInputBusinessType === 12) {
37026
+ if (isMultiInputType) {
36771
37027
  values[0] = value.map(function (i) {
36772
37028
  return i.key;
36773
37029
  });
@@ -36785,14 +37041,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36785
37041
  }
36786
37042
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36787
37043
  disabled: disabled,
36788
- treeCheckable: dataInputBusinessType === 12,
37044
+ treeCheckable: isMultiInputType,
36789
37045
  businessType: "stock-organization",
36790
37046
  labelInValue: true,
36791
- value: dataInputBusinessType === 12 ? values : values[0],
37047
+ value: isMultiInputType ? values : values[0],
36792
37048
  style: styleCommon,
36793
37049
  treeCheckStrictly: true,
36794
37050
  onChange: function onChange(value) {
36795
- if (dataInputBusinessType === 12) {
37051
+ if (isMultiInputType) {
36796
37052
  values[1] = value.map(function (i) {
36797
37053
  return i.key;
36798
37054
  });
@@ -36812,14 +37068,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36812
37068
  } else {
36813
37069
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36814
37070
  disabled: disabled,
36815
- treeCheckable: dataInputBusinessType === 12,
37071
+ treeCheckable: isMultiInputType,
36816
37072
  businessType: "stock-organization",
36817
37073
  labelInValue: true,
36818
- value: dataInputBusinessType === 12 ? values : values[0],
37074
+ value: isMultiInputType ? values : values[0],
36819
37075
  style: styleCommon,
36820
37076
  treeCheckStrictly: true,
36821
37077
  onChange: function onChange(value) {
36822
- if (dataInputBusinessType === 12) {
37078
+ if (isMultiInputType) {
36823
37079
  values = value.map(function (i) {
36824
37080
  return i.key;
36825
37081
  }) || [];
@@ -36843,13 +37099,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
36843
37099
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36844
37100
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36845
37101
  disabled: disabled,
36846
- treeCheckable: dataInputBusinessType === 12,
37102
+ treeCheckable: isMultiInputType,
36847
37103
  businessType: "settle-organization",
36848
37104
  labelInValue: true,
36849
37105
  value: values[0],
36850
37106
  style: styleCommon,
36851
37107
  onChange: function onChange(value) {
36852
- if (dataInputBusinessType === 12) {
37108
+ if (isMultiInputType) {
36853
37109
  values[0] = value.map(function (i) {
36854
37110
  return i.key;
36855
37111
  });
@@ -36867,13 +37123,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
36867
37123
  }
36868
37124
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36869
37125
  disabled: disabled,
36870
- treeCheckable: dataInputBusinessType === 12,
37126
+ treeCheckable: isMultiInputType,
36871
37127
  businessType: "settle-organization",
36872
37128
  labelInValue: true,
36873
37129
  value: values[0],
36874
37130
  style: styleCommon,
36875
37131
  onChange: function onChange(value) {
36876
- if (dataInputBusinessType === 12) {
37132
+ if (isMultiInputType) {
36877
37133
  values[1] = value.map(function (i) {
36878
37134
  return i.key;
36879
37135
  });
@@ -36893,13 +37149,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
36893
37149
  } else {
36894
37150
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36895
37151
  disabled: disabled,
36896
- treeCheckable: dataInputBusinessType === 12,
37152
+ treeCheckable: isMultiInputType,
36897
37153
  businessType: "settle-organization",
36898
37154
  labelInValue: true,
36899
37155
  value: values[0],
36900
37156
  style: styleCommon,
36901
37157
  onChange: function onChange(value) {
36902
- if (dataInputBusinessType === 12) {
37158
+ if (isMultiInputType) {
36903
37159
  values = value.map(function (i) {
36904
37160
  return i.key;
36905
37161
  }) || [];
@@ -36926,7 +37182,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36926
37182
  selectProps: _objectSpread2({
36927
37183
  style: styleCommon,
36928
37184
  placeholder: '请选择配送方式'
36929
- }, dataInputBusinessType === 12 ? {
37185
+ }, isMultiInputType ? {
36930
37186
  mode: 'multiple',
36931
37187
  maxTagCount: 1
36932
37188
  } : {}),
@@ -36942,7 +37198,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36942
37198
  filterInit: 'qp-code-in'
36943
37199
  }),
36944
37200
  onChange: function onChange(value) {
36945
- if (dataInputBusinessType === 12) {
37201
+ if (isMultiInputType) {
36946
37202
  values[0] = value.map(function (i) {
36947
37203
  return i.key;
36948
37204
  });
@@ -36963,7 +37219,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36963
37219
  selectProps: _objectSpread2({
36964
37220
  style: styleCommon,
36965
37221
  placeholder: '请选择配送方式'
36966
- }, dataInputBusinessType === 12 ? {
37222
+ }, isMultiInputType ? {
36967
37223
  mode: 'multiple',
36968
37224
  maxTagCount: 1
36969
37225
  } : {}),
@@ -36979,7 +37235,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36979
37235
  filterInit: 'qp-code-in'
36980
37236
  }),
36981
37237
  onChange: function onChange(value) {
36982
- if (dataInputBusinessType === 12) {
37238
+ if (isMultiInputType) {
36983
37239
  values[1] = value.map(function (i) {
36984
37240
  return i.key;
36985
37241
  });
@@ -36998,7 +37254,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36998
37254
  }));
36999
37255
  } else {
37000
37256
  var _values1;
37001
- var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
37257
+ var _currentValue0 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
37002
37258
  return {
37003
37259
  key: s,
37004
37260
  label: valueNames[vIndex],
@@ -37014,7 +37270,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37014
37270
  selectProps: _objectSpread2({
37015
37271
  style: styleCommon,
37016
37272
  placeholder: '请选择配送方式'
37017
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
37273
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
37018
37274
  mode: 'multiple',
37019
37275
  maxTagCount: 1
37020
37276
  } : {}),
@@ -37030,7 +37286,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37030
37286
  filterInit: 'qp-code-in'
37031
37287
  }),
37032
37288
  onChange: function onChange(value) {
37033
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
37289
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
37034
37290
  values = value.map(function (i) {
37035
37291
  return i.key;
37036
37292
  }) || [];
@@ -37057,7 +37313,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37057
37313
  selectProps: _objectSpread2({
37058
37314
  style: styleCommon,
37059
37315
  placeholder: '请选择角色'
37060
- }, dataInputBusinessType === 12 ? {
37316
+ }, isMultiInputType ? {
37061
37317
  mode: 'multiple',
37062
37318
  maxTagCount: 1
37063
37319
  } : {}),
@@ -37068,7 +37324,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37068
37324
  filterInit: 'qp-code-in'
37069
37325
  },
37070
37326
  onChange: function onChange(value) {
37071
- if (dataInputBusinessType === 12) {
37327
+ if (isMultiInputType) {
37072
37328
  values[0] = value.map(function (i) {
37073
37329
  return i.key;
37074
37330
  });
@@ -37089,7 +37345,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37089
37345
  selectProps: _objectSpread2({
37090
37346
  style: styleCommon,
37091
37347
  placeholder: '请选择角色'
37092
- }, dataInputBusinessType === 12 ? {
37348
+ }, isMultiInputType ? {
37093
37349
  mode: 'multiple',
37094
37350
  maxTagCount: 1
37095
37351
  } : {}),
@@ -37100,7 +37356,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37100
37356
  filterInit: 'qp-code-in'
37101
37357
  },
37102
37358
  onChange: function onChange(value) {
37103
- if (dataInputBusinessType === 12) {
37359
+ if (isMultiInputType) {
37104
37360
  values[1] = value.map(function (i) {
37105
37361
  return i.key;
37106
37362
  });
@@ -37119,7 +37375,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37119
37375
  }));
37120
37376
  } else {
37121
37377
  var _values10;
37122
- var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
37378
+ var _currentValue1 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
37123
37379
  return {
37124
37380
  key: s,
37125
37381
  label: valueNames[vIndex],
@@ -37135,7 +37391,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37135
37391
  selectProps: _objectSpread2({
37136
37392
  style: styleCommon,
37137
37393
  placeholder: '请选择角色'
37138
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
37394
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
37139
37395
  mode: 'multiple',
37140
37396
  maxTagCount: 1
37141
37397
  } : {}),
@@ -37146,7 +37402,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37146
37402
  filterInit: 'qp-code-in'
37147
37403
  },
37148
37404
  onChange: function onChange(value) {
37149
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
37405
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
37150
37406
  values = value.map(function (i) {
37151
37407
  return i.key;
37152
37408
  }) || [];
@@ -37173,7 +37429,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37173
37429
  selectProps: _objectSpread2({
37174
37430
  style: styleCommon,
37175
37431
  placeholder: '请选择品牌'
37176
- }, dataInputBusinessType === 12 ? {
37432
+ }, isMultiInputType ? {
37177
37433
  mode: 'multiple',
37178
37434
  maxTagCount: 1
37179
37435
  } : {}),
@@ -37184,7 +37440,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37184
37440
  filterInit: 'qp-brandCode-in'
37185
37441
  },
37186
37442
  onChange: function onChange(value) {
37187
- if (dataInputBusinessType === 12) {
37443
+ if (isMultiInputType) {
37188
37444
  values[0] = value.map(function (i) {
37189
37445
  return i.key;
37190
37446
  });
@@ -37205,7 +37461,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37205
37461
  selectProps: _objectSpread2({
37206
37462
  style: styleCommon,
37207
37463
  placeholder: '请选择品牌'
37208
- }, dataInputBusinessType === 12 ? {
37464
+ }, isMultiInputType ? {
37209
37465
  mode: 'multiple',
37210
37466
  maxTagCount: 1
37211
37467
  } : {}),
@@ -37216,7 +37472,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37216
37472
  filterInit: 'qp-brandCode-in'
37217
37473
  },
37218
37474
  onChange: function onChange(value) {
37219
- if (dataInputBusinessType === 12) {
37475
+ if (isMultiInputType) {
37220
37476
  values[1] = value.map(function (i) {
37221
37477
  return i.key;
37222
37478
  });
@@ -37235,7 +37491,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37235
37491
  }));
37236
37492
  } else {
37237
37493
  var _values11;
37238
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
37494
+ var _currentValue10 = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
37239
37495
  return {
37240
37496
  key: s,
37241
37497
  label: valueNames[vIndex],
@@ -37251,7 +37507,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37251
37507
  selectProps: _objectSpread2({
37252
37508
  style: styleCommon,
37253
37509
  placeholder: '请选择品牌'
37254
- }, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
37510
+ }, isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1 ? {
37255
37511
  mode: 'multiple',
37256
37512
  maxTagCount: 1
37257
37513
  } : {}),
@@ -37262,7 +37518,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37262
37518
  filterInit: 'qp-brandCode-in'
37263
37519
  },
37264
37520
  onChange: function onChange(value) {
37265
- if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
37521
+ if (isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1) {
37266
37522
  values = value.map(function (i) {
37267
37523
  return i.key;
37268
37524
  }) || [];
@@ -37284,15 +37540,16 @@ var RuleField = /*#__PURE__*/function (_Component) {
37284
37540
  // 类目选择器
37285
37541
  if (dataChoiceBusinessType == 420) {
37286
37542
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
37543
+ var _values$0$, _values$, _values$1$, _values$2;
37287
37544
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
37288
37545
  disabled: disabled,
37289
- treeCheckable: dataInputBusinessType === 12,
37546
+ treeCheckable: isMultiInputType,
37290
37547
  businessType: "background-category",
37291
37548
  labelInValue: true,
37292
- value: values[0],
37549
+ value: isMultiInputType ? values[0] : (_values$0$ = (_values$ = values[0]) === null || _values$ === void 0 ? void 0 : _values$[0]) !== null && _values$0$ !== void 0 ? _values$0$ : values[0],
37293
37550
  style: styleCommon,
37294
37551
  onChange: function onChange(value) {
37295
- if (dataInputBusinessType === 12) {
37552
+ if (isMultiInputType) {
37296
37553
  values[0] = value.map(function (i) {
37297
37554
  return i.key;
37298
37555
  });
@@ -37310,13 +37567,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
37310
37567
  }
37311
37568
  }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
37312
37569
  disabled: disabled,
37313
- treeCheckable: dataInputBusinessType === 12,
37570
+ treeCheckable: isMultiInputType,
37314
37571
  businessType: "background-category",
37315
37572
  labelInValue: true,
37316
- value: values[0],
37573
+ value: isMultiInputType ? values[1] : (_values$1$ = (_values$2 = values[1]) === null || _values$2 === void 0 ? void 0 : _values$2[0]) !== null && _values$1$ !== void 0 ? _values$1$ : values[1],
37317
37574
  style: styleCommon,
37318
37575
  onChange: function onChange(value) {
37319
- if (dataInputBusinessType === 12) {
37576
+ if (isMultiInputType) {
37320
37577
  values[1] = value.map(function (i) {
37321
37578
  return i.key;
37322
37579
  });
@@ -37334,15 +37591,28 @@ var RuleField = /*#__PURE__*/function (_Component) {
37334
37591
  }
37335
37592
  }));
37336
37593
  } else {
37594
+ var _values12;
37595
+ var isMulti = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1;
37596
+ var _currentValue11 = isMulti ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
37597
+ return {
37598
+ key: s,
37599
+ label: valueNames[vIndex],
37600
+ value: s
37601
+ };
37602
+ })) || [] : values[0] && {
37603
+ key: values[0],
37604
+ label: valueNames[0],
37605
+ value: values[0]
37606
+ } || {};
37337
37607
  return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
37338
37608
  disabled: disabled,
37339
- treeCheckable: dataInputBusinessType === 12,
37609
+ treeCheckable: isMulti,
37340
37610
  businessType: "background-category",
37341
37611
  labelInValue: true,
37342
- value: values[0],
37612
+ value: _currentValue11,
37343
37613
  style: styleCommon,
37344
37614
  onChange: function onChange(value) {
37345
- if (dataInputBusinessType === 12) {
37615
+ if (isMulti) {
37346
37616
  values = value.map(function (i) {
37347
37617
  return i.key;
37348
37618
  }) || [];
@@ -37368,7 +37638,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37368
37638
  selectProps: _objectSpread2(_objectSpread2({
37369
37639
  style: styleCommon,
37370
37640
  placeholder: '请选择'
37371
- }, dataInputBusinessType === 12 ? {
37641
+ }, isMultiInputType ? {
37372
37642
  mode: 'multiple',
37373
37643
  maxTagCount: 1,
37374
37644
  multipleForQuery: true
@@ -37385,7 +37655,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37385
37655
  disabled: disabled,
37386
37656
  value: values[0],
37387
37657
  onChange: function onChange(value, sourceList) {
37388
- if (dataInputBusinessType === 12) {
37658
+ if (isMultiInputType) {
37389
37659
  var _value$map, _sourceList$filter;
37390
37660
  values[0] = (value === null || value === void 0 ? void 0 : (_value$map = value.map) === null || _value$map === void 0 ? void 0 : _value$map.call(value, function (i) {
37391
37661
  return i;
@@ -37409,7 +37679,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37409
37679
  selectProps: _objectSpread2(_objectSpread2({
37410
37680
  style: styleCommon,
37411
37681
  placeholder: '请选择'
37412
- }, dataInputBusinessType === 12 ? {
37682
+ }, isMultiInputType ? {
37413
37683
  mode: 'multiple',
37414
37684
  maxTagCount: 1,
37415
37685
  multipleForQuery: true
@@ -37426,7 +37696,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37426
37696
  disabled: disabled,
37427
37697
  value: values[1],
37428
37698
  onChange: function onChange(value, sourceList) {
37429
- if (dataInputBusinessType === 12) {
37699
+ if (isMultiInputType) {
37430
37700
  var _value$map2, _sourceList$filter2;
37431
37701
  values[1] = (value === null || value === void 0 ? void 0 : (_value$map2 = value.map) === null || _value$map2 === void 0 ? void 0 : _value$map2.call(value, function (i) {
37432
37702
  return i;
@@ -37448,8 +37718,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
37448
37718
  }
37449
37719
  }));
37450
37720
  } else {
37451
- var _values12;
37452
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
37721
+ var _values13;
37722
+ var _currentValue12 = isMultiInputType ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
37453
37723
  return {
37454
37724
  key: s,
37455
37725
  label: valueNames[vIndex]
@@ -37462,7 +37732,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
37462
37732
  selectProps: _objectSpread2(_objectSpread2({
37463
37733
  style: styleCommon,
37464
37734
  placeholder: '请选择'
37465
- }, dataInputBusinessType === 12 ? {
37735
+ }, isMultiInputType ? {
37466
37736
  mode: 'multiple',
37467
37737
  maxTagCount: 1,
37468
37738
  multipleForQuery: true
@@ -37477,9 +37747,9 @@ var RuleField = /*#__PURE__*/function (_Component) {
37477
37747
  isSearchForm: true,
37478
37748
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
37479
37749
  disabled: disabled,
37480
- value: _currentValue11,
37750
+ value: _currentValue12,
37481
37751
  onChange: function onChange(value, sourceList) {
37482
- if (dataInputBusinessType === 12) {
37752
+ if (isMultiInputType) {
37483
37753
  var _value$map3, _sourceList$filter3;
37484
37754
  values = (value === null || value === void 0 ? void 0 : (_value$map3 = value.map) === null || _value$map3 === void 0 ? void 0 : _value$map3.call(value, function (i) {
37485
37755
  return i;
@@ -41658,14 +41928,14 @@ var PathDisplay = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
41658
41928
  var css_248z$z = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
41659
41929
  styleInject(css_248z$z);
41660
41930
 
41661
- var _excluded$m = ["titleExtra", "header", "showArrow"];
41931
+ var _excluded$n = ["titleExtra", "header", "showArrow"];
41662
41932
  var Panel = Collapse.Panel;
41663
41933
  var ExtendedPanel = function ExtendedPanel(_ref) {
41664
41934
  var titleExtra = _ref.titleExtra,
41665
41935
  header = _ref.header,
41666
41936
  _ref$showArrow = _ref.showArrow,
41667
41937
  showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
41668
- props = _objectWithoutProperties(_ref, _excluded$m);
41938
+ props = _objectWithoutProperties(_ref, _excluded$n);
41669
41939
  var renderHeader = function renderHeader() {
41670
41940
  return /*#__PURE__*/React$1.createElement(Space, {
41671
41941
  align: "center"
@@ -41689,11 +41959,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
41689
41959
  }), props.children);
41690
41960
  };
41691
41961
 
41692
- var _excluded$n = ["children", "bordered"];
41962
+ var _excluded$o = ["children", "bordered"];
41693
41963
  var ExtendedCollapse = function ExtendedCollapse(props) {
41694
41964
  var children = props.children,
41695
41965
  bordered = props.bordered,
41696
- restProps = _objectWithoutProperties(props, _excluded$n);
41966
+ restProps = _objectWithoutProperties(props, _excluded$o);
41697
41967
  return /*#__PURE__*/React$1.createElement("div", {
41698
41968
  className: classNames({
41699
41969
  'bs-collapse-wrap': true,