@bit-sun/business-component 4.2.1-alpha.7-longya → 4.2.1-alpha.8
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/.claude/settings.local.json +8 -0
- package/dist/components/Functional/SearchSelect/pagination.d.ts +3 -3
- package/dist/index.esm.js +416 -953
- package/dist/index.js +415 -952
- package/docs/error-record.md +0 -9
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +8 -124
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +12 -106
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +1 -1
- package/src/components/Functional/AddSelect/helps.ts +0 -2
- package/src/components/Functional/AddSelect/index.less +0 -17
- package/src/components/Functional/AddSelect/index.tsx +9 -66
- package/src/components/Functional/SearchSelect/index.less +0 -16
- package/src/components/Functional/SearchSelect/index.md +2 -0
- package/src/components/Functional/SearchSelect/index.tsx +65 -77
- package/src/components/Functional/SearchSelect/pagination.ts +4 -4
- package/src/components/Solution/RuleComponent/ruleFiled.js +155 -176
- package/dist/components/Functional/QueryAutoComplete/buildOptions.d.ts +0 -3
- package/dist/components/Functional/QueryAutoComplete/buildOptions.test.d.ts +0 -1
- package/dist/components/Functional/QueryAutoComplete/index.d.ts +0 -23
- package/dist/components/Functional/SearchSelect/currentPageFilter.d.ts +0 -41
- package/docs/superpowers/plans/2026-10-12-IKJX29-sku-name-autocomplete.md +0 -489
- package/docs/superpowers/specs/2026-10-12-IKJX29-sku-name-autocomplete-design.md +0 -115
- package/src/components/Functional/QueryAutoComplete/buildOptions.test.ts +0 -22
- package/src/components/Functional/QueryAutoComplete/buildOptions.ts +0 -17
- package/src/components/Functional/QueryAutoComplete/index.tsx +0 -140
- package/src/components/Functional/SearchSelect/currentPageFilter.ts +0 -135
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
|
-
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin,
|
|
4
|
+
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse, Descriptions, Steps, Progress } from 'antd';
|
|
5
5
|
import _, { omit, uniqBy, escapeRegExp, isNil, cloneDeep, isEmpty, isBoolean, debounce, throttle } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
@@ -89,54 +89,6 @@ function _createClass(e, r, t) {
|
|
|
89
89
|
writable: !1
|
|
90
90
|
}), e;
|
|
91
91
|
}
|
|
92
|
-
function _createForOfIteratorHelper(r, e) {
|
|
93
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
94
|
-
if (!t) {
|
|
95
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
96
|
-
t && (r = t);
|
|
97
|
-
var n = 0,
|
|
98
|
-
F = function () {};
|
|
99
|
-
return {
|
|
100
|
-
s: F,
|
|
101
|
-
n: function () {
|
|
102
|
-
return n >= r.length ? {
|
|
103
|
-
done: !0
|
|
104
|
-
} : {
|
|
105
|
-
done: !1,
|
|
106
|
-
value: r[n++]
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
e: function (r) {
|
|
110
|
-
throw r;
|
|
111
|
-
},
|
|
112
|
-
f: F
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
|
-
}
|
|
117
|
-
var o,
|
|
118
|
-
a = !0,
|
|
119
|
-
u = !1;
|
|
120
|
-
return {
|
|
121
|
-
s: function () {
|
|
122
|
-
t = t.call(r);
|
|
123
|
-
},
|
|
124
|
-
n: function () {
|
|
125
|
-
var r = t.next();
|
|
126
|
-
return a = r.done, r;
|
|
127
|
-
},
|
|
128
|
-
e: function (r) {
|
|
129
|
-
u = !0, o = r;
|
|
130
|
-
},
|
|
131
|
-
f: function () {
|
|
132
|
-
try {
|
|
133
|
-
a || null == t.return || t.return();
|
|
134
|
-
} finally {
|
|
135
|
-
if (u) throw o;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
92
|
function _defineProperty(e, r, t) {
|
|
141
93
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
142
94
|
value: t,
|
|
@@ -4898,14 +4850,14 @@ function ToCDB$1(selectStr) {
|
|
|
4898
4850
|
return tmp;
|
|
4899
4851
|
}
|
|
4900
4852
|
|
|
4901
|
-
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";
|
|
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";
|
|
4902
4854
|
styleInject(css_248z$6);
|
|
4903
4855
|
|
|
4904
|
-
var SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE =
|
|
4905
|
-
var SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS = [10, 20, 50, 100,
|
|
4856
|
+
var SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 100;
|
|
4857
|
+
var SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS = [10, 20, 50, 100, 500, 1000];
|
|
4906
4858
|
var SEARCH_SELECT_MODAL_PAGE_SIZE_CACHE_KEY = 'businessComponentSearchSelectPageSize';
|
|
4907
4859
|
/**
|
|
4908
|
-
*
|
|
4860
|
+
* 规范化选择器弹窗分页大小,缓存异常时统一回退到每页 100 条。
|
|
4909
4861
|
*
|
|
4910
4862
|
* @param pageSize 待校验的分页大小
|
|
4911
4863
|
* @returns 合法的分页大小
|
|
@@ -4917,7 +4869,7 @@ var normalizeSearchSelectModalPageSize = function normalizeSearchSelectModalPage
|
|
|
4917
4869
|
/**
|
|
4918
4870
|
* 读取所有选择器弹窗共用的分页大小。
|
|
4919
4871
|
*
|
|
4920
|
-
* @returns
|
|
4872
|
+
* @returns 缓存中的分页大小,无有效缓存时返回每页 100 条
|
|
4921
4873
|
*/
|
|
4922
4874
|
var getSearchSelectModalPageSize = function getSearchSelectModalPageSize() {
|
|
4923
4875
|
if (typeof window === 'undefined') {
|
|
@@ -5409,241 +5361,6 @@ var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
|
5409
5361
|
}));
|
|
5410
5362
|
};
|
|
5411
5363
|
|
|
5412
|
-
var _excluded$5 = ["currentPageFilter", "children"];
|
|
5413
|
-
/**
|
|
5414
|
-
* SKU 选择弹框「当前页列筛选」默认字段(合并 BusinessSearchSelect / AddSkuSelect 命名)。
|
|
5415
|
-
* Functional 层按 dataIndex 命中自动开启,业务列不必再散标 currentPageFilter。
|
|
5416
|
-
*/
|
|
5417
|
-
var SKU_CURRENT_PAGE_FILTER_DATA_INDEXES = ['skuCode', 'skuName', 'name', 'itemName', 'itemCode', 'styleCode', 'pinCode', 'longyaStyleCode', 'longyaPinCode', 'colorName', 'sizeName'];
|
|
5418
|
-
/**
|
|
5419
|
-
* 按 dataIndex 白名单为表格列打上 currentPageFilter。
|
|
5420
|
-
*
|
|
5421
|
-
* @param columns 原始表格列
|
|
5422
|
-
* @param dataIndexes 需要开启当前页筛选的字段
|
|
5423
|
-
* @returns 已标记的表格列
|
|
5424
|
-
*/
|
|
5425
|
-
var markCurrentPageFilterByDataIndex = function markCurrentPageFilterByDataIndex() {
|
|
5426
|
-
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5427
|
-
var dataIndexes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SKU_CURRENT_PAGE_FILTER_DATA_INDEXES;
|
|
5428
|
-
return columns.map(function (column) {
|
|
5429
|
-
return dataIndexes.includes(column === null || column === void 0 ? void 0 : column.dataIndex) ? _objectSpread2(_objectSpread2({}, column), {}, {
|
|
5430
|
-
currentPageFilter: true,
|
|
5431
|
-
width: column.width || 140
|
|
5432
|
-
}) : column;
|
|
5433
|
-
});
|
|
5434
|
-
};
|
|
5435
|
-
/**
|
|
5436
|
-
* 从当前页数据中提取指定字段的筛选项,过滤空值后按名称去重、排序。
|
|
5437
|
-
*
|
|
5438
|
-
* @param dataSource 当前页表格数据
|
|
5439
|
-
* @param dataIndex 作为筛选值的数据字段
|
|
5440
|
-
* @returns 当前页可用的筛选项
|
|
5441
|
-
*/
|
|
5442
|
-
var getCurrentPageFilterOptions = function getCurrentPageFilterOptions() {
|
|
5443
|
-
var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5444
|
-
var dataIndex = arguments.length > 1 ? arguments[1] : undefined;
|
|
5445
|
-
if (!dataIndex) {
|
|
5446
|
-
return [];
|
|
5447
|
-
}
|
|
5448
|
-
var optionMap = new Map();
|
|
5449
|
-
dataSource.forEach(function (record) {
|
|
5450
|
-
var rawValue = record === null || record === void 0 ? void 0 : record[dataIndex];
|
|
5451
|
-
if (rawValue === null || rawValue === undefined) {
|
|
5452
|
-
return;
|
|
5453
|
-
}
|
|
5454
|
-
var value = String(rawValue).trim();
|
|
5455
|
-
if (!value || optionMap.has(value)) {
|
|
5456
|
-
return;
|
|
5457
|
-
}
|
|
5458
|
-
optionMap.set(value, {
|
|
5459
|
-
text: value,
|
|
5460
|
-
value: value
|
|
5461
|
-
});
|
|
5462
|
-
});
|
|
5463
|
-
return Array.from(optionMap.values()).sort(function (left, right) {
|
|
5464
|
-
return left.text.localeCompare(right.text, 'zh-CN', {
|
|
5465
|
-
numeric: true
|
|
5466
|
-
});
|
|
5467
|
-
});
|
|
5468
|
-
};
|
|
5469
|
-
/**
|
|
5470
|
-
* 为声明了 currentPageFilter 的表格列注入当前页筛选能力。
|
|
5471
|
-
*
|
|
5472
|
-
* @param columns 原始表格列
|
|
5473
|
-
* @param dataSource 当前页表格数据
|
|
5474
|
-
* @param filteredValues 当前已选筛选值
|
|
5475
|
-
* @param enabled 是否启用筛选;已选结果表仅移除内部配置,不启用筛选
|
|
5476
|
-
* @returns 可直接传给 Ant Design Table 的表格列
|
|
5477
|
-
*/
|
|
5478
|
-
var _buildCurrentPageFilterColumns = function buildCurrentPageFilterColumns() {
|
|
5479
|
-
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5480
|
-
var dataSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
5481
|
-
var filteredValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
5482
|
-
var enabled = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
5483
|
-
return columns.map(function (column) {
|
|
5484
|
-
var currentPageFilter = column.currentPageFilter,
|
|
5485
|
-
children = column.children,
|
|
5486
|
-
columnProps = _objectWithoutProperties(column, _excluded$5);
|
|
5487
|
-
var nextColumn = _objectSpread2(_objectSpread2({}, columnProps), (children === null || children === void 0 ? void 0 : children.length) ? {
|
|
5488
|
-
children: _buildCurrentPageFilterColumns(children, dataSource, filteredValues, enabled)
|
|
5489
|
-
} : {});
|
|
5490
|
-
if (!currentPageFilter || !enabled || !column.dataIndex) {
|
|
5491
|
-
return nextColumn;
|
|
5492
|
-
}
|
|
5493
|
-
var dataIndex = column.dataIndex;
|
|
5494
|
-
var currentPageFilterClassName = [columnProps.className, 'search_select_current_page_filter_column'].filter(Boolean).join(' ');
|
|
5495
|
-
return _objectSpread2(_objectSpread2({}, nextColumn), {}, {
|
|
5496
|
-
width: columnProps.width || 140,
|
|
5497
|
-
className: currentPageFilterClassName,
|
|
5498
|
-
filters: getCurrentPageFilterOptions(dataSource, dataIndex),
|
|
5499
|
-
filterSearch: true,
|
|
5500
|
-
filteredValue: filteredValues[dataIndex] || null,
|
|
5501
|
-
onFilter: function onFilter(filterValue, record) {
|
|
5502
|
-
var _record$dataIndex;
|
|
5503
|
-
return String((_record$dataIndex = record === null || record === void 0 ? void 0 : record[dataIndex]) !== null && _record$dataIndex !== void 0 ? _record$dataIndex : '') === String(filterValue);
|
|
5504
|
-
}
|
|
5505
|
-
});
|
|
5506
|
-
});
|
|
5507
|
-
};
|
|
5508
|
-
|
|
5509
|
-
function buildAutoCompleteOptions(list) {
|
|
5510
|
-
var mappingTextField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'name';
|
|
5511
|
-
if (!Array.isArray(list)) return [];
|
|
5512
|
-
var seen = new Set();
|
|
5513
|
-
var options = [];
|
|
5514
|
-
var _iterator = _createForOfIteratorHelper(list),
|
|
5515
|
-
_step;
|
|
5516
|
-
try {
|
|
5517
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5518
|
-
var item = _step.value;
|
|
5519
|
-
var text = item === null || item === void 0 ? void 0 : item[mappingTextField];
|
|
5520
|
-
if (text == null) continue;
|
|
5521
|
-
var value = String(text).trim();
|
|
5522
|
-
if (!value || seen.has(value)) continue;
|
|
5523
|
-
seen.add(value);
|
|
5524
|
-
options.push({
|
|
5525
|
-
value: value
|
|
5526
|
-
});
|
|
5527
|
-
}
|
|
5528
|
-
} catch (err) {
|
|
5529
|
-
_iterator.e(err);
|
|
5530
|
-
} finally {
|
|
5531
|
-
_iterator.f();
|
|
5532
|
-
}
|
|
5533
|
-
return options;
|
|
5534
|
-
}
|
|
5535
|
-
|
|
5536
|
-
var QueryAutoComplete = function QueryAutoComplete(_ref) {
|
|
5537
|
-
var value = _ref.value,
|
|
5538
|
-
_onChange = _ref.onChange,
|
|
5539
|
-
_onPressEnter = _ref.onPressEnter,
|
|
5540
|
-
requestConfig = _ref.requestConfig,
|
|
5541
|
-
_ref$placeholder = _ref.placeholder,
|
|
5542
|
-
placeholder = _ref$placeholder === void 0 ? '请输入' : _ref$placeholder,
|
|
5543
|
-
_ref$allowClear = _ref.allowClear,
|
|
5544
|
-
allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,
|
|
5545
|
-
style = _ref.style,
|
|
5546
|
-
disabled = _ref.disabled;
|
|
5547
|
-
var _ref2 = requestConfig || {},
|
|
5548
|
-
url = _ref2.url,
|
|
5549
|
-
_ref2$method = _ref2.method,
|
|
5550
|
-
method = _ref2$method === void 0 ? 'get' : _ref2$method,
|
|
5551
|
-
_ref2$otherParams = _ref2.otherParams,
|
|
5552
|
-
otherParams = _ref2$otherParams === void 0 ? {} : _ref2$otherParams,
|
|
5553
|
-
_ref2$mappingTextFiel = _ref2.mappingTextField,
|
|
5554
|
-
mappingTextField = _ref2$mappingTextFiel === void 0 ? 'name' : _ref2$mappingTextFiel,
|
|
5555
|
-
_ref2$pageSize = _ref2.pageSize,
|
|
5556
|
-
pageSize = _ref2$pageSize === void 0 ? 50 : _ref2$pageSize,
|
|
5557
|
-
_ref2$debounceWait = _ref2.debounceWait,
|
|
5558
|
-
debounceWait = _ref2$debounceWait === void 0 ? 300 : _ref2$debounceWait,
|
|
5559
|
-
_ref2$likeParamName = _ref2.likeParamName,
|
|
5560
|
-
likeParamName = _ref2$likeParamName === void 0 ? 'qp-skuName-like' : _ref2$likeParamName;
|
|
5561
|
-
var _useState = useState([]),
|
|
5562
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
5563
|
-
options = _useState2[0],
|
|
5564
|
-
setOptions = _useState2[1];
|
|
5565
|
-
var seqRef = useRef(0);
|
|
5566
|
-
var mountedRef = useRef(true);
|
|
5567
|
-
useEffect(function () {
|
|
5568
|
-
mountedRef.current = true;
|
|
5569
|
-
return function () {
|
|
5570
|
-
mountedRef.current = false;
|
|
5571
|
-
seqRef.current += 1;
|
|
5572
|
-
};
|
|
5573
|
-
}, []);
|
|
5574
|
-
var fetchSuggest = function fetchSuggest(keyword) {
|
|
5575
|
-
var trimmed = (keyword || '').trim();
|
|
5576
|
-
if (!url || !trimmed) {
|
|
5577
|
-
setOptions([]);
|
|
5578
|
-
return;
|
|
5579
|
-
}
|
|
5580
|
-
var seq = ++seqRef.current;
|
|
5581
|
-
var queryParams = _objectSpread2(_objectSpread2({
|
|
5582
|
-
pageSize: pageSize,
|
|
5583
|
-
currentPage: 1
|
|
5584
|
-
}, otherParams), {}, _defineProperty({}, likeParamName, trimmed));
|
|
5585
|
-
var qs = stringify(queryParams);
|
|
5586
|
-
var fullUrl = "".concat(url).concat(url.includes('?') ? '&' : '?').concat(qs);
|
|
5587
|
-
var methodName = String(method).toLowerCase();
|
|
5588
|
-
var pending = ['post', 'patch', 'put'].includes(methodName) ?
|
|
5589
|
-
// 与 SearchSelect 弹窗列表一致:参数在 query,body 为空
|
|
5590
|
-
requestUtil[methodName](fullUrl, null) : requestUtil.get(fullUrl);
|
|
5591
|
-
pending.then(function (result) {
|
|
5592
|
-
if (!mountedRef.current || seq !== seqRef.current) return;
|
|
5593
|
-
var body = result === null || result === void 0 ? void 0 : result.data;
|
|
5594
|
-
if (judgeIsRequestError(body)) {
|
|
5595
|
-
setOptions([]);
|
|
5596
|
-
return;
|
|
5597
|
-
}
|
|
5598
|
-
var res = body === null || body === void 0 ? void 0 : body.data;
|
|
5599
|
-
var list = (res === null || res === void 0 ? void 0 : res.list) || (res === null || res === void 0 ? void 0 : res.items) || (Array.isArray(res) ? res : []);
|
|
5600
|
-
// sku 名称:列表列用 skuName,pager 用 name;其它字段(如 itemName)不做跨字段回退
|
|
5601
|
-
var primary = buildAutoCompleteOptions(list, mappingTextField);
|
|
5602
|
-
if (primary.length) {
|
|
5603
|
-
setOptions(primary);
|
|
5604
|
-
return;
|
|
5605
|
-
}
|
|
5606
|
-
if (mappingTextField === 'skuName' || mappingTextField === 'name') {
|
|
5607
|
-
var fallbackField = mappingTextField === 'skuName' ? 'name' : 'skuName';
|
|
5608
|
-
setOptions(buildAutoCompleteOptions(list, fallbackField));
|
|
5609
|
-
return;
|
|
5610
|
-
}
|
|
5611
|
-
setOptions([]);
|
|
5612
|
-
}).catch(function () {
|
|
5613
|
-
if (!mountedRef.current || seq !== seqRef.current) return;
|
|
5614
|
-
setOptions([]);
|
|
5615
|
-
});
|
|
5616
|
-
};
|
|
5617
|
-
var _useDebounceFn = useDebounceFn(fetchSuggest, {
|
|
5618
|
-
wait: debounceWait
|
|
5619
|
-
}),
|
|
5620
|
-
debouncedFetch = _useDebounceFn.run;
|
|
5621
|
-
return /*#__PURE__*/React$1.createElement(AutoComplete, {
|
|
5622
|
-
value: value,
|
|
5623
|
-
options: options,
|
|
5624
|
-
onSearch: function onSearch(text) {
|
|
5625
|
-
debouncedFetch(text);
|
|
5626
|
-
},
|
|
5627
|
-
onSelect: function onSelect(text) {
|
|
5628
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(String(text !== null && text !== void 0 ? text : ''));
|
|
5629
|
-
},
|
|
5630
|
-
onChange: function onChange(next) {
|
|
5631
|
-
return _onChange === null || _onChange === void 0 ? void 0 : _onChange(next !== null && next !== void 0 ? next : '');
|
|
5632
|
-
},
|
|
5633
|
-
disabled: disabled,
|
|
5634
|
-
style: _objectSpread2({
|
|
5635
|
-
width: '100%'
|
|
5636
|
-
}, style)
|
|
5637
|
-
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
5638
|
-
allowClear: allowClear,
|
|
5639
|
-
disabled: disabled,
|
|
5640
|
-
placeholder: placeholder,
|
|
5641
|
-
onPressEnter: function onPressEnter() {
|
|
5642
|
-
return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
|
|
5643
|
-
}
|
|
5644
|
-
}));
|
|
5645
|
-
};
|
|
5646
|
-
|
|
5647
5364
|
var Option$1 = Select.Option;
|
|
5648
5365
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5649
5366
|
var _pathname$match;
|
|
@@ -5685,6 +5402,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5685
5402
|
mappingTextShowKeyField = _ref.mappingTextShowKeyField,
|
|
5686
5403
|
_ref$mappingValueFiel = _ref.mappingValueField,
|
|
5687
5404
|
mappingValueField = _ref$mappingValueFiel === void 0 ? 'code' : _ref$mappingValueFiel,
|
|
5405
|
+
mappingOutputField = _ref.mappingOutputField,
|
|
5688
5406
|
mappingTextShowTextField = _ref.mappingTextShowTextField,
|
|
5689
5407
|
_ref$init = _ref.init,
|
|
5690
5408
|
init = _ref$init === void 0 ? false : _ref$init,
|
|
@@ -5711,6 +5429,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5711
5429
|
mappingTextField: mappingTextField,
|
|
5712
5430
|
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5713
5431
|
mappingValueField: mappingValueField,
|
|
5432
|
+
mappingOutputField: mappingOutputField,
|
|
5714
5433
|
mappingTextShowTextField: mappingTextShowTextField,
|
|
5715
5434
|
init: init,
|
|
5716
5435
|
extralHeaders: extralHeaders,
|
|
@@ -5774,42 +5493,77 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5774
5493
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5775
5494
|
items = _useState2[0],
|
|
5776
5495
|
setItems = _useState2[1];
|
|
5777
|
-
var
|
|
5496
|
+
var selectedRecordsRef = useRef([]);
|
|
5497
|
+
var _useState3 = useState(0),
|
|
5778
5498
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5779
|
-
|
|
5780
|
-
|
|
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
|
+
};
|
|
5781
5531
|
var _useState5 = useState(false),
|
|
5782
5532
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
var _useState7 = useState(
|
|
5533
|
+
selectOpen = _useState6[0],
|
|
5534
|
+
setSelectOpen = _useState6[1];
|
|
5535
|
+
var _useState7 = useState(false),
|
|
5786
5536
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
var _useState9 = useState(
|
|
5537
|
+
isMaxTagsOpen = _useState8[0],
|
|
5538
|
+
setIsMaxTagsOpen = _useState8[1];
|
|
5539
|
+
var _useState9 = useState(1),
|
|
5790
5540
|
_useState0 = _slicedToArray(_useState9, 2),
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
var _useState1 = useState(
|
|
5541
|
+
scrollPage = _useState0[0],
|
|
5542
|
+
setScrollPage = _useState0[1];
|
|
5543
|
+
var _useState1 = useState(0),
|
|
5794
5544
|
_useState10 = _slicedToArray(_useState1, 2),
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
var _useState11 = useState(
|
|
5545
|
+
itemsTotal = _useState10[0],
|
|
5546
|
+
setItemsTotal = _useState10[1];
|
|
5547
|
+
var _useState11 = useState(false),
|
|
5798
5548
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
var _useState13 = useState(
|
|
5549
|
+
fetching = _useState12[0],
|
|
5550
|
+
setFetching = _useState12[1];
|
|
5551
|
+
var _useState13 = useState(''),
|
|
5802
5552
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
var _useState15 = useState(
|
|
5553
|
+
searchValue = _useState14[0],
|
|
5554
|
+
setSearchValue = _useState14[1];
|
|
5555
|
+
var _useState15 = useState(false),
|
|
5806
5556
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
var _useState17 = useState(
|
|
5557
|
+
isModalVisible = _useState16[0],
|
|
5558
|
+
setIsModalVisible = _useState16[1];
|
|
5559
|
+
var _useState17 = useState(initVal),
|
|
5810
5560
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5811
|
-
|
|
5812
|
-
|
|
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];
|
|
5813
5567
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5814
5568
|
// 优化搜索参数 支持传多个
|
|
5815
5569
|
var searchParams = {};
|
|
@@ -5838,54 +5592,50 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5838
5592
|
var _Form$useForm = Form.useForm(),
|
|
5839
5593
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5840
5594
|
form = _Form$useForm2[0];
|
|
5841
|
-
var _useState19 = useState(true),
|
|
5842
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5843
|
-
collapsed = _useState20[0],
|
|
5844
|
-
setCollapsed = _useState20[1];
|
|
5845
5595
|
var _useState21 = useState(true),
|
|
5846
5596
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
var _useState23 = useState(
|
|
5597
|
+
collapsed = _useState22[0],
|
|
5598
|
+
setCollapsed = _useState22[1];
|
|
5599
|
+
var _useState23 = useState(true),
|
|
5850
5600
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
var _useState25 = useState(
|
|
5601
|
+
caretLeftFlag = _useState24[0],
|
|
5602
|
+
setCaretLeftFlag = _useState24[1];
|
|
5603
|
+
var _useState25 = useState([]),
|
|
5854
5604
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
var _useState27 = useState(
|
|
5605
|
+
tableData = _useState26[0],
|
|
5606
|
+
setTableData = _useState26[1];
|
|
5607
|
+
var _useState27 = useState(tableInitPagination),
|
|
5858
5608
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5859
|
-
|
|
5860
|
-
|
|
5609
|
+
tablePagination = _useState28[0],
|
|
5610
|
+
setTablePagination = _useState28[1];
|
|
5861
5611
|
var _useState29 = useState([]),
|
|
5862
5612
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
var _useState31 = useState(
|
|
5613
|
+
selectedRowKeys = _useState30[0],
|
|
5614
|
+
setSelectedRowKeys = _useState30[1];
|
|
5615
|
+
var _useState31 = useState([]),
|
|
5866
5616
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5867
|
-
|
|
5868
|
-
|
|
5617
|
+
selectedRows = _useState32[0],
|
|
5618
|
+
setSelectedRows = _useState32[1];
|
|
5869
5619
|
var _useState33 = useState(false),
|
|
5870
5620
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
var _useState35 = useState(
|
|
5621
|
+
checkedAll = _useState34[0],
|
|
5622
|
+
setCheckedAll = _useState34[1];
|
|
5623
|
+
var _useState35 = useState(false),
|
|
5874
5624
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
var _useState37 = useState(
|
|
5625
|
+
indeterminate = _useState36[0],
|
|
5626
|
+
setIndeterminate = _useState36[1];
|
|
5627
|
+
var _useState37 = useState({}),
|
|
5878
5628
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
var _useState39 = useState(
|
|
5629
|
+
tableFormParams = _useState38[0],
|
|
5630
|
+
setTableFormParams = _useState38[1];
|
|
5631
|
+
var _useState39 = useState(false),
|
|
5882
5632
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
var _useState41 = useState(
|
|
5633
|
+
tooltipVisible = _useState40[0],
|
|
5634
|
+
setTooltipVisible = _useState40[1];
|
|
5635
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5886
5636
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5887
|
-
|
|
5888
|
-
|
|
5637
|
+
tableShowColumns = _useState42[0],
|
|
5638
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5889
5639
|
var _useState43 = useState(false),
|
|
5890
5640
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5891
5641
|
confirmLoading = _useState44[0],
|
|
@@ -6019,7 +5769,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6019
5769
|
var source = convertResData(requestConfig, res, {
|
|
6020
5770
|
selectMode: selectMode,
|
|
6021
5771
|
labelInValue: labelInValue,
|
|
6022
|
-
value:
|
|
5772
|
+
value: getIdentityValue(),
|
|
6023
5773
|
type: type,
|
|
6024
5774
|
items: items,
|
|
6025
5775
|
queryParams: queryParams,
|
|
@@ -6033,7 +5783,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6033
5783
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
6034
5784
|
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
6035
5785
|
} else {
|
|
6036
|
-
setCurrentPageFilters({});
|
|
6037
5786
|
setTableData(source);
|
|
6038
5787
|
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
|
|
6039
5788
|
total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
|
|
@@ -6167,6 +5916,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6167
5916
|
current: 1
|
|
6168
5917
|
}));
|
|
6169
5918
|
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
|
+
}
|
|
6170
5930
|
// 回显
|
|
6171
5931
|
if (value) {
|
|
6172
5932
|
if (selectMode) {
|
|
@@ -6265,6 +6025,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6265
6025
|
}
|
|
6266
6026
|
};
|
|
6267
6027
|
var formaData = function formaData(value, source) {
|
|
6028
|
+
if (mappingOutputField) {
|
|
6029
|
+
selectedRecordsRef.current = value;
|
|
6030
|
+
refreshSelectedRecords(function (current) {
|
|
6031
|
+
return current + 1;
|
|
6032
|
+
});
|
|
6033
|
+
}
|
|
6268
6034
|
if (labelInValue) {
|
|
6269
6035
|
var getFromat = function getFromat(format, val) {
|
|
6270
6036
|
return format.map(function (_ref8) {
|
|
@@ -6275,24 +6041,24 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6275
6041
|
};
|
|
6276
6042
|
var formatResult = value.map(function (i) {
|
|
6277
6043
|
return Object.assign.apply(Object, [{
|
|
6278
|
-
key: i[mappingValueField] || i.key,
|
|
6044
|
+
key: i[mappingOutputField || mappingValueField] || i.key,
|
|
6279
6045
|
label: i[mappingTextField] || i.label,
|
|
6280
|
-
value: i[mappingValueField] || i.value
|
|
6046
|
+
value: i[mappingOutputField || mappingValueField] || i.value
|
|
6281
6047
|
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
6282
6048
|
});
|
|
6283
|
-
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
6049
|
+
onChange(selectMode ? mappingOutputField ? _.uniqBy(formatResult, 'value') : formatResult : formatResult[0], value, source);
|
|
6284
6050
|
} else {
|
|
6051
|
+
var _value$;
|
|
6285
6052
|
var _formatResult = selectMode ? value.map(function (i) {
|
|
6286
|
-
return i.value;
|
|
6287
|
-
}) : _.get(value[0], 'value');
|
|
6288
|
-
onChange(_formatResult, value, source);
|
|
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);
|
|
6289
6056
|
}
|
|
6290
6057
|
};
|
|
6291
6058
|
var clearModalTable = function clearModalTable() {
|
|
6292
6059
|
form.resetFields();
|
|
6293
6060
|
setTableFormParams({});
|
|
6294
6061
|
setTableData([]);
|
|
6295
|
-
setCurrentPageFilters({});
|
|
6296
6062
|
setTablePagination(tableInitPagination);
|
|
6297
6063
|
setSelectedRowKeys([]);
|
|
6298
6064
|
setSelectedRows([]);
|
|
@@ -6326,7 +6092,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6326
6092
|
var pageSize = normalizeSearchSelectModalPageSize(tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
|
|
6327
6093
|
setModalSearched(true);
|
|
6328
6094
|
setTableFormParams(params);
|
|
6329
|
-
setCurrentPageFilters({});
|
|
6330
6095
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
6331
6096
|
pageSize: pageSize,
|
|
6332
6097
|
currentPage: 1
|
|
@@ -6336,7 +6101,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6336
6101
|
var pageSize = normalizeSearchSelectModalPageSize(tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize);
|
|
6337
6102
|
form.resetFields();
|
|
6338
6103
|
setTableFormParams({});
|
|
6339
|
-
setCurrentPageFilters({});
|
|
6340
6104
|
getData({
|
|
6341
6105
|
pageSize: pageSize,
|
|
6342
6106
|
currentPage: 1
|
|
@@ -6345,14 +6109,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6345
6109
|
var toggleCollapsed = function toggleCollapsed() {
|
|
6346
6110
|
setCollapsed(!collapsed);
|
|
6347
6111
|
};
|
|
6348
|
-
var handleTableChange = function handleTableChange(pagination
|
|
6349
|
-
if ((extra === null || extra === void 0 ? void 0 : extra.action) === 'filter') {
|
|
6350
|
-
setCurrentPageFilters(filters || {});
|
|
6351
|
-
return;
|
|
6352
|
-
}
|
|
6112
|
+
var handleTableChange = function handleTableChange(pagination) {
|
|
6353
6113
|
var pageSize = normalizeSearchSelectModalPageSize(pagination.pageSize);
|
|
6354
6114
|
setSearchSelectModalPageSize(pageSize);
|
|
6355
|
-
setCurrentPageFilters({});
|
|
6356
6115
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
6357
6116
|
pageSize: pageSize,
|
|
6358
6117
|
currentPage: pagination.current
|
|
@@ -6439,7 +6198,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6439
6198
|
})) || [];
|
|
6440
6199
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6441
6200
|
return searchList.map(function (i, index) {
|
|
6442
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$
|
|
6201
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6443
6202
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6444
6203
|
span: ColSpan,
|
|
6445
6204
|
key: i
|
|
@@ -6551,21 +6310,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6551
6310
|
}
|
|
6552
6311
|
})));
|
|
6553
6312
|
}
|
|
6554
|
-
if ((i === null || i === void 0 ? void 0 :
|
|
6555
|
-
var _i$field10;
|
|
6556
|
-
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6557
|
-
span: ColSpan,
|
|
6558
|
-
key: i.name
|
|
6559
|
-
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6560
|
-
name: i.name,
|
|
6561
|
-
label: i.label,
|
|
6562
|
-
key: i.name
|
|
6563
|
-
}, /*#__PURE__*/React$1.createElement(QueryAutoComplete, _objectSpread2({
|
|
6564
|
-
onPressEnter: onSearchTable,
|
|
6565
|
-
disabled: setDisabled(i.name)
|
|
6566
|
-
}, (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.props) || {}))));
|
|
6567
|
-
}
|
|
6568
|
-
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6313
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6569
6314
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6570
6315
|
span: ColSpan,
|
|
6571
6316
|
key: i.name
|
|
@@ -6575,8 +6320,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6575
6320
|
key: i.name
|
|
6576
6321
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6577
6322
|
}
|
|
6578
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6579
|
-
var _i$
|
|
6323
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6324
|
+
var _i$field11;
|
|
6580
6325
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6581
6326
|
span: ColSpan,
|
|
6582
6327
|
key: i.name
|
|
@@ -6589,9 +6334,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6589
6334
|
width: '100%'
|
|
6590
6335
|
},
|
|
6591
6336
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6592
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6337
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6593
6338
|
}
|
|
6594
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6339
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6595
6340
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6596
6341
|
span: ColSpan,
|
|
6597
6342
|
key: i.name
|
|
@@ -6620,7 +6365,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6620
6365
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6621
6366
|
allowClear: true,
|
|
6622
6367
|
maxLength: 100
|
|
6623
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6368
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6624
6369
|
disabled: setDisabled(i.name)
|
|
6625
6370
|
}))));
|
|
6626
6371
|
});
|
|
@@ -6646,33 +6391,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6646
6391
|
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6647
6392
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6648
6393
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6649
|
-
var currentColumns = _buildCurrentPageFilterColumns(markCurrentPageFilterByDataIndex(tableShowColumns), tableList, currentPageFilters, type !== 'noPage');
|
|
6650
|
-
// 无 width 的列在固定 scroll.x 下会被挤没;先兜底宽度再按列宽求和
|
|
6651
|
-
var DEFAULT_COLUMN_WIDTH = 120;
|
|
6652
|
-
var columnsWithWidth = currentColumns.map(function (col) {
|
|
6653
|
-
if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'number' && col.width > 0) {
|
|
6654
|
-
return col;
|
|
6655
|
-
}
|
|
6656
|
-
if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'string') {
|
|
6657
|
-
var parsed = parseFloat(col.width);
|
|
6658
|
-
if (Number.isFinite(parsed) && parsed > 0) {
|
|
6659
|
-
return _objectSpread2(_objectSpread2({}, col), {}, {
|
|
6660
|
-
width: parsed
|
|
6661
|
-
});
|
|
6662
|
-
}
|
|
6663
|
-
}
|
|
6664
|
-
return _objectSpread2(_objectSpread2({}, col), {}, {
|
|
6665
|
-
width: DEFAULT_COLUMN_WIDTH
|
|
6666
|
-
});
|
|
6667
|
-
});
|
|
6668
|
-
var sumColumnScrollX = function sumColumnScrollX(columns) {
|
|
6669
|
-
var extraWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
6670
|
-
var sum = (columns || []).reduce(function (total, col) {
|
|
6671
|
-
return total + (Number(col === null || col === void 0 ? void 0 : col.width) || DEFAULT_COLUMN_WIDTH);
|
|
6672
|
-
}, extraWidth);
|
|
6673
|
-
return sum > extraWidth ? sum : undefined;
|
|
6674
|
-
};
|
|
6675
|
-
var tableScrollX = modalTableProps.overScrollX || sumColumnScrollX(columnsWithWidth, rowSelection ? 60 : 0) || true;
|
|
6676
6394
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6677
6395
|
style: {
|
|
6678
6396
|
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
@@ -6681,12 +6399,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6681
6399
|
bordered: true,
|
|
6682
6400
|
size: "middle",
|
|
6683
6401
|
rowSelection: rowSelection,
|
|
6684
|
-
columns:
|
|
6685
|
-
dataSource: tableList
|
|
6686
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
6687
|
-
var _modalTableProps$getF;
|
|
6688
|
-
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;
|
|
6689
|
-
}
|
|
6402
|
+
columns: tableShowColumns,
|
|
6403
|
+
dataSource: tableList
|
|
6690
6404
|
}, type == 'noPage' ? {
|
|
6691
6405
|
pagination: _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
6692
6406
|
showSizeChanger: false
|
|
@@ -6704,7 +6418,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6704
6418
|
}), {}, {
|
|
6705
6419
|
rowKey: mappingValueField,
|
|
6706
6420
|
scroll: {
|
|
6707
|
-
x:
|
|
6421
|
+
x: modalTableProps.overScrollX || 'max-content',
|
|
6708
6422
|
y: modalTableProps.overScrollY || oSY
|
|
6709
6423
|
},
|
|
6710
6424
|
onRow: function onRow(record) {
|
|
@@ -6753,7 +6467,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6753
6467
|
resetSelectDataSource(true);
|
|
6754
6468
|
};
|
|
6755
6469
|
var onDeselect = function onDeselect() {
|
|
6756
|
-
var oldSelect = formatSelectedValue(value);
|
|
6470
|
+
var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
|
|
6757
6471
|
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
6758
6472
|
var srs = oldSelect.filter(function (s) {
|
|
6759
6473
|
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
@@ -6778,7 +6492,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6778
6492
|
}
|
|
6779
6493
|
};
|
|
6780
6494
|
var renderTable = function renderTable(dataSource) {
|
|
6781
|
-
var currentSRKs = getCurrentSRKs(selectMode, labelInValue,
|
|
6495
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, getIdentityValue());
|
|
6782
6496
|
var renderSource = getRenderSource(currentSRKs, items);
|
|
6783
6497
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6784
6498
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
@@ -6792,7 +6506,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6792
6506
|
selectedRowKeys: currentSRKs,
|
|
6793
6507
|
preserveSelectedRowKeys: true,
|
|
6794
6508
|
onChange: function onChange(sks, srs) {
|
|
6795
|
-
var oldSelect = formatSelectedValue(value);
|
|
6509
|
+
var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
|
|
6796
6510
|
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
6797
6511
|
return item != undefined;
|
|
6798
6512
|
});
|
|
@@ -6811,7 +6525,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6811
6525
|
onClick: function onClick(event) {
|
|
6812
6526
|
event.stopPropagation();
|
|
6813
6527
|
event.nativeEvent.stopImmediatePropagation();
|
|
6814
|
-
var oldSelect = formatSelectedValue(value);
|
|
6528
|
+
var oldSelect = mappingOutputField ? getSelectedRecords() : formatSelectedValue(value);
|
|
6815
6529
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
6816
6530
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
6817
6531
|
onSelectClick(srs, dataSource, false);
|
|
@@ -6844,6 +6558,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6844
6558
|
}
|
|
6845
6559
|
})));
|
|
6846
6560
|
};
|
|
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
|
+
};
|
|
6847
6571
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6848
6572
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6849
6573
|
className: 'search_select'
|
|
@@ -6858,7 +6582,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6858
6582
|
viewShowValueStr: viewShowValueStr,
|
|
6859
6583
|
labelInValue: labelInValue,
|
|
6860
6584
|
selectMode: selectMode,
|
|
6861
|
-
value:
|
|
6585
|
+
value: getIdentityValue(),
|
|
6862
6586
|
items: items
|
|
6863
6587
|
}),
|
|
6864
6588
|
style: {
|
|
@@ -6871,14 +6595,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6871
6595
|
viewShowValueStr: viewShowValueStr,
|
|
6872
6596
|
labelInValue: labelInValue,
|
|
6873
6597
|
selectMode: selectMode,
|
|
6874
|
-
value:
|
|
6598
|
+
value: getIdentityValue(),
|
|
6875
6599
|
items: items
|
|
6876
6600
|
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6877
6601
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6878
6602
|
id: "search_select_div_".concat(uniqueValue)
|
|
6879
6603
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
6880
6604
|
labelInValue: labelInValue,
|
|
6881
|
-
value:
|
|
6605
|
+
value: getIdentityValue(),
|
|
6882
6606
|
onChange: onchange,
|
|
6883
6607
|
onClear: onClear,
|
|
6884
6608
|
onDeselect: onDeselect,
|
|
@@ -6910,8 +6634,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6910
6634
|
selectProps: {
|
|
6911
6635
|
labelInValue: labelInValue
|
|
6912
6636
|
},
|
|
6913
|
-
onChange: onChange,
|
|
6914
|
-
value:
|
|
6637
|
+
onChange: mappingOutputField ? onRemoveIdentityTag : onChange,
|
|
6638
|
+
value: getIdentityValue(),
|
|
6915
6639
|
setIsMaxTagsOpen: setIsMaxTagsOpen
|
|
6916
6640
|
});
|
|
6917
6641
|
},
|
|
@@ -7028,7 +6752,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7028
6752
|
})) : null)))));
|
|
7029
6753
|
});
|
|
7030
6754
|
|
|
7031
|
-
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 .
|
|
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";
|
|
7032
6756
|
styleInject(css_248z$8);
|
|
7033
6757
|
|
|
7034
6758
|
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";
|
|
@@ -7048,7 +6772,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
7048
6772
|
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";
|
|
7049
6773
|
styleInject(css_248z$9);
|
|
7050
6774
|
|
|
7051
|
-
var _excluded$
|
|
6775
|
+
var _excluded$5 = ["className", "style"];
|
|
7052
6776
|
var Search = Input.Search;
|
|
7053
6777
|
var DragHandle = SortableHandle(function () {
|
|
7054
6778
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -7400,7 +7124,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7400
7124
|
_this.DraggableBodyRow = function (_ref2) {
|
|
7401
7125
|
var className = _ref2.className,
|
|
7402
7126
|
style = _ref2.style,
|
|
7403
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7127
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
7404
7128
|
var sortDataSource = _this.state.sortDataSource;
|
|
7405
7129
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
7406
7130
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -7832,7 +7556,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
|
|
|
7832
7556
|
var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
|
|
7833
7557
|
var _reData$position;
|
|
7834
7558
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
|
|
7835
|
-
if (!Array.isArray(changeSearchForm) || !changeSearchForm[changePosition]) return;
|
|
7836
7559
|
var data = reData && ((_reData$position = reData[position]) === null || _reData$position === void 0 ? void 0 : _reData$position.data);
|
|
7837
7560
|
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) || [];
|
|
7838
7561
|
var formatData = (list === null || list === void 0 ? void 0 : list.length) ? list.map(function (v) {
|
|
@@ -7861,9 +7584,8 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7861
7584
|
};
|
|
7862
7585
|
};
|
|
7863
7586
|
var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
|
|
7864
|
-
var
|
|
7587
|
+
var _reData$position2;
|
|
7865
7588
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7866
|
-
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;
|
|
7867
7589
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7868
7590
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7869
7591
|
return _mapSearchTree(ites, resKeyValue);
|
|
@@ -7883,7 +7605,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7883
7605
|
});
|
|
7884
7606
|
};
|
|
7885
7607
|
|
|
7886
|
-
var _excluded$
|
|
7608
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7887
7609
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7888
7610
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7889
7611
|
return new Promise(function (resolve, reject) {
|
|
@@ -7903,7 +7625,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7903
7625
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7904
7626
|
var onResize = props.onResize,
|
|
7905
7627
|
width = props.width,
|
|
7906
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7628
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7907
7629
|
if (!width) {
|
|
7908
7630
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
7909
7631
|
}
|
|
@@ -7967,7 +7689,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7967
7689
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
7968
7690
|
var initVal = value || (selectMode ? [] : null);
|
|
7969
7691
|
var pageSize = 100; // 下拉框默认分页 条数
|
|
7970
|
-
var tableInitPageSize = (modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$topT = modalTableProps.topTablePagination) === null || _modalTableProps$topT === void 0 ? void 0 : _modalTableProps$topT.pageSize) ||
|
|
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; // 弹框默认分页 条数
|
|
7971
7693
|
var currentPage = 1;
|
|
7972
7694
|
var _useState = useState(false),
|
|
7973
7695
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8009,42 +7731,38 @@ var AddSelect = function AddSelect(props) {
|
|
|
8009
7731
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
8010
7732
|
tablePagination = _useState14[0],
|
|
8011
7733
|
setTablePagination = _useState14[1];
|
|
8012
|
-
var _useState15 = useState(
|
|
7734
|
+
var _useState15 = useState([]),
|
|
8013
7735
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
var _useState17 = useState(
|
|
7736
|
+
selectedRowKeys = _useState16[0],
|
|
7737
|
+
setSelectedRowKeys = _useState16[1];
|
|
7738
|
+
var _useState17 = useState({}),
|
|
8017
7739
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
var _useState19 = useState(
|
|
7740
|
+
tableFormParams = _useState18[0],
|
|
7741
|
+
setTableFormParams = _useState18[1];
|
|
7742
|
+
var _useState19 = useState(false),
|
|
8021
7743
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
8022
|
-
|
|
8023
|
-
|
|
7744
|
+
confirmLoading = _useState20[0],
|
|
7745
|
+
setConfirmLoading = _useState20[1];
|
|
8024
7746
|
var _useState21 = useState(false),
|
|
8025
7747
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
var _useState23 = useState(
|
|
7748
|
+
confirmContinueLoading = _useState22[0],
|
|
7749
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7750
|
+
var _useState23 = useState([]),
|
|
8029
7751
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
8030
|
-
|
|
8031
|
-
|
|
7752
|
+
selectColumns = _useState24[0],
|
|
7753
|
+
setSelectColumns = _useState24[1];
|
|
8032
7754
|
var _useState25 = useState([]),
|
|
8033
7755
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
8034
|
-
|
|
8035
|
-
|
|
7756
|
+
showColumns = _useState26[0],
|
|
7757
|
+
setShowColumns = _useState26[1];
|
|
8036
7758
|
var _useState27 = useState([]),
|
|
8037
7759
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
8038
|
-
|
|
8039
|
-
|
|
7760
|
+
tableColumns = _useState28[0],
|
|
7761
|
+
setTableColumns = _useState28[1];
|
|
8040
7762
|
var _useState29 = useState([]),
|
|
8041
7763
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
var _useState31 = useState([]),
|
|
8045
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
8046
|
-
showToChooseColumns = _useState32[0],
|
|
8047
|
-
setShowToChooseColumns = _useState32[1];
|
|
7764
|
+
showToChooseColumns = _useState30[0],
|
|
7765
|
+
setShowToChooseColumns = _useState30[1];
|
|
8048
7766
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
8049
7767
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
8050
7768
|
// FIXME: 特殊业务逻辑
|
|
@@ -8699,14 +8417,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
8699
8417
|
// 数据源 不可以有重复key
|
|
8700
8418
|
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
8701
8419
|
setTableData(source);
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
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)
|
|
8708
|
-
});
|
|
8709
|
-
});
|
|
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
|
+
}));
|
|
8710
8425
|
}).catch(function (err) {
|
|
8711
8426
|
setFetching(false);
|
|
8712
8427
|
});
|
|
@@ -8731,7 +8446,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
8731
8446
|
}, [sourceName]);
|
|
8732
8447
|
var showModal = function showModal() {
|
|
8733
8448
|
// getData({ pageSize: tableInitPageSize, currentPage: 1 }, 2)
|
|
8734
|
-
setCurrentPageFilters({});
|
|
8735
8449
|
setIsModalVisible(true);
|
|
8736
8450
|
// 回显
|
|
8737
8451
|
if (value) {
|
|
@@ -8820,7 +8534,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
8820
8534
|
var handleCancel = function handleCancel() {
|
|
8821
8535
|
form.resetFields();
|
|
8822
8536
|
setTableFormParams({});
|
|
8823
|
-
setCurrentPageFilters({});
|
|
8824
8537
|
setIsModalVisible(false);
|
|
8825
8538
|
setTableData([]);
|
|
8826
8539
|
onCancelCallback && onCancelCallback();
|
|
@@ -8831,38 +8544,27 @@ var AddSelect = function AddSelect(props) {
|
|
|
8831
8544
|
var onSearchTable = function onSearchTable() {
|
|
8832
8545
|
form.validateFields().then(function () {
|
|
8833
8546
|
var params = form.getFieldsValue();
|
|
8834
|
-
var currentTablePageSize = businessType === 'sku' ? Number((tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize) || tableInitPageSize) : tableInitPageSize;
|
|
8835
8547
|
setTableFormParams(params);
|
|
8836
|
-
setCurrentPageFilters({});
|
|
8837
8548
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
8838
|
-
pageSize:
|
|
8839
|
-
currentPage: 1
|
|
8549
|
+
pageSize: tableInitPageSize
|
|
8840
8550
|
}), 2);
|
|
8841
8551
|
});
|
|
8842
8552
|
};
|
|
8843
8553
|
var onResetTable = function onResetTable() {
|
|
8844
8554
|
form.resetFields();
|
|
8845
8555
|
setTableFormParams({});
|
|
8846
|
-
setCurrentPageFilters({});
|
|
8847
8556
|
form.validateFields().then(function () {
|
|
8848
|
-
var currentTablePageSize = businessType === 'sku' ? Number((tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize) || tableInitPageSize) : tableInitPageSize;
|
|
8849
8557
|
getData({
|
|
8850
|
-
pageSize:
|
|
8558
|
+
pageSize: tableInitPageSize,
|
|
8851
8559
|
currentPage: 1
|
|
8852
8560
|
}, 2);
|
|
8853
8561
|
}).catch(function () {
|
|
8854
8562
|
setTableData([]);
|
|
8855
8563
|
});
|
|
8856
8564
|
};
|
|
8857
|
-
var handleTableChange = function handleTableChange(pagination
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
return;
|
|
8861
|
-
}
|
|
8862
|
-
setCurrentPageFilters({});
|
|
8863
|
-
setTablePagination(function (previousPagination) {
|
|
8864
|
-
return _objectSpread2(_objectSpread2({}, previousPagination), pagination);
|
|
8865
|
-
});
|
|
8565
|
+
var handleTableChange = function handleTableChange(pagination) {
|
|
8566
|
+
// 设置分页tablePagination
|
|
8567
|
+
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
|
|
8866
8568
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
8867
8569
|
pageSize: pagination.pageSize,
|
|
8868
8570
|
currentPage: pagination.current
|
|
@@ -8989,15 +8691,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
8989
8691
|
}
|
|
8990
8692
|
})));
|
|
8991
8693
|
}
|
|
8992
|
-
if (type === 'autoComplete' || (field === null || field === void 0 ? void 0 : field.type) === 'autoComplete') {
|
|
8993
|
-
return /*#__PURE__*/React$1.createElement(Form.Item, _objectSpread2({
|
|
8994
|
-
name: name,
|
|
8995
|
-
label: label,
|
|
8996
|
-
key: name
|
|
8997
|
-
}, restProps), /*#__PURE__*/React$1.createElement(QueryAutoComplete, _objectSpread2({
|
|
8998
|
-
onPressEnter: onSearchTable
|
|
8999
|
-
}, (field === null || field === void 0 ? void 0 : field.props) || {})));
|
|
9000
|
-
}
|
|
9001
8694
|
// 默认type是input
|
|
9002
8695
|
return /*#__PURE__*/React$1.createElement(Form.Item, _objectSpread2({
|
|
9003
8696
|
name: name,
|
|
@@ -9113,7 +8806,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
9113
8806
|
_handleColumns(showToChooseCol, [], function (res) {
|
|
9114
8807
|
return setShowToChooseColumnsCallback(res);
|
|
9115
8808
|
});
|
|
9116
|
-
var currentPageTableColumns = _buildCurrentPageFilterColumns(businessType === 'sku' ? markCurrentPageFilterByDataIndex(showToChooseCol) : showToChooseCol, tableData, currentPageFilters);
|
|
9117
8809
|
var showSelectedCol = showColumns.map(function (item) {
|
|
9118
8810
|
handleAntdColumnsSpecialParams(item);
|
|
9119
8811
|
return _objectSpread2({}, item);
|
|
@@ -9121,20 +8813,6 @@ var AddSelect = function AddSelect(props) {
|
|
|
9121
8813
|
_handleColumns(showSelectedCol, [], function (res) {
|
|
9122
8814
|
return setShowColumnsCallback(res);
|
|
9123
8815
|
});
|
|
9124
|
-
// sku 上表勿用 scroll.x=max-content:会按当前页单元格内容重算列宽,分页切换时 SKU名称等列会忽宽忽窄
|
|
9125
|
-
var sumColumnScrollX = function sumColumnScrollX(columns) {
|
|
9126
|
-
var extraWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
9127
|
-
var sum = (columns || []).reduce(function (total, col) {
|
|
9128
|
-
if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'number') return total + col.width;
|
|
9129
|
-
if (typeof (col === null || col === void 0 ? void 0 : col.width) === 'string') {
|
|
9130
|
-
var parsed = parseFloat(col.width);
|
|
9131
|
-
return Number.isFinite(parsed) ? total + parsed : total;
|
|
9132
|
-
}
|
|
9133
|
-
return total;
|
|
9134
|
-
}, extraWidth);
|
|
9135
|
-
return sum > extraWidth ? sum : undefined;
|
|
9136
|
-
};
|
|
9137
|
-
var skuTopTableScrollX = sumColumnScrollX(currentPageTableColumns, selectMode ? 60 : 0);
|
|
9138
8816
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
9139
8817
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
9140
8818
|
className: 'add_select'
|
|
@@ -9238,21 +8916,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
9238
8916
|
})))), /*#__PURE__*/React$1.createElement(Table, {
|
|
9239
8917
|
size: 'small',
|
|
9240
8918
|
rowSelection: rowSelection,
|
|
9241
|
-
columns:
|
|
8919
|
+
columns: showToChooseCol,
|
|
9242
8920
|
dataSource: tableData,
|
|
9243
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
9244
|
-
var _modalTableProps$getF;
|
|
9245
|
-
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;
|
|
9246
|
-
},
|
|
9247
8921
|
pagination: tablePagination,
|
|
9248
8922
|
loading: fetching,
|
|
9249
8923
|
onChange: handleTableChange,
|
|
9250
8924
|
rowKey: mappingValueField,
|
|
9251
8925
|
rowClassName: 'row-class',
|
|
9252
|
-
scroll:
|
|
9253
|
-
x: skuTopTableScrollX || true,
|
|
9254
|
-
y: 500
|
|
9255
|
-
} : {
|
|
8926
|
+
scroll: {
|
|
9256
8927
|
y: 500
|
|
9257
8928
|
},
|
|
9258
8929
|
components: {
|
|
@@ -9334,7 +9005,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
9334
9005
|
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";
|
|
9335
9006
|
styleInject(css_248z$a);
|
|
9336
9007
|
|
|
9337
|
-
var _excluded$
|
|
9008
|
+
var _excluded$7 = ["onResize", "width"];
|
|
9338
9009
|
var _this = undefined;
|
|
9339
9010
|
var InputElement = function InputElement(_ref) {
|
|
9340
9011
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -9832,7 +9503,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
9832
9503
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
9833
9504
|
var onResize = props.onResize,
|
|
9834
9505
|
width = props.width,
|
|
9835
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9506
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
9836
9507
|
if (!width) {
|
|
9837
9508
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
9838
9509
|
}
|
|
@@ -10883,44 +10554,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10883
10554
|
}
|
|
10884
10555
|
}, {
|
|
10885
10556
|
name: 'qp-skuName-like',
|
|
10886
|
-
label: 'SKU名称'
|
|
10887
|
-
type: 'autoComplete',
|
|
10888
|
-
field: {
|
|
10889
|
-
type: 'autoComplete',
|
|
10890
|
-
props: {
|
|
10891
|
-
requestConfig: {
|
|
10892
|
-
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
|
|
10893
|
-
method: 'post',
|
|
10894
|
-
otherParams: _objectSpread2({
|
|
10895
|
-
ownOrgSign: getCurrentTargetBgId()
|
|
10896
|
-
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10897
|
-
mappingTextField: 'skuName',
|
|
10898
|
-
pageSize: 50,
|
|
10899
|
-
debounceWait: 300,
|
|
10900
|
-
likeParamName: 'qp-skuName-like'
|
|
10901
|
-
}
|
|
10902
|
-
}
|
|
10903
|
-
}
|
|
10904
|
-
}, {
|
|
10905
|
-
name: 'qp-itemName-like',
|
|
10906
|
-
label: '商品名称',
|
|
10907
|
-
type: 'autoComplete',
|
|
10908
|
-
field: {
|
|
10909
|
-
type: 'autoComplete',
|
|
10910
|
-
props: {
|
|
10911
|
-
requestConfig: {
|
|
10912
|
-
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
|
|
10913
|
-
method: 'post',
|
|
10914
|
-
otherParams: _objectSpread2({
|
|
10915
|
-
ownOrgSign: getCurrentTargetBgId()
|
|
10916
|
-
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10917
|
-
mappingTextField: 'itemName',
|
|
10918
|
-
pageSize: 50,
|
|
10919
|
-
debounceWait: 300,
|
|
10920
|
-
likeParamName: 'qp-itemName-like'
|
|
10921
|
-
}
|
|
10922
|
-
}
|
|
10923
|
-
}
|
|
10557
|
+
label: 'SKU名称'
|
|
10924
10558
|
}, {
|
|
10925
10559
|
name: 'qp-itemCode-in',
|
|
10926
10560
|
label: 'SPU编码',
|
|
@@ -10944,14 +10578,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10944
10578
|
}
|
|
10945
10579
|
}
|
|
10946
10580
|
}
|
|
10947
|
-
}, {
|
|
10948
|
-
name: 'qp-styleCode-in',
|
|
10949
|
-
label: '龙牙款号',
|
|
10950
|
-
type: 'multipleQueryInput'
|
|
10951
|
-
}, {
|
|
10952
|
-
name: 'qp-pinCode-in',
|
|
10953
|
-
label: '龙牙品号',
|
|
10954
|
-
type: 'multipleQueryInput'
|
|
10955
10581
|
},
|
|
10956
10582
|
// { name: 'qp-eancode-in', label: '商品条码', field: {
|
|
10957
10583
|
// type: 'multipleQueryInput',
|
|
@@ -11054,9 +10680,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11054
10680
|
currentPage: 1,
|
|
11055
10681
|
'qp-labelType-eq': 1
|
|
11056
10682
|
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-itemLabelId-in'))]).then(function (x) {
|
|
11057
|
-
formatSource(x, 0,
|
|
11058
|
-
formatTreeDataSource(x, 1,
|
|
11059
|
-
formatSource(x, 2,
|
|
10683
|
+
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10684
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10685
|
+
formatSource(x, 2, 6, tableSearchForm, ['id', 'name']);
|
|
11060
10686
|
});
|
|
11061
10687
|
modalTableProps = _objectSpread2({
|
|
11062
10688
|
modalTableTitle: '选择SKU',
|
|
@@ -11065,12 +10691,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11065
10691
|
tableColumns: [{
|
|
11066
10692
|
title: '序号',
|
|
11067
10693
|
dataIndex: 'keyIndex',
|
|
11068
|
-
width: 60,
|
|
11069
10694
|
defaultSort: 0
|
|
10695
|
+
}, {
|
|
10696
|
+
title: 'SKU编码',
|
|
10697
|
+
dataIndex: 'skuCode',
|
|
10698
|
+
defaultSort: 2
|
|
10699
|
+
}, {
|
|
10700
|
+
title: 'SKU名称',
|
|
10701
|
+
dataIndex: 'skuName',
|
|
10702
|
+
defaultSort: 3
|
|
11070
10703
|
}, {
|
|
11071
10704
|
title: '图片',
|
|
11072
10705
|
dataIndex: 'itemUrl',
|
|
11073
|
-
width: 60,
|
|
11074
10706
|
defaultSort: 1,
|
|
11075
10707
|
render: function render(text, record) {
|
|
11076
10708
|
return tableColumnsImage(getSkuImg(record), {
|
|
@@ -11078,79 +10710,34 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11078
10710
|
height: 16
|
|
11079
10711
|
});
|
|
11080
10712
|
}
|
|
11081
|
-
}, {
|
|
11082
|
-
title: 'SKU名称',
|
|
11083
|
-
dataIndex: 'skuName',
|
|
11084
|
-
width: 200,
|
|
11085
|
-
defaultSort: 2,
|
|
11086
|
-
ellipsis: {
|
|
11087
|
-
showTitle: false
|
|
11088
|
-
},
|
|
11089
|
-
render: function render(text) {
|
|
11090
|
-
return handleTextOverflow(text, 200);
|
|
11091
|
-
}
|
|
11092
|
-
}, {
|
|
11093
|
-
title: '颜色名称',
|
|
11094
|
-
dataIndex: 'colorName',
|
|
11095
|
-
width: 140,
|
|
11096
|
-
defaultSort: 3
|
|
11097
|
-
}, {
|
|
11098
|
-
title: '尺码名称',
|
|
11099
|
-
dataIndex: 'sizeName',
|
|
11100
|
-
width: 100,
|
|
11101
|
-
defaultSort: 4
|
|
11102
|
-
}, {
|
|
11103
|
-
title: 'SKU编码',
|
|
11104
|
-
dataIndex: 'skuCode',
|
|
11105
|
-
width: 160,
|
|
11106
|
-
defaultSort: 5
|
|
11107
|
-
}, {
|
|
11108
|
-
title: '龙牙款号',
|
|
11109
|
-
dataIndex: 'styleCode',
|
|
11110
|
-
width: 160,
|
|
11111
|
-
defaultSort: 6
|
|
11112
|
-
}, {
|
|
11113
|
-
title: '龙牙品号',
|
|
11114
|
-
dataIndex: 'pinCode',
|
|
11115
|
-
width: 160,
|
|
11116
|
-
defaultSort: 7
|
|
11117
10713
|
}, {
|
|
11118
10714
|
title: '商品条码',
|
|
11119
|
-
dataIndex: 'eancode'
|
|
11120
|
-
width: 140
|
|
10715
|
+
dataIndex: 'eancode'
|
|
11121
10716
|
}, {
|
|
11122
10717
|
title: 'SKC编码',
|
|
11123
|
-
dataIndex: 'skcCode'
|
|
11124
|
-
width: 140
|
|
10718
|
+
dataIndex: 'skcCode'
|
|
11125
10719
|
}, {
|
|
11126
10720
|
title: '所属SPU名称',
|
|
11127
|
-
dataIndex: 'itemName'
|
|
11128
|
-
width: 160
|
|
10721
|
+
dataIndex: 'itemName'
|
|
11129
10722
|
}, {
|
|
11130
10723
|
title: '所属SPU编码',
|
|
11131
|
-
dataIndex: 'itemCode'
|
|
11132
|
-
width: 140
|
|
10724
|
+
dataIndex: 'itemCode'
|
|
11133
10725
|
}, {
|
|
11134
10726
|
title: '外部编码',
|
|
11135
|
-
dataIndex: 'externalCode'
|
|
11136
|
-
width: 140
|
|
10727
|
+
dataIndex: 'externalCode'
|
|
11137
10728
|
}, {
|
|
11138
10729
|
title: '规格',
|
|
11139
|
-
dataIndex: 'propertyNameAndValue'
|
|
11140
|
-
width: 140
|
|
10730
|
+
dataIndex: 'propertyNameAndValue'
|
|
11141
10731
|
}, {
|
|
11142
10732
|
title: '类目',
|
|
11143
|
-
dataIndex: 'categoryName'
|
|
11144
|
-
width: 120
|
|
10733
|
+
dataIndex: 'categoryName'
|
|
11145
10734
|
}, {
|
|
11146
10735
|
title: '品类',
|
|
11147
|
-
dataIndex: 'className'
|
|
11148
|
-
width: 120
|
|
10736
|
+
dataIndex: 'className'
|
|
11149
10737
|
}, {
|
|
11150
10738
|
title: '品牌',
|
|
11151
10739
|
dataIndex: 'brandName',
|
|
11152
|
-
|
|
11153
|
-
defaultSort: 8
|
|
10740
|
+
defaultSort: 4
|
|
11154
10741
|
}]
|
|
11155
10742
|
}, modalTableBusProps);
|
|
11156
10743
|
}
|
|
@@ -14697,7 +14284,7 @@ function handleFormSearchSourceLoad(c, parentProps) {
|
|
|
14697
14284
|
return result;
|
|
14698
14285
|
}
|
|
14699
14286
|
var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
14700
|
-
var _parProps$requestConf, _parProps$requestConf2
|
|
14287
|
+
var _parProps$requestConf, _parProps$requestConf2;
|
|
14701
14288
|
var selectProps = {
|
|
14702
14289
|
mode: 'multiple'
|
|
14703
14290
|
};
|
|
@@ -14727,7 +14314,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14727
14314
|
}
|
|
14728
14315
|
}]), [{
|
|
14729
14316
|
title: 'SKU名称',
|
|
14730
|
-
width:
|
|
14317
|
+
width: 200,
|
|
14731
14318
|
ellipsis: {
|
|
14732
14319
|
showTitle: false
|
|
14733
14320
|
},
|
|
@@ -14735,32 +14322,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14735
14322
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14736
14323
|
placement: "topLeft",
|
|
14737
14324
|
title: text
|
|
14738
|
-
},
|
|
14739
|
-
style: {
|
|
14740
|
-
display: 'block',
|
|
14741
|
-
overflow: 'hidden',
|
|
14742
|
-
textOverflow: 'ellipsis',
|
|
14743
|
-
whiteSpace: 'nowrap'
|
|
14744
|
-
}
|
|
14745
|
-
}, text));
|
|
14325
|
+
}, text);
|
|
14746
14326
|
},
|
|
14747
14327
|
dataIndex: 'name'
|
|
14748
|
-
}, {
|
|
14749
|
-
title: '龙牙款号',
|
|
14750
|
-
width: 150,
|
|
14751
|
-
dataIndex: 'longyaStyleCode'
|
|
14752
|
-
}, {
|
|
14753
|
-
title: '龙牙品号',
|
|
14754
|
-
width: 150,
|
|
14755
|
-
dataIndex: 'longyaPinCode'
|
|
14756
|
-
}, {
|
|
14757
|
-
title: '颜色名称',
|
|
14758
|
-
width: 140,
|
|
14759
|
-
dataIndex: 'colorName'
|
|
14760
|
-
}, {
|
|
14761
|
-
title: '尺码名称',
|
|
14762
|
-
width: 140,
|
|
14763
|
-
dataIndex: 'sizeName'
|
|
14764
14328
|
}, {
|
|
14765
14329
|
title: '图片',
|
|
14766
14330
|
dataIndex: 'itemUrl',
|
|
@@ -14833,7 +14397,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14833
14397
|
dataIndex: 'skuCode'
|
|
14834
14398
|
}, {
|
|
14835
14399
|
title: 'SKU名称',
|
|
14836
|
-
width:
|
|
14400
|
+
width: 200,
|
|
14837
14401
|
ellipsis: {
|
|
14838
14402
|
showTitle: false
|
|
14839
14403
|
},
|
|
@@ -14841,32 +14405,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14841
14405
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14842
14406
|
placement: "topLeft",
|
|
14843
14407
|
title: text
|
|
14844
|
-
},
|
|
14845
|
-
style: {
|
|
14846
|
-
display: 'block',
|
|
14847
|
-
overflow: 'hidden',
|
|
14848
|
-
textOverflow: 'ellipsis',
|
|
14849
|
-
whiteSpace: 'nowrap'
|
|
14850
|
-
}
|
|
14851
|
-
}, text));
|
|
14408
|
+
}, text);
|
|
14852
14409
|
},
|
|
14853
14410
|
dataIndex: 'name'
|
|
14854
|
-
}, {
|
|
14855
|
-
title: '龙牙款号',
|
|
14856
|
-
width: 150,
|
|
14857
|
-
dataIndex: 'longyaStyleCode'
|
|
14858
|
-
}, {
|
|
14859
|
-
title: '龙牙品号',
|
|
14860
|
-
width: 150,
|
|
14861
|
-
dataIndex: 'longyaPinCode'
|
|
14862
|
-
}, {
|
|
14863
|
-
title: '颜色名称',
|
|
14864
|
-
width: 140,
|
|
14865
|
-
dataIndex: 'colorName'
|
|
14866
|
-
}, {
|
|
14867
|
-
title: '尺码名称',
|
|
14868
|
-
width: 140,
|
|
14869
|
-
dataIndex: 'sizeName'
|
|
14870
14411
|
}, {
|
|
14871
14412
|
title: '图片',
|
|
14872
14413
|
dataIndex: 'itemUrl',
|
|
@@ -15003,54 +14544,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15003
14544
|
type: 'multipleQueryInput'
|
|
15004
14545
|
}, {
|
|
15005
14546
|
name: 'qp-skuName-like',
|
|
15006
|
-
label: 'SKU名称'
|
|
15007
|
-
type: 'autoComplete',
|
|
15008
|
-
field: {
|
|
15009
|
-
type: 'autoComplete',
|
|
15010
|
-
props: {
|
|
15011
|
-
requestConfig: {
|
|
15012
|
-
url: '/items/sku/pager/v2',
|
|
15013
|
-
otherParams: _objectSpread2({
|
|
15014
|
-
'qp-combination-eq': false,
|
|
15015
|
-
'qp-approveStatus-eq': 1,
|
|
15016
|
-
'qp-status-eq': 1
|
|
15017
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
|
|
15018
|
-
mappingTextField: 'name',
|
|
15019
|
-
pageSize: 50,
|
|
15020
|
-
debounceWait: 300,
|
|
15021
|
-
likeParamName: 'qp-skuName-like'
|
|
15022
|
-
}
|
|
15023
|
-
}
|
|
15024
|
-
}
|
|
15025
|
-
}, {
|
|
15026
|
-
name: 'qp-itemName-like',
|
|
15027
|
-
label: '商品名称',
|
|
15028
|
-
type: 'autoComplete',
|
|
15029
|
-
field: {
|
|
15030
|
-
type: 'autoComplete',
|
|
15031
|
-
props: {
|
|
15032
|
-
requestConfig: {
|
|
15033
|
-
url: '/items/sku/pager/v2',
|
|
15034
|
-
otherParams: _objectSpread2({
|
|
15035
|
-
'qp-combination-eq': false,
|
|
15036
|
-
'qp-approveStatus-eq': 1,
|
|
15037
|
-
'qp-status-eq': 1
|
|
15038
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
15039
|
-
mappingTextField: 'itemName',
|
|
15040
|
-
pageSize: 50,
|
|
15041
|
-
debounceWait: 300,
|
|
15042
|
-
likeParamName: 'qp-itemName-like'
|
|
15043
|
-
}
|
|
15044
|
-
}
|
|
15045
|
-
}
|
|
15046
|
-
}, {
|
|
15047
|
-
name: 'qp-longyaStyleCode-in',
|
|
15048
|
-
label: '龙牙款号',
|
|
15049
|
-
type: 'multipleQueryInput'
|
|
15050
|
-
}, {
|
|
15051
|
-
name: 'qp-longyaPinCode-in',
|
|
15052
|
-
label: '龙牙品号',
|
|
15053
|
-
type: 'multipleQueryInput'
|
|
14547
|
+
label: 'SKU名称'
|
|
15054
14548
|
}, {
|
|
15055
14549
|
name: 'qp-externalCode-like',
|
|
15056
14550
|
label: '外部SPU编码'
|
|
@@ -15059,7 +14553,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15059
14553
|
label: '商品条码',
|
|
15060
14554
|
field: {
|
|
15061
14555
|
type: 'multipleQueryInput',
|
|
15062
|
-
props: _objectSpread2({}, ((_parProps$
|
|
14556
|
+
props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
|
|
15063
14557
|
}
|
|
15064
14558
|
}]), [{
|
|
15065
14559
|
name: 'qp-brandId-in',
|
|
@@ -15116,9 +14610,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15116
14610
|
'ctl-withAuth': true
|
|
15117
14611
|
},
|
|
15118
14612
|
resType: 'list',
|
|
15119
|
-
resPosition:
|
|
15120
|
-
return item.name === 'qp-brandId-in';
|
|
15121
|
-
}),
|
|
14613
|
+
resPosition: isNoUseItemBarcode ? 4 : 5,
|
|
15122
14614
|
resKeyValue: ['id', 'name']
|
|
15123
14615
|
}, {
|
|
15124
14616
|
url: "/items/category/queryCategoryTree",
|
|
@@ -15127,17 +14619,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15127
14619
|
currentPage: 1
|
|
15128
14620
|
},
|
|
15129
14621
|
resType: 'treeList',
|
|
15130
|
-
resPosition:
|
|
15131
|
-
return item.name === 'qp-categoryId-in';
|
|
15132
|
-
})
|
|
14622
|
+
resPosition: isNoUseItemBarcode ? 5 : 6
|
|
15133
14623
|
}];
|
|
15134
14624
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
15135
|
-
var topTablePagination = (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {};
|
|
15136
|
-
var pageSizeOptions = Array.from(new Set([].concat(_toConsumableArray(SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS), _toConsumableArray(topTablePagination.pageSizeOptions || [])).map(function (option) {
|
|
15137
|
-
return String(option);
|
|
15138
|
-
}))).sort(function (left, right) {
|
|
15139
|
-
return Number(left) - Number(right);
|
|
15140
|
-
});
|
|
15141
14625
|
var props = {
|
|
15142
14626
|
buttonText: parProps.buttonText || '新增',
|
|
15143
14627
|
buttonProps: parProps.buttonProps || {},
|
|
@@ -15151,7 +14635,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15151
14635
|
'qp-combination-eq': false,
|
|
15152
14636
|
'qp-approveStatus-eq': 1,
|
|
15153
14637
|
'qp-status-eq': 1
|
|
15154
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$
|
|
14638
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
|
|
15155
14639
|
mappingTextField: 'name',
|
|
15156
14640
|
mappingValueField: 'skuCode'
|
|
15157
14641
|
}, parProps.requestConfig),
|
|
@@ -15173,18 +14657,14 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
15173
14657
|
tableColumns: mTpTableColumn,
|
|
15174
14658
|
selectColumn: mTpSelectColumn,
|
|
15175
14659
|
promiseLoadList: mTpPromiseLoadList,
|
|
15176
|
-
topTablePagination:
|
|
15177
|
-
pageSize: (_topTablePagination$p = topTablePagination.pageSize) !== null && _topTablePagination$p !== void 0 ? _topTablePagination$p : SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE,
|
|
15178
|
-
showSizeChanger: (_topTablePagination$s = topTablePagination.showSizeChanger) !== null && _topTablePagination$s !== void 0 ? _topTablePagination$s : true,
|
|
15179
|
-
pageSizeOptions: pageSizeOptions
|
|
15180
|
-
})
|
|
14660
|
+
topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
|
|
15181
14661
|
};
|
|
15182
14662
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
15183
14663
|
modalTableProps: modalTableProps
|
|
15184
14664
|
})));
|
|
15185
14665
|
};
|
|
15186
14666
|
var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
15187
|
-
var _parProps$
|
|
14667
|
+
var _parProps$requestConf3;
|
|
15188
14668
|
var selectProps = {
|
|
15189
14669
|
mode: 'multiple'
|
|
15190
14670
|
};
|
|
@@ -15480,7 +14960,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
15480
14960
|
filter: 'qp-name-like',
|
|
15481
14961
|
otherParams: _objectSpread2({
|
|
15482
14962
|
'qp-skcStatus-eq': 1
|
|
15483
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$
|
|
14963
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
|
|
15484
14964
|
mappingTextField: 'name',
|
|
15485
14965
|
mappingValueField: 'code'
|
|
15486
14966
|
}, parProps.requestConfig),
|
|
@@ -15506,7 +14986,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
15506
14986
|
})));
|
|
15507
14987
|
};
|
|
15508
14988
|
var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
15509
|
-
var _parProps$
|
|
14989
|
+
var _parProps$requestConf4;
|
|
15510
14990
|
var selectProps = {
|
|
15511
14991
|
mode: 'multiple'
|
|
15512
14992
|
};
|
|
@@ -15797,7 +15277,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
15797
15277
|
'qp-approveStatus-eq': 1,
|
|
15798
15278
|
'qp-status-eq': 1,
|
|
15799
15279
|
sorter: 'desc-id'
|
|
15800
|
-
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$
|
|
15280
|
+
}, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
|
|
15801
15281
|
mappingTextField: 'name',
|
|
15802
15282
|
mappingValueField: 'itemCode'
|
|
15803
15283
|
}, parProps.requestConfig),
|
|
@@ -15954,7 +15434,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15954
15434
|
return "";
|
|
15955
15435
|
}
|
|
15956
15436
|
|
|
15957
|
-
var _excluded$
|
|
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"];
|
|
15958
15438
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
15959
15439
|
var _useState = useState([]),
|
|
15960
15440
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15996,7 +15476,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15996
15476
|
} : _props$style,
|
|
15997
15477
|
getTreeData = props.getTreeData,
|
|
15998
15478
|
disabled = props.disabled,
|
|
15999
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15479
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
16000
15480
|
var url = remoteSource.url,
|
|
16001
15481
|
headers = remoteSource.headers,
|
|
16002
15482
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -16424,7 +15904,7 @@ var index$2 = (function (props) {
|
|
|
16424
15904
|
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";
|
|
16425
15905
|
styleInject(css_248z$c);
|
|
16426
15906
|
|
|
16427
|
-
var _excluded$
|
|
15907
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
16428
15908
|
_excluded2$3 = ["children"];
|
|
16429
15909
|
var Field = function Field(_ref) {
|
|
16430
15910
|
var children = _ref.children,
|
|
@@ -16432,7 +15912,7 @@ var Field = function Field(_ref) {
|
|
|
16432
15912
|
title = _ref.title,
|
|
16433
15913
|
extra = _ref.extra,
|
|
16434
15914
|
bordered = _ref.bordered,
|
|
16435
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15915
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
16436
15916
|
var _React$useState = React$1.useState(true),
|
|
16437
15917
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16438
15918
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -16559,7 +16039,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
16559
16039
|
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";
|
|
16560
16040
|
styleInject(css_248z$d);
|
|
16561
16041
|
|
|
16562
|
-
var _excluded$
|
|
16042
|
+
var _excluded$a = ["className", "style"];
|
|
16563
16043
|
var Search$1 = Input.Search;
|
|
16564
16044
|
var DragHandle$1 = SortableHandle(function () {
|
|
16565
16045
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -16992,7 +16472,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16992
16472
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16993
16473
|
var className = _ref2.className,
|
|
16994
16474
|
style = _ref2.style,
|
|
16995
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16475
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
16996
16476
|
var sortDataSource = _this.state.sortDataSource;
|
|
16997
16477
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16998
16478
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -17354,7 +16834,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
17354
16834
|
}));
|
|
17355
16835
|
});
|
|
17356
16836
|
|
|
17357
|
-
var _excluded$
|
|
16837
|
+
var _excluded$b = ["onResize", "width"],
|
|
17358
16838
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll", "rowSelection"];
|
|
17359
16839
|
var Text = Typography.Text;
|
|
17360
16840
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -17543,7 +17023,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17543
17023
|
_this.ResizeableTitle = function (props) {
|
|
17544
17024
|
var onResize = props.onResize,
|
|
17545
17025
|
width = props.width,
|
|
17546
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17026
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
17547
17027
|
var _useState = useState(width),
|
|
17548
17028
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17549
17029
|
innerWidth = _useState2[0],
|
|
@@ -17855,7 +17335,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17855
17335
|
}]);
|
|
17856
17336
|
}(React$1.Component);
|
|
17857
17337
|
|
|
17858
|
-
var _excluded$
|
|
17338
|
+
var _excluded$c = ["onResize", "width"],
|
|
17859
17339
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll", "rowSelection"];
|
|
17860
17340
|
var Text$1 = Typography.Text;
|
|
17861
17341
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -18035,7 +17515,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
18035
17515
|
_this.ResizeableTitle = function (props) {
|
|
18036
17516
|
var onResize = props.onResize,
|
|
18037
17517
|
width = props.width,
|
|
18038
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17518
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
18039
17519
|
if (!width) {
|
|
18040
17520
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
18041
17521
|
}
|
|
@@ -18406,12 +17886,12 @@ var cancelIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org
|
|
|
18406
17886
|
var css_248z$g = "";
|
|
18407
17887
|
styleInject(css_248z$g);
|
|
18408
17888
|
|
|
18409
|
-
var _excluded$
|
|
17889
|
+
var _excluded$d = ["message", "type"];
|
|
18410
17890
|
var CommonAlert = (function (props) {
|
|
18411
17891
|
var message = props.message,
|
|
18412
17892
|
_props$type = props.type,
|
|
18413
17893
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
18414
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
17894
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
18415
17895
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18416
17896
|
style: {
|
|
18417
17897
|
width: '100%',
|
|
@@ -18432,7 +17912,7 @@ var CommonAlert = (function (props) {
|
|
|
18432
17912
|
}, reset)));
|
|
18433
17913
|
});
|
|
18434
17914
|
|
|
18435
|
-
var _excluded$
|
|
17915
|
+
var _excluded$e = ["children"];
|
|
18436
17916
|
var iconStyle = {
|
|
18437
17917
|
width: 16,
|
|
18438
17918
|
height: 16
|
|
@@ -18476,7 +17956,7 @@ var index$3 = (function (props) {
|
|
|
18476
17956
|
_useState2 = _slicedToArray(_useState, 1),
|
|
18477
17957
|
id = _useState2[0];
|
|
18478
17958
|
var children = props.children,
|
|
18479
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17959
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
18480
17960
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18481
17961
|
id: id,
|
|
18482
17962
|
className: 'detail_page_wrapper'
|
|
@@ -18805,7 +18285,7 @@ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons,
|
|
|
18805
18285
|
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";
|
|
18806
18286
|
styleInject(css_248z$h);
|
|
18807
18287
|
|
|
18808
|
-
var _excluded$
|
|
18288
|
+
var _excluded$f = ["children"];
|
|
18809
18289
|
var index$4 = (function (props) {
|
|
18810
18290
|
var _useLocation = useLocation(),
|
|
18811
18291
|
pathname = _useLocation.pathname;
|
|
@@ -18813,7 +18293,7 @@ var index$4 = (function (props) {
|
|
|
18813
18293
|
_useState2 = _slicedToArray(_useState, 1),
|
|
18814
18294
|
id = _useState2[0];
|
|
18815
18295
|
var children = props.children,
|
|
18816
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18296
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
18817
18297
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18818
18298
|
id: id,
|
|
18819
18299
|
className: 'home_page_wrapper'
|
|
@@ -18890,7 +18370,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
18890
18370
|
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";
|
|
18891
18371
|
styleInject(css_248z$i);
|
|
18892
18372
|
|
|
18893
|
-
var _excluded$
|
|
18373
|
+
var _excluded$g = ["className", "style"];
|
|
18894
18374
|
var DragHandle$2 = SortableHandle(function () {
|
|
18895
18375
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
18896
18376
|
width: 25,
|
|
@@ -19360,7 +18840,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
19360
18840
|
_this.DraggableBodyRow = function (_ref2) {
|
|
19361
18841
|
var className = _ref2.className,
|
|
19362
18842
|
style = _ref2.style,
|
|
19363
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
18843
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
19364
18844
|
var sortDataSource = _this.state.sortDataSource;
|
|
19365
18845
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
19366
18846
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -19744,7 +19224,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
19744
19224
|
}]);
|
|
19745
19225
|
}(React$1.Component);
|
|
19746
19226
|
|
|
19747
|
-
var _excluded$
|
|
19227
|
+
var _excluded$h = ["className", "style"];
|
|
19748
19228
|
var DragHandle$3 = SortableHandle(function () {
|
|
19749
19229
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
19750
19230
|
width: 25,
|
|
@@ -19997,7 +19477,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
19997
19477
|
_this.DraggableBodyRow = function (_ref2) {
|
|
19998
19478
|
var className = _ref2.className,
|
|
19999
19479
|
style = _ref2.style,
|
|
20000
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
19480
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
20001
19481
|
var sortDataSource = _this.state.sortDataSource;
|
|
20002
19482
|
var index = sortDataSource.findIndex(function (x) {
|
|
20003
19483
|
return x.name === restProps['data-row-key'];
|
|
@@ -20303,13 +19783,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
20303
19783
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
20304
19784
|
styleInject(css_248z$j);
|
|
20305
19785
|
|
|
20306
|
-
var _excluded$
|
|
19786
|
+
var _excluded$i = ["onResize", "width"];
|
|
20307
19787
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
20308
19788
|
var Text$2 = Typography.Text;
|
|
20309
19789
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
20310
19790
|
var onResize = props.onResize,
|
|
20311
19791
|
width = props.width,
|
|
20312
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
19792
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
20313
19793
|
var _useState = useState(width),
|
|
20314
19794
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20315
19795
|
innerWidth = _useState2[0],
|
|
@@ -23636,7 +23116,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
23636
23116
|
}));
|
|
23637
23117
|
};
|
|
23638
23118
|
|
|
23639
|
-
var _excluded$
|
|
23119
|
+
var _excluded$j = ["route"];
|
|
23640
23120
|
var TabPane = Tabs.TabPane;
|
|
23641
23121
|
var getId = function getId(str) {
|
|
23642
23122
|
// 找到最后一个 / 的位置
|
|
@@ -24577,7 +24057,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24577
24057
|
}); // 添加数据大屏
|
|
24578
24058
|
var _this$props3 = this.props,
|
|
24579
24059
|
route = _this$props3.route,
|
|
24580
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
24060
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
24581
24061
|
var exist = route.routes.find(function (route) {
|
|
24582
24062
|
return route.path === '/homePage/data-show';
|
|
24583
24063
|
});
|
|
@@ -25547,10 +25027,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
25547
25027
|
}))))));
|
|
25548
25028
|
});
|
|
25549
25029
|
|
|
25550
|
-
var _excluded$
|
|
25030
|
+
var _excluded$k = ["children"];
|
|
25551
25031
|
var Drawer = (function (props) {
|
|
25552
25032
|
var children = props.children,
|
|
25553
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
25033
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
25554
25034
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
25555
25035
|
mask: true,
|
|
25556
25036
|
closable: false,
|
|
@@ -34322,7 +33802,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
34322
33802
|
});
|
|
34323
33803
|
};
|
|
34324
33804
|
|
|
34325
|
-
var _excluded$
|
|
33805
|
+
var _excluded$l = ["sorter"];
|
|
34326
33806
|
/**
|
|
34327
33807
|
* 删掉查询条件的qp- 和 -eq等
|
|
34328
33808
|
* @param {object} data
|
|
@@ -34402,7 +33882,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
34402
33882
|
var _requestConfig$method;
|
|
34403
33883
|
var params = _ref.params;
|
|
34404
33884
|
var sorter = params.sorter,
|
|
34405
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
33885
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
34406
33886
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
34407
33887
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
34408
33888
|
});
|
|
@@ -35630,9 +35110,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35630
35110
|
var SET_TYPE = ['in', 'nin', 'cn', 'ncn', '5']; //集合类型 (数字为 兼容用户管理子应用使用规则组件)
|
|
35631
35111
|
var INTERVAL_TYPE = ['be', 'bed', 'nbe', 'nbed', 'ber', 'bel']; //区间类型
|
|
35632
35112
|
var IS_KONG = ['en']; // 为空
|
|
35633
|
-
// 兼容元数据新旧枚举:旧 11单选/12多选;新 20单选/30多选(与 MetaDataCenter / RenderCompItem 一致)
|
|
35634
|
-
var isMultiInputType = dataInputBusinessType == 12 || dataInputBusinessType == 30;
|
|
35635
|
-
var isSelectInputType = dataInputBusinessType == 11 || dataInputBusinessType == 12 || dataInputBusinessType == 20 || dataInputBusinessType == 30;
|
|
35636
35113
|
if (IS_KONG.indexOf(selectOperation) > -1) {
|
|
35637
35114
|
return '';
|
|
35638
35115
|
}
|
|
@@ -35710,8 +35187,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35710
35187
|
}, item.name);
|
|
35711
35188
|
}));
|
|
35712
35189
|
}
|
|
35713
|
-
} else if (
|
|
35714
|
-
// 11
|
|
35190
|
+
} else if (dataInputBusinessType == 11 || dataInputBusinessType == 12) {
|
|
35191
|
+
// 11 单选 12 多选
|
|
35715
35192
|
// 物理仓
|
|
35716
35193
|
if (dataChoiceBusinessType == 110) {
|
|
35717
35194
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
@@ -35720,7 +35197,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35720
35197
|
selectProps: _objectSpread2({
|
|
35721
35198
|
style: styleCommon,
|
|
35722
35199
|
placeholder: '请选择物理仓'
|
|
35723
|
-
},
|
|
35200
|
+
}, dataInputBusinessType === 12 ? {
|
|
35724
35201
|
mode: 'multiple',
|
|
35725
35202
|
maxTagCount: 1
|
|
35726
35203
|
} : {}),
|
|
@@ -35732,7 +35209,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35732
35209
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
35733
35210
|
},
|
|
35734
35211
|
onChange: function onChange(value) {
|
|
35735
|
-
if (
|
|
35212
|
+
if (dataInputBusinessType === 12) {
|
|
35736
35213
|
values[0] = value.map(function (i) {
|
|
35737
35214
|
return i.key;
|
|
35738
35215
|
});
|
|
@@ -35753,7 +35230,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35753
35230
|
selectProps: _objectSpread2({
|
|
35754
35231
|
style: styleCommon,
|
|
35755
35232
|
placeholder: '请选择物理仓'
|
|
35756
|
-
},
|
|
35233
|
+
}, dataInputBusinessType === 12 ? {
|
|
35757
35234
|
mode: 'multiple',
|
|
35758
35235
|
maxTagCount: 1
|
|
35759
35236
|
} : {}),
|
|
@@ -35765,7 +35242,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35765
35242
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
35766
35243
|
},
|
|
35767
35244
|
onChange: function onChange(value) {
|
|
35768
|
-
if (
|
|
35245
|
+
if (dataInputBusinessType === 12) {
|
|
35769
35246
|
values[1] = value.map(function (i) {
|
|
35770
35247
|
return i.key;
|
|
35771
35248
|
});
|
|
@@ -35784,7 +35261,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35784
35261
|
}));
|
|
35785
35262
|
} else {
|
|
35786
35263
|
var _values;
|
|
35787
|
-
var currentValue =
|
|
35264
|
+
var currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
35788
35265
|
return {
|
|
35789
35266
|
key: s,
|
|
35790
35267
|
label: valueNames[vIndex],
|
|
@@ -35800,7 +35277,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35800
35277
|
selectProps: _objectSpread2({
|
|
35801
35278
|
style: styleCommon,
|
|
35802
35279
|
placeholder: '请选择物理仓'
|
|
35803
|
-
},
|
|
35280
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
35804
35281
|
mode: 'multiple',
|
|
35805
35282
|
maxTagCount: 1
|
|
35806
35283
|
} : {}),
|
|
@@ -35812,7 +35289,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35812
35289
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
35813
35290
|
},
|
|
35814
35291
|
onChange: function onChange(value) {
|
|
35815
|
-
if (
|
|
35292
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
35816
35293
|
values = value.map(function (i) {
|
|
35817
35294
|
return i.key;
|
|
35818
35295
|
}) || [];
|
|
@@ -35839,7 +35316,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35839
35316
|
selectProps: _objectSpread2({
|
|
35840
35317
|
style: styleCommon,
|
|
35841
35318
|
placeholder: '请选择逻辑仓'
|
|
35842
|
-
},
|
|
35319
|
+
}, dataInputBusinessType === 12 ? {
|
|
35843
35320
|
mode: 'multiple',
|
|
35844
35321
|
maxTagCount: 1
|
|
35845
35322
|
} : {}),
|
|
@@ -35851,7 +35328,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35851
35328
|
filterInit: 'qp-realWarehouseCode-in'
|
|
35852
35329
|
},
|
|
35853
35330
|
onChange: function onChange(value) {
|
|
35854
|
-
if (
|
|
35331
|
+
if (dataInputBusinessType === 12) {
|
|
35855
35332
|
values[0] = value.map(function (i) {
|
|
35856
35333
|
return i.key;
|
|
35857
35334
|
});
|
|
@@ -35872,7 +35349,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35872
35349
|
selectProps: _objectSpread2({
|
|
35873
35350
|
style: styleCommon,
|
|
35874
35351
|
placeholder: '请选择逻辑仓'
|
|
35875
|
-
},
|
|
35352
|
+
}, dataInputBusinessType === 12 ? {
|
|
35876
35353
|
mode: 'multiple',
|
|
35877
35354
|
maxTagCount: 1
|
|
35878
35355
|
} : {}),
|
|
@@ -35884,7 +35361,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35884
35361
|
filterInit: 'qp-realWarehouseCode-in'
|
|
35885
35362
|
},
|
|
35886
35363
|
onChange: function onChange(value) {
|
|
35887
|
-
if (
|
|
35364
|
+
if (dataInputBusinessType === 12) {
|
|
35888
35365
|
values[1] = value.map(function (i) {
|
|
35889
35366
|
return i.key;
|
|
35890
35367
|
});
|
|
@@ -35903,7 +35380,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35903
35380
|
}));
|
|
35904
35381
|
} else {
|
|
35905
35382
|
var _values2;
|
|
35906
|
-
var _currentValue =
|
|
35383
|
+
var _currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
35907
35384
|
return {
|
|
35908
35385
|
key: s,
|
|
35909
35386
|
label: valueNames[vIndex],
|
|
@@ -35919,7 +35396,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35919
35396
|
selectProps: _objectSpread2({
|
|
35920
35397
|
style: styleCommon,
|
|
35921
35398
|
placeholder: '请选择逻辑仓'
|
|
35922
|
-
},
|
|
35399
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
35923
35400
|
mode: 'multiple',
|
|
35924
35401
|
maxTagCount: 1
|
|
35925
35402
|
} : {}),
|
|
@@ -35931,7 +35408,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35931
35408
|
filterInit: 'qp-realWarehouseCode-in'
|
|
35932
35409
|
},
|
|
35933
35410
|
onChange: function onChange(value) {
|
|
35934
|
-
if (
|
|
35411
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
35935
35412
|
values = value.map(function (i) {
|
|
35936
35413
|
return i.key;
|
|
35937
35414
|
}) || [];
|
|
@@ -35958,7 +35435,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35958
35435
|
selectProps: _objectSpread2({
|
|
35959
35436
|
style: styleCommon,
|
|
35960
35437
|
placeholder: '请选择虚拟仓'
|
|
35961
|
-
},
|
|
35438
|
+
}, dataInputBusinessType === 12 ? {
|
|
35962
35439
|
mode: 'multiple',
|
|
35963
35440
|
maxTagCount: 1
|
|
35964
35441
|
} : {}),
|
|
@@ -35970,7 +35447,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35970
35447
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
35971
35448
|
},
|
|
35972
35449
|
onChange: function onChange(value) {
|
|
35973
|
-
if (
|
|
35450
|
+
if (dataInputBusinessType === 12) {
|
|
35974
35451
|
values[0] = value.map(function (i) {
|
|
35975
35452
|
return i.key;
|
|
35976
35453
|
});
|
|
@@ -35991,7 +35468,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35991
35468
|
selectProps: _objectSpread2({
|
|
35992
35469
|
style: styleCommon,
|
|
35993
35470
|
placeholder: '请选择虚拟仓'
|
|
35994
|
-
},
|
|
35471
|
+
}, dataInputBusinessType === 12 ? {
|
|
35995
35472
|
mode: 'multiple',
|
|
35996
35473
|
maxTagCount: 1
|
|
35997
35474
|
} : {}),
|
|
@@ -36003,7 +35480,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36003
35480
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
36004
35481
|
},
|
|
36005
35482
|
onChange: function onChange(value) {
|
|
36006
|
-
if (
|
|
35483
|
+
if (dataInputBusinessType === 12) {
|
|
36007
35484
|
values[1] = value.map(function (i) {
|
|
36008
35485
|
return i.key;
|
|
36009
35486
|
});
|
|
@@ -36022,7 +35499,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36022
35499
|
}));
|
|
36023
35500
|
} else {
|
|
36024
35501
|
var _values3;
|
|
36025
|
-
var _currentValue2 =
|
|
35502
|
+
var _currentValue2 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
36026
35503
|
return {
|
|
36027
35504
|
key: s,
|
|
36028
35505
|
label: valueNames[vIndex],
|
|
@@ -36038,7 +35515,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36038
35515
|
selectProps: _objectSpread2({
|
|
36039
35516
|
style: styleCommon,
|
|
36040
35517
|
placeholder: '请选择虚拟仓'
|
|
36041
|
-
},
|
|
35518
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
36042
35519
|
mode: 'multiple',
|
|
36043
35520
|
maxTagCount: 1
|
|
36044
35521
|
} : {}),
|
|
@@ -36050,7 +35527,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36050
35527
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
36051
35528
|
},
|
|
36052
35529
|
onChange: function onChange(value) {
|
|
36053
|
-
if (
|
|
35530
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36054
35531
|
values = value.map(function (i) {
|
|
36055
35532
|
return i.key;
|
|
36056
35533
|
}) || [];
|
|
@@ -36077,7 +35554,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36077
35554
|
selectProps: _objectSpread2({
|
|
36078
35555
|
style: styleCommon,
|
|
36079
35556
|
placeholder: '请选择渠道仓'
|
|
36080
|
-
},
|
|
35557
|
+
}, dataInputBusinessType === 12 ? {
|
|
36081
35558
|
mode: 'multiple',
|
|
36082
35559
|
maxTagCount: 1
|
|
36083
35560
|
} : {}),
|
|
@@ -36089,7 +35566,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36089
35566
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
36090
35567
|
},
|
|
36091
35568
|
onChange: function onChange(value) {
|
|
36092
|
-
if (
|
|
35569
|
+
if (dataInputBusinessType === 12) {
|
|
36093
35570
|
values[0] = value.map(function (i) {
|
|
36094
35571
|
return i.key;
|
|
36095
35572
|
});
|
|
@@ -36110,7 +35587,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36110
35587
|
selectProps: _objectSpread2({
|
|
36111
35588
|
style: styleCommon,
|
|
36112
35589
|
placeholder: '请选择渠道仓'
|
|
36113
|
-
},
|
|
35590
|
+
}, dataInputBusinessType === 12 ? {
|
|
36114
35591
|
mode: 'multiple',
|
|
36115
35592
|
maxTagCount: 1
|
|
36116
35593
|
} : {}),
|
|
@@ -36122,7 +35599,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36122
35599
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
36123
35600
|
},
|
|
36124
35601
|
onChange: function onChange(value) {
|
|
36125
|
-
if (
|
|
35602
|
+
if (dataInputBusinessType === 12) {
|
|
36126
35603
|
values[1] = value.map(function (i) {
|
|
36127
35604
|
return i.key;
|
|
36128
35605
|
});
|
|
@@ -36141,7 +35618,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36141
35618
|
}));
|
|
36142
35619
|
} else {
|
|
36143
35620
|
var _values4;
|
|
36144
|
-
var _currentValue3 =
|
|
35621
|
+
var _currentValue3 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
36145
35622
|
return {
|
|
36146
35623
|
key: s,
|
|
36147
35624
|
label: valueNames[vIndex],
|
|
@@ -36157,7 +35634,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36157
35634
|
selectProps: _objectSpread2({
|
|
36158
35635
|
style: styleCommon,
|
|
36159
35636
|
placeholder: '请选择渠道仓'
|
|
36160
|
-
},
|
|
35637
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
36161
35638
|
mode: 'multiple',
|
|
36162
35639
|
maxTagCount: 1
|
|
36163
35640
|
} : {}),
|
|
@@ -36169,7 +35646,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36169
35646
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
36170
35647
|
},
|
|
36171
35648
|
onChange: function onChange(value) {
|
|
36172
|
-
if (
|
|
35649
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36173
35650
|
values = value.map(function (i) {
|
|
36174
35651
|
return i.key;
|
|
36175
35652
|
}) || [];
|
|
@@ -36196,7 +35673,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36196
35673
|
selectProps: _objectSpread2({
|
|
36197
35674
|
style: styleCommon,
|
|
36198
35675
|
placeholder: '请选择SPU'
|
|
36199
|
-
},
|
|
35676
|
+
}, dataInputBusinessType === 12 ? {
|
|
36200
35677
|
mode: 'multiple',
|
|
36201
35678
|
maxTagCount: 1
|
|
36202
35679
|
} : {}),
|
|
@@ -36207,7 +35684,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36207
35684
|
filterInit: 'qp-itemCode-in'
|
|
36208
35685
|
},
|
|
36209
35686
|
onChange: function onChange(value) {
|
|
36210
|
-
if (
|
|
35687
|
+
if (dataInputBusinessType === 12) {
|
|
36211
35688
|
values[0] = value.map(function (i) {
|
|
36212
35689
|
return i.key;
|
|
36213
35690
|
});
|
|
@@ -36228,7 +35705,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36228
35705
|
selectProps: _objectSpread2({
|
|
36229
35706
|
style: styleCommon,
|
|
36230
35707
|
placeholder: '请选择SPU'
|
|
36231
|
-
},
|
|
35708
|
+
}, dataInputBusinessType === 12 ? {
|
|
36232
35709
|
mode: 'multiple',
|
|
36233
35710
|
maxTagCount: 1
|
|
36234
35711
|
} : {}),
|
|
@@ -36239,7 +35716,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36239
35716
|
filterInit: 'qp-itemCode-in'
|
|
36240
35717
|
},
|
|
36241
35718
|
onChange: function onChange(value) {
|
|
36242
|
-
if (
|
|
35719
|
+
if (dataInputBusinessType === 12) {
|
|
36243
35720
|
values[1] = value.map(function (i) {
|
|
36244
35721
|
return i.key;
|
|
36245
35722
|
});
|
|
@@ -36258,7 +35735,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36258
35735
|
}));
|
|
36259
35736
|
} else {
|
|
36260
35737
|
var _values5;
|
|
36261
|
-
var _currentValue4 =
|
|
35738
|
+
var _currentValue4 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
36262
35739
|
return {
|
|
36263
35740
|
key: s,
|
|
36264
35741
|
label: valueNames[vIndex],
|
|
@@ -36274,7 +35751,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36274
35751
|
selectProps: _objectSpread2({
|
|
36275
35752
|
style: styleCommon,
|
|
36276
35753
|
placeholder: '请选择SPU'
|
|
36277
|
-
},
|
|
35754
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
36278
35755
|
mode: 'multiple',
|
|
36279
35756
|
maxTagCount: 1
|
|
36280
35757
|
} : {}),
|
|
@@ -36285,7 +35762,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36285
35762
|
filterInit: 'qp-itemCode-in'
|
|
36286
35763
|
},
|
|
36287
35764
|
onChange: function onChange(value) {
|
|
36288
|
-
if (
|
|
35765
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36289
35766
|
values = value.map(function (i) {
|
|
36290
35767
|
return i.key;
|
|
36291
35768
|
}) || [];
|
|
@@ -36312,7 +35789,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36312
35789
|
selectProps: _objectSpread2({
|
|
36313
35790
|
style: styleCommon,
|
|
36314
35791
|
placeholder: '请选择商品'
|
|
36315
|
-
},
|
|
35792
|
+
}, dataInputBusinessType === 12 ? {
|
|
36316
35793
|
mode: 'multiple',
|
|
36317
35794
|
maxTagCount: 1
|
|
36318
35795
|
} : {}),
|
|
@@ -36323,7 +35800,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36323
35800
|
filterInit: 'qp-skuCode-in'
|
|
36324
35801
|
},
|
|
36325
35802
|
onChange: function onChange(value) {
|
|
36326
|
-
if (
|
|
35803
|
+
if (dataInputBusinessType === 12) {
|
|
36327
35804
|
values[0] = value.map(function (i) {
|
|
36328
35805
|
return i.key;
|
|
36329
35806
|
});
|
|
@@ -36344,7 +35821,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36344
35821
|
selectProps: _objectSpread2({
|
|
36345
35822
|
style: styleCommon,
|
|
36346
35823
|
placeholder: '请选择商品'
|
|
36347
|
-
},
|
|
35824
|
+
}, dataInputBusinessType === 12 ? {
|
|
36348
35825
|
mode: 'multiple',
|
|
36349
35826
|
maxTagCount: 1
|
|
36350
35827
|
} : {}),
|
|
@@ -36355,7 +35832,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36355
35832
|
filterInit: 'qp-skuCode-in'
|
|
36356
35833
|
},
|
|
36357
35834
|
onChange: function onChange(value) {
|
|
36358
|
-
if (
|
|
35835
|
+
if (dataInputBusinessType === 12) {
|
|
36359
35836
|
values[1] = value.map(function (i) {
|
|
36360
35837
|
return i.key;
|
|
36361
35838
|
});
|
|
@@ -36374,7 +35851,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36374
35851
|
}));
|
|
36375
35852
|
} else {
|
|
36376
35853
|
var _values6;
|
|
36377
|
-
var _currentValue5 =
|
|
35854
|
+
var _currentValue5 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
36378
35855
|
return {
|
|
36379
35856
|
key: s,
|
|
36380
35857
|
label: valueNames[vIndex],
|
|
@@ -36390,7 +35867,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36390
35867
|
selectProps: _objectSpread2({
|
|
36391
35868
|
style: styleCommon,
|
|
36392
35869
|
placeholder: '请选择商品'
|
|
36393
|
-
},
|
|
35870
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
36394
35871
|
mode: 'multiple',
|
|
36395
35872
|
maxTagCount: 1
|
|
36396
35873
|
} : {}),
|
|
@@ -36401,7 +35878,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36401
35878
|
filterInit: 'qp-skuCode-in'
|
|
36402
35879
|
},
|
|
36403
35880
|
onChange: function onChange(value) {
|
|
36404
|
-
if (
|
|
35881
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36405
35882
|
values = value.map(function (i) {
|
|
36406
35883
|
return i.key;
|
|
36407
35884
|
}) || [];
|
|
@@ -36570,14 +36047,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36570
36047
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36571
36048
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36572
36049
|
disabled: disabled,
|
|
36573
|
-
treeCheckable:
|
|
36050
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36574
36051
|
businessType: "department",
|
|
36575
36052
|
labelInValue: true,
|
|
36576
|
-
value:
|
|
36053
|
+
value: dataInputBusinessType === 12 ? values[0] : values[0][0],
|
|
36577
36054
|
style: styleCommon,
|
|
36578
36055
|
treeCheckStrictly: true,
|
|
36579
36056
|
onChange: function onChange(value) {
|
|
36580
|
-
if (
|
|
36057
|
+
if (dataInputBusinessType === 12) {
|
|
36581
36058
|
values[0] = value.map(function (i) {
|
|
36582
36059
|
return i.key;
|
|
36583
36060
|
});
|
|
@@ -36595,14 +36072,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36595
36072
|
}
|
|
36596
36073
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36597
36074
|
disabled: disabled,
|
|
36598
|
-
treeCheckable:
|
|
36075
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36599
36076
|
businessType: "department",
|
|
36600
36077
|
labelInValue: true,
|
|
36601
|
-
value:
|
|
36078
|
+
value: dataInputBusinessType === 12 ? values[1] : values[1][0],
|
|
36602
36079
|
style: styleCommon,
|
|
36603
36080
|
treeCheckStrictly: true,
|
|
36604
36081
|
onChange: function onChange(value) {
|
|
36605
|
-
if (
|
|
36082
|
+
if (dataInputBusinessType === 12) {
|
|
36606
36083
|
values[1] = value.map(function (i) {
|
|
36607
36084
|
return i.key;
|
|
36608
36085
|
});
|
|
@@ -36622,14 +36099,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36622
36099
|
} else {
|
|
36623
36100
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36624
36101
|
disabled: disabled,
|
|
36625
|
-
treeCheckable:
|
|
36102
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36626
36103
|
businessType: "department",
|
|
36627
36104
|
labelInValue: true,
|
|
36628
|
-
value:
|
|
36105
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
36629
36106
|
style: styleCommon,
|
|
36630
36107
|
treeCheckStrictly: true,
|
|
36631
36108
|
onChange: function onChange(value) {
|
|
36632
|
-
if (
|
|
36109
|
+
if (dataInputBusinessType === 12) {
|
|
36633
36110
|
values = value.map(function (i) {
|
|
36634
36111
|
return i.key;
|
|
36635
36112
|
}) || [];
|
|
@@ -36653,14 +36130,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36653
36130
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36654
36131
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36655
36132
|
disabled: disabled,
|
|
36656
|
-
treeCheckable:
|
|
36133
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36657
36134
|
businessType: "purchase-organization",
|
|
36658
36135
|
labelInValue: true,
|
|
36659
|
-
value:
|
|
36136
|
+
value: dataInputBusinessType === 12 ? values[0] : values[0][0],
|
|
36660
36137
|
style: styleCommon,
|
|
36661
36138
|
treeCheckStrictly: true,
|
|
36662
36139
|
onChange: function onChange(value) {
|
|
36663
|
-
if (
|
|
36140
|
+
if (dataInputBusinessType === 12) {
|
|
36664
36141
|
values[0] = value.map(function (i) {
|
|
36665
36142
|
return i.key;
|
|
36666
36143
|
});
|
|
@@ -36678,14 +36155,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36678
36155
|
}
|
|
36679
36156
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36680
36157
|
disabled: disabled,
|
|
36681
|
-
treeCheckable:
|
|
36158
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36682
36159
|
businessType: "purchase-organization",
|
|
36683
36160
|
labelInValue: true,
|
|
36684
|
-
value:
|
|
36161
|
+
value: dataInputBusinessType === 12 ? values[1] : values[1][0],
|
|
36685
36162
|
style: styleCommon,
|
|
36686
36163
|
treeCheckStrictly: true,
|
|
36687
36164
|
onChange: function onChange(value) {
|
|
36688
|
-
if (
|
|
36165
|
+
if (dataInputBusinessType === 12) {
|
|
36689
36166
|
values[1] = value.map(function (i) {
|
|
36690
36167
|
return i.key;
|
|
36691
36168
|
});
|
|
@@ -36705,14 +36182,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36705
36182
|
} else {
|
|
36706
36183
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36707
36184
|
disabled: disabled,
|
|
36708
|
-
treeCheckable:
|
|
36185
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36709
36186
|
businessType: "purchase-organization",
|
|
36710
36187
|
labelInValue: true,
|
|
36711
|
-
value:
|
|
36188
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
36712
36189
|
style: styleCommon,
|
|
36713
36190
|
treeCheckStrictly: true,
|
|
36714
36191
|
onChange: function onChange(value) {
|
|
36715
|
-
if (
|
|
36192
|
+
if (dataInputBusinessType === 12) {
|
|
36716
36193
|
values = value.map(function (i) {
|
|
36717
36194
|
return i.key;
|
|
36718
36195
|
}) || [];
|
|
@@ -36736,14 +36213,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36736
36213
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36737
36214
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36738
36215
|
disabled: disabled,
|
|
36739
|
-
treeCheckable:
|
|
36216
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36740
36217
|
businessType: "sales-organization",
|
|
36741
36218
|
labelInValue: true,
|
|
36742
|
-
value:
|
|
36219
|
+
value: dataInputBusinessType === 12 ? values[0] : values[0][0],
|
|
36743
36220
|
style: styleCommon,
|
|
36744
36221
|
treeCheckStrictly: true,
|
|
36745
36222
|
onChange: function onChange(value) {
|
|
36746
|
-
if (
|
|
36223
|
+
if (dataInputBusinessType === 12) {
|
|
36747
36224
|
values[0] = value.map(function (i) {
|
|
36748
36225
|
return i.key;
|
|
36749
36226
|
});
|
|
@@ -36761,14 +36238,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36761
36238
|
}
|
|
36762
36239
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36763
36240
|
disabled: disabled,
|
|
36764
|
-
treeCheckable:
|
|
36241
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36765
36242
|
businessType: "sales-organization",
|
|
36766
36243
|
labelInValue: true,
|
|
36767
|
-
value:
|
|
36244
|
+
value: dataInputBusinessType === 12 ? values[1] : values[1][0],
|
|
36768
36245
|
style: styleCommon,
|
|
36769
36246
|
treeCheckStrictly: true,
|
|
36770
36247
|
onChange: function onChange(value) {
|
|
36771
|
-
if (
|
|
36248
|
+
if (dataInputBusinessType === 12) {
|
|
36772
36249
|
values[1] = value.map(function (i) {
|
|
36773
36250
|
return i.key;
|
|
36774
36251
|
});
|
|
@@ -36788,14 +36265,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36788
36265
|
} else {
|
|
36789
36266
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36790
36267
|
disabled: disabled,
|
|
36791
|
-
treeCheckable:
|
|
36268
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
36792
36269
|
businessType: "sales-organization",
|
|
36793
36270
|
labelInValue: true,
|
|
36794
|
-
value:
|
|
36271
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
36795
36272
|
style: styleCommon,
|
|
36796
36273
|
treeCheckStrictly: true,
|
|
36797
36274
|
onChange: function onChange(value) {
|
|
36798
|
-
if (
|
|
36275
|
+
if (dataInputBusinessType === 12) {
|
|
36799
36276
|
values = value.map(function (i) {
|
|
36800
36277
|
return i.key;
|
|
36801
36278
|
}) || [];
|
|
@@ -36822,7 +36299,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36822
36299
|
selectProps: _objectSpread2({
|
|
36823
36300
|
style: styleCommon,
|
|
36824
36301
|
placeholder: '请选择供应商'
|
|
36825
|
-
},
|
|
36302
|
+
}, dataInputBusinessType === 12 ? {
|
|
36826
36303
|
mode: 'multiple',
|
|
36827
36304
|
maxTagCount: 1
|
|
36828
36305
|
} : {}),
|
|
@@ -36833,7 +36310,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36833
36310
|
filterInit: 'qp-code-in'
|
|
36834
36311
|
},
|
|
36835
36312
|
onChange: function onChange(value) {
|
|
36836
|
-
if (
|
|
36313
|
+
if (dataInputBusinessType === 12) {
|
|
36837
36314
|
values[0] = value.map(function (i) {
|
|
36838
36315
|
return i.key;
|
|
36839
36316
|
});
|
|
@@ -36854,7 +36331,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36854
36331
|
selectProps: _objectSpread2({
|
|
36855
36332
|
style: styleCommon,
|
|
36856
36333
|
placeholder: '请选择供应商'
|
|
36857
|
-
},
|
|
36334
|
+
}, dataInputBusinessType === 12 ? {
|
|
36858
36335
|
mode: 'multiple',
|
|
36859
36336
|
maxTagCount: 1
|
|
36860
36337
|
} : {}),
|
|
@@ -36865,7 +36342,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36865
36342
|
filterInit: 'qp-code-in'
|
|
36866
36343
|
},
|
|
36867
36344
|
onChange: function onChange(value) {
|
|
36868
|
-
if (
|
|
36345
|
+
if (dataInputBusinessType === 12) {
|
|
36869
36346
|
values[1] = value.map(function (i) {
|
|
36870
36347
|
return i.key;
|
|
36871
36348
|
});
|
|
@@ -36884,7 +36361,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36884
36361
|
}));
|
|
36885
36362
|
} else {
|
|
36886
36363
|
var _values7;
|
|
36887
|
-
var _currentValue6 =
|
|
36364
|
+
var _currentValue6 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
36888
36365
|
return {
|
|
36889
36366
|
key: s,
|
|
36890
36367
|
label: valueNames[vIndex],
|
|
@@ -36900,7 +36377,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36900
36377
|
selectProps: _objectSpread2({
|
|
36901
36378
|
style: styleCommon,
|
|
36902
36379
|
placeholder: '请选择供应商'
|
|
36903
|
-
},
|
|
36380
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
36904
36381
|
mode: 'multiple',
|
|
36905
36382
|
maxTagCount: 1
|
|
36906
36383
|
} : {}),
|
|
@@ -36911,7 +36388,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36911
36388
|
filterInit: 'qp-code-in'
|
|
36912
36389
|
},
|
|
36913
36390
|
onChange: function onChange(value) {
|
|
36914
|
-
if (
|
|
36391
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36915
36392
|
values = value.map(function (i) {
|
|
36916
36393
|
return i.key;
|
|
36917
36394
|
}) || [];
|
|
@@ -36938,7 +36415,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36938
36415
|
selectProps: _objectSpread2({
|
|
36939
36416
|
style: styleCommon,
|
|
36940
36417
|
placeholder: '请选择客户'
|
|
36941
|
-
},
|
|
36418
|
+
}, dataInputBusinessType === 12 ? {
|
|
36942
36419
|
mode: 'multiple',
|
|
36943
36420
|
maxTagCount: 1
|
|
36944
36421
|
} : {}),
|
|
@@ -36949,7 +36426,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36949
36426
|
filterInit: 'qp-code-in'
|
|
36950
36427
|
},
|
|
36951
36428
|
onChange: function onChange(value) {
|
|
36952
|
-
if (
|
|
36429
|
+
if (dataInputBusinessType === 12) {
|
|
36953
36430
|
values[0] = value.map(function (i) {
|
|
36954
36431
|
return i.key;
|
|
36955
36432
|
});
|
|
@@ -36970,7 +36447,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36970
36447
|
selectProps: _objectSpread2({
|
|
36971
36448
|
style: styleCommon,
|
|
36972
36449
|
placeholder: '请选择客户'
|
|
36973
|
-
},
|
|
36450
|
+
}, dataInputBusinessType === 12 ? {
|
|
36974
36451
|
mode: 'multiple',
|
|
36975
36452
|
maxTagCount: 1
|
|
36976
36453
|
} : {}),
|
|
@@ -36981,7 +36458,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36981
36458
|
filterInit: 'qp-code-in'
|
|
36982
36459
|
},
|
|
36983
36460
|
onChange: function onChange(value) {
|
|
36984
|
-
if (
|
|
36461
|
+
if (dataInputBusinessType === 12) {
|
|
36985
36462
|
values[1] = value.map(function (i) {
|
|
36986
36463
|
return i.key;
|
|
36987
36464
|
});
|
|
@@ -37000,7 +36477,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37000
36477
|
}));
|
|
37001
36478
|
} else {
|
|
37002
36479
|
var _values8;
|
|
37003
|
-
var _currentValue7 =
|
|
36480
|
+
var _currentValue7 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
37004
36481
|
return {
|
|
37005
36482
|
key: s,
|
|
37006
36483
|
label: valueNames[vIndex],
|
|
@@ -37016,7 +36493,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37016
36493
|
selectProps: _objectSpread2({
|
|
37017
36494
|
style: styleCommon,
|
|
37018
36495
|
placeholder: '请选择客户'
|
|
37019
|
-
},
|
|
36496
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37020
36497
|
mode: 'multiple',
|
|
37021
36498
|
maxTagCount: 1
|
|
37022
36499
|
} : {}),
|
|
@@ -37027,7 +36504,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37027
36504
|
filterInit: 'qp-code-in'
|
|
37028
36505
|
},
|
|
37029
36506
|
onChange: function onChange(value) {
|
|
37030
|
-
if (
|
|
36507
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37031
36508
|
values = value.map(function (i) {
|
|
37032
36509
|
return i.key;
|
|
37033
36510
|
}) || [];
|
|
@@ -37054,7 +36531,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37054
36531
|
selectProps: _objectSpread2({
|
|
37055
36532
|
style: styleCommon,
|
|
37056
36533
|
placeholder: '请选择店铺'
|
|
37057
|
-
},
|
|
36534
|
+
}, dataInputBusinessType === 12 ? {
|
|
37058
36535
|
mode: 'multiple',
|
|
37059
36536
|
maxTagCount: 1
|
|
37060
36537
|
} : {}),
|
|
@@ -37065,7 +36542,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37065
36542
|
filterInit: 'qp-code-in'
|
|
37066
36543
|
},
|
|
37067
36544
|
onChange: function onChange(value) {
|
|
37068
|
-
if (
|
|
36545
|
+
if (dataInputBusinessType === 12) {
|
|
37069
36546
|
values[0] = value.map(function (i) {
|
|
37070
36547
|
return i.key;
|
|
37071
36548
|
});
|
|
@@ -37086,7 +36563,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37086
36563
|
selectProps: _objectSpread2({
|
|
37087
36564
|
style: styleCommon,
|
|
37088
36565
|
placeholder: '请选择店铺'
|
|
37089
|
-
},
|
|
36566
|
+
}, dataInputBusinessType === 12 ? {
|
|
37090
36567
|
mode: 'multiple',
|
|
37091
36568
|
maxTagCount: 1
|
|
37092
36569
|
} : {}),
|
|
@@ -37097,7 +36574,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37097
36574
|
filterInit: 'qp-code-in'
|
|
37098
36575
|
},
|
|
37099
36576
|
onChange: function onChange(value) {
|
|
37100
|
-
if (
|
|
36577
|
+
if (dataInputBusinessType === 12) {
|
|
37101
36578
|
values[1] = value.map(function (i) {
|
|
37102
36579
|
return i.key;
|
|
37103
36580
|
});
|
|
@@ -37116,7 +36593,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37116
36593
|
}));
|
|
37117
36594
|
} else {
|
|
37118
36595
|
var _values9;
|
|
37119
|
-
var _currentValue8 =
|
|
36596
|
+
var _currentValue8 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
37120
36597
|
return {
|
|
37121
36598
|
key: s,
|
|
37122
36599
|
label: valueNames[vIndex],
|
|
@@ -37132,7 +36609,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37132
36609
|
selectProps: _objectSpread2({
|
|
37133
36610
|
style: styleCommon,
|
|
37134
36611
|
placeholder: '请选择店铺'
|
|
37135
|
-
},
|
|
36612
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37136
36613
|
mode: 'multiple',
|
|
37137
36614
|
maxTagCount: 1
|
|
37138
36615
|
} : {}),
|
|
@@ -37143,7 +36620,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37143
36620
|
filterInit: 'qp-code-in'
|
|
37144
36621
|
},
|
|
37145
36622
|
onChange: function onChange(value) {
|
|
37146
|
-
if (
|
|
36623
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37147
36624
|
values = value.map(function (i) {
|
|
37148
36625
|
return i.key;
|
|
37149
36626
|
}) || [];
|
|
@@ -37170,7 +36647,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37170
36647
|
selectProps: _objectSpread2({
|
|
37171
36648
|
style: styleCommon,
|
|
37172
36649
|
placeholder: '请选择员工'
|
|
37173
|
-
},
|
|
36650
|
+
}, dataInputBusinessType === 12 ? {
|
|
37174
36651
|
mode: 'multiple',
|
|
37175
36652
|
maxTagCount: 1
|
|
37176
36653
|
} : {}),
|
|
@@ -37181,7 +36658,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37181
36658
|
filterInit: 'qp-id-in'
|
|
37182
36659
|
},
|
|
37183
36660
|
onChange: function onChange(value) {
|
|
37184
|
-
if (
|
|
36661
|
+
if (dataInputBusinessType === 12) {
|
|
37185
36662
|
values[0] = value.map(function (i) {
|
|
37186
36663
|
return i.key;
|
|
37187
36664
|
});
|
|
@@ -37202,7 +36679,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37202
36679
|
selectProps: _objectSpread2({
|
|
37203
36680
|
style: styleCommon,
|
|
37204
36681
|
placeholder: '请选择员工'
|
|
37205
|
-
},
|
|
36682
|
+
}, dataInputBusinessType === 12 ? {
|
|
37206
36683
|
mode: 'multiple',
|
|
37207
36684
|
maxTagCount: 1
|
|
37208
36685
|
} : {}),
|
|
@@ -37213,7 +36690,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37213
36690
|
filterInit: 'qp-id-in'
|
|
37214
36691
|
},
|
|
37215
36692
|
onChange: function onChange(value) {
|
|
37216
|
-
if (
|
|
36693
|
+
if (dataInputBusinessType === 12) {
|
|
37217
36694
|
values[1] = value.map(function (i) {
|
|
37218
36695
|
return i.key;
|
|
37219
36696
|
});
|
|
@@ -37232,7 +36709,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37232
36709
|
}));
|
|
37233
36710
|
} else {
|
|
37234
36711
|
var _values0;
|
|
37235
|
-
var _currentValue9 =
|
|
36712
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
37236
36713
|
return {
|
|
37237
36714
|
key: s,
|
|
37238
36715
|
label: valueNames[vIndex],
|
|
@@ -37248,7 +36725,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37248
36725
|
selectProps: _objectSpread2({
|
|
37249
36726
|
style: styleCommon,
|
|
37250
36727
|
placeholder: '请选择员工'
|
|
37251
|
-
},
|
|
36728
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37252
36729
|
mode: 'multiple',
|
|
37253
36730
|
maxTagCount: 1
|
|
37254
36731
|
} : {}),
|
|
@@ -37259,7 +36736,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37259
36736
|
filterInit: 'qp-id-in'
|
|
37260
36737
|
},
|
|
37261
36738
|
onChange: function onChange(value) {
|
|
37262
|
-
if (
|
|
36739
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37263
36740
|
values = value.map(function (i) {
|
|
37264
36741
|
return i.key;
|
|
37265
36742
|
}) || [];
|
|
@@ -37283,14 +36760,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37283
36760
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
37284
36761
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37285
36762
|
disabled: disabled,
|
|
37286
|
-
treeCheckable:
|
|
36763
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37287
36764
|
businessType: "stock-organization",
|
|
37288
36765
|
labelInValue: true,
|
|
37289
|
-
value:
|
|
36766
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
37290
36767
|
style: styleCommon,
|
|
37291
36768
|
treeCheckStrictly: true,
|
|
37292
36769
|
onChange: function onChange(value) {
|
|
37293
|
-
if (
|
|
36770
|
+
if (dataInputBusinessType === 12) {
|
|
37294
36771
|
values[0] = value.map(function (i) {
|
|
37295
36772
|
return i.key;
|
|
37296
36773
|
});
|
|
@@ -37308,14 +36785,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37308
36785
|
}
|
|
37309
36786
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37310
36787
|
disabled: disabled,
|
|
37311
|
-
treeCheckable:
|
|
36788
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37312
36789
|
businessType: "stock-organization",
|
|
37313
36790
|
labelInValue: true,
|
|
37314
|
-
value:
|
|
36791
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
37315
36792
|
style: styleCommon,
|
|
37316
36793
|
treeCheckStrictly: true,
|
|
37317
36794
|
onChange: function onChange(value) {
|
|
37318
|
-
if (
|
|
36795
|
+
if (dataInputBusinessType === 12) {
|
|
37319
36796
|
values[1] = value.map(function (i) {
|
|
37320
36797
|
return i.key;
|
|
37321
36798
|
});
|
|
@@ -37335,14 +36812,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37335
36812
|
} else {
|
|
37336
36813
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37337
36814
|
disabled: disabled,
|
|
37338
|
-
treeCheckable:
|
|
36815
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37339
36816
|
businessType: "stock-organization",
|
|
37340
36817
|
labelInValue: true,
|
|
37341
|
-
value:
|
|
36818
|
+
value: dataInputBusinessType === 12 ? values : values[0],
|
|
37342
36819
|
style: styleCommon,
|
|
37343
36820
|
treeCheckStrictly: true,
|
|
37344
36821
|
onChange: function onChange(value) {
|
|
37345
|
-
if (
|
|
36822
|
+
if (dataInputBusinessType === 12) {
|
|
37346
36823
|
values = value.map(function (i) {
|
|
37347
36824
|
return i.key;
|
|
37348
36825
|
}) || [];
|
|
@@ -37366,13 +36843,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37366
36843
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
37367
36844
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37368
36845
|
disabled: disabled,
|
|
37369
|
-
treeCheckable:
|
|
36846
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37370
36847
|
businessType: "settle-organization",
|
|
37371
36848
|
labelInValue: true,
|
|
37372
36849
|
value: values[0],
|
|
37373
36850
|
style: styleCommon,
|
|
37374
36851
|
onChange: function onChange(value) {
|
|
37375
|
-
if (
|
|
36852
|
+
if (dataInputBusinessType === 12) {
|
|
37376
36853
|
values[0] = value.map(function (i) {
|
|
37377
36854
|
return i.key;
|
|
37378
36855
|
});
|
|
@@ -37390,13 +36867,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37390
36867
|
}
|
|
37391
36868
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37392
36869
|
disabled: disabled,
|
|
37393
|
-
treeCheckable:
|
|
36870
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37394
36871
|
businessType: "settle-organization",
|
|
37395
36872
|
labelInValue: true,
|
|
37396
36873
|
value: values[0],
|
|
37397
36874
|
style: styleCommon,
|
|
37398
36875
|
onChange: function onChange(value) {
|
|
37399
|
-
if (
|
|
36876
|
+
if (dataInputBusinessType === 12) {
|
|
37400
36877
|
values[1] = value.map(function (i) {
|
|
37401
36878
|
return i.key;
|
|
37402
36879
|
});
|
|
@@ -37416,13 +36893,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37416
36893
|
} else {
|
|
37417
36894
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37418
36895
|
disabled: disabled,
|
|
37419
|
-
treeCheckable:
|
|
36896
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37420
36897
|
businessType: "settle-organization",
|
|
37421
36898
|
labelInValue: true,
|
|
37422
36899
|
value: values[0],
|
|
37423
36900
|
style: styleCommon,
|
|
37424
36901
|
onChange: function onChange(value) {
|
|
37425
|
-
if (
|
|
36902
|
+
if (dataInputBusinessType === 12) {
|
|
37426
36903
|
values = value.map(function (i) {
|
|
37427
36904
|
return i.key;
|
|
37428
36905
|
}) || [];
|
|
@@ -37449,7 +36926,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37449
36926
|
selectProps: _objectSpread2({
|
|
37450
36927
|
style: styleCommon,
|
|
37451
36928
|
placeholder: '请选择配送方式'
|
|
37452
|
-
},
|
|
36929
|
+
}, dataInputBusinessType === 12 ? {
|
|
37453
36930
|
mode: 'multiple',
|
|
37454
36931
|
maxTagCount: 1
|
|
37455
36932
|
} : {}),
|
|
@@ -37465,7 +36942,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37465
36942
|
filterInit: 'qp-code-in'
|
|
37466
36943
|
}),
|
|
37467
36944
|
onChange: function onChange(value) {
|
|
37468
|
-
if (
|
|
36945
|
+
if (dataInputBusinessType === 12) {
|
|
37469
36946
|
values[0] = value.map(function (i) {
|
|
37470
36947
|
return i.key;
|
|
37471
36948
|
});
|
|
@@ -37486,7 +36963,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37486
36963
|
selectProps: _objectSpread2({
|
|
37487
36964
|
style: styleCommon,
|
|
37488
36965
|
placeholder: '请选择配送方式'
|
|
37489
|
-
},
|
|
36966
|
+
}, dataInputBusinessType === 12 ? {
|
|
37490
36967
|
mode: 'multiple',
|
|
37491
36968
|
maxTagCount: 1
|
|
37492
36969
|
} : {}),
|
|
@@ -37502,7 +36979,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37502
36979
|
filterInit: 'qp-code-in'
|
|
37503
36980
|
}),
|
|
37504
36981
|
onChange: function onChange(value) {
|
|
37505
|
-
if (
|
|
36982
|
+
if (dataInputBusinessType === 12) {
|
|
37506
36983
|
values[1] = value.map(function (i) {
|
|
37507
36984
|
return i.key;
|
|
37508
36985
|
});
|
|
@@ -37521,7 +36998,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37521
36998
|
}));
|
|
37522
36999
|
} else {
|
|
37523
37000
|
var _values1;
|
|
37524
|
-
var _currentValue0 =
|
|
37001
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
37525
37002
|
return {
|
|
37526
37003
|
key: s,
|
|
37527
37004
|
label: valueNames[vIndex],
|
|
@@ -37537,7 +37014,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37537
37014
|
selectProps: _objectSpread2({
|
|
37538
37015
|
style: styleCommon,
|
|
37539
37016
|
placeholder: '请选择配送方式'
|
|
37540
|
-
},
|
|
37017
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37541
37018
|
mode: 'multiple',
|
|
37542
37019
|
maxTagCount: 1
|
|
37543
37020
|
} : {}),
|
|
@@ -37553,7 +37030,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37553
37030
|
filterInit: 'qp-code-in'
|
|
37554
37031
|
}),
|
|
37555
37032
|
onChange: function onChange(value) {
|
|
37556
|
-
if (
|
|
37033
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37557
37034
|
values = value.map(function (i) {
|
|
37558
37035
|
return i.key;
|
|
37559
37036
|
}) || [];
|
|
@@ -37580,7 +37057,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37580
37057
|
selectProps: _objectSpread2({
|
|
37581
37058
|
style: styleCommon,
|
|
37582
37059
|
placeholder: '请选择角色'
|
|
37583
|
-
},
|
|
37060
|
+
}, dataInputBusinessType === 12 ? {
|
|
37584
37061
|
mode: 'multiple',
|
|
37585
37062
|
maxTagCount: 1
|
|
37586
37063
|
} : {}),
|
|
@@ -37591,7 +37068,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37591
37068
|
filterInit: 'qp-code-in'
|
|
37592
37069
|
},
|
|
37593
37070
|
onChange: function onChange(value) {
|
|
37594
|
-
if (
|
|
37071
|
+
if (dataInputBusinessType === 12) {
|
|
37595
37072
|
values[0] = value.map(function (i) {
|
|
37596
37073
|
return i.key;
|
|
37597
37074
|
});
|
|
@@ -37612,7 +37089,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37612
37089
|
selectProps: _objectSpread2({
|
|
37613
37090
|
style: styleCommon,
|
|
37614
37091
|
placeholder: '请选择角色'
|
|
37615
|
-
},
|
|
37092
|
+
}, dataInputBusinessType === 12 ? {
|
|
37616
37093
|
mode: 'multiple',
|
|
37617
37094
|
maxTagCount: 1
|
|
37618
37095
|
} : {}),
|
|
@@ -37623,7 +37100,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37623
37100
|
filterInit: 'qp-code-in'
|
|
37624
37101
|
},
|
|
37625
37102
|
onChange: function onChange(value) {
|
|
37626
|
-
if (
|
|
37103
|
+
if (dataInputBusinessType === 12) {
|
|
37627
37104
|
values[1] = value.map(function (i) {
|
|
37628
37105
|
return i.key;
|
|
37629
37106
|
});
|
|
@@ -37642,7 +37119,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37642
37119
|
}));
|
|
37643
37120
|
} else {
|
|
37644
37121
|
var _values10;
|
|
37645
|
-
var _currentValue1 =
|
|
37122
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
37646
37123
|
return {
|
|
37647
37124
|
key: s,
|
|
37648
37125
|
label: valueNames[vIndex],
|
|
@@ -37658,7 +37135,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37658
37135
|
selectProps: _objectSpread2({
|
|
37659
37136
|
style: styleCommon,
|
|
37660
37137
|
placeholder: '请选择角色'
|
|
37661
|
-
},
|
|
37138
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37662
37139
|
mode: 'multiple',
|
|
37663
37140
|
maxTagCount: 1
|
|
37664
37141
|
} : {}),
|
|
@@ -37669,7 +37146,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37669
37146
|
filterInit: 'qp-code-in'
|
|
37670
37147
|
},
|
|
37671
37148
|
onChange: function onChange(value) {
|
|
37672
|
-
if (
|
|
37149
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37673
37150
|
values = value.map(function (i) {
|
|
37674
37151
|
return i.key;
|
|
37675
37152
|
}) || [];
|
|
@@ -37696,7 +37173,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37696
37173
|
selectProps: _objectSpread2({
|
|
37697
37174
|
style: styleCommon,
|
|
37698
37175
|
placeholder: '请选择品牌'
|
|
37699
|
-
},
|
|
37176
|
+
}, dataInputBusinessType === 12 ? {
|
|
37700
37177
|
mode: 'multiple',
|
|
37701
37178
|
maxTagCount: 1
|
|
37702
37179
|
} : {}),
|
|
@@ -37707,7 +37184,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37707
37184
|
filterInit: 'qp-brandCode-in'
|
|
37708
37185
|
},
|
|
37709
37186
|
onChange: function onChange(value) {
|
|
37710
|
-
if (
|
|
37187
|
+
if (dataInputBusinessType === 12) {
|
|
37711
37188
|
values[0] = value.map(function (i) {
|
|
37712
37189
|
return i.key;
|
|
37713
37190
|
});
|
|
@@ -37728,7 +37205,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37728
37205
|
selectProps: _objectSpread2({
|
|
37729
37206
|
style: styleCommon,
|
|
37730
37207
|
placeholder: '请选择品牌'
|
|
37731
|
-
},
|
|
37208
|
+
}, dataInputBusinessType === 12 ? {
|
|
37732
37209
|
mode: 'multiple',
|
|
37733
37210
|
maxTagCount: 1
|
|
37734
37211
|
} : {}),
|
|
@@ -37739,7 +37216,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37739
37216
|
filterInit: 'qp-brandCode-in'
|
|
37740
37217
|
},
|
|
37741
37218
|
onChange: function onChange(value) {
|
|
37742
|
-
if (
|
|
37219
|
+
if (dataInputBusinessType === 12) {
|
|
37743
37220
|
values[1] = value.map(function (i) {
|
|
37744
37221
|
return i.key;
|
|
37745
37222
|
});
|
|
@@ -37758,7 +37235,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37758
37235
|
}));
|
|
37759
37236
|
} else {
|
|
37760
37237
|
var _values11;
|
|
37761
|
-
var _currentValue10 =
|
|
37238
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
37762
37239
|
return {
|
|
37763
37240
|
key: s,
|
|
37764
37241
|
label: valueNames[vIndex],
|
|
@@ -37774,7 +37251,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37774
37251
|
selectProps: _objectSpread2({
|
|
37775
37252
|
style: styleCommon,
|
|
37776
37253
|
placeholder: '请选择品牌'
|
|
37777
|
-
},
|
|
37254
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
37778
37255
|
mode: 'multiple',
|
|
37779
37256
|
maxTagCount: 1
|
|
37780
37257
|
} : {}),
|
|
@@ -37785,7 +37262,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37785
37262
|
filterInit: 'qp-brandCode-in'
|
|
37786
37263
|
},
|
|
37787
37264
|
onChange: function onChange(value) {
|
|
37788
|
-
if (
|
|
37265
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
37789
37266
|
values = value.map(function (i) {
|
|
37790
37267
|
return i.key;
|
|
37791
37268
|
}) || [];
|
|
@@ -37807,16 +37284,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37807
37284
|
// 类目选择器
|
|
37808
37285
|
if (dataChoiceBusinessType == 420) {
|
|
37809
37286
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
37810
|
-
var _values$0$, _values$, _values$1$, _values$2;
|
|
37811
37287
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37812
37288
|
disabled: disabled,
|
|
37813
|
-
treeCheckable:
|
|
37289
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37814
37290
|
businessType: "background-category",
|
|
37815
37291
|
labelInValue: true,
|
|
37816
|
-
value:
|
|
37292
|
+
value: values[0],
|
|
37817
37293
|
style: styleCommon,
|
|
37818
37294
|
onChange: function onChange(value) {
|
|
37819
|
-
if (
|
|
37295
|
+
if (dataInputBusinessType === 12) {
|
|
37820
37296
|
values[0] = value.map(function (i) {
|
|
37821
37297
|
return i.key;
|
|
37822
37298
|
});
|
|
@@ -37834,13 +37310,13 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37834
37310
|
}
|
|
37835
37311
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37836
37312
|
disabled: disabled,
|
|
37837
|
-
treeCheckable:
|
|
37313
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37838
37314
|
businessType: "background-category",
|
|
37839
37315
|
labelInValue: true,
|
|
37840
|
-
value:
|
|
37316
|
+
value: values[0],
|
|
37841
37317
|
style: styleCommon,
|
|
37842
37318
|
onChange: function onChange(value) {
|
|
37843
|
-
if (
|
|
37319
|
+
if (dataInputBusinessType === 12) {
|
|
37844
37320
|
values[1] = value.map(function (i) {
|
|
37845
37321
|
return i.key;
|
|
37846
37322
|
});
|
|
@@ -37858,28 +37334,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37858
37334
|
}
|
|
37859
37335
|
}));
|
|
37860
37336
|
} else {
|
|
37861
|
-
var _values12;
|
|
37862
|
-
var isMulti = isMultiInputType || SET_TYPE.indexOf(selectOperation) > -1;
|
|
37863
|
-
var _currentValue11 = isMulti ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
37864
|
-
return {
|
|
37865
|
-
key: s,
|
|
37866
|
-
label: valueNames[vIndex],
|
|
37867
|
-
value: s
|
|
37868
|
-
};
|
|
37869
|
-
})) || [] : values[0] && {
|
|
37870
|
-
key: values[0],
|
|
37871
|
-
label: valueNames[0],
|
|
37872
|
-
value: values[0]
|
|
37873
|
-
} || {};
|
|
37874
37337
|
return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
37875
37338
|
disabled: disabled,
|
|
37876
|
-
treeCheckable:
|
|
37339
|
+
treeCheckable: dataInputBusinessType === 12,
|
|
37877
37340
|
businessType: "background-category",
|
|
37878
37341
|
labelInValue: true,
|
|
37879
|
-
value:
|
|
37342
|
+
value: values[0],
|
|
37880
37343
|
style: styleCommon,
|
|
37881
37344
|
onChange: function onChange(value) {
|
|
37882
|
-
if (
|
|
37345
|
+
if (dataInputBusinessType === 12) {
|
|
37883
37346
|
values = value.map(function (i) {
|
|
37884
37347
|
return i.key;
|
|
37885
37348
|
}) || [];
|
|
@@ -37905,7 +37368,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37905
37368
|
selectProps: _objectSpread2(_objectSpread2({
|
|
37906
37369
|
style: styleCommon,
|
|
37907
37370
|
placeholder: '请选择'
|
|
37908
|
-
},
|
|
37371
|
+
}, dataInputBusinessType === 12 ? {
|
|
37909
37372
|
mode: 'multiple',
|
|
37910
37373
|
maxTagCount: 1,
|
|
37911
37374
|
multipleForQuery: true
|
|
@@ -37922,7 +37385,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37922
37385
|
disabled: disabled,
|
|
37923
37386
|
value: values[0],
|
|
37924
37387
|
onChange: function onChange(value, sourceList) {
|
|
37925
|
-
if (
|
|
37388
|
+
if (dataInputBusinessType === 12) {
|
|
37926
37389
|
var _value$map, _sourceList$filter;
|
|
37927
37390
|
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) {
|
|
37928
37391
|
return i;
|
|
@@ -37946,7 +37409,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37946
37409
|
selectProps: _objectSpread2(_objectSpread2({
|
|
37947
37410
|
style: styleCommon,
|
|
37948
37411
|
placeholder: '请选择'
|
|
37949
|
-
},
|
|
37412
|
+
}, dataInputBusinessType === 12 ? {
|
|
37950
37413
|
mode: 'multiple',
|
|
37951
37414
|
maxTagCount: 1,
|
|
37952
37415
|
multipleForQuery: true
|
|
@@ -37963,7 +37426,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37963
37426
|
disabled: disabled,
|
|
37964
37427
|
value: values[1],
|
|
37965
37428
|
onChange: function onChange(value, sourceList) {
|
|
37966
|
-
if (
|
|
37429
|
+
if (dataInputBusinessType === 12) {
|
|
37967
37430
|
var _value$map2, _sourceList$filter2;
|
|
37968
37431
|
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) {
|
|
37969
37432
|
return i;
|
|
@@ -37985,8 +37448,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37985
37448
|
}
|
|
37986
37449
|
}));
|
|
37987
37450
|
} else {
|
|
37988
|
-
var
|
|
37989
|
-
var
|
|
37451
|
+
var _values12;
|
|
37452
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
37990
37453
|
return {
|
|
37991
37454
|
key: s,
|
|
37992
37455
|
label: valueNames[vIndex]
|
|
@@ -37999,7 +37462,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37999
37462
|
selectProps: _objectSpread2(_objectSpread2({
|
|
38000
37463
|
style: styleCommon,
|
|
38001
37464
|
placeholder: '请选择'
|
|
38002
|
-
},
|
|
37465
|
+
}, dataInputBusinessType === 12 ? {
|
|
38003
37466
|
mode: 'multiple',
|
|
38004
37467
|
maxTagCount: 1,
|
|
38005
37468
|
multipleForQuery: true
|
|
@@ -38014,9 +37477,9 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
38014
37477
|
isSearchForm: true,
|
|
38015
37478
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
38016
37479
|
disabled: disabled,
|
|
38017
|
-
value:
|
|
37480
|
+
value: _currentValue11,
|
|
38018
37481
|
onChange: function onChange(value, sourceList) {
|
|
38019
|
-
if (
|
|
37482
|
+
if (dataInputBusinessType === 12) {
|
|
38020
37483
|
var _value$map3, _sourceList$filter3;
|
|
38021
37484
|
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) {
|
|
38022
37485
|
return i;
|
|
@@ -42195,14 +41658,14 @@ var PathDisplay = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
42195
41658
|
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";
|
|
42196
41659
|
styleInject(css_248z$z);
|
|
42197
41660
|
|
|
42198
|
-
var _excluded$
|
|
41661
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
42199
41662
|
var Panel = Collapse.Panel;
|
|
42200
41663
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
42201
41664
|
var titleExtra = _ref.titleExtra,
|
|
42202
41665
|
header = _ref.header,
|
|
42203
41666
|
_ref$showArrow = _ref.showArrow,
|
|
42204
41667
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
42205
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
41668
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
42206
41669
|
var renderHeader = function renderHeader() {
|
|
42207
41670
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
42208
41671
|
align: "center"
|
|
@@ -42226,11 +41689,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
42226
41689
|
}), props.children);
|
|
42227
41690
|
};
|
|
42228
41691
|
|
|
42229
|
-
var _excluded$
|
|
41692
|
+
var _excluded$n = ["children", "bordered"];
|
|
42230
41693
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
42231
41694
|
var children = props.children,
|
|
42232
41695
|
bordered = props.bordered,
|
|
42233
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
41696
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
42234
41697
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
42235
41698
|
className: classNames({
|
|
42236
41699
|
'bs-collapse-wrap': true,
|