@bit-sun/business-component 4.2.0-alpha.6.3 → 4.2.0-alpha.6.5
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 +121 -11
- package/dist/index.js +121 -11
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +126 -28
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Solution/RuleComponent/index.js +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -11109,7 +11109,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11109
11109
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11110
11110
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11111
11111
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11112
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11112
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11113
11113
|
});
|
|
11114
11114
|
requestConfig = _objectSpread2({
|
|
11115
11115
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11539,6 +11539,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11539
11539
|
}
|
|
11540
11540
|
}
|
|
11541
11541
|
}
|
|
11542
|
+
}, {
|
|
11543
|
+
name: 'qp-channelCode-in',
|
|
11544
|
+
type: 'treeSelect',
|
|
11545
|
+
label: '销售渠道',
|
|
11546
|
+
field: {
|
|
11547
|
+
type: 'treeSelect',
|
|
11548
|
+
props: {
|
|
11549
|
+
multiple: true,
|
|
11550
|
+
treeData: [],
|
|
11551
|
+
treeCheckable: false,
|
|
11552
|
+
notFoundContent: '暂无数据',
|
|
11553
|
+
allowClear: true,
|
|
11554
|
+
showSearch: true,
|
|
11555
|
+
showArrow: true,
|
|
11556
|
+
maxTagCount: 1,
|
|
11557
|
+
optionFilterProp: 'children',
|
|
11558
|
+
filterOption: function filterOption(input, option) {
|
|
11559
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11560
|
+
},
|
|
11561
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11562
|
+
}
|
|
11563
|
+
}
|
|
11542
11564
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11543
11565
|
name: 'qp-status-eq',
|
|
11544
11566
|
type: 'select',
|
|
@@ -11551,8 +11573,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11551
11573
|
});
|
|
11552
11574
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11553
11575
|
'qp-status-eq': 1
|
|
11554
|
-
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))
|
|
11576
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11577
|
+
'qp-status-eq': 10,
|
|
11578
|
+
'qp-isMain-eq': 1,
|
|
11579
|
+
'qp-type-in': '1,2'
|
|
11580
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11555
11581
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11582
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11583
|
+
return data['parentCode'] === '0';
|
|
11584
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11585
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11556
11586
|
});
|
|
11557
11587
|
modalTableProps = _objectSpread2({
|
|
11558
11588
|
modalTableTitle: '选择运营仓',
|
|
@@ -11580,7 +11610,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11580
11610
|
render: function render(text) {
|
|
11581
11611
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11582
11612
|
}
|
|
11583
|
-
}] : [])
|
|
11613
|
+
}] : []), [{
|
|
11614
|
+
title: '所属销售渠道',
|
|
11615
|
+
dataIndex: 'channelName',
|
|
11616
|
+
defaultSort: 5,
|
|
11617
|
+
width: 100
|
|
11618
|
+
}])
|
|
11584
11619
|
}, modalTableBusProps);
|
|
11585
11620
|
}
|
|
11586
11621
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11856,16 +11891,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11856
11891
|
}
|
|
11857
11892
|
}
|
|
11858
11893
|
}
|
|
11894
|
+
}, {
|
|
11895
|
+
name: 'qp-saleChannel-in',
|
|
11896
|
+
type: 'treeSelect',
|
|
11897
|
+
label: '销售渠道',
|
|
11898
|
+
field: {
|
|
11899
|
+
type: 'treeSelect',
|
|
11900
|
+
props: {
|
|
11901
|
+
multiple: true,
|
|
11902
|
+
treeData: [],
|
|
11903
|
+
treeCheckable: false,
|
|
11904
|
+
notFoundContent: '暂无数据',
|
|
11905
|
+
allowClear: true,
|
|
11906
|
+
showSearch: true,
|
|
11907
|
+
showArrow: true,
|
|
11908
|
+
maxTagCount: 1,
|
|
11909
|
+
optionFilterProp: 'children',
|
|
11910
|
+
filterOption: function filterOption(input, option) {
|
|
11911
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11912
|
+
},
|
|
11913
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11914
|
+
}
|
|
11915
|
+
}
|
|
11916
|
+
}, {
|
|
11917
|
+
name: 'qp-refCode-in',
|
|
11918
|
+
type: 'treeSelect',
|
|
11919
|
+
label: '营销区域',
|
|
11920
|
+
field: {
|
|
11921
|
+
type: 'treeSelect',
|
|
11922
|
+
props: {
|
|
11923
|
+
multiple: true,
|
|
11924
|
+
treeData: [],
|
|
11925
|
+
treeCheckable: false,
|
|
11926
|
+
notFoundContent: '暂无数据',
|
|
11927
|
+
allowClear: true,
|
|
11928
|
+
showSearch: true,
|
|
11929
|
+
showArrow: true,
|
|
11930
|
+
maxTagCount: 1,
|
|
11931
|
+
optionFilterProp: 'children',
|
|
11932
|
+
filterOption: function filterOption(input, option) {
|
|
11933
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11934
|
+
},
|
|
11935
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11936
|
+
}
|
|
11937
|
+
}
|
|
11859
11938
|
}];
|
|
11860
11939
|
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11861
11940
|
querySelectHeadersList: querySelectHeadersList,
|
|
11862
11941
|
extralHeaders: extralHeaders
|
|
11863
11942
|
});
|
|
11864
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))
|
|
11943
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11944
|
+
'qp-status-eq': 10,
|
|
11945
|
+
'qp-isMain-eq': 1,
|
|
11946
|
+
'qp-type-in': '1,2'
|
|
11947
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11948
|
+
'qp-status-eq': 1
|
|
11949
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11865
11950
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11866
11951
|
var allList = firstElement && [firstElement, firstElement];
|
|
11867
11952
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11868
11953
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11954
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11955
|
+
return data['parentCode'] === '0';
|
|
11956
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11957
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11958
|
+
return data['parent'] === '0';
|
|
11959
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11960
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11961
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11869
11962
|
});
|
|
11870
11963
|
modalTableProps = _objectSpread2({
|
|
11871
11964
|
modalTableTitle: '选择客户',
|
|
@@ -11889,7 +11982,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11889
11982
|
}, {
|
|
11890
11983
|
title: '使用组织',
|
|
11891
11984
|
dataIndex: 'salesOrgName',
|
|
11892
|
-
defaultSort: 4
|
|
11985
|
+
defaultSort: 4,
|
|
11986
|
+
width: 100
|
|
11987
|
+
}, {
|
|
11988
|
+
title: '所属销售渠道',
|
|
11989
|
+
dataIndex: 'channelName',
|
|
11990
|
+
defaultSort: 5,
|
|
11991
|
+
width: 100
|
|
11992
|
+
}, {
|
|
11993
|
+
title: '营销区域',
|
|
11994
|
+
dataIndex: 'commonRelationAreaName',
|
|
11995
|
+
defaultSort: 6,
|
|
11996
|
+
width: 100
|
|
11893
11997
|
}]
|
|
11894
11998
|
}, modalTableBusProps);
|
|
11895
11999
|
}
|
|
@@ -11917,12 +12021,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11917
12021
|
sourceName: 'code'
|
|
11918
12022
|
}, requestConfigProp);
|
|
11919
12023
|
tableSearchForm = [{
|
|
11920
|
-
name: '
|
|
11921
|
-
label: '店铺名称'
|
|
11922
|
-
|
|
11923
|
-
name: 'qp-code-like',
|
|
11924
|
-
label: '店铺编码'
|
|
12024
|
+
name: 'name*multiInput',
|
|
12025
|
+
label: '店铺名称',
|
|
12026
|
+
type: 'multipleQueryInput'
|
|
11925
12027
|
}, {
|
|
12028
|
+
name: 'code*multiInput',
|
|
12029
|
+
label: '店铺编码',
|
|
12030
|
+
type: 'multipleQueryInput'
|
|
12031
|
+
},
|
|
12032
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12033
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12034
|
+
{
|
|
11926
12035
|
name: 'qp-conglomerateCode-in',
|
|
11927
12036
|
type: 'select',
|
|
11928
12037
|
label: '归属集团',
|
|
@@ -38485,7 +38594,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38485
38594
|
display: 'flex',
|
|
38486
38595
|
marginBottom: '0px',
|
|
38487
38596
|
padding: '10px 0px'
|
|
38488
|
-
}
|
|
38597
|
+
},
|
|
38598
|
+
key: itemDetail.elementId
|
|
38489
38599
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
38490
38600
|
className: 'logical_operate_content',
|
|
38491
38601
|
style: {
|
package/dist/index.js
CHANGED
|
@@ -11132,7 +11132,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11132
11132
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
11133
11133
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
11134
11134
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
11135
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11135
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
11136
11136
|
});
|
|
11137
11137
|
requestConfig = _objectSpread2({
|
|
11138
11138
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11562,6 +11562,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11562
11562
|
}
|
|
11563
11563
|
}
|
|
11564
11564
|
}
|
|
11565
|
+
}, {
|
|
11566
|
+
name: 'qp-channelCode-in',
|
|
11567
|
+
type: 'treeSelect',
|
|
11568
|
+
label: '销售渠道',
|
|
11569
|
+
field: {
|
|
11570
|
+
type: 'treeSelect',
|
|
11571
|
+
props: {
|
|
11572
|
+
multiple: true,
|
|
11573
|
+
treeData: [],
|
|
11574
|
+
treeCheckable: false,
|
|
11575
|
+
notFoundContent: '暂无数据',
|
|
11576
|
+
allowClear: true,
|
|
11577
|
+
showSearch: true,
|
|
11578
|
+
showArrow: true,
|
|
11579
|
+
maxTagCount: 1,
|
|
11580
|
+
optionFilterProp: 'children',
|
|
11581
|
+
filterOption: function filterOption(input, option) {
|
|
11582
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11583
|
+
},
|
|
11584
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11585
|
+
}
|
|
11586
|
+
}
|
|
11565
11587
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11566
11588
|
name: 'qp-status-eq',
|
|
11567
11589
|
type: 'select',
|
|
@@ -11574,8 +11596,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11574
11596
|
});
|
|
11575
11597
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11576
11598
|
'qp-status-eq': 1
|
|
11577
|
-
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))
|
|
11599
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11600
|
+
'qp-status-eq': 10,
|
|
11601
|
+
'qp-isMain-eq': 1,
|
|
11602
|
+
'qp-type-in': '1,2'
|
|
11603
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11578
11604
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11605
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11606
|
+
return data['parentCode'] === '0';
|
|
11607
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11608
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11579
11609
|
});
|
|
11580
11610
|
modalTableProps = _objectSpread2({
|
|
11581
11611
|
modalTableTitle: '选择运营仓',
|
|
@@ -11603,7 +11633,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11603
11633
|
render: function render(text) {
|
|
11604
11634
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11605
11635
|
}
|
|
11606
|
-
}] : [])
|
|
11636
|
+
}] : []), [{
|
|
11637
|
+
title: '所属销售渠道',
|
|
11638
|
+
dataIndex: 'channelName',
|
|
11639
|
+
defaultSort: 5,
|
|
11640
|
+
width: 100
|
|
11641
|
+
}])
|
|
11607
11642
|
}, modalTableBusProps);
|
|
11608
11643
|
}
|
|
11609
11644
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11879,16 +11914,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11879
11914
|
}
|
|
11880
11915
|
}
|
|
11881
11916
|
}
|
|
11917
|
+
}, {
|
|
11918
|
+
name: 'qp-saleChannel-in',
|
|
11919
|
+
type: 'treeSelect',
|
|
11920
|
+
label: '销售渠道',
|
|
11921
|
+
field: {
|
|
11922
|
+
type: 'treeSelect',
|
|
11923
|
+
props: {
|
|
11924
|
+
multiple: true,
|
|
11925
|
+
treeData: [],
|
|
11926
|
+
treeCheckable: false,
|
|
11927
|
+
notFoundContent: '暂无数据',
|
|
11928
|
+
allowClear: true,
|
|
11929
|
+
showSearch: true,
|
|
11930
|
+
showArrow: true,
|
|
11931
|
+
maxTagCount: 1,
|
|
11932
|
+
optionFilterProp: 'children',
|
|
11933
|
+
filterOption: function filterOption(input, option) {
|
|
11934
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11935
|
+
},
|
|
11936
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11937
|
+
}
|
|
11938
|
+
}
|
|
11939
|
+
}, {
|
|
11940
|
+
name: 'qp-refCode-in',
|
|
11941
|
+
type: 'treeSelect',
|
|
11942
|
+
label: '营销区域',
|
|
11943
|
+
field: {
|
|
11944
|
+
type: 'treeSelect',
|
|
11945
|
+
props: {
|
|
11946
|
+
multiple: true,
|
|
11947
|
+
treeData: [],
|
|
11948
|
+
treeCheckable: false,
|
|
11949
|
+
notFoundContent: '暂无数据',
|
|
11950
|
+
allowClear: true,
|
|
11951
|
+
showSearch: true,
|
|
11952
|
+
showArrow: true,
|
|
11953
|
+
maxTagCount: 1,
|
|
11954
|
+
optionFilterProp: 'children',
|
|
11955
|
+
filterOption: function filterOption(input, option) {
|
|
11956
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11957
|
+
},
|
|
11958
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11959
|
+
}
|
|
11960
|
+
}
|
|
11882
11961
|
}];
|
|
11883
11962
|
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11884
11963
|
querySelectHeadersList: querySelectHeadersList,
|
|
11885
11964
|
extralHeaders: extralHeaders
|
|
11886
11965
|
});
|
|
11887
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))
|
|
11966
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11967
|
+
'qp-status-eq': 10,
|
|
11968
|
+
'qp-isMain-eq': 1,
|
|
11969
|
+
'qp-type-in': '1,2'
|
|
11970
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11971
|
+
'qp-status-eq': 1
|
|
11972
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11888
11973
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11889
11974
|
var allList = firstElement && [firstElement, firstElement];
|
|
11890
11975
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11891
11976
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11977
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11978
|
+
return data['parentCode'] === '0';
|
|
11979
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11980
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11981
|
+
return data['parent'] === '0';
|
|
11982
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11983
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11984
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11892
11985
|
});
|
|
11893
11986
|
modalTableProps = _objectSpread2({
|
|
11894
11987
|
modalTableTitle: '选择客户',
|
|
@@ -11912,7 +12005,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11912
12005
|
}, {
|
|
11913
12006
|
title: '使用组织',
|
|
11914
12007
|
dataIndex: 'salesOrgName',
|
|
11915
|
-
defaultSort: 4
|
|
12008
|
+
defaultSort: 4,
|
|
12009
|
+
width: 100
|
|
12010
|
+
}, {
|
|
12011
|
+
title: '所属销售渠道',
|
|
12012
|
+
dataIndex: 'channelName',
|
|
12013
|
+
defaultSort: 5,
|
|
12014
|
+
width: 100
|
|
12015
|
+
}, {
|
|
12016
|
+
title: '营销区域',
|
|
12017
|
+
dataIndex: 'commonRelationAreaName',
|
|
12018
|
+
defaultSort: 6,
|
|
12019
|
+
width: 100
|
|
11916
12020
|
}]
|
|
11917
12021
|
}, modalTableBusProps);
|
|
11918
12022
|
}
|
|
@@ -11940,12 +12044,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11940
12044
|
sourceName: 'code'
|
|
11941
12045
|
}, requestConfigProp);
|
|
11942
12046
|
tableSearchForm = [{
|
|
11943
|
-
name: '
|
|
11944
|
-
label: '店铺名称'
|
|
11945
|
-
|
|
11946
|
-
name: 'qp-code-like',
|
|
11947
|
-
label: '店铺编码'
|
|
12047
|
+
name: 'name*multiInput',
|
|
12048
|
+
label: '店铺名称',
|
|
12049
|
+
type: 'multipleQueryInput'
|
|
11948
12050
|
}, {
|
|
12051
|
+
name: 'code*multiInput',
|
|
12052
|
+
label: '店铺编码',
|
|
12053
|
+
type: 'multipleQueryInput'
|
|
12054
|
+
},
|
|
12055
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12056
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12057
|
+
{
|
|
11949
12058
|
name: 'qp-conglomerateCode-in',
|
|
11950
12059
|
type: 'select',
|
|
11951
12060
|
label: '归属集团',
|
|
@@ -38508,7 +38617,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38508
38617
|
display: 'flex',
|
|
38509
38618
|
marginBottom: '0px',
|
|
38510
38619
|
padding: '10px 0px'
|
|
38511
|
-
}
|
|
38620
|
+
},
|
|
38621
|
+
key: itemDetail.elementId
|
|
38512
38622
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38513
38623
|
className: 'logical_operate_content',
|
|
38514
38624
|
style: {
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013'
|
|
|
13
13
|
|
|
14
14
|
export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
15
15
|
const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
// 默认type === 'supplier' 供应商选择器
|
|
18
18
|
let requestConfig = {
|
|
19
19
|
init: true,
|
|
@@ -56,11 +56,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
const formatTreeDataSource = (
|
|
59
|
-
reData: any,
|
|
60
|
-
position: number,
|
|
59
|
+
reData: any,
|
|
60
|
+
position: number,
|
|
61
61
|
changePosition: number,
|
|
62
62
|
changeSearchForm: any,
|
|
63
|
-
resKeyValue=['id', 'name'],
|
|
63
|
+
resKeyValue=['id', 'name'],
|
|
64
64
|
childrenKey = 'children',
|
|
65
65
|
nodeDisabledJudge?: (data: any) => boolean, // 树节点能不能选 函数判断
|
|
66
66
|
) => {
|
|
@@ -344,7 +344,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
344
344
|
}
|
|
345
345
|
tableSearchForm = [
|
|
346
346
|
{ name: 'qp-skuCode-in', label: 'SKU编码', field: {
|
|
347
|
-
type:'multipleQuerySearchSelect',
|
|
347
|
+
type:'multipleQuerySearchSelect',
|
|
348
348
|
props: {
|
|
349
349
|
selectProps: {
|
|
350
350
|
mode: "multiple",
|
|
@@ -366,7 +366,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
366
366
|
} },
|
|
367
367
|
{ name: 'qp-skuName-like', label: 'SKU名称' },
|
|
368
368
|
{ name: 'qp-itemCode-in', label: 'SPU编码', field: {
|
|
369
|
-
type:'multipleQuerySearchSelect',
|
|
369
|
+
type:'multipleQuerySearchSelect',
|
|
370
370
|
props: {
|
|
371
371
|
selectProps: {
|
|
372
372
|
placeholder: '请输入SPU编码查询'
|
|
@@ -733,9 +733,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
733
733
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
734
734
|
},
|
|
735
735
|
} },
|
|
736
|
-
{
|
|
737
|
-
name: 'qp-year-in',
|
|
738
|
-
label: '年份',
|
|
736
|
+
{
|
|
737
|
+
name: 'qp-year-in',
|
|
738
|
+
label: '年份',
|
|
739
739
|
field: {
|
|
740
740
|
type: 'itemPropertySelector',
|
|
741
741
|
props: {
|
|
@@ -744,9 +744,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
|
-
{
|
|
748
|
-
name: 'qp-season-in',
|
|
749
|
-
label: '季节',
|
|
747
|
+
{
|
|
748
|
+
name: 'qp-season-in',
|
|
749
|
+
label: '季节',
|
|
750
750
|
field: {
|
|
751
751
|
type: 'itemPropertySelector',
|
|
752
752
|
props: {
|
|
@@ -755,9 +755,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
},
|
|
758
|
-
{
|
|
759
|
-
name: 'qp-zzdlbm-in',
|
|
760
|
-
label: '大类',
|
|
758
|
+
{
|
|
759
|
+
name: 'qp-zzdlbm-in',
|
|
760
|
+
label: '大类',
|
|
761
761
|
field: {
|
|
762
762
|
type: 'itemPropertySelector',
|
|
763
763
|
props: {
|
|
@@ -766,9 +766,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
},
|
|
769
|
-
{
|
|
770
|
-
name: 'qp-zzzlbm-in',
|
|
771
|
-
label: '中类',
|
|
769
|
+
{
|
|
770
|
+
name: 'qp-zzzlbm-in',
|
|
771
|
+
label: '中类',
|
|
772
772
|
field: {
|
|
773
773
|
type: 'itemPropertySelector',
|
|
774
774
|
props: {
|
|
@@ -777,9 +777,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
},
|
|
780
|
-
{
|
|
781
|
-
name: 'qp-zzxlbm-in',
|
|
782
|
-
label: '小类',
|
|
780
|
+
{
|
|
781
|
+
name: 'qp-zzxlbm-in',
|
|
782
|
+
label: '小类',
|
|
783
783
|
field: {
|
|
784
784
|
type: 'itemPropertySelector',
|
|
785
785
|
props: {
|
|
@@ -970,7 +970,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
970
970
|
['colorName', 'categoryId', 'classId', 'brandId'],
|
|
971
971
|
hiddenFields,
|
|
972
972
|
);
|
|
973
|
-
const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,options));
|
|
973
|
+
const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,i.options));
|
|
974
974
|
requestConfig = {
|
|
975
975
|
url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
|
|
976
976
|
filter: 'qp-code,name-orGroup,like', // 过滤参数
|
|
@@ -1379,13 +1379,39 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1379
1379
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1380
1380
|
},
|
|
1381
1381
|
} },
|
|
1382
|
-
|
|
1382
|
+
{
|
|
1383
|
+
name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1384
|
+
type: 'treeSelect',
|
|
1385
|
+
props: {
|
|
1386
|
+
multiple: true,
|
|
1387
|
+
treeData: [],
|
|
1388
|
+
treeCheckable: false,
|
|
1389
|
+
notFoundContent: '暂无数据',
|
|
1390
|
+
allowClear: true,
|
|
1391
|
+
showSearch: true,
|
|
1392
|
+
showArrow: true,
|
|
1393
|
+
maxTagCount: 1,
|
|
1394
|
+
optionFilterProp: 'children',
|
|
1395
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1396
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1397
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1398
|
+
},
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
1383
1402
|
]
|
|
1384
1403
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1385
1404
|
Promise.all([
|
|
1386
1405
|
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },getQueryHeadersItem(queryHeaderParams,'qp-groupCode-in')),
|
|
1406
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1407
|
+
'qp-status-eq': 10,
|
|
1408
|
+
'qp-isMain-eq': 1,
|
|
1409
|
+
'qp-type-in': '1,2',
|
|
1410
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1387
1411
|
]).then((x: any)=>{
|
|
1388
1412
|
formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
|
|
1413
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1414
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1389
1415
|
})
|
|
1390
1416
|
modalTableProps = {
|
|
1391
1417
|
modalTableTitle: '选择运营仓',
|
|
@@ -1417,6 +1443,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1417
1443
|
defaultSort: 4,
|
|
1418
1444
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1419
1445
|
}]:[]),
|
|
1446
|
+
{
|
|
1447
|
+
title: '所属销售渠道',
|
|
1448
|
+
dataIndex: 'channelName',
|
|
1449
|
+
defaultSort: 5,
|
|
1450
|
+
width: 100,
|
|
1451
|
+
},
|
|
1420
1452
|
],
|
|
1421
1453
|
...modalTableBusProps,
|
|
1422
1454
|
}
|
|
@@ -1690,15 +1722,66 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1690
1722
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1691
1723
|
},
|
|
1692
1724
|
} },
|
|
1693
|
-
|
|
1725
|
+
{
|
|
1726
|
+
name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1727
|
+
type: 'treeSelect',
|
|
1728
|
+
props: {
|
|
1729
|
+
multiple: true,
|
|
1730
|
+
treeData: [],
|
|
1731
|
+
treeCheckable: false,
|
|
1732
|
+
notFoundContent: '暂无数据',
|
|
1733
|
+
allowClear: true,
|
|
1734
|
+
showSearch: true,
|
|
1735
|
+
showArrow: true,
|
|
1736
|
+
maxTagCount: 1,
|
|
1737
|
+
optionFilterProp: 'children',
|
|
1738
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1739
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1740
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1741
|
+
},
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
1746
|
+
type: 'treeSelect',
|
|
1747
|
+
props: {
|
|
1748
|
+
multiple: true,
|
|
1749
|
+
treeData: [],
|
|
1750
|
+
treeCheckable: false,
|
|
1751
|
+
notFoundContent: '暂无数据',
|
|
1752
|
+
allowClear: true,
|
|
1753
|
+
showSearch: true,
|
|
1754
|
+
showArrow: true,
|
|
1755
|
+
maxTagCount: 1,
|
|
1756
|
+
optionFilterProp: 'children',
|
|
1757
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1758
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1759
|
+
|
|
1760
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1761
|
+
},
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
];
|
|
1694
1765
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1695
1766
|
Promise.all([
|
|
1696
1767
|
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
1768
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1769
|
+
'qp-status-eq': 10,
|
|
1770
|
+
'qp-isMain-eq': 1,
|
|
1771
|
+
'qp-type-in': '1,2',
|
|
1772
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1773
|
+
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1774
|
+
'qp-status-eq': 1,
|
|
1775
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1697
1776
|
]).then((x: any)=>{
|
|
1698
1777
|
const firstElement = x?.[0];
|
|
1699
1778
|
const allList = firstElement && [firstElement, firstElement];
|
|
1700
1779
|
formatSource(allList,0, 2, tableSearchForm);
|
|
1701
1780
|
formatSource(allList,1, 3, tableSearchForm);
|
|
1781
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1782
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1783
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1784
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1702
1785
|
})
|
|
1703
1786
|
modalTableProps = {
|
|
1704
1787
|
modalTableTitle: '选择客户',
|
|
@@ -1728,6 +1811,19 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1728
1811
|
title: '使用组织',
|
|
1729
1812
|
dataIndex: 'salesOrgName',
|
|
1730
1813
|
defaultSort: 4,
|
|
1814
|
+
width: 100,
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
title: '所属销售渠道',
|
|
1818
|
+
dataIndex: 'channelName',
|
|
1819
|
+
defaultSort: 5,
|
|
1820
|
+
width: 100,
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
title: '营销区域',
|
|
1824
|
+
dataIndex: 'commonRelationAreaName',
|
|
1825
|
+
defaultSort: 6,
|
|
1826
|
+
width: 100,
|
|
1731
1827
|
},
|
|
1732
1828
|
],
|
|
1733
1829
|
...modalTableBusProps
|
|
@@ -1764,8 +1860,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1764
1860
|
...requestConfigProp,
|
|
1765
1861
|
}
|
|
1766
1862
|
tableSearchForm = [
|
|
1767
|
-
{ name: '
|
|
1768
|
-
{ name: '
|
|
1863
|
+
{ name: 'name*multiInput', label: '店铺名称', type: 'multipleQueryInput' },
|
|
1864
|
+
{ name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
|
|
1865
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
1866
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
1769
1867
|
{ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
1770
1868
|
type: 'select',
|
|
1771
1869
|
props: {
|
|
@@ -1995,7 +2093,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1995
2093
|
optionFilterProp: 'children',
|
|
1996
2094
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1997
2095
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1998
|
-
|
|
2096
|
+
|
|
1999
2097
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2000
2098
|
},
|
|
2001
2099
|
} },
|
|
@@ -2013,7 +2111,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2013
2111
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2014
2112
|
},
|
|
2015
2113
|
} ,
|
|
2016
|
-
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2114
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2017
2115
|
},
|
|
2018
2116
|
]
|
|
2019
2117
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import React, { useState } from 'react';
|
|
2
3
|
import { Table, Tooltip, Typography } from 'antd';
|
|
3
4
|
import { Resizable } from 'react-resizable';
|
|
@@ -81,9 +82,9 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
84
|
* 新增函数,用于根据传入的小数位数进行四舍五入
|
|
84
|
-
* @param number
|
|
85
|
-
* @param decimalPlaces
|
|
86
|
-
* @returns
|
|
85
|
+
* @param number
|
|
86
|
+
* @param decimalPlaces
|
|
87
|
+
* @returns
|
|
87
88
|
*/
|
|
88
89
|
roundToDecimalPlaces = (number: any, decimalPlaces: number) => {
|
|
89
90
|
const factor = Math.pow(10, (decimalPlaces || 2));
|
|
@@ -92,7 +93,7 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
92
93
|
|
|
93
94
|
/**
|
|
94
95
|
* 合计行逻辑
|
|
95
|
-
* @returns
|
|
96
|
+
* @returns
|
|
96
97
|
*/
|
|
97
98
|
getTableSummaryInfo = () => {
|
|
98
99
|
const { summary = undefined, rowSelection, expandable, modeType, dataSource, isSpecial = false, }: any = this.props;
|
|
@@ -232,7 +233,7 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
232
233
|
|
|
233
234
|
/**
|
|
234
235
|
* 处理行点击事件
|
|
235
|
-
* @param record
|
|
236
|
+
* @param record
|
|
236
237
|
*/
|
|
237
238
|
handleRowClick = (record: any) => {
|
|
238
239
|
const { selectedRowKeys, selectedRows, } = this.state;
|
|
@@ -316,7 +317,7 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
316
317
|
...propRowSelection,
|
|
317
318
|
selectedRowKeys: this.state.selectedRowKeys,
|
|
318
319
|
onChange: (selectedRowKeys: any, selectedRows: any) => {
|
|
319
|
-
this.setState({
|
|
320
|
+
this.setState({
|
|
320
321
|
selectedRowKeys,
|
|
321
322
|
selectedRows
|
|
322
323
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
3
|
import { Table as SulaTable, request } from 'bssula';
|
|
3
4
|
import { Resizable } from 'react-resizable';
|
|
@@ -22,7 +23,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
22
23
|
showColumns: [],
|
|
23
24
|
selectedRowKeys: [], // 新增状态,用于跟踪选中的行的键
|
|
24
25
|
selectedRows: [],
|
|
25
|
-
showSummary: null
|
|
26
|
+
showSummary: null
|
|
26
27
|
}
|
|
27
28
|
this.sulaTableRef = React.createRef<any>();
|
|
28
29
|
}
|
|
@@ -79,9 +80,9 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* 新增函数,用于根据传入的小数位数进行四舍五入
|
|
82
|
-
* @param number
|
|
83
|
-
* @param decimalPlaces
|
|
84
|
-
* @returns
|
|
83
|
+
* @param number
|
|
84
|
+
* @param decimalPlaces
|
|
85
|
+
* @returns
|
|
85
86
|
*/
|
|
86
87
|
roundToDecimalPlaces = (number: any, decimalPlaces: number) => {
|
|
87
88
|
const factor = Math.pow(10, (decimalPlaces || 2));
|
|
@@ -90,7 +91,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
93
|
* 合计行逻辑
|
|
93
|
-
* @returns
|
|
94
|
+
* @returns
|
|
94
95
|
*/
|
|
95
96
|
getTableSummaryInfo = () => {
|
|
96
97
|
const { summary = undefined, rowSelection, expandable, isSpecial = false, modeType }: any = this.props;
|
|
@@ -167,10 +168,10 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
167
168
|
</Table.Summary.Row>
|
|
168
169
|
</Table.Summary>
|
|
169
170
|
);
|
|
170
|
-
|
|
171
|
+
|
|
171
172
|
return () => summaryDom;
|
|
172
|
-
};
|
|
173
|
-
|
|
173
|
+
};
|
|
174
|
+
|
|
174
175
|
handledynamicColumns = (col: any[]) => {
|
|
175
176
|
let { dynamicColumns, modeType }: any = this.props;
|
|
176
177
|
col = col.map((item: any) => {
|
|
@@ -205,7 +206,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
205
206
|
|
|
206
207
|
ResizeableTitle = (props: any) => {
|
|
207
208
|
const { onResize, width, ...restProps } = props;
|
|
208
|
-
|
|
209
|
+
|
|
209
210
|
const [innerWidth, setInnerWidth] = useState(width);
|
|
210
211
|
const [isResizing, setIsResizing] = useState(false); // 标记是否正在拖拽
|
|
211
212
|
const [isDragging, setIsDragging] = useState(false); // 标记拖拽句柄是否被拖拽
|
|
@@ -213,9 +214,9 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
213
214
|
const markerPosition = useRef({ left: 0, top: 0 });
|
|
214
215
|
const currentStart = useRef(0);
|
|
215
216
|
const uuidref = useRef(uuid());
|
|
216
|
-
|
|
217
|
+
|
|
217
218
|
const prevWidthRef = useRef(width);
|
|
218
|
-
|
|
219
|
+
|
|
219
220
|
const handleMouseDown = (e: any) => {
|
|
220
221
|
currentStart.current = e.clientX;
|
|
221
222
|
markerPosition.current = { left: e.clientX, top: e.clientY }
|
|
@@ -223,35 +224,35 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
223
224
|
document.addEventListener('mousemove', handleMouseMove);
|
|
224
225
|
document.addEventListener('mouseup', handleMouseUp);
|
|
225
226
|
};
|
|
226
|
-
|
|
227
|
+
|
|
227
228
|
const handleMouseMove = (e: any) => {
|
|
228
229
|
e.stopPropagation();
|
|
229
230
|
e.preventDefault();
|
|
230
231
|
// 更新标记位置
|
|
231
232
|
markerPosition.current = { left: e.clientX, top: e.clientY }
|
|
232
233
|
const dom: HTMLElement | null = document.getElementById('text1');
|
|
233
|
-
|
|
234
|
+
|
|
234
235
|
if (dom && dom.style) {
|
|
235
236
|
dom.style.left = `${e.clientX}px`;
|
|
236
237
|
dom.style.top = `${e.clientY - 20}px`;
|
|
237
238
|
}
|
|
238
239
|
};
|
|
239
|
-
|
|
240
|
+
|
|
240
241
|
const handleMouseUp = (e: any) => {
|
|
241
242
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
242
243
|
document.removeEventListener('mouseup', handleMouseUp);
|
|
243
244
|
setIsResizing(false);
|
|
244
245
|
};
|
|
245
|
-
|
|
246
|
+
|
|
246
247
|
const handleresize = (e: any, data: any, title: string) => {
|
|
247
248
|
const newWidth = data?.size?.width || 0;
|
|
248
249
|
setInnerWidth(newWidth); // 更新内部分宽度
|
|
249
250
|
};
|
|
250
|
-
|
|
251
|
+
|
|
251
252
|
const handleResizeStart = () => {
|
|
252
253
|
setIsResizing(true);
|
|
253
254
|
};
|
|
254
|
-
|
|
255
|
+
|
|
255
256
|
const handleResizeStop = (e: any, data: any) => {
|
|
256
257
|
setIsResizing(false);
|
|
257
258
|
if (onResize) {
|
|
@@ -265,11 +266,11 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
265
266
|
setInnerWidth(width);
|
|
266
267
|
}
|
|
267
268
|
}, [width]);
|
|
268
|
-
|
|
269
|
+
|
|
269
270
|
const thStyle = {
|
|
270
271
|
boxShadow: isResizing ? '2px 2px 10px rgba(0, 0, 0, 0.3)' : 'none',
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
+
|
|
273
274
|
return (
|
|
274
275
|
<Resizable
|
|
275
276
|
width={innerWidth}
|
|
@@ -333,7 +334,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
333
334
|
|
|
334
335
|
/**
|
|
335
336
|
* 处理行点击事件
|
|
336
|
-
* @param record
|
|
337
|
+
* @param record
|
|
337
338
|
*/
|
|
338
339
|
handleRowClick = (record: any) => {
|
|
339
340
|
const { selectedRowKeys, selectedRows, } = this.state;
|
|
@@ -420,7 +421,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
420
421
|
...propRowSelection,
|
|
421
422
|
selectedRowKeys: this.state.selectedRowKeys,
|
|
422
423
|
onChange: (selectedRowKeys: any, selectedRows: any) => {
|
|
423
|
-
this.setState({
|
|
424
|
+
this.setState({
|
|
424
425
|
selectedRowKeys,
|
|
425
426
|
selectedRows
|
|
426
427
|
});
|
|
@@ -436,7 +437,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
436
437
|
};
|
|
437
438
|
},
|
|
438
439
|
}
|
|
439
|
-
|
|
440
|
+
|
|
440
441
|
return (
|
|
441
442
|
<div style={{ position: 'relative' }}>
|
|
442
443
|
<span style={{ position: 'absolute', zIndex: '10', right: '8px', top: '10px' }} className="ant-dropdown-link">
|