@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.esm.js
CHANGED
|
@@ -1454,6 +1454,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1454
1454
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1455
1455
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1456
1456
|
};
|
|
1457
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1458
|
+
return type === 'form' ? {
|
|
1459
|
+
container: {
|
|
1460
|
+
type: 'card',
|
|
1461
|
+
props: {
|
|
1462
|
+
title: title,
|
|
1463
|
+
id: Math.random(),
|
|
1464
|
+
level: 1,
|
|
1465
|
+
name: name
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
itemLayout: {
|
|
1469
|
+
span: 8,
|
|
1470
|
+
labelCol: {
|
|
1471
|
+
span: 8
|
|
1472
|
+
},
|
|
1473
|
+
wrapperCol: {
|
|
1474
|
+
span: 18
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
} : {
|
|
1478
|
+
container: {
|
|
1479
|
+
type: 'card',
|
|
1480
|
+
props: {
|
|
1481
|
+
title: title,
|
|
1482
|
+
id: Math.random(),
|
|
1483
|
+
level: 1,
|
|
1484
|
+
bordered: null,
|
|
1485
|
+
isWhiteCard: true,
|
|
1486
|
+
name: name
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
itemLayout: {
|
|
1490
|
+
wrapperCol: {
|
|
1491
|
+
span: 0
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1457
1496
|
|
|
1458
1497
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1459
1498
|
var authFunc = function authFunc(code) {
|
|
@@ -4943,7 +4982,7 @@ function ToCDB$1(selectStr) {
|
|
|
4943
4982
|
return tmp;
|
|
4944
4983
|
}
|
|
4945
4984
|
|
|
4946
|
-
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 -
|
|
4985
|
+
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";
|
|
4947
4986
|
styleInject(css_248z$6);
|
|
4948
4987
|
|
|
4949
4988
|
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";
|
|
@@ -5433,6 +5472,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5433
5472
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5434
5473
|
fieldComponent = props.fieldComponent,
|
|
5435
5474
|
onSaveCallback = props.onSaveCallback,
|
|
5475
|
+
_props$returnFormat = props.returnFormat,
|
|
5476
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5436
5477
|
selectBusinessType = props.selectBusinessType;
|
|
5437
5478
|
var _ref = rCTemp || {},
|
|
5438
5479
|
url = _ref.url,
|
|
@@ -5491,14 +5532,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5491
5532
|
var currentPage = 1;
|
|
5492
5533
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5493
5534
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5494
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5535
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5536
|
+
// 回显字段可自定义
|
|
5537
|
+
optionLabelProp: "label"
|
|
5538
|
+
}, selectProps), {}, {
|
|
5495
5539
|
// 以下属性不可更改----设计配置项
|
|
5496
5540
|
showArrow: true,
|
|
5497
5541
|
showSearch: true,
|
|
5498
5542
|
filterOption: false,
|
|
5499
5543
|
allowClear: true,
|
|
5500
5544
|
listHeight: 160,
|
|
5501
|
-
optionLabelProp: "label",
|
|
5502
5545
|
autoClearSearchValue: false,
|
|
5503
5546
|
placement: 'bottomRight'
|
|
5504
5547
|
});
|
|
@@ -5967,12 +6010,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5967
6010
|
};
|
|
5968
6011
|
var formaData = function formaData(value, source) {
|
|
5969
6012
|
if (labelInValue) {
|
|
6013
|
+
var getFromat = function getFromat(format, val) {
|
|
6014
|
+
return format.map(function (_ref8) {
|
|
6015
|
+
var key = _ref8.key,
|
|
6016
|
+
value = _ref8.value;
|
|
6017
|
+
return _defineProperty({}, key, val[value]);
|
|
6018
|
+
});
|
|
6019
|
+
};
|
|
5970
6020
|
var formatResult = value.map(function (i) {
|
|
5971
|
-
return {
|
|
6021
|
+
return Object.assign.apply(Object, [{
|
|
5972
6022
|
key: i[mappingValueField] || i.key,
|
|
5973
6023
|
label: i[mappingTextField] || i.label,
|
|
5974
6024
|
value: i[mappingValueField] || i.value
|
|
5975
|
-
};
|
|
6025
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5976
6026
|
});
|
|
5977
6027
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
5978
6028
|
} else {
|
|
@@ -7813,6 +7863,116 @@ var AddSelect = function AddSelect(props) {
|
|
|
7813
7863
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7814
7864
|
return acc;
|
|
7815
7865
|
}, {});
|
|
7866
|
+
// 可输入非数字字符
|
|
7867
|
+
if (item.canInputString) {
|
|
7868
|
+
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
7869
|
+
min: 0,
|
|
7870
|
+
precision: 0,
|
|
7871
|
+
controls: false
|
|
7872
|
+
}, inputProps), {}, {
|
|
7873
|
+
value: text || '',
|
|
7874
|
+
keyboard: false,
|
|
7875
|
+
onPressEnter: function onPressEnter(e) {
|
|
7876
|
+
e.target.blur();
|
|
7877
|
+
},
|
|
7878
|
+
onBlur: function () {
|
|
7879
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7880
|
+
var value;
|
|
7881
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7882
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7883
|
+
case 0:
|
|
7884
|
+
value = e.target.value;
|
|
7885
|
+
record[item.dataIndex] = value;
|
|
7886
|
+
editRecord(record);
|
|
7887
|
+
case 3:
|
|
7888
|
+
case "end":
|
|
7889
|
+
return _context2.stop();
|
|
7890
|
+
}
|
|
7891
|
+
}, _callee2);
|
|
7892
|
+
}));
|
|
7893
|
+
function onBlur(_x7) {
|
|
7894
|
+
return _onBlur.apply(this, arguments);
|
|
7895
|
+
}
|
|
7896
|
+
return onBlur;
|
|
7897
|
+
}(),
|
|
7898
|
+
onKeyDown: function onKeyDown(e) {
|
|
7899
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7900
|
+
var _document$getElementB;
|
|
7901
|
+
handleOk(true);
|
|
7902
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7903
|
+
}
|
|
7904
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7905
|
+
var _e$nativeEvent$path$;
|
|
7906
|
+
message$1.success('删除当前行');
|
|
7907
|
+
e.stopPropagation();
|
|
7908
|
+
e.preventDefault();
|
|
7909
|
+
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];
|
|
7910
|
+
if (dom) {
|
|
7911
|
+
dom.select();
|
|
7912
|
+
dom.focus();
|
|
7913
|
+
dom.scrollIntoView(false);
|
|
7914
|
+
}
|
|
7915
|
+
dom = null;
|
|
7916
|
+
deleteRecord(record);
|
|
7917
|
+
}
|
|
7918
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7919
|
+
var _e$nativeEvent$path$2;
|
|
7920
|
+
// 左滑动
|
|
7921
|
+
e.stopPropagation();
|
|
7922
|
+
e.preventDefault();
|
|
7923
|
+
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];
|
|
7924
|
+
if (_dom) {
|
|
7925
|
+
_dom.select();
|
|
7926
|
+
_dom.focus();
|
|
7927
|
+
_dom.scrollIntoView(false);
|
|
7928
|
+
}
|
|
7929
|
+
_dom = null;
|
|
7930
|
+
}
|
|
7931
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7932
|
+
var _e$nativeEvent$path$3;
|
|
7933
|
+
// 右滑
|
|
7934
|
+
e.stopPropagation();
|
|
7935
|
+
e.preventDefault();
|
|
7936
|
+
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];
|
|
7937
|
+
if (_dom2) {
|
|
7938
|
+
_dom2.select();
|
|
7939
|
+
_dom2.focus();
|
|
7940
|
+
_dom2.scrollIntoView(false);
|
|
7941
|
+
}
|
|
7942
|
+
_dom2 = null;
|
|
7943
|
+
}
|
|
7944
|
+
if (e.keyCode === 40) {
|
|
7945
|
+
var _e$nativeEvent$path$4;
|
|
7946
|
+
e.stopPropagation();
|
|
7947
|
+
e.preventDefault();
|
|
7948
|
+
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];
|
|
7949
|
+
if (_dom3) {
|
|
7950
|
+
_dom3.select();
|
|
7951
|
+
_dom3.focus();
|
|
7952
|
+
_dom3.scrollIntoView(false);
|
|
7953
|
+
}
|
|
7954
|
+
_dom3 = null;
|
|
7955
|
+
} else if (e.keyCode === 38) {
|
|
7956
|
+
var _e$nativeEvent$path$5;
|
|
7957
|
+
e.stopPropagation();
|
|
7958
|
+
e.preventDefault();
|
|
7959
|
+
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];
|
|
7960
|
+
if (dom1) {
|
|
7961
|
+
// dom1.value=""
|
|
7962
|
+
// dom1.setSelectionRange(100, 0);
|
|
7963
|
+
dom1.select();
|
|
7964
|
+
dom1.focus();
|
|
7965
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7966
|
+
// dom1.value=record['count']
|
|
7967
|
+
}
|
|
7968
|
+
dom1 = null;
|
|
7969
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7970
|
+
e.stopPropagation();
|
|
7971
|
+
e.preventDefault();
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
}));
|
|
7975
|
+
}
|
|
7816
7976
|
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7817
7977
|
value: text || '',
|
|
7818
7978
|
min: 0,
|
|
@@ -7830,16 +7990,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7830
7990
|
// }}
|
|
7831
7991
|
onKeyDown: function onKeyDown(e) {
|
|
7832
7992
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7833
|
-
var _document$
|
|
7993
|
+
var _document$getElementB2;
|
|
7834
7994
|
handleOk(true);
|
|
7835
|
-
(_document$
|
|
7995
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7836
7996
|
}
|
|
7837
7997
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7838
|
-
var _e$nativeEvent$path
|
|
7998
|
+
var _e$nativeEvent$path$6;
|
|
7839
7999
|
message$1.success('删除当前行');
|
|
7840
8000
|
e.stopPropagation();
|
|
7841
8001
|
e.preventDefault();
|
|
7842
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
8002
|
+
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];
|
|
7843
8003
|
if (dom) {
|
|
7844
8004
|
dom.select();
|
|
7845
8005
|
dom.focus();
|
|
@@ -7849,47 +8009,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7849
8009
|
deleteRecord(record);
|
|
7850
8010
|
}
|
|
7851
8011
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7852
|
-
var _e$nativeEvent$path$
|
|
8012
|
+
var _e$nativeEvent$path$7;
|
|
7853
8013
|
// 左滑动
|
|
7854
8014
|
e.stopPropagation();
|
|
7855
8015
|
e.preventDefault();
|
|
7856
|
-
var
|
|
7857
|
-
if (
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
8016
|
+
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];
|
|
8017
|
+
if (_dom4) {
|
|
8018
|
+
_dom4.select();
|
|
8019
|
+
_dom4.focus();
|
|
8020
|
+
_dom4.scrollIntoView(false);
|
|
7861
8021
|
}
|
|
7862
|
-
|
|
8022
|
+
_dom4 = null;
|
|
7863
8023
|
}
|
|
7864
8024
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7865
|
-
var _e$nativeEvent$path$
|
|
8025
|
+
var _e$nativeEvent$path$8;
|
|
7866
8026
|
// 右滑
|
|
7867
8027
|
e.stopPropagation();
|
|
7868
8028
|
e.preventDefault();
|
|
7869
|
-
var
|
|
7870
|
-
if (
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
8029
|
+
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];
|
|
8030
|
+
if (_dom5) {
|
|
8031
|
+
_dom5.select();
|
|
8032
|
+
_dom5.focus();
|
|
8033
|
+
_dom5.scrollIntoView(false);
|
|
7874
8034
|
}
|
|
7875
|
-
|
|
8035
|
+
_dom5 = null;
|
|
7876
8036
|
}
|
|
7877
8037
|
if (e.keyCode === 40) {
|
|
7878
|
-
var _e$nativeEvent$path$
|
|
8038
|
+
var _e$nativeEvent$path$9;
|
|
7879
8039
|
e.stopPropagation();
|
|
7880
8040
|
e.preventDefault();
|
|
7881
|
-
var
|
|
7882
|
-
if (
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
8041
|
+
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];
|
|
8042
|
+
if (_dom6) {
|
|
8043
|
+
_dom6.select();
|
|
8044
|
+
_dom6.focus();
|
|
8045
|
+
_dom6.scrollIntoView(false);
|
|
7886
8046
|
}
|
|
7887
|
-
|
|
8047
|
+
_dom6 = null;
|
|
7888
8048
|
} else if (e.keyCode === 38) {
|
|
7889
|
-
var _e$nativeEvent$path$
|
|
8049
|
+
var _e$nativeEvent$path$10;
|
|
7890
8050
|
e.stopPropagation();
|
|
7891
8051
|
e.preventDefault();
|
|
7892
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8052
|
+
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];
|
|
7893
8053
|
if (dom1) {
|
|
7894
8054
|
// dom1.value=""
|
|
7895
8055
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7923,19 +8083,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
8083
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7924
8084
|
value: text || null,
|
|
7925
8085
|
onChange: function () {
|
|
7926
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function
|
|
8086
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
7927
8087
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7928
|
-
return _regeneratorRuntime().wrap(function
|
|
7929
|
-
while (1) switch (
|
|
8088
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8089
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7930
8090
|
case 0:
|
|
7931
8091
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7932
8092
|
return d[selectKey] == value;
|
|
7933
8093
|
})) || {};
|
|
7934
8094
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7935
|
-
|
|
8095
|
+
_context3.next = 6;
|
|
7936
8096
|
break;
|
|
7937
8097
|
}
|
|
7938
|
-
|
|
8098
|
+
_context3.next = 4;
|
|
7939
8099
|
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, {
|
|
7940
8100
|
record: record,
|
|
7941
8101
|
index: index,
|
|
@@ -7946,7 +8106,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7946
8106
|
editRecord: editRecord
|
|
7947
8107
|
});
|
|
7948
8108
|
case 4:
|
|
7949
|
-
|
|
8109
|
+
_context3.next = 25;
|
|
7950
8110
|
break;
|
|
7951
8111
|
case 6:
|
|
7952
8112
|
// 更新当前行数据函数
|
|
@@ -7961,12 +8121,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7961
8121
|
}
|
|
7962
8122
|
}; // 处理校验,默认不校验
|
|
7963
8123
|
isCheckPass = true;
|
|
7964
|
-
|
|
8124
|
+
_context3.prev = 8;
|
|
7965
8125
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7966
|
-
|
|
8126
|
+
_context3.next = 15;
|
|
7967
8127
|
break;
|
|
7968
8128
|
}
|
|
7969
|
-
|
|
8129
|
+
_context3.next = 12;
|
|
7970
8130
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7971
8131
|
record: record,
|
|
7972
8132
|
index: index,
|
|
@@ -7976,21 +8136,21 @@ var AddSelect = function AddSelect(props) {
|
|
|
7976
8136
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7977
8137
|
});
|
|
7978
8138
|
case 12:
|
|
7979
|
-
isCheckPass =
|
|
7980
|
-
|
|
8139
|
+
isCheckPass = _context3.sent;
|
|
8140
|
+
_context3.next = 19;
|
|
7981
8141
|
break;
|
|
7982
8142
|
case 15:
|
|
7983
|
-
|
|
8143
|
+
_context3.next = 17;
|
|
7984
8144
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7985
8145
|
case 17:
|
|
7986
|
-
isConformToTheRules =
|
|
8146
|
+
isConformToTheRules = _context3.sent;
|
|
7987
8147
|
isCheckPass = !isConformToTheRules;
|
|
7988
8148
|
case 19:
|
|
7989
|
-
|
|
8149
|
+
_context3.next = 23;
|
|
7990
8150
|
break;
|
|
7991
8151
|
case 21:
|
|
7992
|
-
|
|
7993
|
-
|
|
8152
|
+
_context3.prev = 21;
|
|
8153
|
+
_context3.t0 = _context3["catch"](8);
|
|
7994
8154
|
case 23:
|
|
7995
8155
|
if (isCheckPass) {
|
|
7996
8156
|
changeValue(value, dataSourceSelectItem);
|
|
@@ -8001,11 +8161,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
8001
8161
|
editRecord(record);
|
|
8002
8162
|
case 25:
|
|
8003
8163
|
case "end":
|
|
8004
|
-
return
|
|
8164
|
+
return _context3.stop();
|
|
8005
8165
|
}
|
|
8006
|
-
},
|
|
8166
|
+
}, _callee3, null, [[8, 21]]);
|
|
8007
8167
|
}));
|
|
8008
|
-
function onChange(
|
|
8168
|
+
function onChange(_x8) {
|
|
8009
8169
|
return _onChange.apply(this, arguments);
|
|
8010
8170
|
}
|
|
8011
8171
|
return onChange;
|
|
@@ -8265,8 +8425,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8265
8425
|
}
|
|
8266
8426
|
}
|
|
8267
8427
|
setTimeout(function () {
|
|
8268
|
-
var _document$
|
|
8269
|
-
(_document$
|
|
8428
|
+
var _document$getElementB3;
|
|
8429
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8270
8430
|
}, 50);
|
|
8271
8431
|
};
|
|
8272
8432
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8296,7 +8456,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8296
8456
|
handleLoading(isContinue, true);
|
|
8297
8457
|
onSaveCallback(popvalue).then(function (res) {
|
|
8298
8458
|
{
|
|
8299
|
-
var _Object$keys2, _document$
|
|
8459
|
+
var _Object$keys2, _document$getElementB4;
|
|
8300
8460
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8301
8461
|
var initSuccessMessage = '保存成功';
|
|
8302
8462
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8306,7 +8466,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8306
8466
|
message$1.success(initSuccessMessage);
|
|
8307
8467
|
}
|
|
8308
8468
|
deleteSelectRows();
|
|
8309
|
-
(_document$
|
|
8469
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8310
8470
|
!isContinue && handleCancel();
|
|
8311
8471
|
}
|
|
8312
8472
|
handleLoading(isContinue, false);
|
|
@@ -10484,10 +10644,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10484
10644
|
selectProps = _objectSpread2({
|
|
10485
10645
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10486
10646
|
renderTableColumns: [{
|
|
10487
|
-
title: '
|
|
10647
|
+
title: 'SPU编码',
|
|
10488
10648
|
dataIndex: 'itemCode'
|
|
10489
10649
|
}, {
|
|
10490
|
-
title: '
|
|
10650
|
+
title: 'SPU名称',
|
|
10491
10651
|
dataIndex: 'name'
|
|
10492
10652
|
}]
|
|
10493
10653
|
}, selectConfigProps);
|
|
@@ -10504,11 +10664,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10504
10664
|
}, requestConfigProp);
|
|
10505
10665
|
tableSearchForm = [{
|
|
10506
10666
|
name: 'itemCode*multiInput',
|
|
10507
|
-
label: '
|
|
10667
|
+
label: 'SPU编码',
|
|
10508
10668
|
type: 'multipleQueryInput'
|
|
10509
10669
|
}, {
|
|
10510
10670
|
name: 'name*multiInput',
|
|
10511
|
-
label: '
|
|
10671
|
+
label: 'SPU名称',
|
|
10512
10672
|
type: 'multipleQueryInput'
|
|
10513
10673
|
}, {
|
|
10514
10674
|
name: 'qp-brandId-in',
|
|
@@ -10602,11 +10762,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10602
10762
|
dataIndex: 'keyIndex',
|
|
10603
10763
|
defaultSort: 0
|
|
10604
10764
|
}, {
|
|
10605
|
-
title: '
|
|
10765
|
+
title: 'SPU编码',
|
|
10606
10766
|
dataIndex: 'itemCode',
|
|
10607
10767
|
defaultSort: 1
|
|
10608
10768
|
}, {
|
|
10609
|
-
title: '
|
|
10769
|
+
title: 'SPU名称',
|
|
10610
10770
|
dataIndex: 'name',
|
|
10611
10771
|
defaultSort: 2
|
|
10612
10772
|
}, {
|
|
@@ -10960,7 +11120,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10960
11120
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10961
11121
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10962
11122
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10963
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11123
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10964
11124
|
});
|
|
10965
11125
|
requestConfig = _objectSpread2({
|
|
10966
11126
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11174,6 +11334,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11174
11334
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11175
11335
|
sourceName: 'warehouseIds'
|
|
11176
11336
|
}, requestConfigProp);
|
|
11337
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11338
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11339
|
+
extralHeaders: extralHeaders
|
|
11340
|
+
});
|
|
11341
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11342
|
+
'qp-status-eq': 10,
|
|
11343
|
+
'qp-isMain-eq': 1,
|
|
11344
|
+
'qp-type-in': '1,2'
|
|
11345
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11346
|
+
'qp-status-eq': 1
|
|
11347
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11348
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11349
|
+
return data['parentCode'] === '0';
|
|
11350
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11351
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11352
|
+
return data['parent'] === '0';
|
|
11353
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11354
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11355
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11356
|
+
});
|
|
11177
11357
|
tableSearchForm = [{
|
|
11178
11358
|
name: 'realWarehouseName*multiInput',
|
|
11179
11359
|
label: '逻辑仓名称',
|
|
@@ -11197,6 +11377,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11197
11377
|
},
|
|
11198
11378
|
label: '管理大区',
|
|
11199
11379
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11380
|
+
}, {
|
|
11381
|
+
name: 'qp-channelCode-in',
|
|
11382
|
+
type: 'treeSelect',
|
|
11383
|
+
label: '销售渠道',
|
|
11384
|
+
field: {
|
|
11385
|
+
type: 'treeSelect',
|
|
11386
|
+
props: {
|
|
11387
|
+
multiple: true,
|
|
11388
|
+
treeData: [],
|
|
11389
|
+
treeCheckable: false,
|
|
11390
|
+
notFoundContent: '暂无数据',
|
|
11391
|
+
allowClear: true,
|
|
11392
|
+
showSearch: true,
|
|
11393
|
+
showArrow: true,
|
|
11394
|
+
maxTagCount: 1,
|
|
11395
|
+
optionFilterProp: 'children',
|
|
11396
|
+
filterOption: function filterOption(input, option) {
|
|
11397
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11398
|
+
},
|
|
11399
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11400
|
+
}
|
|
11401
|
+
}
|
|
11402
|
+
}, {
|
|
11403
|
+
name: 'qp-refCode-in',
|
|
11404
|
+
type: 'treeSelect',
|
|
11405
|
+
label: '营销区域',
|
|
11406
|
+
field: {
|
|
11407
|
+
type: 'treeSelect',
|
|
11408
|
+
props: {
|
|
11409
|
+
multiple: true,
|
|
11410
|
+
treeData: [],
|
|
11411
|
+
treeCheckable: false,
|
|
11412
|
+
notFoundContent: '暂无数据',
|
|
11413
|
+
allowClear: true,
|
|
11414
|
+
showSearch: true,
|
|
11415
|
+
showArrow: true,
|
|
11416
|
+
maxTagCount: 1,
|
|
11417
|
+
optionFilterProp: 'children',
|
|
11418
|
+
filterOption: function filterOption(input, option) {
|
|
11419
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11420
|
+
},
|
|
11421
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11422
|
+
}
|
|
11423
|
+
}
|
|
11424
|
+
}, {
|
|
11425
|
+
name: 'qp-type-in',
|
|
11426
|
+
type: 'select',
|
|
11427
|
+
label: '店铺性质',
|
|
11428
|
+
field: {
|
|
11429
|
+
type: 'select',
|
|
11430
|
+
props: {
|
|
11431
|
+
mode: 'multiple',
|
|
11432
|
+
notFoundContent: '暂无数据',
|
|
11433
|
+
allowClear: true,
|
|
11434
|
+
showSearch: true,
|
|
11435
|
+
showArrow: true,
|
|
11436
|
+
maxTagCount: 1,
|
|
11437
|
+
optionFilterProp: 'children',
|
|
11438
|
+
filterOption: function filterOption(input, option) {
|
|
11439
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11440
|
+
}
|
|
11441
|
+
}
|
|
11442
|
+
},
|
|
11443
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11200
11444
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11201
11445
|
name: 'qp-isEnable-eq',
|
|
11202
11446
|
type: 'select',
|
|
@@ -11225,10 +11469,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11225
11469
|
render: function render(text) {
|
|
11226
11470
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11227
11471
|
}
|
|
11472
|
+
}, {
|
|
11473
|
+
title: '运营组名称',
|
|
11474
|
+
dataIndex: 'groupCode',
|
|
11475
|
+
defaultSort: 7,
|
|
11476
|
+
render: function render(text, record) {
|
|
11477
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11478
|
+
},
|
|
11479
|
+
width: 100
|
|
11480
|
+
}, {
|
|
11481
|
+
title: '所属销售渠道',
|
|
11482
|
+
dataIndex: 'channelName',
|
|
11483
|
+
defaultSort: 4,
|
|
11484
|
+
width: 100
|
|
11485
|
+
}, {
|
|
11486
|
+
title: '营销区域',
|
|
11487
|
+
dataIndex: 'commonRelationAreaName',
|
|
11488
|
+
defaultSort: 5,
|
|
11489
|
+
width: 100
|
|
11490
|
+
}, {
|
|
11491
|
+
title: '店铺性质',
|
|
11492
|
+
dataIndex: 'type',
|
|
11493
|
+
defaultSort: 6,
|
|
11494
|
+
render: function render(text) {
|
|
11495
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11496
|
+
},
|
|
11497
|
+
width: 80
|
|
11228
11498
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11229
11499
|
title: '状态',
|
|
11230
11500
|
dataIndex: 'isEnable',
|
|
11231
|
-
defaultSort:
|
|
11501
|
+
defaultSort: 8,
|
|
11232
11502
|
render: function render(text) {
|
|
11233
11503
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11234
11504
|
}
|
|
@@ -11288,20 +11558,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11288
11558
|
}
|
|
11289
11559
|
}
|
|
11290
11560
|
}
|
|
11561
|
+
}, {
|
|
11562
|
+
name: 'qp-channelCode-in',
|
|
11563
|
+
type: 'treeSelect',
|
|
11564
|
+
label: '销售渠道',
|
|
11565
|
+
field: {
|
|
11566
|
+
type: 'treeSelect',
|
|
11567
|
+
props: {
|
|
11568
|
+
multiple: true,
|
|
11569
|
+
treeData: [],
|
|
11570
|
+
treeCheckable: false,
|
|
11571
|
+
notFoundContent: '暂无数据',
|
|
11572
|
+
allowClear: true,
|
|
11573
|
+
showSearch: true,
|
|
11574
|
+
showArrow: true,
|
|
11575
|
+
maxTagCount: 1,
|
|
11576
|
+
optionFilterProp: 'children',
|
|
11577
|
+
filterOption: function filterOption(input, option) {
|
|
11578
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11579
|
+
},
|
|
11580
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11581
|
+
}
|
|
11582
|
+
}
|
|
11291
11583
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11292
11584
|
name: 'qp-status-eq',
|
|
11293
11585
|
type: 'select',
|
|
11294
11586
|
label: '运营仓状态',
|
|
11295
11587
|
initialSource: getDictionarySource$1('SC00001')
|
|
11296
11588
|
}] : []));
|
|
11297
|
-
var
|
|
11589
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11298
11590
|
querySelectHeadersList: querySelectHeadersList,
|
|
11299
11591
|
extralHeaders: extralHeaders
|
|
11300
11592
|
});
|
|
11301
11593
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11302
11594
|
'qp-status-eq': 1
|
|
11303
|
-
}, getQueryHeadersItem(
|
|
11595
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11596
|
+
'qp-status-eq': 10,
|
|
11597
|
+
'qp-isMain-eq': 1,
|
|
11598
|
+
'qp-type-in': '1,2'
|
|
11599
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11304
11600
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11601
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11602
|
+
return data['parentCode'] === '0';
|
|
11603
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11604
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11305
11605
|
});
|
|
11306
11606
|
modalTableProps = _objectSpread2({
|
|
11307
11607
|
modalTableTitle: '选择运营仓',
|
|
@@ -11329,7 +11629,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11329
11629
|
render: function render(text) {
|
|
11330
11630
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11331
11631
|
}
|
|
11332
|
-
}] : [])
|
|
11632
|
+
}] : []), [{
|
|
11633
|
+
title: '所属销售渠道',
|
|
11634
|
+
dataIndex: 'channelName',
|
|
11635
|
+
defaultSort: 5,
|
|
11636
|
+
width: 100
|
|
11637
|
+
}])
|
|
11333
11638
|
}, modalTableBusProps);
|
|
11334
11639
|
}
|
|
11335
11640
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11478,7 +11783,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11478
11783
|
label: '共享类型',
|
|
11479
11784
|
initialSource: sharingTypeDataList
|
|
11480
11785
|
}];
|
|
11481
|
-
var
|
|
11786
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11482
11787
|
querySelectHeadersList: querySelectHeadersList,
|
|
11483
11788
|
extralHeaders: extralHeaders
|
|
11484
11789
|
});
|
|
@@ -11486,14 +11791,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11486
11791
|
pageSize: 5000,
|
|
11487
11792
|
currentPage: 1,
|
|
11488
11793
|
'qp-companyType-eq': '30'
|
|
11489
|
-
}, getQueryHeadersItem(
|
|
11794
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11490
11795
|
pageSize: 5000,
|
|
11491
11796
|
currentPage: 1
|
|
11492
|
-
}, getQueryHeadersItem(
|
|
11797
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11493
11798
|
pageSize: 5000,
|
|
11494
11799
|
currentPage: 1,
|
|
11495
11800
|
'qp-companyType-eq': '20'
|
|
11496
|
-
}, getQueryHeadersItem(
|
|
11801
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11497
11802
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11498
11803
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11499
11804
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11605,16 +11910,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11605
11910
|
}
|
|
11606
11911
|
}
|
|
11607
11912
|
}
|
|
11913
|
+
}, {
|
|
11914
|
+
name: 'qp-saleChannel-in',
|
|
11915
|
+
type: 'treeSelect',
|
|
11916
|
+
label: '销售渠道',
|
|
11917
|
+
field: {
|
|
11918
|
+
type: 'treeSelect',
|
|
11919
|
+
props: {
|
|
11920
|
+
multiple: true,
|
|
11921
|
+
treeData: [],
|
|
11922
|
+
treeCheckable: false,
|
|
11923
|
+
notFoundContent: '暂无数据',
|
|
11924
|
+
allowClear: true,
|
|
11925
|
+
showSearch: true,
|
|
11926
|
+
showArrow: true,
|
|
11927
|
+
maxTagCount: 1,
|
|
11928
|
+
optionFilterProp: 'children',
|
|
11929
|
+
filterOption: function filterOption(input, option) {
|
|
11930
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11931
|
+
},
|
|
11932
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11933
|
+
}
|
|
11934
|
+
}
|
|
11935
|
+
}, {
|
|
11936
|
+
name: 'qp-refCode-in',
|
|
11937
|
+
type: 'treeSelect',
|
|
11938
|
+
label: '营销区域',
|
|
11939
|
+
field: {
|
|
11940
|
+
type: 'treeSelect',
|
|
11941
|
+
props: {
|
|
11942
|
+
multiple: true,
|
|
11943
|
+
treeData: [],
|
|
11944
|
+
treeCheckable: false,
|
|
11945
|
+
notFoundContent: '暂无数据',
|
|
11946
|
+
allowClear: true,
|
|
11947
|
+
showSearch: true,
|
|
11948
|
+
showArrow: true,
|
|
11949
|
+
maxTagCount: 1,
|
|
11950
|
+
optionFilterProp: 'children',
|
|
11951
|
+
filterOption: function filterOption(input, option) {
|
|
11952
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11953
|
+
},
|
|
11954
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11955
|
+
}
|
|
11956
|
+
}
|
|
11608
11957
|
}];
|
|
11609
|
-
var
|
|
11958
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11610
11959
|
querySelectHeadersList: querySelectHeadersList,
|
|
11611
11960
|
extralHeaders: extralHeaders
|
|
11612
11961
|
});
|
|
11613
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11962
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11963
|
+
'qp-status-eq': 10,
|
|
11964
|
+
'qp-isMain-eq': 1,
|
|
11965
|
+
'qp-type-in': '1,2'
|
|
11966
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11967
|
+
'qp-status-eq': 1
|
|
11968
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11614
11969
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11615
11970
|
var allList = firstElement && [firstElement, firstElement];
|
|
11616
11971
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11617
11972
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11973
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11974
|
+
return data['parentCode'] === '0';
|
|
11975
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11976
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11977
|
+
return data['parent'] === '0';
|
|
11978
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11979
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11980
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11618
11981
|
});
|
|
11619
11982
|
modalTableProps = _objectSpread2({
|
|
11620
11983
|
modalTableTitle: '选择客户',
|
|
@@ -11638,7 +12001,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11638
12001
|
}, {
|
|
11639
12002
|
title: '使用组织',
|
|
11640
12003
|
dataIndex: 'salesOrgName',
|
|
11641
|
-
defaultSort: 4
|
|
12004
|
+
defaultSort: 4,
|
|
12005
|
+
width: 100
|
|
12006
|
+
}, {
|
|
12007
|
+
title: '所属销售渠道',
|
|
12008
|
+
dataIndex: 'channelName',
|
|
12009
|
+
defaultSort: 5,
|
|
12010
|
+
width: 100
|
|
12011
|
+
}, {
|
|
12012
|
+
title: '营销区域',
|
|
12013
|
+
dataIndex: 'commonRelationAreaName',
|
|
12014
|
+
defaultSort: 6,
|
|
12015
|
+
width: 100
|
|
11642
12016
|
}]
|
|
11643
12017
|
}, modalTableBusProps);
|
|
11644
12018
|
}
|
|
@@ -11666,12 +12040,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11666
12040
|
sourceName: 'code'
|
|
11667
12041
|
}, requestConfigProp);
|
|
11668
12042
|
tableSearchForm = [{
|
|
11669
|
-
name: '
|
|
11670
|
-
label: '店铺名称'
|
|
11671
|
-
|
|
11672
|
-
name: 'qp-code-like',
|
|
11673
|
-
label: '店铺编码'
|
|
12043
|
+
name: 'name*multiInput',
|
|
12044
|
+
label: '店铺名称',
|
|
12045
|
+
type: 'multipleQueryInput'
|
|
11674
12046
|
}, {
|
|
12047
|
+
name: 'code*multiInput',
|
|
12048
|
+
label: '店铺编码',
|
|
12049
|
+
type: 'multipleQueryInput'
|
|
12050
|
+
},
|
|
12051
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12052
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12053
|
+
{
|
|
11675
12054
|
name: 'qp-conglomerateCode-in',
|
|
11676
12055
|
type: 'select',
|
|
11677
12056
|
label: '归属集团',
|
|
@@ -11772,7 +12151,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11772
12151
|
}
|
|
11773
12152
|
}
|
|
11774
12153
|
}];
|
|
11775
|
-
var
|
|
12154
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11776
12155
|
querySelectHeadersList: querySelectHeadersList,
|
|
11777
12156
|
extralHeaders: extralHeaders
|
|
11778
12157
|
});
|
|
@@ -11780,21 +12159,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11780
12159
|
pageSize: 5000,
|
|
11781
12160
|
currentPage: 1,
|
|
11782
12161
|
'qp-companyType-eq': '30'
|
|
11783
|
-
}, getQueryHeadersItem(
|
|
12162
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11784
12163
|
pageSize: 5000,
|
|
11785
12164
|
currentPage: 1,
|
|
11786
12165
|
'qp-companyType-eq': '20'
|
|
11787
|
-
}, getQueryHeadersItem(
|
|
12166
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11788
12167
|
// pageSize: 5000,
|
|
11789
12168
|
// currentPage: 1,
|
|
11790
12169
|
'qp-status-eq': '1'
|
|
11791
|
-
}, getQueryHeadersItem(
|
|
12170
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11792
12171
|
pageSize: 5000,
|
|
11793
12172
|
currentPage: 1
|
|
11794
|
-
}, getQueryHeadersItem(
|
|
12173
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11795
12174
|
pageSize: 5000,
|
|
11796
12175
|
currentPage: 1
|
|
11797
|
-
}, getQueryHeadersItem(
|
|
12176
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11798
12177
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11799
12178
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11800
12179
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11964,7 +12343,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11964
12343
|
},
|
|
11965
12344
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11966
12345
|
}];
|
|
11967
|
-
var
|
|
12346
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11968
12347
|
querySelectHeadersList: querySelectHeadersList,
|
|
11969
12348
|
extralHeaders: extralHeaders
|
|
11970
12349
|
});
|
|
@@ -11972,13 +12351,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11972
12351
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11973
12352
|
'qp-realOrg-eq': true,
|
|
11974
12353
|
'qp-status-eq': 10
|
|
11975
|
-
}, getQueryHeadersItem(
|
|
12354
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11976
12355
|
'qp-status-eq': 10,
|
|
11977
12356
|
'qp-isMain-eq': 1,
|
|
11978
12357
|
'qp-type-in': '1,2'
|
|
11979
|
-
}, getQueryHeadersItem(
|
|
12358
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11980
12359
|
'qp-status-eq': 1
|
|
11981
|
-
}, getQueryHeadersItem(
|
|
12360
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11982
12361
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11983
12362
|
return data['parentCode'] === '0';
|
|
11984
12363
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12213,10 +12592,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12213
12592
|
name: 'qp-email-like',
|
|
12214
12593
|
label: '邮箱'
|
|
12215
12594
|
}, {
|
|
12216
|
-
name: 'qp-
|
|
12595
|
+
name: 'qp-phone-like',
|
|
12217
12596
|
label: '手机号'
|
|
12218
12597
|
}];
|
|
12219
|
-
var
|
|
12598
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12220
12599
|
querySelectHeadersList: querySelectHeadersList,
|
|
12221
12600
|
extralHeaders: extralHeaders
|
|
12222
12601
|
});
|
|
@@ -12224,7 +12603,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12224
12603
|
pageSize: 5000,
|
|
12225
12604
|
currentPage: 1,
|
|
12226
12605
|
'qp-companyType-eq': 20
|
|
12227
|
-
}, getQueryHeadersItem(
|
|
12606
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12228
12607
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12229
12608
|
});
|
|
12230
12609
|
modalTableProps = _objectSpread2({
|
|
@@ -12330,16 +12709,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12330
12709
|
name: 'qp-email-like',
|
|
12331
12710
|
label: '邮箱'
|
|
12332
12711
|
}, {
|
|
12333
|
-
name: 'qp-
|
|
12712
|
+
name: 'qp-phone-like',
|
|
12334
12713
|
label: '手机号'
|
|
12335
12714
|
}]);
|
|
12336
|
-
var
|
|
12715
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12337
12716
|
querySelectHeadersList: querySelectHeadersList,
|
|
12338
12717
|
extralHeaders: extralHeaders
|
|
12339
12718
|
});
|
|
12340
12719
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12341
12720
|
'orgViewCode': 'administrative-organization-view'
|
|
12342
|
-
}, getQueryHeadersItem(
|
|
12721
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12343
12722
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12344
12723
|
});
|
|
12345
12724
|
modalTableProps = _objectSpread2({
|
|
@@ -12486,17 +12865,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12486
12865
|
name: 'qp-remark-like',
|
|
12487
12866
|
label: '备注'
|
|
12488
12867
|
}];
|
|
12489
|
-
var
|
|
12868
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12490
12869
|
querySelectHeadersList: querySelectHeadersList,
|
|
12491
12870
|
extralHeaders: extralHeaders
|
|
12492
12871
|
});
|
|
12493
12872
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12494
12873
|
pageSize: 5000,
|
|
12495
12874
|
currentPage: 1
|
|
12496
|
-
}, getQueryHeadersItem(
|
|
12875
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12497
12876
|
pageSize: 5000,
|
|
12498
12877
|
currentPage: 1
|
|
12499
|
-
}, getQueryHeadersItem(
|
|
12878
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12500
12879
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12501
12880
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12502
12881
|
});
|
|
@@ -12666,14 +13045,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12666
13045
|
}
|
|
12667
13046
|
}
|
|
12668
13047
|
}];
|
|
12669
|
-
var
|
|
13048
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12670
13049
|
querySelectHeadersList: querySelectHeadersList,
|
|
12671
13050
|
extralHeaders: extralHeaders
|
|
12672
13051
|
});
|
|
12673
13052
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12674
13053
|
pageSize: 5000,
|
|
12675
13054
|
currentPage: 1
|
|
12676
|
-
}, getQueryHeadersItem(
|
|
13055
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12677
13056
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12678
13057
|
});
|
|
12679
13058
|
modalTableProps = _objectSpread2({
|
|
@@ -12770,7 +13149,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12770
13149
|
}
|
|
12771
13150
|
}
|
|
12772
13151
|
}];
|
|
12773
|
-
var
|
|
13152
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12774
13153
|
querySelectHeadersList: querySelectHeadersList,
|
|
12775
13154
|
extralHeaders: extralHeaders
|
|
12776
13155
|
});
|
|
@@ -12778,7 +13157,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12778
13157
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12779
13158
|
'qp-realOrg-eq': true,
|
|
12780
13159
|
'qp-status-eq': 10
|
|
12781
|
-
}, getQueryHeadersItem(
|
|
13160
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12782
13161
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12783
13162
|
});
|
|
12784
13163
|
modalTableProps = _objectSpread2({
|
|
@@ -12884,13 +13263,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12884
13263
|
},
|
|
12885
13264
|
initialSource: nodeType
|
|
12886
13265
|
}];
|
|
12887
|
-
var
|
|
13266
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12888
13267
|
querySelectHeadersList: querySelectHeadersList,
|
|
12889
13268
|
extralHeaders: extralHeaders
|
|
12890
13269
|
});
|
|
12891
13270
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12892
13271
|
'qp-status-eq': 10
|
|
12893
|
-
}, getQueryHeadersItem(
|
|
13272
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12894
13273
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12895
13274
|
});
|
|
12896
13275
|
modalTableProps = _objectSpread2({
|
|
@@ -13216,13 +13595,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13216
13595
|
},
|
|
13217
13596
|
initialSource: nodeType
|
|
13218
13597
|
}];
|
|
13219
|
-
var
|
|
13598
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13220
13599
|
querySelectHeadersList: querySelectHeadersList,
|
|
13221
13600
|
extralHeaders: extralHeaders
|
|
13222
13601
|
});
|
|
13223
13602
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13224
13603
|
'qp-status-eq': 10
|
|
13225
|
-
}, getQueryHeadersItem(
|
|
13604
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13226
13605
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13227
13606
|
});
|
|
13228
13607
|
modalTableProps = _objectSpread2({
|
|
@@ -38234,7 +38613,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38234
38613
|
display: 'flex',
|
|
38235
38614
|
marginBottom: '0px',
|
|
38236
38615
|
padding: '10px 0px'
|
|
38237
|
-
}
|
|
38616
|
+
},
|
|
38617
|
+
key: itemDetail.elementId
|
|
38238
38618
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
38239
38619
|
className: 'logical_operate_content',
|
|
38240
38620
|
style: {
|
|
@@ -40178,4 +40558,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40178
40558
|
}, children));
|
|
40179
40559
|
};
|
|
40180
40560
|
|
|
40181
|
-
|
|
40561
|
+
//操作日志
|
|
40562
|
+
var SystemLog = function SystemLog(_ref) {
|
|
40563
|
+
var modeType = _ref.modeType,
|
|
40564
|
+
code = _ref.code,
|
|
40565
|
+
containerName = _ref.containerName,
|
|
40566
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
40567
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40568
|
+
_ref$extraParams = _ref.extraParams,
|
|
40569
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40570
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40571
|
+
initialVisible: modeType != 'create',
|
|
40572
|
+
fields: [{
|
|
40573
|
+
name: 'table',
|
|
40574
|
+
label: false,
|
|
40575
|
+
itemLayout: {
|
|
40576
|
+
span: 24,
|
|
40577
|
+
labelCol: {
|
|
40578
|
+
span: 0
|
|
40579
|
+
},
|
|
40580
|
+
wrapperCol: {
|
|
40581
|
+
span: 24
|
|
40582
|
+
}
|
|
40583
|
+
},
|
|
40584
|
+
field: function field(ctx) {
|
|
40585
|
+
return code && /*#__PURE__*/React$1.createElement(Table$1, {
|
|
40586
|
+
remoteDataSource: {
|
|
40587
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40588
|
+
convertParams: function convertParams(_ref2) {
|
|
40589
|
+
var params = _ref2.params;
|
|
40590
|
+
return _objectSpread2({
|
|
40591
|
+
pageSize: params.pageSize,
|
|
40592
|
+
currentPage: params.current
|
|
40593
|
+
}, extraParams);
|
|
40594
|
+
},
|
|
40595
|
+
converter: function converter(_ref3) {
|
|
40596
|
+
var data = _ref3.data;
|
|
40597
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40598
|
+
}
|
|
40599
|
+
},
|
|
40600
|
+
columns: [{
|
|
40601
|
+
title: '操作人',
|
|
40602
|
+
dataIndex: 'handlerName'
|
|
40603
|
+
}, {
|
|
40604
|
+
title: '操作名称',
|
|
40605
|
+
dataIndex: 'handlerType'
|
|
40606
|
+
}, {
|
|
40607
|
+
title: '操作时间',
|
|
40608
|
+
dataIndex: 'handlerTime',
|
|
40609
|
+
render: function render(_ref4) {
|
|
40610
|
+
var text = _ref4.text;
|
|
40611
|
+
return handleCommonTimeRender$1(text);
|
|
40612
|
+
}
|
|
40613
|
+
}, {
|
|
40614
|
+
title: '操作内容',
|
|
40615
|
+
dataIndex: 'logcontent'
|
|
40616
|
+
}],
|
|
40617
|
+
style: {
|
|
40618
|
+
width: '100%',
|
|
40619
|
+
marginTop: '-16px',
|
|
40620
|
+
padding: '0px'
|
|
40621
|
+
},
|
|
40622
|
+
rowKey: "id",
|
|
40623
|
+
scroll: {
|
|
40624
|
+
x: 'max-content'
|
|
40625
|
+
},
|
|
40626
|
+
pagination: {
|
|
40627
|
+
showTotal: function showTotal(total) {
|
|
40628
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40629
|
+
},
|
|
40630
|
+
showQuickJumper: true,
|
|
40631
|
+
hideOnSinglePage: true
|
|
40632
|
+
},
|
|
40633
|
+
ref: renderLogRef
|
|
40634
|
+
});
|
|
40635
|
+
}
|
|
40636
|
+
}]
|
|
40637
|
+
});
|
|
40638
|
+
};
|
|
40639
|
+
|
|
40640
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|