@bit-sun/business-component 4.2.1-alpha.25-aiwei → 4.2.1-alpha.26-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 +336 -111
- package/dist/index.js +335 -110
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
- package/src/components/Business/BsSulaQueryTable/index.tsx +10 -3
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +126 -24
- package/src/components/Functional/AddSelect/index.tsx +3 -1
- package/src/components/Functional/BillEntry/index.tsx +0 -1
- package/src/components/Functional/DataValidation/index.tsx +9 -6
- package/src/components/Functional/SearchSelect/index.tsx +118 -25
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';
|
|
@@ -2561,11 +2561,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2561
2561
|
cell.v = cell.m;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
// console.log(postion);
|
|
2565
2564
|
},
|
|
2566
2565
|
cellAllRenderBefore: function cellAllRenderBefore(data, sheetFile, ctx) {
|
|
2567
2566
|
sheetFile.config.borderInfo = [];
|
|
2568
|
-
// console.info(data,sheetFile,ctx)
|
|
2569
2567
|
}
|
|
2570
2568
|
},
|
|
2571
2569
|
showtoolbarConfig: {
|
|
@@ -2733,14 +2731,21 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2733
2731
|
};
|
|
2734
2732
|
};
|
|
2735
2733
|
_this.getData = function () {
|
|
2736
|
-
|
|
2734
|
+
// 是否使用字符串值 默认为false
|
|
2735
|
+
var useStringValue = _this.props.useStringValue || false;
|
|
2737
2736
|
var sheetData = luckysheet.getSheetData();
|
|
2738
2737
|
var data = JSON.parse(JSON.stringify(sheetData)).filter(function (item) {
|
|
2739
2738
|
return item[0];
|
|
2740
2739
|
}).map(function (item) {
|
|
2741
2740
|
var obj = {};
|
|
2742
2741
|
item.slice(0, itemsTemp.length).map(function (innerItem, index) {
|
|
2743
|
-
|
|
2742
|
+
// 如果使用字符串值,直接赋值字符串
|
|
2743
|
+
if (useStringValue) {
|
|
2744
|
+
obj[_this.state.items[index].code] = innerItem && innerItem.m;
|
|
2745
|
+
} else {
|
|
2746
|
+
// 否则根据值是否相等来判断是否使用字符串值
|
|
2747
|
+
obj[_this.state.items[index].code] = innerItem && (innerItem.v === innerItem.m ? innerItem.m : innerItem.v);
|
|
2748
|
+
}
|
|
2744
2749
|
});
|
|
2745
2750
|
return obj;
|
|
2746
2751
|
});
|
|
@@ -2881,7 +2886,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2881
2886
|
errorListCheck: false,
|
|
2882
2887
|
resultData: res
|
|
2883
2888
|
});
|
|
2884
|
-
console.log(setExportData);
|
|
2885
2889
|
setExportData([123123]);
|
|
2886
2890
|
}).catch(function (err) {});
|
|
2887
2891
|
case 3:
|
|
@@ -3177,7 +3181,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3177
3181
|
left: '0px',
|
|
3178
3182
|
top: '0px'
|
|
3179
3183
|
};
|
|
3180
|
-
console.log('itemsTemp', itemsTemp);
|
|
3181
3184
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
3182
3185
|
className: "sheet_table_top"
|
|
3183
3186
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
@@ -5385,11 +5388,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5385
5388
|
},
|
|
5386
5389
|
pageSize: tableInitPageSize
|
|
5387
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
|
+
});
|
|
5388
5396
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5389
5397
|
total: 0,
|
|
5390
5398
|
current: 1,
|
|
5391
5399
|
pageSizeOptions: TABLE_PAGE_SIZE_OPTIONS.map(String)
|
|
5392
5400
|
});
|
|
5401
|
+
/**
|
|
5402
|
+
* 左侧弹窗表格大分页时的实际渲染上限;全选仍基于完整当前页 tableData。
|
|
5403
|
+
*/
|
|
5404
|
+
var tableRenderPageSize = 200;
|
|
5393
5405
|
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5394
5406
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5395
5407
|
var isHaveDValue = function isHaveDValue() {
|
|
@@ -5499,34 +5511,48 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5499
5511
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5500
5512
|
selectedRows = _useState32[0],
|
|
5501
5513
|
setSelectedRows = _useState32[1];
|
|
5502
|
-
var _useState33 = useState(
|
|
5514
|
+
var _useState33 = useState(selectedInitPagination),
|
|
5503
5515
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
var _useState35 = useState(
|
|
5516
|
+
selectedTablePagination = _useState34[0],
|
|
5517
|
+
setSelectedTablePagination = _useState34[1];
|
|
5518
|
+
var _useState35 = useState({}),
|
|
5507
5519
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
var _useState37 = useState(
|
|
5520
|
+
tableFormParams = _useState36[0],
|
|
5521
|
+
setTableFormParams = _useState36[1];
|
|
5522
|
+
var _useState37 = useState(false),
|
|
5511
5523
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
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)),
|
|
5515
5527
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
var _useState41 = useState(
|
|
5528
|
+
tableShowColumns = _useState40[0],
|
|
5529
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5530
|
+
var _useState41 = useState(false),
|
|
5519
5531
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5520
|
-
|
|
5521
|
-
|
|
5532
|
+
confirmLoading = _useState42[0],
|
|
5533
|
+
setConfirmLoading = _useState42[1];
|
|
5522
5534
|
var _useState43 = useState(false),
|
|
5523
5535
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
var
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
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]);
|
|
5530
5556
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5531
5557
|
setItems(list);
|
|
5532
5558
|
setItemsTotal(total);
|
|
@@ -5534,6 +5560,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5534
5560
|
var clearSelectDataSource = function clearSelectDataSource() {
|
|
5535
5561
|
setSelectDataSource([], 0);
|
|
5536
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
|
+
};
|
|
5537
5577
|
useImperativeHandle(ref, function () {
|
|
5538
5578
|
return {
|
|
5539
5579
|
refreshDataSource: function refreshDataSource() {
|
|
@@ -5726,6 +5766,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5726
5766
|
setUniqueValue(makeUniqueValue());
|
|
5727
5767
|
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5728
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]);
|
|
5729
5781
|
useEffect(function () {
|
|
5730
5782
|
if (init) {
|
|
5731
5783
|
clearSelectDataSource();
|
|
@@ -5783,8 +5835,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5783
5835
|
value: i
|
|
5784
5836
|
};
|
|
5785
5837
|
}));
|
|
5786
|
-
setIndeterminate(!!value.length && value.length < itemsTotal);
|
|
5787
|
-
setCheckedAll(itemsTotal && value.length === itemsTotal);
|
|
5788
5838
|
} else {
|
|
5789
5839
|
setSelectedRowKeys(labelInValue ? [value.key] : [value]);
|
|
5790
5840
|
setSelectedRows(labelInValue ? [_defineProperty(_defineProperty(_defineProperty({}, mappingValueField, value.key), "value", value.key), "text", value.label)] : [_defineProperty(_defineProperty({}, mappingValueField, value), "value", value)]);
|
|
@@ -5872,8 +5922,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5872
5922
|
setTablePagination(tableInitPagination);
|
|
5873
5923
|
setSelectedRowKeys([]);
|
|
5874
5924
|
setSelectedRows([]);
|
|
5875
|
-
setCheckedAll(false);
|
|
5876
|
-
setIndeterminate(false);
|
|
5877
5925
|
};
|
|
5878
5926
|
var handleCancel = function handleCancel() {
|
|
5879
5927
|
clearModalTable();
|
|
@@ -5932,9 +5980,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5932
5980
|
currentPage: pagination.current
|
|
5933
5981
|
}), 2);
|
|
5934
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
|
+
};
|
|
5935
5991
|
var onChangeSelectedKeys = function onChangeSelectedKeys(selectKeys, selectRows) {
|
|
5936
|
-
var sksResult = (selectRows === null || selectRows === void 0 ? void 0 : selectRows.map(function (i) {
|
|
5937
|
-
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);
|
|
5938
5994
|
})) || [];
|
|
5939
5995
|
// 单选 默认直接选中 不需要确定 配置了modalRadioNeedFooter就需要确定
|
|
5940
5996
|
if (!selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter)) {
|
|
@@ -5944,33 +6000,96 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5944
6000
|
setSelectedRowKeys(sksResult);
|
|
5945
6001
|
setSelectedRows(selectRows);
|
|
5946
6002
|
setPopValue(selectRows);
|
|
5947
|
-
setIndeterminate(!!selectRows.length && selectRows.length < (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
5948
|
-
setCheckedAll(selectRows.length === (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total));
|
|
5949
6003
|
};
|
|
5950
|
-
var
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
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
|
+
};
|
|
5974
6093
|
};
|
|
5975
6094
|
var onRowClickSelect = function onRowClickSelect(e, record, type) {
|
|
5976
6095
|
if (selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
@@ -5978,7 +6097,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5978
6097
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5979
6098
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5980
6099
|
var sks = srs.map(function (i) {
|
|
5981
|
-
return i
|
|
6100
|
+
return getRecordKey(i);
|
|
5982
6101
|
});
|
|
5983
6102
|
onChangeSelectedKeys(sks, srs);
|
|
5984
6103
|
}
|
|
@@ -5987,14 +6106,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5987
6106
|
if (!selectMode && !(disabled || !items.length && !tableData.length)) {
|
|
5988
6107
|
var srs = [JSON.parse(JSON.stringify(record))];
|
|
5989
6108
|
var sks = srs.map(function (i) {
|
|
5990
|
-
return i
|
|
6109
|
+
return getRecordKey(i);
|
|
5991
6110
|
});
|
|
5992
6111
|
onChangeSelectedKeys(sks, srs);
|
|
5993
6112
|
}
|
|
5994
6113
|
};
|
|
5995
6114
|
var formItem = function formItem(list) {
|
|
5996
6115
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5997
|
-
debugger;
|
|
5998
6116
|
var setDisabled = function setDisabled(name) {
|
|
5999
6117
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
6000
6118
|
return item === name;
|
|
@@ -6260,6 +6378,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6260
6378
|
};
|
|
6261
6379
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6262
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;
|
|
6263
6385
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6264
6386
|
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6265
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);
|
|
@@ -6289,13 +6411,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6289
6411
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
6290
6412
|
bordered: true,
|
|
6291
6413
|
size: "middle",
|
|
6292
|
-
rowSelection:
|
|
6414
|
+
rowSelection: getRowSelection(currentDataSource, type),
|
|
6293
6415
|
columns: tableShowColumns,
|
|
6294
|
-
dataSource:
|
|
6416
|
+
dataSource: currentDataSource
|
|
6295
6417
|
}, type == 'noPage' ? {
|
|
6296
|
-
pagination: _objectSpread2(_objectSpread2({},
|
|
6418
|
+
pagination: _objectSpread2(_objectSpread2({}, selectedTablePagination), {}, {
|
|
6297
6419
|
showSizeChanger: false
|
|
6298
6420
|
}),
|
|
6421
|
+
onChange: handleSelectedTableChange,
|
|
6299
6422
|
locale: {
|
|
6300
6423
|
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6301
6424
|
}
|
|
@@ -6331,13 +6454,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6331
6454
|
} // 务必填写 key
|
|
6332
6455
|
];
|
|
6333
6456
|
var tabsItems2 = [{
|
|
6334
|
-
label: "\u5DF2\u9009\uFF08".concat((
|
|
6457
|
+
label: "\u5DF2\u9009\uFF08".concat((selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length) || 0, "\uFF09"),
|
|
6335
6458
|
key: 'selected',
|
|
6336
|
-
children: renderShowTable(
|
|
6337
|
-
return _objectSpread2(_objectSpread2({}, s), {}, {
|
|
6338
|
-
keyIndex: index + 1
|
|
6339
|
-
});
|
|
6340
|
-
})) || [], 'noPage')
|
|
6459
|
+
children: renderShowTable(selectedRows, 'noPage')
|
|
6341
6460
|
}];
|
|
6342
6461
|
var resetSelectDataSource = function resetSelectDataSource() {
|
|
6343
6462
|
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -6353,7 +6472,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6353
6472
|
props === null || props === void 0 ? void 0 : (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props);
|
|
6354
6473
|
// 清空下拉框 / 弹窗 选中数据
|
|
6355
6474
|
formaData([], items);
|
|
6356
|
-
|
|
6475
|
+
clearSelectedRows();
|
|
6357
6476
|
// 重置下拉框数据源
|
|
6358
6477
|
resetSelectDataSource(true);
|
|
6359
6478
|
};
|
|
@@ -6610,9 +6729,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6610
6729
|
}, /*#__PURE__*/React$1.createElement(Tabs, {
|
|
6611
6730
|
items: tabsItems2,
|
|
6612
6731
|
tabBarExtraContent: /*#__PURE__*/React$1.createElement("span", {
|
|
6613
|
-
onClick:
|
|
6614
|
-
return onChangeSelectedKeys([], []);
|
|
6615
|
-
}
|
|
6732
|
+
onClick: clearSelectedRows
|
|
6616
6733
|
}, "\u6E05\u7A7A\u5DF2\u9009")
|
|
6617
6734
|
})) : null)))));
|
|
6618
6735
|
});
|
|
@@ -8428,6 +8545,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8428
8545
|
});
|
|
8429
8546
|
};
|
|
8430
8547
|
var handleTableChange = function handleTableChange(pagination) {
|
|
8548
|
+
// 设置分页tablePagination
|
|
8549
|
+
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), pagination));
|
|
8431
8550
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
8432
8551
|
pageSize: pagination.pageSize,
|
|
8433
8552
|
currentPage: pagination.current
|
|
@@ -9020,7 +9139,6 @@ var InputElement = function InputElement(_ref) {
|
|
|
9020
9139
|
// {
|
|
9021
9140
|
// body: {
|
|
9022
9141
|
// cell: ({index, record, ...props}) => {
|
|
9023
|
-
// debugger
|
|
9024
9142
|
// return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
|
|
9025
9143
|
// }
|
|
9026
9144
|
// }
|
|
@@ -11087,8 +11205,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11087
11205
|
}]
|
|
11088
11206
|
}, selectConfigProps);
|
|
11089
11207
|
var _tableSearchForm = handleHiddenFields([{
|
|
11090
|
-
name: 'qp-code-
|
|
11091
|
-
label: 'SKC编码'
|
|
11208
|
+
name: 'qp-code-in',
|
|
11209
|
+
label: 'SKC编码',
|
|
11210
|
+
type: 'multipleQueryInput'
|
|
11092
11211
|
}, {
|
|
11093
11212
|
name: 'qp-skcName-like',
|
|
11094
11213
|
label: 'SKC名称'
|
|
@@ -11140,10 +11259,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11140
11259
|
}
|
|
11141
11260
|
}
|
|
11142
11261
|
}
|
|
11143
|
-
},
|
|
11144
|
-
|
|
11262
|
+
},
|
|
11263
|
+
// { name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
11264
|
+
// type: 'select',
|
|
11265
|
+
// props: {
|
|
11266
|
+
// mode: 'multiple',
|
|
11267
|
+
// notFoundContent: '暂无数据',
|
|
11268
|
+
// allowClear: true,
|
|
11269
|
+
// showSearch: true,
|
|
11270
|
+
// showArrow: true,
|
|
11271
|
+
// maxTagCount: 1,
|
|
11272
|
+
// optionFilterProp: 'children',
|
|
11273
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
11274
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
11275
|
+
// },
|
|
11276
|
+
// } },
|
|
11277
|
+
{
|
|
11278
|
+
name: 'qp-brandId-in',
|
|
11145
11279
|
type: 'select',
|
|
11146
|
-
label: '
|
|
11280
|
+
label: '品牌',
|
|
11147
11281
|
field: {
|
|
11148
11282
|
type: 'select',
|
|
11149
11283
|
props: {
|
|
@@ -11159,12 +11293,53 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11159
11293
|
}
|
|
11160
11294
|
}
|
|
11161
11295
|
}
|
|
11162
|
-
},
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11296
|
+
},
|
|
11297
|
+
// 商品属性 品类 == MAT_CATA (zzdlbm)
|
|
11298
|
+
{
|
|
11299
|
+
name: "qp-zzdlbm-in",
|
|
11300
|
+
label: "品类",
|
|
11166
11301
|
field: {
|
|
11167
|
-
type:
|
|
11302
|
+
type: "select",
|
|
11303
|
+
props: {
|
|
11304
|
+
mode: 'multiple',
|
|
11305
|
+
notFoundContent: '暂无数据',
|
|
11306
|
+
allowClear: true,
|
|
11307
|
+
showSearch: true,
|
|
11308
|
+
showArrow: true,
|
|
11309
|
+
maxTagCount: 1,
|
|
11310
|
+
optionFilterProp: 'children',
|
|
11311
|
+
filterOption: function filterOption(input, option) {
|
|
11312
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11313
|
+
}
|
|
11314
|
+
}
|
|
11315
|
+
}
|
|
11316
|
+
},
|
|
11317
|
+
// 商品属性 大类 == MID_CATA (zzzlbm)
|
|
11318
|
+
{
|
|
11319
|
+
name: "qp-zzzlbm-in",
|
|
11320
|
+
label: "大类",
|
|
11321
|
+
field: {
|
|
11322
|
+
type: "select",
|
|
11323
|
+
props: {
|
|
11324
|
+
mode: 'multiple',
|
|
11325
|
+
notFoundContent: '暂无数据',
|
|
11326
|
+
allowClear: true,
|
|
11327
|
+
showSearch: true,
|
|
11328
|
+
showArrow: true,
|
|
11329
|
+
maxTagCount: 1,
|
|
11330
|
+
optionFilterProp: 'children',
|
|
11331
|
+
filterOption: function filterOption(input, option) {
|
|
11332
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11333
|
+
}
|
|
11334
|
+
}
|
|
11335
|
+
}
|
|
11336
|
+
},
|
|
11337
|
+
// 商品属性 中类 == PROP_SUBCATEORY (zzxlbm)
|
|
11338
|
+
{
|
|
11339
|
+
name: "qp-zzxlbm-in",
|
|
11340
|
+
label: "中类",
|
|
11341
|
+
field: {
|
|
11342
|
+
type: "select",
|
|
11168
11343
|
props: {
|
|
11169
11344
|
mode: 'multiple',
|
|
11170
11345
|
notFoundContent: '暂无数据',
|
|
@@ -11198,22 +11373,48 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11198
11373
|
currentPage: 1
|
|
11199
11374
|
},
|
|
11200
11375
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-categoryId-in')
|
|
11376
|
+
},
|
|
11377
|
+
// {
|
|
11378
|
+
// url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
11379
|
+
// params: {
|
|
11380
|
+
// pageSize: 5000,
|
|
11381
|
+
// currentPage: 1,
|
|
11382
|
+
// },
|
|
11383
|
+
// options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
11384
|
+
// },
|
|
11385
|
+
{
|
|
11386
|
+
url: "".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"),
|
|
11387
|
+
params: {
|
|
11388
|
+
pageSize: 5000,
|
|
11389
|
+
currentPage: 1,
|
|
11390
|
+
'ctl-withAuth': true
|
|
11391
|
+
},
|
|
11392
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11201
11393
|
}, {
|
|
11202
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11394
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11203
11395
|
params: {
|
|
11204
11396
|
pageSize: 5000,
|
|
11205
|
-
currentPage: 1
|
|
11397
|
+
currentPage: 1,
|
|
11398
|
+
'qp-propertyCode-eq': 'MAT_CATA'
|
|
11206
11399
|
},
|
|
11207
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11400
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzdlbm-in')
|
|
11208
11401
|
}, {
|
|
11209
|
-
url: "".concat(prefixUrl.formSelectFix, "/
|
|
11402
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11210
11403
|
params: {
|
|
11211
11404
|
pageSize: 5000,
|
|
11212
11405
|
currentPage: 1,
|
|
11213
|
-
'
|
|
11406
|
+
'qp-propertyCode-eq': 'MID_CATA'
|
|
11214
11407
|
},
|
|
11215
|
-
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-
|
|
11216
|
-
}
|
|
11408
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzzlbm-in')
|
|
11409
|
+
}, {
|
|
11410
|
+
url: "".concat(prefixUrl.formSelectFix, "/item/propertyValue"),
|
|
11411
|
+
params: {
|
|
11412
|
+
pageSize: 5000,
|
|
11413
|
+
currentPage: 1,
|
|
11414
|
+
'qp-propertyCode-eq': 'PROP_SUBCATEORY'
|
|
11415
|
+
},
|
|
11416
|
+
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-zzxlbm-in')
|
|
11417
|
+
}], ['colorName', 'categoryId', 'brandId', 'zzdlbm', 'zzzlbm', 'zzxlbm'], hiddenFields);
|
|
11217
11418
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11218
11419
|
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11219
11420
|
});
|
|
@@ -11230,8 +11431,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11230
11431
|
Promise.all(fieldLoadSource).then(function (x) {
|
|
11231
11432
|
formatSource(x, 0, getFieldIndex(_tableSearchForm, 'colorName'), _tableSearchForm, ['value', 'value']);
|
|
11232
11433
|
formatTreeDataSource(x, 1, getFieldIndex(_tableSearchForm, 'categoryId'), _tableSearchForm);
|
|
11233
|
-
formatSource(x,
|
|
11234
|
-
formatSource(x,
|
|
11434
|
+
// formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
|
|
11435
|
+
formatSource(x, 2, getFieldIndex(_tableSearchForm, 'brandId'), _tableSearchForm, ['id', 'name']);
|
|
11436
|
+
formatSource(x, 3, getFieldIndex(_tableSearchForm, 'zzdlbm'), _tableSearchForm, ['value', 'value']);
|
|
11437
|
+
formatSource(x, 4, getFieldIndex(_tableSearchForm, 'zzzlbm'), _tableSearchForm, ['value', 'value']);
|
|
11438
|
+
formatSource(x, 5, getFieldIndex(_tableSearchForm, 'zzxlbm'), _tableSearchForm, ['value', 'value']);
|
|
11235
11439
|
});
|
|
11236
11440
|
modalTableProps = _objectSpread2({
|
|
11237
11441
|
modalTableTitle: '选择SKC',
|
|
@@ -11250,21 +11454,37 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11250
11454
|
defaultSort: 2
|
|
11251
11455
|
}, {
|
|
11252
11456
|
title: '商品名称',
|
|
11253
|
-
dataIndex: 'itemName'
|
|
11457
|
+
dataIndex: 'itemName',
|
|
11458
|
+
defaultSort: 3
|
|
11254
11459
|
}, {
|
|
11255
11460
|
title: '颜色',
|
|
11256
11461
|
dataIndex: 'colorName',
|
|
11257
|
-
defaultSort:
|
|
11462
|
+
defaultSort: 4
|
|
11258
11463
|
}, {
|
|
11259
11464
|
title: '类目',
|
|
11260
|
-
dataIndex: 'categoryText'
|
|
11465
|
+
dataIndex: 'categoryText',
|
|
11466
|
+
defaultSort: 5
|
|
11467
|
+
},
|
|
11468
|
+
// {
|
|
11469
|
+
// title: '品类',
|
|
11470
|
+
// dataIndex: 'className',
|
|
11471
|
+
// },
|
|
11472
|
+
{
|
|
11473
|
+
title: '品牌',
|
|
11474
|
+
dataIndex: 'brandName',
|
|
11475
|
+
defaultSort: 6
|
|
11261
11476
|
}, {
|
|
11262
11477
|
title: '品类',
|
|
11263
|
-
dataIndex: '
|
|
11478
|
+
dataIndex: 'zzdlbm',
|
|
11479
|
+
defaultSort: 7
|
|
11264
11480
|
}, {
|
|
11265
|
-
title: '
|
|
11266
|
-
dataIndex: '
|
|
11267
|
-
defaultSort:
|
|
11481
|
+
title: '大类',
|
|
11482
|
+
dataIndex: 'zzzlbm',
|
|
11483
|
+
defaultSort: 8
|
|
11484
|
+
}, {
|
|
11485
|
+
title: '中类',
|
|
11486
|
+
dataIndex: 'zzxlbm',
|
|
11487
|
+
defaultSort: 9
|
|
11268
11488
|
}], hiddenFields)
|
|
11269
11489
|
}, modalTableBusProps);
|
|
11270
11490
|
}
|
|
@@ -11445,7 +11665,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11445
11665
|
headers: _objectSpread2({}, extralHeaders)
|
|
11446
11666
|
})]).then(function (x) {
|
|
11447
11667
|
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11448
|
-
debugger;
|
|
11449
11668
|
// 战区限制一级数据
|
|
11450
11669
|
var newData1 = [];
|
|
11451
11670
|
(_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
|
|
@@ -12484,7 +12703,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12484
12703
|
optionFilterProp: 'children',
|
|
12485
12704
|
filterOption: function filterOption(input, option) {
|
|
12486
12705
|
var _option$value;
|
|
12487
|
-
debugger;
|
|
12488
12706
|
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12489
12707
|
}
|
|
12490
12708
|
}
|
|
@@ -12632,7 +12850,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12632
12850
|
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12633
12851
|
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12634
12852
|
});
|
|
12635
|
-
debugger;
|
|
12636
12853
|
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12637
12854
|
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12638
12855
|
});
|
|
@@ -14479,7 +14696,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14479
14696
|
'ctl-withAuth': true
|
|
14480
14697
|
},
|
|
14481
14698
|
resType: 'list',
|
|
14482
|
-
resPosition: isNoUseItemBarcode ?
|
|
14699
|
+
resPosition: isNoUseItemBarcode ? 4 : 5,
|
|
14483
14700
|
resKeyValue: ['id', 'name']
|
|
14484
14701
|
}, {
|
|
14485
14702
|
url: "/items/category/queryCategoryTree",
|
|
@@ -14488,7 +14705,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14488
14705
|
currentPage: 1
|
|
14489
14706
|
},
|
|
14490
14707
|
resType: 'treeList',
|
|
14491
|
-
resPosition: isNoUseItemBarcode ?
|
|
14708
|
+
resPosition: isNoUseItemBarcode ? 5 : 6
|
|
14492
14709
|
}];
|
|
14493
14710
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
14494
14711
|
var props = {
|
|
@@ -14525,7 +14742,8 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
14525
14742
|
tableSearchForm: mTpTableSearchForm,
|
|
14526
14743
|
tableColumns: mTpTableColumn,
|
|
14527
14744
|
selectColumn: mTpSelectColumn,
|
|
14528
|
-
promiseLoadList: mTpPromiseLoadList
|
|
14745
|
+
promiseLoadList: mTpPromiseLoadList,
|
|
14746
|
+
topTablePagination: (parProps === null || parProps === void 0 ? void 0 : parProps.pagination) || {}
|
|
14529
14747
|
};
|
|
14530
14748
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
14531
14749
|
modalTableProps: modalTableProps
|
|
@@ -20280,9 +20498,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20280
20498
|
}
|
|
20281
20499
|
}));
|
|
20282
20500
|
}));
|
|
20283
|
-
} else {
|
|
20284
|
-
return undefined;
|
|
20285
20501
|
}
|
|
20502
|
+
// 判断summaryList 是否为reactNode
|
|
20503
|
+
if (/*#__PURE__*/React$1.isValidElement(summaryList)) {
|
|
20504
|
+
return summaryList;
|
|
20505
|
+
}
|
|
20506
|
+
// 判断summaryList 是否为函数
|
|
20507
|
+
if (Object.prototype.toString.call(summaryList) === '[object Function]') {
|
|
20508
|
+
return summaryList();
|
|
20509
|
+
}
|
|
20510
|
+
return undefined;
|
|
20286
20511
|
};
|
|
20287
20512
|
var columnsDom = /*#__PURE__*/React$1.createElement("span", {
|
|
20288
20513
|
className: "ant-dropdown-link"
|