@bit-sun/business-component 4.2.1-alpha.27-aiwei → 4.2.1-alpha.28-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +235 -170
- package/dist/index.js +241 -176
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +20 -0
- package/src/components/Functional/SearchSelect/index.tsx +118 -24
- package/src/components/Solution/RuleComponent/index.d.ts +0 -2
- package/src/components/Solution/RuleComponent/index.js +20 -131
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import _, { omit, uniqBy, escapeRegExp, isNil, trim, isBoolean, debounce, cloneD
|
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
|
-
import React$1, { useState, useEffect, useRef, forwardRef,
|
|
9
|
+
import React$1, { useState, useEffect, useRef, forwardRef, useMemo, useImperativeHandle, Component, Fragment, useCallback, useLayoutEffect, createRef } from 'react';
|
|
10
10
|
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
11
11
|
import moment$1 from 'moment';
|
|
12
12
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -5388,11 +5388,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5388
5388
|
},
|
|
5389
5389
|
pageSize: tableInitPageSize
|
|
5390
5390
|
};
|
|
5391
|
+
var selectedInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5392
|
+
current: 1,
|
|
5393
|
+
pageSize: resolveTablePageSize((modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.selectedTablePageSize) || 20),
|
|
5394
|
+
total: 0
|
|
5395
|
+
});
|
|
5391
5396
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5392
5397
|
total: 0,
|
|
5393
5398
|
current: 1,
|
|
5394
5399
|
pageSizeOptions: TABLE_PAGE_SIZE_OPTIONS.map(String)
|
|
5395
5400
|
});
|
|
5401
|
+
/**
|
|
5402
|
+
* 左侧弹窗表格大分页时的实际渲染上限;全选仍基于完整当前页 tableData。
|
|
5403
|
+
*/
|
|
5404
|
+
var tableRenderPageSize = 200;
|
|
5396
5405
|
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5397
5406
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5398
5407
|
var isHaveDValue = function isHaveDValue() {
|
|
@@ -5502,34 +5511,48 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5502
5511
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5503
5512
|
selectedRows = _useState32[0],
|
|
5504
5513
|
setSelectedRows = _useState32[1];
|
|
5505
|
-
var _useState33 = useState(
|
|
5514
|
+
var _useState33 = useState(selectedInitPagination),
|
|
5506
5515
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
var _useState35 = useState(
|
|
5516
|
+
selectedTablePagination = _useState34[0],
|
|
5517
|
+
setSelectedTablePagination = _useState34[1];
|
|
5518
|
+
var _useState35 = useState({}),
|
|
5510
5519
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
var _useState37 = useState(
|
|
5520
|
+
tableFormParams = _useState36[0],
|
|
5521
|
+
setTableFormParams = _useState36[1];
|
|
5522
|
+
var _useState37 = useState(false),
|
|
5514
5523
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
var _useState39 = useState(
|
|
5524
|
+
tooltipVisible = _useState38[0],
|
|
5525
|
+
setTooltipVisible = _useState38[1];
|
|
5526
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5518
5527
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
var _useState41 = useState(
|
|
5528
|
+
tableShowColumns = _useState40[0],
|
|
5529
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5530
|
+
var _useState41 = useState(false),
|
|
5522
5531
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5523
|
-
|
|
5524
|
-
|
|
5532
|
+
confirmLoading = _useState42[0],
|
|
5533
|
+
setConfirmLoading = _useState42[1];
|
|
5525
5534
|
var _useState43 = useState(false),
|
|
5526
5535
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
var
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5536
|
+
modalSearched = _useState44[0],
|
|
5537
|
+
setModalSearched = _useState44[1];
|
|
5538
|
+
var selectAllTableRef = useRef(false);
|
|
5539
|
+
var getRecordKey = function getRecordKey(record) {
|
|
5540
|
+
var _record$mappingValueF;
|
|
5541
|
+
return (_record$mappingValueF = record === null || record === void 0 ? void 0 : record[mappingValueField]) !== null && _record$mappingValueF !== void 0 ? _record$mappingValueF : record === null || record === void 0 ? void 0 : record.value;
|
|
5542
|
+
};
|
|
5543
|
+
/**
|
|
5544
|
+
* 已选表格只向 Table 传入当前页数据,避免全选 1000 条时右侧表格同步处理全部数据。
|
|
5545
|
+
*/
|
|
5546
|
+
var selectedTablePageRows = useMemo(function () {
|
|
5547
|
+
var current = Number((selectedTablePagination === null || selectedTablePagination === void 0 ? void 0 : selectedTablePagination.current) || 1);
|
|
5548
|
+
var pageSize = Number((selectedTablePagination === null || selectedTablePagination === void 0 ? void 0 : selectedTablePagination.pageSize) || selectedInitPagination.pageSize);
|
|
5549
|
+
var start = (current - 1) * pageSize;
|
|
5550
|
+
return (selectedRows || []).slice(start, start + pageSize).map(function (s, index) {
|
|
5551
|
+
return _objectSpread2(_objectSpread2({}, s), {}, {
|
|
5552
|
+
keyIndex: start + index + 1
|
|
5553
|
+
});
|
|
5554
|
+
});
|
|
5555
|
+
}, [selectedRows, selectedTablePagination === null || selectedTablePagination === void 0 ? void 0 : selectedTablePagination.current, selectedTablePagination === null || selectedTablePagination === void 0 ? void 0 : selectedTablePagination.pageSize, selectedInitPagination.pageSize]);
|
|
5533
5556
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5534
5557
|
setItems(list);
|
|
5535
5558
|
setItemsTotal(total);
|
|
@@ -5537,6 +5560,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5537
5560
|
var clearSelectDataSource = function clearSelectDataSource() {
|
|
5538
5561
|
setSelectDataSource([], 0);
|
|
5539
5562
|
};
|
|
5563
|
+
/**
|
|
5564
|
+
* 清空弹窗已选数据。
|
|
5565
|
+
*/
|
|
5566
|
+
var clearSelectedRows = function clearSelectedRows() {
|
|
5567
|
+
setSelectedRows([]);
|
|
5568
|
+
setPopValue([]);
|
|
5569
|
+
setSelectedTablePagination(function (prev) {
|
|
5570
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
5571
|
+
total: 0,
|
|
5572
|
+
current: 1
|
|
5573
|
+
});
|
|
5574
|
+
});
|
|
5575
|
+
setSelectedRowKeys([]);
|
|
5576
|
+
};
|
|
5540
5577
|
useImperativeHandle(ref, function () {
|
|
5541
5578
|
return {
|
|
5542
5579
|
refreshDataSource: function refreshDataSource() {
|
|
@@ -5729,6 +5766,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5729
5766
|
setUniqueValue(makeUniqueValue());
|
|
5730
5767
|
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5731
5768
|
}, [resultSourceKey]);
|
|
5769
|
+
useEffect(function () {
|
|
5770
|
+
setSelectedTablePagination(function (prev) {
|
|
5771
|
+
var pageSize = (prev === null || prev === void 0 ? void 0 : prev.pageSize) || selectedInitPagination.pageSize;
|
|
5772
|
+
var maxCurrent = Math.ceil(selectedRows.length / pageSize) || 1;
|
|
5773
|
+
var current = selectedRows.length ? Math.min((prev === null || prev === void 0 ? void 0 : prev.current) || 1, maxCurrent) : 1;
|
|
5774
|
+
if ((prev === null || prev === void 0 ? void 0 : prev.total) === selectedRows.length && (prev === null || prev === void 0 ? void 0 : prev.current) === current) return prev;
|
|
5775
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
5776
|
+
total: selectedRows.length,
|
|
5777
|
+
current: current
|
|
5778
|
+
});
|
|
5779
|
+
});
|
|
5780
|
+
}, [selectedRows.length, selectedInitPagination.pageSize]);
|
|
5732
5781
|
useEffect(function () {
|
|
5733
5782
|
if (init) {
|
|
5734
5783
|
clearSelectDataSource();
|
|
@@ -5786,8 +5835,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5786
5835
|
value: i
|
|
5787
5836
|
};
|
|
5788
5837
|
}));
|
|
5789
|
-
setIndeterminate(!!value.length && value.length < itemsTotal);
|
|
5790
|
-
setCheckedAll(itemsTotal && value.length === itemsTotal);
|
|
5791
5838
|
} else {
|
|
5792
5839
|
setSelectedRowKeys(labelInValue ? [value.key] : [value]);
|
|
5793
5840
|
setSelectedRows(labelInValue ? [_defineProperty(_defineProperty(_defineProperty({}, mappingValueField, value.key), "value", value.key), "text", value.label)] : [_defineProperty(_defineProperty({}, mappingValueField, value), "value", value)]);
|
|
@@ -5875,8 +5922,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5875
5922
|
setTablePagination(tableInitPagination);
|
|
5876
5923
|
setSelectedRowKeys([]);
|
|
5877
5924
|
setSelectedRows([]);
|
|
5878
|
-
setCheckedAll(false);
|
|
5879
|
-
setIndeterminate(false);
|
|
5880
5925
|
};
|
|
5881
5926
|
var handleCancel = function handleCancel() {
|
|
5882
5927
|
clearModalTable();
|
|
@@ -5935,9 +5980,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5935
5980
|
currentPage: pagination.current
|
|
5936
5981
|
}), 2);
|
|
5937
5982
|
};
|
|
5983
|
+
var handleSelectedTableChange = function handleSelectedTableChange(pagination) {
|
|
5984
|
+
setSelectedTablePagination(function (prev) {
|
|
5985
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
5986
|
+
current: pagination.current,
|
|
5987
|
+
pageSize: pagination.pageSize
|
|
5988
|
+
});
|
|
5989
|
+
});
|
|
5990
|
+
};
|
|
5938
5991
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
5939
|
-
var sksResult = (selectRows === null || selectRows === void 0 ? void 0 : selectRows.map(function (i) {
|
|
5940
|
-
return i
|
|
5992
|
+
var sksResult = (selectKeys === null || selectKeys === void 0 ? void 0 : selectKeys.length) ? selectKeys : (selectRows === null || selectRows === void 0 ? void 0 : selectRows.map(function (i) {
|
|
5993
|
+
return getRecordKey(i);
|
|
5941
5994
|
})) || [];
|
|
5942
5995
|
// 单选 默认直接选中 不需要确定 配置了modalRadioNeedFooter就需要确定
|
|
5943
5996
|
if (!selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter)) {
|
|
@@ -5947,33 +6000,96 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5947
6000
|
setSelectedRowKeys(sksResult);
|
|
5948
6001
|
setSelectedRows(selectRows);
|
|
5949
6002
|
setPopValue(selectRows);
|
|
5950
|
-
setIndeterminate(!!selectRows.length && selectRows.length < (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
5951
|
-
setCheckedAll(selectRows.length === (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
5952
6003
|
};
|
|
5953
|
-
var
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
6004
|
+
var getRowSelection = function getRowSelection() {
|
|
6005
|
+
var visibleRows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
6006
|
+
var type = arguments.length > 1 ? arguments[1] : undefined;
|
|
6007
|
+
return {
|
|
6008
|
+
type: selectMode ? 'checkbox' : 'radio',
|
|
6009
|
+
selectedRowKeys: selectedRowKeys,
|
|
6010
|
+
preserveSelectedRowKeys: true,
|
|
6011
|
+
onSelectAll: function onSelectAll(selected) {
|
|
6012
|
+
selectAllTableRef.current = true;
|
|
6013
|
+
setTimeout(function () {
|
|
6014
|
+
selectAllTableRef.current = false;
|
|
6015
|
+
}, 0);
|
|
6016
|
+
var targetRows = type === 'noPage' ? visibleRows : tableData;
|
|
6017
|
+
var targetKeys = (targetRows || []).map(function (item) {
|
|
6018
|
+
return getRecordKey(item);
|
|
6019
|
+
});
|
|
6020
|
+
if (!selected) {
|
|
6021
|
+
var selectedKeySet = new Set((selectedRows || []).map(function (item) {
|
|
6022
|
+
return getRecordKey(item);
|
|
6023
|
+
}));
|
|
6024
|
+
if ((selectedRows || []).length === (targetRows || []).length && targetKeys.every(function (key) {
|
|
6025
|
+
return selectedKeySet.has(key);
|
|
6026
|
+
})) {
|
|
6027
|
+
clearSelectedRows();
|
|
6028
|
+
return;
|
|
6029
|
+
}
|
|
6030
|
+
var targetKeySet = new Set(targetKeys);
|
|
6031
|
+
var _nextSelectedRows = (selectedRows || []).filter(function (item) {
|
|
6032
|
+
return !targetKeySet.has(getRecordKey(item));
|
|
6033
|
+
});
|
|
6034
|
+
var _nextSelectedKeys = _nextSelectedRows.map(function (item) {
|
|
6035
|
+
return getRecordKey(item);
|
|
6036
|
+
});
|
|
6037
|
+
onChangeSelectedKeys(_nextSelectedKeys, _nextSelectedRows);
|
|
6038
|
+
return;
|
|
6039
|
+
}
|
|
6040
|
+
if (!(selectedRows || []).length) {
|
|
6041
|
+
onChangeSelectedKeys(targetKeys, targetRows || []);
|
|
6042
|
+
return;
|
|
6043
|
+
}
|
|
6044
|
+
var selectedRowMap = new Map();
|
|
6045
|
+
(selectedRows || []).forEach(function (item) {
|
|
6046
|
+
selectedRowMap.set(getRecordKey(item), item);
|
|
6047
|
+
});
|
|
6048
|
+
(targetRows || []).forEach(function (item) {
|
|
6049
|
+
selectedRowMap.set(getRecordKey(item), item);
|
|
6050
|
+
});
|
|
6051
|
+
var nextSelectedRows = Array.from(selectedRowMap.values()).filter(Boolean);
|
|
6052
|
+
var nextSelectedKeys = nextSelectedRows.map(function (item) {
|
|
6053
|
+
return getRecordKey(item);
|
|
6054
|
+
});
|
|
6055
|
+
onChangeSelectedKeys(nextSelectedKeys, nextSelectedRows);
|
|
6056
|
+
},
|
|
6057
|
+
onChange: function onChange(sks, srs) {
|
|
6058
|
+
if (selectAllTableRef.current) {
|
|
6059
|
+
selectAllTableRef.current = false;
|
|
6060
|
+
return;
|
|
6061
|
+
}
|
|
6062
|
+
if (!(sks === null || sks === void 0 ? void 0 : sks.length)) {
|
|
6063
|
+
clearSelectedRows();
|
|
6064
|
+
return;
|
|
6065
|
+
}
|
|
6066
|
+
// 处理翻页后,之前存储的selectedRows变为undefined
|
|
6067
|
+
// selectedRows合并新数组,过滤undefined,过滤留下对应selectedRowKeys的集合
|
|
6068
|
+
var visibleKeySet = new Set((visibleRows || []).map(function (item) {
|
|
6069
|
+
return getRecordKey(item);
|
|
6070
|
+
}));
|
|
6071
|
+
var selectedRowMap = new Map();
|
|
6072
|
+
(selectedRows || []).forEach(function (item) {
|
|
6073
|
+
var key = getRecordKey(item);
|
|
6074
|
+
if (!visibleKeySet.has(key)) {
|
|
6075
|
+
selectedRowMap.set(key, item);
|
|
6076
|
+
}
|
|
6077
|
+
});
|
|
6078
|
+
(srs || []).filter(Boolean).forEach(function (item) {
|
|
6079
|
+
selectedRowMap.set(getRecordKey(item), item);
|
|
6080
|
+
});
|
|
6081
|
+
var totalSelectedRows = Array.from(selectedRowMap.values()).filter(Boolean);
|
|
6082
|
+
var totalSelectedKeys = totalSelectedRows.map(function (item) {
|
|
6083
|
+
return getRecordKey(item);
|
|
6084
|
+
});
|
|
6085
|
+
onChangeSelectedKeys(totalSelectedKeys, totalSelectedRows);
|
|
6086
|
+
},
|
|
6087
|
+
getCheckboxProps: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps) ? selectProps === null || selectProps === void 0 ? void 0 : selectProps.getCheckboxProps : function () {
|
|
6088
|
+
return {
|
|
6089
|
+
disabled: disabled || !items.length && !tableData.length
|
|
6090
|
+
};
|
|
6091
|
+
}
|
|
6092
|
+
};
|
|
5977
6093
|
};
|
|
5978
6094
|
var onRowClickSelect = function onRowClickSelect(e, record, type) {
|
|
5979
6095
|
if (selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
@@ -5981,7 +6097,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5981
6097
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5982
6098
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5983
6099
|
var sks = srs.map(function (i) {
|
|
5984
|
-
return i
|
|
6100
|
+
return getRecordKey(i);
|
|
5985
6101
|
});
|
|
5986
6102
|
onChangeSelectedKeys(sks, srs);
|
|
5987
6103
|
}
|
|
@@ -5990,7 +6106,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5990
6106
|
if (!selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
5991
6107
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
5992
6108
|
var sks = srs.map(function (i) {
|
|
5993
|
-
return i
|
|
6109
|
+
return getRecordKey(i);
|
|
5994
6110
|
});
|
|
5995
6111
|
onChangeSelectedKeys(sks, srs);
|
|
5996
6112
|
}
|
|
@@ -6262,6 +6378,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6262
6378
|
};
|
|
6263
6379
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6264
6380
|
var _modalTableProps$tabl;
|
|
6381
|
+
var currentPageSize = Number((tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.pageSize) || tableInitPageSize);
|
|
6382
|
+
var needLimitRenderRows = type !== 'noPage' && currentPageSize >= tableRenderPageSize && (tableList === null || tableList === void 0 ? void 0 : tableList.length) > tableRenderPageSize;
|
|
6383
|
+
var currentTableList = needLimitRenderRows ? tableList.slice(0, tableRenderPageSize) : tableList;
|
|
6384
|
+
var currentDataSource = type == 'noPage' ? selectedTablePageRows : currentTableList;
|
|
6265
6385
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6266
6386
|
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6267
6387
|
var collapsedList = modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableSearchForm) === null || _modalTableProps$tabl === void 0 ? void 0 : _modalTableProps$tabl.slice(0, viCount);
|
|
@@ -6291,13 +6411,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6291
6411
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
6292
6412
|
bordered: true,
|
|
6293
6413
|
size: "middle",
|
|
6294
|
-
rowSelection:
|
|
6414
|
+
rowSelection: getRowSelection(currentDataSource, type),
|
|
6295
6415
|
columns: tableShowColumns,
|
|
6296
|
-
dataSource:
|
|
6416
|
+
dataSource: currentDataSource
|
|
6297
6417
|
}, type == 'noPage' ? {
|
|
6298
|
-
pagination: _objectSpread2(_objectSpread2({},
|
|
6418
|
+
pagination: _objectSpread2(_objectSpread2({}, selectedTablePagination), {}, {
|
|
6299
6419
|
showSizeChanger: false
|
|
6300
6420
|
}),
|
|
6421
|
+
onChange: handleSelectedTableChange,
|
|
6301
6422
|
locale: {
|
|
6302
6423
|
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6303
6424
|
}
|
|
@@ -6333,13 +6454,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6333
6454
|
} // 务必填写 key
|
|
6334
6455
|
];
|
|
6335
6456
|
var tabsItems2 = [{
|
|
6336
|
-
label: "\u5DF2\u9009\uFF08".concat((
|
|
6457
|
+
label: "\u5DF2\u9009\uFF08".concat((selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length) || 0, "\uFF09"),
|
|
6337
6458
|
key: 'selected',
|
|
6338
|
-
children: renderShowTable(
|
|
6339
|
-
return _objectSpread2(_objectSpread2({}, s), {}, {
|
|
6340
|
-
keyIndex: index + 1
|
|
6341
|
-
});
|
|
6342
|
-
})) || [], 'noPage')
|
|
6459
|
+
children: renderShowTable(selectedRows, 'noPage')
|
|
6343
6460
|
}];
|
|
6344
6461
|
var resetSelectDataSource = function resetSelectDataSource() {
|
|
6345
6462
|
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -6355,7 +6472,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6355
6472
|
props === null || props === void 0 ? void 0 : (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props);
|
|
6356
6473
|
// 清空下拉框 / 弹窗 选中数据
|
|
6357
6474
|
formaData([], items);
|
|
6358
|
-
|
|
6475
|
+
clearSelectedRows();
|
|
6359
6476
|
// 重置下拉框数据源
|
|
6360
6477
|
resetSelectDataSource(true);
|
|
6361
6478
|
};
|
|
@@ -6612,9 +6729,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6612
6729
|
}, /*#__PURE__*/React$1.createElement(Tabs, {
|
|
6613
6730
|
items: tabsItems2,
|
|
6614
6731
|
tabBarExtraContent: /*#__PURE__*/React$1.createElement("span", {
|
|
6615
|
-
onClick:
|
|
6616
|
-
return onChangeSelectedKeys([], []);
|
|
6617
|
-
}
|
|
6732
|
+
onClick: clearSelectedRows
|
|
6618
6733
|
}, "\u6E05\u7A7A\u5DF2\u9009")
|
|
6619
6734
|
})) : null)))));
|
|
6620
6735
|
});
|
|
@@ -10610,6 +10725,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10610
10725
|
}
|
|
10611
10726
|
}
|
|
10612
10727
|
}
|
|
10728
|
+
}, {
|
|
10729
|
+
name: 'qp-brandYearSeason-in',
|
|
10730
|
+
type: 'select',
|
|
10731
|
+
label: '产品季',
|
|
10732
|
+
field: {
|
|
10733
|
+
type: 'select',
|
|
10734
|
+
props: {
|
|
10735
|
+
mode: 'multiple',
|
|
10736
|
+
notFoundContent: '暂无数据',
|
|
10737
|
+
allowClear: true,
|
|
10738
|
+
showSearch: true,
|
|
10739
|
+
showArrow: true,
|
|
10740
|
+
maxTagCount: 1,
|
|
10741
|
+
optionFilterProp: 'children',
|
|
10742
|
+
filterOption: function filterOption(input, option) {
|
|
10743
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10744
|
+
}
|
|
10745
|
+
}
|
|
10746
|
+
}
|
|
10613
10747
|
}
|
|
10614
10748
|
// { name: 'UNIQUE_SPEC', label: '属性', field: {
|
|
10615
10749
|
// type: 'proppertySelector',
|
|
@@ -10639,6 +10773,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10639
10773
|
}, {
|
|
10640
10774
|
isOpen: true,
|
|
10641
10775
|
queryKey: 'qp-zzxlbm-in'
|
|
10776
|
+
}, {
|
|
10777
|
+
isOpen: true,
|
|
10778
|
+
queryKey: 'qp-brandYearSeason-in'
|
|
10642
10779
|
}];
|
|
10643
10780
|
var _queryHeaderParams2 = getQueryHeadersList({
|
|
10644
10781
|
defaultQSHL: defaultQSHL,
|
|
@@ -10667,7 +10804,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10667
10804
|
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzzlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10668
10805
|
'qp-propertyCode-eq': 'PROP_SUBCATEORY',
|
|
10669
10806
|
pageSize: 999
|
|
10670
|
-
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzxlbm-in'))
|
|
10807
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzxlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10808
|
+
'qp-propertyCode-eq': 'PROP_ITEM_PRODUCTSEASON',
|
|
10809
|
+
pageSize: 999
|
|
10810
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-brandYearSeason-in'))]).then(function (x) {
|
|
10671
10811
|
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10672
10812
|
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10673
10813
|
formatSource(x, 0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm, ['id', 'name']);
|
|
@@ -10678,6 +10818,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10678
10818
|
formatSource(x, 5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10679
10819
|
formatSource(x, 6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10680
10820
|
formatSource(x, 7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10821
|
+
formatSource(x, 8, getFieldIndex(tableSearchForm, 'qp-brandYearSeason-in'), tableSearchForm, ['value', 'value']);
|
|
10681
10822
|
});
|
|
10682
10823
|
modalTableProps = _objectSpread2({
|
|
10683
10824
|
modalTableTitle: '选择SKU',
|
|
@@ -15364,7 +15505,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15364
15505
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15365
15506
|
* @LastEditors: rodchen
|
|
15366
15507
|
*/
|
|
15367
|
-
var index = (function (storageKeyString) {
|
|
15508
|
+
var index$1 = (function (storageKeyString) {
|
|
15368
15509
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15369
15510
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15370
15511
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15837,7 +15978,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
15837
15978
|
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15838
15979
|
styleInject(css_248z$b);
|
|
15839
15980
|
|
|
15840
|
-
var index$
|
|
15981
|
+
var index$2 = (function (props) {
|
|
15841
15982
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15842
15983
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15843
15984
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -17904,7 +18045,7 @@ var iconMap = {
|
|
|
17904
18045
|
src: cancelIcon
|
|
17905
18046
|
}, iconStyle))
|
|
17906
18047
|
};
|
|
17907
|
-
var index$
|
|
18048
|
+
var index$3 = (function (props) {
|
|
17908
18049
|
var _useLocation = useLocation(),
|
|
17909
18050
|
pathname = _useLocation.pathname;
|
|
17910
18051
|
var _useState = useState(pathname + 'id'),
|
|
@@ -18141,7 +18282,7 @@ var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n backgroun
|
|
|
18141
18282
|
styleInject(css_248z$h);
|
|
18142
18283
|
|
|
18143
18284
|
var _excluded$f = ["children"];
|
|
18144
|
-
var index$
|
|
18285
|
+
var index$4 = (function (props) {
|
|
18145
18286
|
var _useLocation = useLocation(),
|
|
18146
18287
|
pathname = _useLocation.pathname;
|
|
18147
18288
|
var _useState = useState(pathname + 'id'),
|
|
@@ -24151,7 +24292,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
24151
24292
|
}
|
|
24152
24293
|
}]);
|
|
24153
24294
|
}(React$1.Component);
|
|
24154
|
-
var index$
|
|
24295
|
+
var index$5 = (function (props) {
|
|
24155
24296
|
var _useModel = useModel('@@initialState'),
|
|
24156
24297
|
_useModel$initialStat = _useModel.initialState,
|
|
24157
24298
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -24393,7 +24534,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
24393
24534
|
};
|
|
24394
24535
|
var FixedScrollBar$1 = /*#__PURE__*/React$1.forwardRef(FixedScrollBar);
|
|
24395
24536
|
|
|
24396
|
-
var index$
|
|
24537
|
+
var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24397
24538
|
var _useState = useState(false),
|
|
24398
24539
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24399
24540
|
show = _useState2[0],
|
|
@@ -38746,9 +38887,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38746
38887
|
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA,
|
|
38747
38888
|
extraConfig = _this$props.extraConfig,
|
|
38748
38889
|
customTitleSubStyle = _this$props.customTitleSubStyle,
|
|
38749
|
-
customTitlePreStyle = _this$props.customTitlePreStyle
|
|
38750
|
-
_this$props$enableRul = _this$props.enableRuleNameEdit,
|
|
38751
|
-
enableRuleNameEdit = _this$props$enableRul === void 0 ? false : _this$props$enableRul;
|
|
38890
|
+
customTitlePreStyle = _this$props.customTitlePreStyle;
|
|
38752
38891
|
var isRuleInstance = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$type = ruleGroupInfo.type) === null || _ruleGroupInfo$type === void 0 ? void 0 : _ruleGroupInfo$type.indexOf('instance')) > -1; // 业务调用规则实例设计器
|
|
38753
38892
|
var ruleGroupName = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$ruleGr = ruleGroupInfo.ruleGroupList) === null || _ruleGroupInfo$ruleGr === void 0 ? void 0 : (_ruleGroupInfo$ruleGr2 = _ruleGroupInfo$ruleGr[0]) === null || _ruleGroupInfo$ruleGr2 === void 0 ? void 0 : _ruleGroupInfo$ruleGr2.name) || '规则分组';
|
|
38754
38893
|
var priorityList = ((ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.groupOtherPriorityList) || []).concat(ruleClassData || []);
|
|
@@ -38810,63 +38949,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38810
38949
|
className: 'rule-line-class',
|
|
38811
38950
|
style: ruleListBox
|
|
38812
38951
|
}, !onlyOneRule && !ruleGroupInfo && /*#__PURE__*/React$1.createElement("div", {
|
|
38813
|
-
style:
|
|
38814
|
-
|
|
38815
|
-
alignItems: 'center',
|
|
38816
|
-
width: 'auto',
|
|
38817
|
-
textAlign: 'left'
|
|
38818
|
-
} : {})
|
|
38819
|
-
}, enableRuleNameEdit && isEdit && editNameIndex == classDataIndex ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Input, {
|
|
38820
|
-
disabled: disabled,
|
|
38821
|
-
value: currentRuleName,
|
|
38822
|
-
style: {
|
|
38823
|
-
width: '120px'
|
|
38824
|
-
},
|
|
38825
|
-
size: "small",
|
|
38826
|
-
onChange: function onChange(e) {
|
|
38827
|
-
_this.setState({
|
|
38828
|
-
currentRuleName: e.target.value
|
|
38829
|
-
});
|
|
38830
|
-
}
|
|
38831
|
-
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
38832
|
-
disabled: disabled,
|
|
38833
|
-
type: "link",
|
|
38834
|
-
size: "small",
|
|
38835
|
-
onClick: function onClick() {
|
|
38836
|
-
var _this$state3 = _this.state,
|
|
38837
|
-
ruleClassData = _this$state3.ruleClassData,
|
|
38838
|
-
currentRuleName = _this$state3.currentRuleName;
|
|
38839
|
-
ruleClassData[editNameIndex].ruleName = currentRuleName || "\u89C4\u5219".concat(editNameIndex + 1);
|
|
38840
|
-
_this.setState({
|
|
38841
|
-
ruleClassData: ruleClassData,
|
|
38842
|
-
isEdit: false
|
|
38843
|
-
}, function () {
|
|
38844
|
-
callBack(ruleClassData);
|
|
38845
|
-
});
|
|
38846
|
-
}
|
|
38847
|
-
}, "\u4FDD\u5B58"), /*#__PURE__*/React$1.createElement(Button, {
|
|
38848
|
-
disabled: disabled,
|
|
38849
|
-
type: "link",
|
|
38850
|
-
size: "small",
|
|
38851
|
-
onClick: function onClick() {
|
|
38852
|
-
_this.setState({
|
|
38853
|
-
isEdit: false
|
|
38854
|
-
});
|
|
38855
|
-
}
|
|
38856
|
-
}, "\u53D6\u6D88")) : enableRuleNameEdit ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.ruleName || "\u89C4\u5219".concat(classDataIndex + 1), !disabled && /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
38857
|
-
style: {
|
|
38858
|
-
marginLeft: 4,
|
|
38859
|
-
fontSize: 12,
|
|
38860
|
-
color: 'rgba(0, 0, 0, 0.45)'
|
|
38861
|
-
},
|
|
38862
|
-
onClick: function onClick() {
|
|
38863
|
-
_this.setState({
|
|
38864
|
-
editNameIndex: classDataIndex,
|
|
38865
|
-
currentRuleName: item.ruleName || "\u89C4\u5219".concat(classDataIndex + 1),
|
|
38866
|
-
isEdit: true
|
|
38867
|
-
});
|
|
38868
|
-
}
|
|
38869
|
-
})) : "\u89C4\u5219".concat(classDataIndex + 1)), ruleGroupInfo && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
38952
|
+
style: titlePre
|
|
38953
|
+
}, "\u89C4\u5219", classDataIndex + 1), ruleGroupInfo && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
38870
38954
|
style: titlePre
|
|
38871
38955
|
}, /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
38872
38956
|
visible: true,
|
|
@@ -38976,26 +39060,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38976
39060
|
},
|
|
38977
39061
|
type: "link",
|
|
38978
39062
|
danger: true
|
|
38979
|
-
}, "\u5220\u9664\u89C4\u5219")),
|
|
39063
|
+
}, "\u5220\u9664\u89C4\u5219")), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
38980
39064
|
style: {
|
|
38981
|
-
display: isEdit && editNameIndex ==
|
|
38982
|
-
}
|
|
38983
|
-
}, /*#__PURE__*/React$1.createElement("span", null, item.ruleName), !disabled && /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
38984
|
-
style: {
|
|
38985
|
-
marginLeft: 4,
|
|
38986
|
-
fontSize: 12,
|
|
38987
|
-
color: 'rgba(0, 0, 0, 0.45)'
|
|
38988
|
-
},
|
|
38989
|
-
onClick: function onClick() {
|
|
38990
|
-
_this.setState({
|
|
38991
|
-
editNameIndex: classDataIndex,
|
|
38992
|
-
currentRuleName: item.ruleName,
|
|
38993
|
-
isEdit: true
|
|
38994
|
-
});
|
|
38995
|
-
}
|
|
38996
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
38997
|
-
style: {
|
|
38998
|
-
display: isEdit && editNameIndex == classDataIndex ? 'block' : 'none',
|
|
39065
|
+
display: isEdit && editNameIndex == index ? 'block' : 'none',
|
|
38999
39066
|
marginTop: '10px'
|
|
39000
39067
|
}
|
|
39001
39068
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
@@ -39013,15 +39080,13 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39013
39080
|
disabled: disabled,
|
|
39014
39081
|
type: "link",
|
|
39015
39082
|
onClick: function onClick() {
|
|
39016
|
-
var _this$
|
|
39017
|
-
ruleClassData = _this$
|
|
39018
|
-
currentRuleName = _this$
|
|
39083
|
+
var _this$state3 = _this.state,
|
|
39084
|
+
ruleClassData = _this$state3.ruleClassData,
|
|
39085
|
+
currentRuleName = _this$state3.currentRuleName;
|
|
39019
39086
|
ruleClassData[editNameIndex].ruleName = currentRuleName;
|
|
39020
39087
|
_this.setState({
|
|
39021
39088
|
ruleClassData: ruleClassData,
|
|
39022
39089
|
isEdit: false
|
|
39023
|
-
}, function () {
|
|
39024
|
-
callBack(ruleClassData);
|
|
39025
39090
|
});
|
|
39026
39091
|
}
|
|
39027
39092
|
}, "\u4FDD\u5B58"), /*#__PURE__*/React$1.createElement(Button, {
|
|
@@ -40021,10 +40086,10 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
40021
40086
|
}, {
|
|
40022
40087
|
key: "componentWillReceiveProps",
|
|
40023
40088
|
value: function componentWillReceiveProps(nextProps) {
|
|
40024
|
-
var _this$
|
|
40025
|
-
ruleClassData = _this$
|
|
40026
|
-
operationList = _this$
|
|
40027
|
-
regularDataList = _this$
|
|
40089
|
+
var _this$state4 = this.state,
|
|
40090
|
+
ruleClassData = _this$state4.ruleClassData,
|
|
40091
|
+
operationList = _this$state4.operationList,
|
|
40092
|
+
regularDataList = _this$state4.regularDataList;
|
|
40028
40093
|
if (nextProps.ruleClassData && this.props.ruleClassData != nextProps.ruleClassData && JSON.stringify(nextProps.ruleClassData) != JSON.stringify(ruleClassData)) {
|
|
40029
40094
|
this.setState({
|
|
40030
40095
|
ruleClassData: nextProps.ruleClassData
|
|
@@ -40048,9 +40113,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
40048
40113
|
callBack = _this$props7.callBack,
|
|
40049
40114
|
disabled = _this$props7.disabled,
|
|
40050
40115
|
headerButtonComponentFun = _this$props7.headerButtonComponentFun;
|
|
40051
|
-
var _this$
|
|
40052
|
-
ruleClassData = _this$
|
|
40053
|
-
modalParams = _this$
|
|
40116
|
+
var _this$state5 = this.state,
|
|
40117
|
+
ruleClassData = _this$state5.ruleClassData,
|
|
40118
|
+
modalParams = _this$state5.modalParams;
|
|
40054
40119
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
40055
40120
|
className: 'base_rule'
|
|
40056
40121
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -40884,7 +40949,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40884
40949
|
}, "\u6A21\u677F")))))));
|
|
40885
40950
|
});
|
|
40886
40951
|
|
|
40887
|
-
var index$
|
|
40952
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
40888
40953
|
var currentSceneId = (props === null || props === void 0 ? void 0 : props.id) || (props === null || props === void 0 ? void 0 : props.sceneId); // 规则模板id
|
|
40889
40954
|
var extStrField01 = props === null || props === void 0 ? void 0 : props.extStrField01; // 上层业务关键字段
|
|
40890
40955
|
var instanceName = props === null || props === void 0 ? void 0 : props.name; // 实例名称
|
|
@@ -41148,7 +41213,7 @@ var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
|
41148
41213
|
bordered: bordered
|
|
41149
41214
|
}), children));
|
|
41150
41215
|
};
|
|
41151
|
-
var index$
|
|
41216
|
+
var index$8 = Object.assign(ExtendedCollapse, {
|
|
41152
41217
|
Board: ExtendedPanel
|
|
41153
41218
|
});
|
|
41154
41219
|
|
|
@@ -41327,4 +41392,4 @@ var SystemLog = function SystemLog(_ref) {
|
|
|
41327
41392
|
});
|
|
41328
41393
|
};
|
|
41329
41394
|
|
|
41330
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$
|
|
41395
|
+
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 };
|