@bit-sun/business-component 4.2.0-alpha.6 → 4.2.0-alpha.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +566 -107
- package/dist/index.js +567 -106
- package/dist/utils/utils.d.ts +41 -0
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +234 -38
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/SearchSelect/index.css +274 -0
- package/src/components/Functional/SearchSelect/index.less +5 -5
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
- package/src/index.ts +2 -0
- package/src/utils/utils.ts +41 -1
package/dist/index.js
CHANGED
|
@@ -1477,6 +1477,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1477
1477
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1478
1478
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1479
1479
|
};
|
|
1480
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1481
|
+
return type === 'form' ? {
|
|
1482
|
+
container: {
|
|
1483
|
+
type: 'card',
|
|
1484
|
+
props: {
|
|
1485
|
+
title: title,
|
|
1486
|
+
id: Math.random(),
|
|
1487
|
+
level: 1,
|
|
1488
|
+
name: name
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
itemLayout: {
|
|
1492
|
+
span: 8,
|
|
1493
|
+
labelCol: {
|
|
1494
|
+
span: 8
|
|
1495
|
+
},
|
|
1496
|
+
wrapperCol: {
|
|
1497
|
+
span: 18
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
} : {
|
|
1501
|
+
container: {
|
|
1502
|
+
type: 'card',
|
|
1503
|
+
props: {
|
|
1504
|
+
title: title,
|
|
1505
|
+
id: Math.random(),
|
|
1506
|
+
level: 1,
|
|
1507
|
+
bordered: null,
|
|
1508
|
+
isWhiteCard: true,
|
|
1509
|
+
name: name
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
itemLayout: {
|
|
1513
|
+
wrapperCol: {
|
|
1514
|
+
span: 0
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1480
1519
|
|
|
1481
1520
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1482
1521
|
var authFunc = function authFunc(code) {
|
|
@@ -4966,7 +5005,7 @@ function ToCDB$1(selectStr) {
|
|
|
4966
5005
|
return tmp;
|
|
4967
5006
|
}
|
|
4968
5007
|
|
|
4969
|
-
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 -
|
|
5008
|
+
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 - 190px);\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";
|
|
4970
5009
|
styleInject(css_248z$6);
|
|
4971
5010
|
|
|
4972
5011
|
var zhankaitiaojian = "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%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -5456,6 +5495,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5456
5495
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5457
5496
|
fieldComponent = props.fieldComponent,
|
|
5458
5497
|
onSaveCallback = props.onSaveCallback,
|
|
5498
|
+
_props$returnFormat = props.returnFormat,
|
|
5499
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5459
5500
|
selectBusinessType = props.selectBusinessType;
|
|
5460
5501
|
var _ref = rCTemp || {},
|
|
5461
5502
|
url = _ref.url,
|
|
@@ -5514,14 +5555,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5514
5555
|
var currentPage = 1;
|
|
5515
5556
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5516
5557
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5517
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5558
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5559
|
+
// 回显字段可自定义
|
|
5560
|
+
optionLabelProp: "label"
|
|
5561
|
+
}, selectProps), {}, {
|
|
5518
5562
|
// 以下属性不可更改----设计配置项
|
|
5519
5563
|
showArrow: true,
|
|
5520
5564
|
showSearch: true,
|
|
5521
5565
|
filterOption: false,
|
|
5522
5566
|
allowClear: true,
|
|
5523
5567
|
listHeight: 160,
|
|
5524
|
-
optionLabelProp: "label",
|
|
5525
5568
|
autoClearSearchValue: false,
|
|
5526
5569
|
placement: 'bottomRight'
|
|
5527
5570
|
});
|
|
@@ -5990,12 +6033,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5990
6033
|
};
|
|
5991
6034
|
var formaData = function formaData(value, source) {
|
|
5992
6035
|
if (labelInValue) {
|
|
6036
|
+
var getFromat = function getFromat(format, val) {
|
|
6037
|
+
return format.map(function (_ref8) {
|
|
6038
|
+
var key = _ref8.key,
|
|
6039
|
+
value = _ref8.value;
|
|
6040
|
+
return _defineProperty({}, key, val[value]);
|
|
6041
|
+
});
|
|
6042
|
+
};
|
|
5993
6043
|
var formatResult = value.map(function (i) {
|
|
5994
|
-
return {
|
|
6044
|
+
return Object.assign.apply(Object, [{
|
|
5995
6045
|
key: i[mappingValueField] || i.key,
|
|
5996
6046
|
label: i[mappingTextField] || i.label,
|
|
5997
6047
|
value: i[mappingValueField] || i.value
|
|
5998
|
-
};
|
|
6048
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5999
6049
|
});
|
|
6000
6050
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
6001
6051
|
} else {
|
|
@@ -7836,6 +7886,116 @@ var AddSelect = function AddSelect(props) {
|
|
|
7836
7886
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7837
7887
|
return acc;
|
|
7838
7888
|
}, {});
|
|
7889
|
+
// 可输入非数字字符
|
|
7890
|
+
if (item.canInputString) {
|
|
7891
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7892
|
+
min: 0,
|
|
7893
|
+
precision: 0,
|
|
7894
|
+
controls: false
|
|
7895
|
+
}, inputProps), {}, {
|
|
7896
|
+
value: text || '',
|
|
7897
|
+
keyboard: false,
|
|
7898
|
+
onPressEnter: function onPressEnter(e) {
|
|
7899
|
+
e.target.blur();
|
|
7900
|
+
},
|
|
7901
|
+
onBlur: function () {
|
|
7902
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7903
|
+
var value;
|
|
7904
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7905
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7906
|
+
case 0:
|
|
7907
|
+
value = e.target.value;
|
|
7908
|
+
record[item.dataIndex] = value;
|
|
7909
|
+
editRecord(record);
|
|
7910
|
+
case 3:
|
|
7911
|
+
case "end":
|
|
7912
|
+
return _context2.stop();
|
|
7913
|
+
}
|
|
7914
|
+
}, _callee2);
|
|
7915
|
+
}));
|
|
7916
|
+
function onBlur(_x7) {
|
|
7917
|
+
return _onBlur.apply(this, arguments);
|
|
7918
|
+
}
|
|
7919
|
+
return onBlur;
|
|
7920
|
+
}(),
|
|
7921
|
+
onKeyDown: function onKeyDown(e) {
|
|
7922
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7923
|
+
var _document$getElementB;
|
|
7924
|
+
handleOk(true);
|
|
7925
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7926
|
+
}
|
|
7927
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7928
|
+
var _e$nativeEvent$path$;
|
|
7929
|
+
antd.message.success('删除当前行');
|
|
7930
|
+
e.stopPropagation();
|
|
7931
|
+
e.preventDefault();
|
|
7932
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7933
|
+
if (dom) {
|
|
7934
|
+
dom.select();
|
|
7935
|
+
dom.focus();
|
|
7936
|
+
dom.scrollIntoView(false);
|
|
7937
|
+
}
|
|
7938
|
+
dom = null;
|
|
7939
|
+
deleteRecord(record);
|
|
7940
|
+
}
|
|
7941
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7942
|
+
var _e$nativeEvent$path$2;
|
|
7943
|
+
// 左滑动
|
|
7944
|
+
e.stopPropagation();
|
|
7945
|
+
e.preventDefault();
|
|
7946
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7947
|
+
if (_dom) {
|
|
7948
|
+
_dom.select();
|
|
7949
|
+
_dom.focus();
|
|
7950
|
+
_dom.scrollIntoView(false);
|
|
7951
|
+
}
|
|
7952
|
+
_dom = null;
|
|
7953
|
+
}
|
|
7954
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7955
|
+
var _e$nativeEvent$path$3;
|
|
7956
|
+
// 右滑
|
|
7957
|
+
e.stopPropagation();
|
|
7958
|
+
e.preventDefault();
|
|
7959
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7960
|
+
if (_dom2) {
|
|
7961
|
+
_dom2.select();
|
|
7962
|
+
_dom2.focus();
|
|
7963
|
+
_dom2.scrollIntoView(false);
|
|
7964
|
+
}
|
|
7965
|
+
_dom2 = null;
|
|
7966
|
+
}
|
|
7967
|
+
if (e.keyCode === 40) {
|
|
7968
|
+
var _e$nativeEvent$path$4;
|
|
7969
|
+
e.stopPropagation();
|
|
7970
|
+
e.preventDefault();
|
|
7971
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7972
|
+
if (_dom3) {
|
|
7973
|
+
_dom3.select();
|
|
7974
|
+
_dom3.focus();
|
|
7975
|
+
_dom3.scrollIntoView(false);
|
|
7976
|
+
}
|
|
7977
|
+
_dom3 = null;
|
|
7978
|
+
} else if (e.keyCode === 38) {
|
|
7979
|
+
var _e$nativeEvent$path$5;
|
|
7980
|
+
e.stopPropagation();
|
|
7981
|
+
e.preventDefault();
|
|
7982
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7983
|
+
if (dom1) {
|
|
7984
|
+
// dom1.value=""
|
|
7985
|
+
// dom1.setSelectionRange(100, 0);
|
|
7986
|
+
dom1.select();
|
|
7987
|
+
dom1.focus();
|
|
7988
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7989
|
+
// dom1.value=record['count']
|
|
7990
|
+
}
|
|
7991
|
+
dom1 = null;
|
|
7992
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7993
|
+
e.stopPropagation();
|
|
7994
|
+
e.preventDefault();
|
|
7995
|
+
}
|
|
7996
|
+
}
|
|
7997
|
+
}));
|
|
7998
|
+
}
|
|
7839
7999
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7840
8000
|
value: text || '',
|
|
7841
8001
|
min: 0,
|
|
@@ -7853,16 +8013,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7853
8013
|
// }}
|
|
7854
8014
|
onKeyDown: function onKeyDown(e) {
|
|
7855
8015
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7856
|
-
var _document$
|
|
8016
|
+
var _document$getElementB2;
|
|
7857
8017
|
handleOk(true);
|
|
7858
|
-
(_document$
|
|
8018
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7859
8019
|
}
|
|
7860
8020
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7861
|
-
var _e$nativeEvent$path
|
|
8021
|
+
var _e$nativeEvent$path$6;
|
|
7862
8022
|
antd.message.success('删除当前行');
|
|
7863
8023
|
e.stopPropagation();
|
|
7864
8024
|
e.preventDefault();
|
|
7865
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
8025
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7866
8026
|
if (dom) {
|
|
7867
8027
|
dom.select();
|
|
7868
8028
|
dom.focus();
|
|
@@ -7872,47 +8032,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7872
8032
|
deleteRecord(record);
|
|
7873
8033
|
}
|
|
7874
8034
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7875
|
-
var _e$nativeEvent$path$
|
|
8035
|
+
var _e$nativeEvent$path$7;
|
|
7876
8036
|
// 左滑动
|
|
7877
8037
|
e.stopPropagation();
|
|
7878
8038
|
e.preventDefault();
|
|
7879
|
-
var
|
|
7880
|
-
if (
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
8039
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
8040
|
+
if (_dom4) {
|
|
8041
|
+
_dom4.select();
|
|
8042
|
+
_dom4.focus();
|
|
8043
|
+
_dom4.scrollIntoView(false);
|
|
7884
8044
|
}
|
|
7885
|
-
|
|
8045
|
+
_dom4 = null;
|
|
7886
8046
|
}
|
|
7887
8047
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7888
|
-
var _e$nativeEvent$path$
|
|
8048
|
+
var _e$nativeEvent$path$8;
|
|
7889
8049
|
// 右滑
|
|
7890
8050
|
e.stopPropagation();
|
|
7891
8051
|
e.preventDefault();
|
|
7892
|
-
var
|
|
7893
|
-
if (
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
8052
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
8053
|
+
if (_dom5) {
|
|
8054
|
+
_dom5.select();
|
|
8055
|
+
_dom5.focus();
|
|
8056
|
+
_dom5.scrollIntoView(false);
|
|
7897
8057
|
}
|
|
7898
|
-
|
|
8058
|
+
_dom5 = null;
|
|
7899
8059
|
}
|
|
7900
8060
|
if (e.keyCode === 40) {
|
|
7901
|
-
var _e$nativeEvent$path$
|
|
8061
|
+
var _e$nativeEvent$path$9;
|
|
7902
8062
|
e.stopPropagation();
|
|
7903
8063
|
e.preventDefault();
|
|
7904
|
-
var
|
|
7905
|
-
if (
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
8064
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
8065
|
+
if (_dom6) {
|
|
8066
|
+
_dom6.select();
|
|
8067
|
+
_dom6.focus();
|
|
8068
|
+
_dom6.scrollIntoView(false);
|
|
7909
8069
|
}
|
|
7910
|
-
|
|
8070
|
+
_dom6 = null;
|
|
7911
8071
|
} else if (e.keyCode === 38) {
|
|
7912
|
-
var _e$nativeEvent$path$
|
|
8072
|
+
var _e$nativeEvent$path$10;
|
|
7913
8073
|
e.stopPropagation();
|
|
7914
8074
|
e.preventDefault();
|
|
7915
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8075
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7916
8076
|
if (dom1) {
|
|
7917
8077
|
// dom1.value=""
|
|
7918
8078
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7946,19 +8106,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7946
8106
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7947
8107
|
value: text || null,
|
|
7948
8108
|
onChange: function () {
|
|
7949
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
8109
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
7950
8110
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7951
|
-
return _regeneratorRuntime().wrap(function
|
|
7952
|
-
while (1) switch (
|
|
8111
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8112
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7953
8113
|
case 0:
|
|
7954
8114
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7955
8115
|
return d[selectKey] == value;
|
|
7956
8116
|
})) || {};
|
|
7957
8117
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7958
|
-
|
|
8118
|
+
_context3.next = 6;
|
|
7959
8119
|
break;
|
|
7960
8120
|
}
|
|
7961
|
-
|
|
8121
|
+
_context3.next = 4;
|
|
7962
8122
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
7963
8123
|
record: record,
|
|
7964
8124
|
index: index,
|
|
@@ -7969,7 +8129,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7969
8129
|
editRecord: editRecord
|
|
7970
8130
|
});
|
|
7971
8131
|
case 4:
|
|
7972
|
-
|
|
8132
|
+
_context3.next = 25;
|
|
7973
8133
|
break;
|
|
7974
8134
|
case 6:
|
|
7975
8135
|
// 更新当前行数据函数
|
|
@@ -7984,12 +8144,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7984
8144
|
}
|
|
7985
8145
|
}; // 处理校验,默认不校验
|
|
7986
8146
|
isCheckPass = true;
|
|
7987
|
-
|
|
8147
|
+
_context3.prev = 8;
|
|
7988
8148
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7989
|
-
|
|
8149
|
+
_context3.next = 15;
|
|
7990
8150
|
break;
|
|
7991
8151
|
}
|
|
7992
|
-
|
|
8152
|
+
_context3.next = 12;
|
|
7993
8153
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7994
8154
|
record: record,
|
|
7995
8155
|
index: index,
|
|
@@ -7999,21 +8159,21 @@ var AddSelect = function AddSelect(props) {
|
|
|
7999
8159
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8000
8160
|
});
|
|
8001
8161
|
case 12:
|
|
8002
|
-
isCheckPass =
|
|
8003
|
-
|
|
8162
|
+
isCheckPass = _context3.sent;
|
|
8163
|
+
_context3.next = 19;
|
|
8004
8164
|
break;
|
|
8005
8165
|
case 15:
|
|
8006
|
-
|
|
8166
|
+
_context3.next = 17;
|
|
8007
8167
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8008
8168
|
case 17:
|
|
8009
|
-
isConformToTheRules =
|
|
8169
|
+
isConformToTheRules = _context3.sent;
|
|
8010
8170
|
isCheckPass = !isConformToTheRules;
|
|
8011
8171
|
case 19:
|
|
8012
|
-
|
|
8172
|
+
_context3.next = 23;
|
|
8013
8173
|
break;
|
|
8014
8174
|
case 21:
|
|
8015
|
-
|
|
8016
|
-
|
|
8175
|
+
_context3.prev = 21;
|
|
8176
|
+
_context3.t0 = _context3["catch"](8);
|
|
8017
8177
|
case 23:
|
|
8018
8178
|
if (isCheckPass) {
|
|
8019
8179
|
changeValue(value, dataSourceSelectItem);
|
|
@@ -8024,11 +8184,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
8024
8184
|
editRecord(record);
|
|
8025
8185
|
case 25:
|
|
8026
8186
|
case "end":
|
|
8027
|
-
return
|
|
8187
|
+
return _context3.stop();
|
|
8028
8188
|
}
|
|
8029
|
-
},
|
|
8189
|
+
}, _callee3, null, [[8, 21]]);
|
|
8030
8190
|
}));
|
|
8031
|
-
function onChange(
|
|
8191
|
+
function onChange(_x8) {
|
|
8032
8192
|
return _onChange.apply(this, arguments);
|
|
8033
8193
|
}
|
|
8034
8194
|
return onChange;
|
|
@@ -8288,8 +8448,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8288
8448
|
}
|
|
8289
8449
|
}
|
|
8290
8450
|
setTimeout(function () {
|
|
8291
|
-
var _document$
|
|
8292
|
-
(_document$
|
|
8451
|
+
var _document$getElementB3;
|
|
8452
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8293
8453
|
}, 50);
|
|
8294
8454
|
};
|
|
8295
8455
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8319,7 +8479,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8319
8479
|
handleLoading(isContinue, true);
|
|
8320
8480
|
onSaveCallback(popvalue).then(function (res) {
|
|
8321
8481
|
{
|
|
8322
|
-
var _Object$keys2, _document$
|
|
8482
|
+
var _Object$keys2, _document$getElementB4;
|
|
8323
8483
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8324
8484
|
var initSuccessMessage = '保存成功';
|
|
8325
8485
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8329,7 +8489,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8329
8489
|
antd.message.success(initSuccessMessage);
|
|
8330
8490
|
}
|
|
8331
8491
|
deleteSelectRows();
|
|
8332
|
-
(_document$
|
|
8492
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8333
8493
|
!isContinue && handleCancel();
|
|
8334
8494
|
}
|
|
8335
8495
|
handleLoading(isContinue, false);
|
|
@@ -10507,10 +10667,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10507
10667
|
selectProps = _objectSpread2({
|
|
10508
10668
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10509
10669
|
renderTableColumns: [{
|
|
10510
|
-
title: '
|
|
10670
|
+
title: 'SPU编码',
|
|
10511
10671
|
dataIndex: 'itemCode'
|
|
10512
10672
|
}, {
|
|
10513
|
-
title: '
|
|
10673
|
+
title: 'SPU名称',
|
|
10514
10674
|
dataIndex: 'name'
|
|
10515
10675
|
}]
|
|
10516
10676
|
}, selectConfigProps);
|
|
@@ -10527,11 +10687,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10527
10687
|
}, requestConfigProp);
|
|
10528
10688
|
tableSearchForm = [{
|
|
10529
10689
|
name: 'itemCode*multiInput',
|
|
10530
|
-
label: '
|
|
10690
|
+
label: 'SPU编码',
|
|
10531
10691
|
type: 'multipleQueryInput'
|
|
10532
10692
|
}, {
|
|
10533
10693
|
name: 'name*multiInput',
|
|
10534
|
-
label: '
|
|
10694
|
+
label: 'SPU名称',
|
|
10535
10695
|
type: 'multipleQueryInput'
|
|
10536
10696
|
}, {
|
|
10537
10697
|
name: 'qp-brandId-in',
|
|
@@ -10625,11 +10785,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10625
10785
|
dataIndex: 'keyIndex',
|
|
10626
10786
|
defaultSort: 0
|
|
10627
10787
|
}, {
|
|
10628
|
-
title: '
|
|
10788
|
+
title: 'SPU编码',
|
|
10629
10789
|
dataIndex: 'itemCode',
|
|
10630
10790
|
defaultSort: 1
|
|
10631
10791
|
}, {
|
|
10632
|
-
title: '
|
|
10792
|
+
title: 'SPU名称',
|
|
10633
10793
|
dataIndex: 'name',
|
|
10634
10794
|
defaultSort: 2
|
|
10635
10795
|
}, {
|
|
@@ -10983,7 +11143,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10983
11143
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10984
11144
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10985
11145
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10986
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11146
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10987
11147
|
});
|
|
10988
11148
|
requestConfig = _objectSpread2({
|
|
10989
11149
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11197,6 +11357,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11197
11357
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11198
11358
|
sourceName: 'warehouseIds'
|
|
11199
11359
|
}, requestConfigProp);
|
|
11360
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11361
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11362
|
+
extralHeaders: extralHeaders
|
|
11363
|
+
});
|
|
11364
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11365
|
+
'qp-status-eq': 10,
|
|
11366
|
+
'qp-isMain-eq': 1,
|
|
11367
|
+
'qp-type-in': '1,2'
|
|
11368
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11369
|
+
'qp-status-eq': 1
|
|
11370
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11371
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11372
|
+
return data['parentCode'] === '0';
|
|
11373
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11374
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11375
|
+
return data['parent'] === '0';
|
|
11376
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11377
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11378
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11379
|
+
});
|
|
11200
11380
|
tableSearchForm = [{
|
|
11201
11381
|
name: 'realWarehouseName*multiInput',
|
|
11202
11382
|
label: '逻辑仓名称',
|
|
@@ -11220,6 +11400,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11220
11400
|
},
|
|
11221
11401
|
label: '管理大区',
|
|
11222
11402
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11403
|
+
}, {
|
|
11404
|
+
name: 'qp-channelCode-in',
|
|
11405
|
+
type: 'treeSelect',
|
|
11406
|
+
label: '销售渠道',
|
|
11407
|
+
field: {
|
|
11408
|
+
type: 'treeSelect',
|
|
11409
|
+
props: {
|
|
11410
|
+
multiple: true,
|
|
11411
|
+
treeData: [],
|
|
11412
|
+
treeCheckable: false,
|
|
11413
|
+
notFoundContent: '暂无数据',
|
|
11414
|
+
allowClear: true,
|
|
11415
|
+
showSearch: true,
|
|
11416
|
+
showArrow: true,
|
|
11417
|
+
maxTagCount: 1,
|
|
11418
|
+
optionFilterProp: 'children',
|
|
11419
|
+
filterOption: function filterOption(input, option) {
|
|
11420
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11421
|
+
},
|
|
11422
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11423
|
+
}
|
|
11424
|
+
}
|
|
11425
|
+
}, {
|
|
11426
|
+
name: 'qp-refCode-in',
|
|
11427
|
+
type: 'treeSelect',
|
|
11428
|
+
label: '营销区域',
|
|
11429
|
+
field: {
|
|
11430
|
+
type: 'treeSelect',
|
|
11431
|
+
props: {
|
|
11432
|
+
multiple: true,
|
|
11433
|
+
treeData: [],
|
|
11434
|
+
treeCheckable: false,
|
|
11435
|
+
notFoundContent: '暂无数据',
|
|
11436
|
+
allowClear: true,
|
|
11437
|
+
showSearch: true,
|
|
11438
|
+
showArrow: true,
|
|
11439
|
+
maxTagCount: 1,
|
|
11440
|
+
optionFilterProp: 'children',
|
|
11441
|
+
filterOption: function filterOption(input, option) {
|
|
11442
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11443
|
+
},
|
|
11444
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11445
|
+
}
|
|
11446
|
+
}
|
|
11447
|
+
}, {
|
|
11448
|
+
name: 'qp-type-in',
|
|
11449
|
+
type: 'select',
|
|
11450
|
+
label: '店铺性质',
|
|
11451
|
+
field: {
|
|
11452
|
+
type: 'select',
|
|
11453
|
+
props: {
|
|
11454
|
+
mode: 'multiple',
|
|
11455
|
+
notFoundContent: '暂无数据',
|
|
11456
|
+
allowClear: true,
|
|
11457
|
+
showSearch: true,
|
|
11458
|
+
showArrow: true,
|
|
11459
|
+
maxTagCount: 1,
|
|
11460
|
+
optionFilterProp: 'children',
|
|
11461
|
+
filterOption: function filterOption(input, option) {
|
|
11462
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11463
|
+
}
|
|
11464
|
+
}
|
|
11465
|
+
},
|
|
11466
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11223
11467
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11224
11468
|
name: 'qp-isEnable-eq',
|
|
11225
11469
|
type: 'select',
|
|
@@ -11248,10 +11492,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11248
11492
|
render: function render(text) {
|
|
11249
11493
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11250
11494
|
}
|
|
11495
|
+
}, {
|
|
11496
|
+
title: '运营组名称',
|
|
11497
|
+
dataIndex: 'groupCode',
|
|
11498
|
+
defaultSort: 7,
|
|
11499
|
+
render: function render(text, record) {
|
|
11500
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11501
|
+
},
|
|
11502
|
+
width: 100
|
|
11503
|
+
}, {
|
|
11504
|
+
title: '所属销售渠道',
|
|
11505
|
+
dataIndex: 'channelName',
|
|
11506
|
+
defaultSort: 4,
|
|
11507
|
+
width: 100
|
|
11508
|
+
}, {
|
|
11509
|
+
title: '营销区域',
|
|
11510
|
+
dataIndex: 'commonRelationAreaName',
|
|
11511
|
+
defaultSort: 5,
|
|
11512
|
+
width: 100
|
|
11513
|
+
}, {
|
|
11514
|
+
title: '店铺性质',
|
|
11515
|
+
dataIndex: 'type',
|
|
11516
|
+
defaultSort: 6,
|
|
11517
|
+
render: function render(text) {
|
|
11518
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11519
|
+
},
|
|
11520
|
+
width: 80
|
|
11251
11521
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11252
11522
|
title: '状态',
|
|
11253
11523
|
dataIndex: 'isEnable',
|
|
11254
|
-
defaultSort:
|
|
11524
|
+
defaultSort: 8,
|
|
11255
11525
|
render: function render(text) {
|
|
11256
11526
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11257
11527
|
}
|
|
@@ -11311,20 +11581,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11311
11581
|
}
|
|
11312
11582
|
}
|
|
11313
11583
|
}
|
|
11584
|
+
}, {
|
|
11585
|
+
name: 'qp-channelCode-in',
|
|
11586
|
+
type: 'treeSelect',
|
|
11587
|
+
label: '销售渠道',
|
|
11588
|
+
field: {
|
|
11589
|
+
type: 'treeSelect',
|
|
11590
|
+
props: {
|
|
11591
|
+
multiple: true,
|
|
11592
|
+
treeData: [],
|
|
11593
|
+
treeCheckable: false,
|
|
11594
|
+
notFoundContent: '暂无数据',
|
|
11595
|
+
allowClear: true,
|
|
11596
|
+
showSearch: true,
|
|
11597
|
+
showArrow: true,
|
|
11598
|
+
maxTagCount: 1,
|
|
11599
|
+
optionFilterProp: 'children',
|
|
11600
|
+
filterOption: function filterOption(input, option) {
|
|
11601
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11602
|
+
},
|
|
11603
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11314
11606
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11315
11607
|
name: 'qp-status-eq',
|
|
11316
11608
|
type: 'select',
|
|
11317
11609
|
label: '运营仓状态',
|
|
11318
11610
|
initialSource: getDictionarySource$1('SC00001')
|
|
11319
11611
|
}] : []));
|
|
11320
|
-
var
|
|
11612
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11321
11613
|
querySelectHeadersList: querySelectHeadersList,
|
|
11322
11614
|
extralHeaders: extralHeaders
|
|
11323
11615
|
});
|
|
11324
11616
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11325
11617
|
'qp-status-eq': 1
|
|
11326
|
-
}, getQueryHeadersItem(
|
|
11618
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11619
|
+
'qp-status-eq': 10,
|
|
11620
|
+
'qp-isMain-eq': 1,
|
|
11621
|
+
'qp-type-in': '1,2'
|
|
11622
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11327
11623
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11624
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11625
|
+
return data['parentCode'] === '0';
|
|
11626
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11627
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11328
11628
|
});
|
|
11329
11629
|
modalTableProps = _objectSpread2({
|
|
11330
11630
|
modalTableTitle: '选择运营仓',
|
|
@@ -11352,7 +11652,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11352
11652
|
render: function render(text) {
|
|
11353
11653
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11354
11654
|
}
|
|
11355
|
-
}] : [])
|
|
11655
|
+
}] : []), [{
|
|
11656
|
+
title: '所属销售渠道',
|
|
11657
|
+
dataIndex: 'channelName',
|
|
11658
|
+
defaultSort: 5,
|
|
11659
|
+
width: 100
|
|
11660
|
+
}])
|
|
11356
11661
|
}, modalTableBusProps);
|
|
11357
11662
|
}
|
|
11358
11663
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11501,7 +11806,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11501
11806
|
label: '共享类型',
|
|
11502
11807
|
initialSource: sharingTypeDataList
|
|
11503
11808
|
}];
|
|
11504
|
-
var
|
|
11809
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11505
11810
|
querySelectHeadersList: querySelectHeadersList,
|
|
11506
11811
|
extralHeaders: extralHeaders
|
|
11507
11812
|
});
|
|
@@ -11509,14 +11814,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11509
11814
|
pageSize: 5000,
|
|
11510
11815
|
currentPage: 1,
|
|
11511
11816
|
'qp-companyType-eq': '30'
|
|
11512
|
-
}, getQueryHeadersItem(
|
|
11817
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11513
11818
|
pageSize: 5000,
|
|
11514
11819
|
currentPage: 1
|
|
11515
|
-
}, getQueryHeadersItem(
|
|
11820
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11516
11821
|
pageSize: 5000,
|
|
11517
11822
|
currentPage: 1,
|
|
11518
11823
|
'qp-companyType-eq': '20'
|
|
11519
|
-
}, getQueryHeadersItem(
|
|
11824
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11520
11825
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11521
11826
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11522
11827
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11628,16 +11933,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11628
11933
|
}
|
|
11629
11934
|
}
|
|
11630
11935
|
}
|
|
11936
|
+
}, {
|
|
11937
|
+
name: 'qp-saleChannel-in',
|
|
11938
|
+
type: 'treeSelect',
|
|
11939
|
+
label: '销售渠道',
|
|
11940
|
+
field: {
|
|
11941
|
+
type: 'treeSelect',
|
|
11942
|
+
props: {
|
|
11943
|
+
multiple: true,
|
|
11944
|
+
treeData: [],
|
|
11945
|
+
treeCheckable: false,
|
|
11946
|
+
notFoundContent: '暂无数据',
|
|
11947
|
+
allowClear: true,
|
|
11948
|
+
showSearch: true,
|
|
11949
|
+
showArrow: true,
|
|
11950
|
+
maxTagCount: 1,
|
|
11951
|
+
optionFilterProp: 'children',
|
|
11952
|
+
filterOption: function filterOption(input, option) {
|
|
11953
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11954
|
+
},
|
|
11955
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11956
|
+
}
|
|
11957
|
+
}
|
|
11958
|
+
}, {
|
|
11959
|
+
name: 'qp-refCode-in',
|
|
11960
|
+
type: 'treeSelect',
|
|
11961
|
+
label: '营销区域',
|
|
11962
|
+
field: {
|
|
11963
|
+
type: 'treeSelect',
|
|
11964
|
+
props: {
|
|
11965
|
+
multiple: true,
|
|
11966
|
+
treeData: [],
|
|
11967
|
+
treeCheckable: false,
|
|
11968
|
+
notFoundContent: '暂无数据',
|
|
11969
|
+
allowClear: true,
|
|
11970
|
+
showSearch: true,
|
|
11971
|
+
showArrow: true,
|
|
11972
|
+
maxTagCount: 1,
|
|
11973
|
+
optionFilterProp: 'children',
|
|
11974
|
+
filterOption: function filterOption(input, option) {
|
|
11975
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11976
|
+
},
|
|
11977
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11978
|
+
}
|
|
11979
|
+
}
|
|
11631
11980
|
}];
|
|
11632
|
-
var
|
|
11981
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11633
11982
|
querySelectHeadersList: querySelectHeadersList,
|
|
11634
11983
|
extralHeaders: extralHeaders
|
|
11635
11984
|
});
|
|
11636
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11985
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11986
|
+
'qp-status-eq': 10,
|
|
11987
|
+
'qp-isMain-eq': 1,
|
|
11988
|
+
'qp-type-in': '1,2'
|
|
11989
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11990
|
+
'qp-status-eq': 1
|
|
11991
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11637
11992
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11638
11993
|
var allList = firstElement && [firstElement, firstElement];
|
|
11639
11994
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11640
11995
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11996
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11997
|
+
return data['parentCode'] === '0';
|
|
11998
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11999
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12000
|
+
return data['parent'] === '0';
|
|
12001
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12002
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12003
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11641
12004
|
});
|
|
11642
12005
|
modalTableProps = _objectSpread2({
|
|
11643
12006
|
modalTableTitle: '选择客户',
|
|
@@ -11661,7 +12024,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11661
12024
|
}, {
|
|
11662
12025
|
title: '使用组织',
|
|
11663
12026
|
dataIndex: 'salesOrgName',
|
|
11664
|
-
defaultSort: 4
|
|
12027
|
+
defaultSort: 4,
|
|
12028
|
+
width: 100
|
|
12029
|
+
}, {
|
|
12030
|
+
title: '所属销售渠道',
|
|
12031
|
+
dataIndex: 'channelName',
|
|
12032
|
+
defaultSort: 5,
|
|
12033
|
+
width: 100
|
|
12034
|
+
}, {
|
|
12035
|
+
title: '营销区域',
|
|
12036
|
+
dataIndex: 'commonRelationAreaName',
|
|
12037
|
+
defaultSort: 6,
|
|
12038
|
+
width: 100
|
|
11665
12039
|
}]
|
|
11666
12040
|
}, modalTableBusProps);
|
|
11667
12041
|
}
|
|
@@ -11689,12 +12063,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11689
12063
|
sourceName: 'code'
|
|
11690
12064
|
}, requestConfigProp);
|
|
11691
12065
|
tableSearchForm = [{
|
|
11692
|
-
name: '
|
|
11693
|
-
label: '店铺名称'
|
|
11694
|
-
|
|
11695
|
-
name: 'qp-code-like',
|
|
11696
|
-
label: '店铺编码'
|
|
12066
|
+
name: 'name*multiInput',
|
|
12067
|
+
label: '店铺名称',
|
|
12068
|
+
type: 'multipleQueryInput'
|
|
11697
12069
|
}, {
|
|
12070
|
+
name: 'code*multiInput',
|
|
12071
|
+
label: '店铺编码',
|
|
12072
|
+
type: 'multipleQueryInput'
|
|
12073
|
+
},
|
|
12074
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12075
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12076
|
+
{
|
|
11698
12077
|
name: 'qp-conglomerateCode-in',
|
|
11699
12078
|
type: 'select',
|
|
11700
12079
|
label: '归属集团',
|
|
@@ -11795,7 +12174,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11795
12174
|
}
|
|
11796
12175
|
}
|
|
11797
12176
|
}];
|
|
11798
|
-
var
|
|
12177
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11799
12178
|
querySelectHeadersList: querySelectHeadersList,
|
|
11800
12179
|
extralHeaders: extralHeaders
|
|
11801
12180
|
});
|
|
@@ -11803,21 +12182,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11803
12182
|
pageSize: 5000,
|
|
11804
12183
|
currentPage: 1,
|
|
11805
12184
|
'qp-companyType-eq': '30'
|
|
11806
|
-
}, getQueryHeadersItem(
|
|
12185
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11807
12186
|
pageSize: 5000,
|
|
11808
12187
|
currentPage: 1,
|
|
11809
12188
|
'qp-companyType-eq': '20'
|
|
11810
|
-
}, getQueryHeadersItem(
|
|
12189
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11811
12190
|
// pageSize: 5000,
|
|
11812
12191
|
// currentPage: 1,
|
|
11813
12192
|
'qp-status-eq': '1'
|
|
11814
|
-
}, getQueryHeadersItem(
|
|
12193
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11815
12194
|
pageSize: 5000,
|
|
11816
12195
|
currentPage: 1
|
|
11817
|
-
}, getQueryHeadersItem(
|
|
12196
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11818
12197
|
pageSize: 5000,
|
|
11819
12198
|
currentPage: 1
|
|
11820
|
-
}, getQueryHeadersItem(
|
|
12199
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11821
12200
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11822
12201
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11823
12202
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11987,7 +12366,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11987
12366
|
},
|
|
11988
12367
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11989
12368
|
}];
|
|
11990
|
-
var
|
|
12369
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11991
12370
|
querySelectHeadersList: querySelectHeadersList,
|
|
11992
12371
|
extralHeaders: extralHeaders
|
|
11993
12372
|
});
|
|
@@ -11995,13 +12374,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11995
12374
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11996
12375
|
'qp-realOrg-eq': true,
|
|
11997
12376
|
'qp-status-eq': 10
|
|
11998
|
-
}, getQueryHeadersItem(
|
|
12377
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11999
12378
|
'qp-status-eq': 10,
|
|
12000
12379
|
'qp-isMain-eq': 1,
|
|
12001
12380
|
'qp-type-in': '1,2'
|
|
12002
|
-
}, getQueryHeadersItem(
|
|
12381
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12003
12382
|
'qp-status-eq': 1
|
|
12004
|
-
}, getQueryHeadersItem(
|
|
12383
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
12005
12384
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12006
12385
|
return data['parentCode'] === '0';
|
|
12007
12386
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12236,10 +12615,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12236
12615
|
name: 'qp-email-like',
|
|
12237
12616
|
label: '邮箱'
|
|
12238
12617
|
}, {
|
|
12239
|
-
name: 'qp-
|
|
12618
|
+
name: 'qp-phone-like',
|
|
12240
12619
|
label: '手机号'
|
|
12241
12620
|
}];
|
|
12242
|
-
var
|
|
12621
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12243
12622
|
querySelectHeadersList: querySelectHeadersList,
|
|
12244
12623
|
extralHeaders: extralHeaders
|
|
12245
12624
|
});
|
|
@@ -12247,7 +12626,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12247
12626
|
pageSize: 5000,
|
|
12248
12627
|
currentPage: 1,
|
|
12249
12628
|
'qp-companyType-eq': 20
|
|
12250
|
-
}, getQueryHeadersItem(
|
|
12629
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12251
12630
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12252
12631
|
});
|
|
12253
12632
|
modalTableProps = _objectSpread2({
|
|
@@ -12353,16 +12732,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12353
12732
|
name: 'qp-email-like',
|
|
12354
12733
|
label: '邮箱'
|
|
12355
12734
|
}, {
|
|
12356
|
-
name: 'qp-
|
|
12735
|
+
name: 'qp-phone-like',
|
|
12357
12736
|
label: '手机号'
|
|
12358
12737
|
}]);
|
|
12359
|
-
var
|
|
12738
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12360
12739
|
querySelectHeadersList: querySelectHeadersList,
|
|
12361
12740
|
extralHeaders: extralHeaders
|
|
12362
12741
|
});
|
|
12363
12742
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12364
12743
|
'orgViewCode': 'administrative-organization-view'
|
|
12365
|
-
}, getQueryHeadersItem(
|
|
12744
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12366
12745
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12367
12746
|
});
|
|
12368
12747
|
modalTableProps = _objectSpread2({
|
|
@@ -12509,17 +12888,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12509
12888
|
name: 'qp-remark-like',
|
|
12510
12889
|
label: '备注'
|
|
12511
12890
|
}];
|
|
12512
|
-
var
|
|
12891
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12513
12892
|
querySelectHeadersList: querySelectHeadersList,
|
|
12514
12893
|
extralHeaders: extralHeaders
|
|
12515
12894
|
});
|
|
12516
12895
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12517
12896
|
pageSize: 5000,
|
|
12518
12897
|
currentPage: 1
|
|
12519
|
-
}, getQueryHeadersItem(
|
|
12898
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12520
12899
|
pageSize: 5000,
|
|
12521
12900
|
currentPage: 1
|
|
12522
|
-
}, getQueryHeadersItem(
|
|
12901
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12523
12902
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12524
12903
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12525
12904
|
});
|
|
@@ -12689,14 +13068,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12689
13068
|
}
|
|
12690
13069
|
}
|
|
12691
13070
|
}];
|
|
12692
|
-
var
|
|
13071
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12693
13072
|
querySelectHeadersList: querySelectHeadersList,
|
|
12694
13073
|
extralHeaders: extralHeaders
|
|
12695
13074
|
});
|
|
12696
13075
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12697
13076
|
pageSize: 5000,
|
|
12698
13077
|
currentPage: 1
|
|
12699
|
-
}, getQueryHeadersItem(
|
|
13078
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12700
13079
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12701
13080
|
});
|
|
12702
13081
|
modalTableProps = _objectSpread2({
|
|
@@ -12793,7 +13172,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12793
13172
|
}
|
|
12794
13173
|
}
|
|
12795
13174
|
}];
|
|
12796
|
-
var
|
|
13175
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12797
13176
|
querySelectHeadersList: querySelectHeadersList,
|
|
12798
13177
|
extralHeaders: extralHeaders
|
|
12799
13178
|
});
|
|
@@ -12801,7 +13180,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12801
13180
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12802
13181
|
'qp-realOrg-eq': true,
|
|
12803
13182
|
'qp-status-eq': 10
|
|
12804
|
-
}, getQueryHeadersItem(
|
|
13183
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12805
13184
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12806
13185
|
});
|
|
12807
13186
|
modalTableProps = _objectSpread2({
|
|
@@ -12907,13 +13286,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12907
13286
|
},
|
|
12908
13287
|
initialSource: nodeType
|
|
12909
13288
|
}];
|
|
12910
|
-
var
|
|
13289
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12911
13290
|
querySelectHeadersList: querySelectHeadersList,
|
|
12912
13291
|
extralHeaders: extralHeaders
|
|
12913
13292
|
});
|
|
12914
13293
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12915
13294
|
'qp-status-eq': 10
|
|
12916
|
-
}, getQueryHeadersItem(
|
|
13295
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12917
13296
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12918
13297
|
});
|
|
12919
13298
|
modalTableProps = _objectSpread2({
|
|
@@ -13239,13 +13618,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13239
13618
|
},
|
|
13240
13619
|
initialSource: nodeType
|
|
13241
13620
|
}];
|
|
13242
|
-
var
|
|
13621
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13243
13622
|
querySelectHeadersList: querySelectHeadersList,
|
|
13244
13623
|
extralHeaders: extralHeaders
|
|
13245
13624
|
});
|
|
13246
13625
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13247
13626
|
'qp-status-eq': 10
|
|
13248
|
-
}, getQueryHeadersItem(
|
|
13627
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13249
13628
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13250
13629
|
});
|
|
13251
13630
|
modalTableProps = _objectSpread2({
|
|
@@ -38257,7 +38636,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38257
38636
|
display: 'flex',
|
|
38258
38637
|
marginBottom: '0px',
|
|
38259
38638
|
padding: '10px 0px'
|
|
38260
|
-
}
|
|
38639
|
+
},
|
|
38640
|
+
key: itemDetail.elementId
|
|
38261
38641
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38262
38642
|
className: 'logical_operate_content',
|
|
38263
38643
|
style: {
|
|
@@ -40201,6 +40581,85 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40201
40581
|
}, children));
|
|
40202
40582
|
};
|
|
40203
40583
|
|
|
40584
|
+
//操作日志
|
|
40585
|
+
var SystemLog = function SystemLog(_ref) {
|
|
40586
|
+
var modeType = _ref.modeType,
|
|
40587
|
+
code = _ref.code,
|
|
40588
|
+
containerName = _ref.containerName,
|
|
40589
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
40590
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40591
|
+
_ref$extraParams = _ref.extraParams,
|
|
40592
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40593
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40594
|
+
initialVisible: modeType != 'create',
|
|
40595
|
+
fields: [{
|
|
40596
|
+
name: 'table',
|
|
40597
|
+
label: false,
|
|
40598
|
+
itemLayout: {
|
|
40599
|
+
span: 24,
|
|
40600
|
+
labelCol: {
|
|
40601
|
+
span: 0
|
|
40602
|
+
},
|
|
40603
|
+
wrapperCol: {
|
|
40604
|
+
span: 24
|
|
40605
|
+
}
|
|
40606
|
+
},
|
|
40607
|
+
field: function field(ctx) {
|
|
40608
|
+
return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
|
|
40609
|
+
remoteDataSource: {
|
|
40610
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40611
|
+
convertParams: function convertParams(_ref2) {
|
|
40612
|
+
var params = _ref2.params;
|
|
40613
|
+
return _objectSpread2({
|
|
40614
|
+
pageSize: params.pageSize,
|
|
40615
|
+
currentPage: params.current
|
|
40616
|
+
}, extraParams);
|
|
40617
|
+
},
|
|
40618
|
+
converter: function converter(_ref3) {
|
|
40619
|
+
var data = _ref3.data;
|
|
40620
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40621
|
+
}
|
|
40622
|
+
},
|
|
40623
|
+
columns: [{
|
|
40624
|
+
title: '操作人',
|
|
40625
|
+
dataIndex: 'handlerName'
|
|
40626
|
+
}, {
|
|
40627
|
+
title: '操作名称',
|
|
40628
|
+
dataIndex: 'handlerType'
|
|
40629
|
+
}, {
|
|
40630
|
+
title: '操作时间',
|
|
40631
|
+
dataIndex: 'handlerTime',
|
|
40632
|
+
render: function render(_ref4) {
|
|
40633
|
+
var text = _ref4.text;
|
|
40634
|
+
return handleCommonTimeRender$1(text);
|
|
40635
|
+
}
|
|
40636
|
+
}, {
|
|
40637
|
+
title: '操作内容',
|
|
40638
|
+
dataIndex: 'logcontent'
|
|
40639
|
+
}],
|
|
40640
|
+
style: {
|
|
40641
|
+
width: '100%',
|
|
40642
|
+
marginTop: '-16px',
|
|
40643
|
+
padding: '0px'
|
|
40644
|
+
},
|
|
40645
|
+
rowKey: "id",
|
|
40646
|
+
scroll: {
|
|
40647
|
+
x: 'max-content'
|
|
40648
|
+
},
|
|
40649
|
+
pagination: {
|
|
40650
|
+
showTotal: function showTotal(total) {
|
|
40651
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40652
|
+
},
|
|
40653
|
+
showQuickJumper: true,
|
|
40654
|
+
hideOnSinglePage: true
|
|
40655
|
+
},
|
|
40656
|
+
ref: renderLogRef
|
|
40657
|
+
});
|
|
40658
|
+
}
|
|
40659
|
+
}]
|
|
40660
|
+
});
|
|
40661
|
+
};
|
|
40662
|
+
|
|
40204
40663
|
exports.AddSelect = AddSelect;
|
|
40205
40664
|
exports.AddSkcSelect = AddSkcSelect;
|
|
40206
40665
|
exports.AddSkuSelect = AddSkuSelect;
|
|
@@ -40239,6 +40698,7 @@ exports.SearchSelect = SearchSelect;
|
|
|
40239
40698
|
exports.Section = Section;
|
|
40240
40699
|
exports.StateFlow = index$2;
|
|
40241
40700
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
40701
|
+
exports.SystemLog = SystemLog;
|
|
40242
40702
|
exports.TableColumnSetting = TableColumnSetting;
|
|
40243
40703
|
exports.TreeSearchSelect = TreeSearchSelect;
|
|
40244
40704
|
exports.authFunc = authFunc;
|
|
@@ -40248,6 +40708,7 @@ exports.coverToParallel = _coverToParallel;
|
|
|
40248
40708
|
exports.createUniqID = createUniqID;
|
|
40249
40709
|
exports.downloadExcel = downloadExcel;
|
|
40250
40710
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
40711
|
+
exports.formContainerAndItemLayout = formContainerAndItemLayout;
|
|
40251
40712
|
exports.formatter = _formatter;
|
|
40252
40713
|
exports.getAccountID = getAccountID;
|
|
40253
40714
|
exports.getAccountId = getAccountId;
|