@bit-sun/business-component 4.2.0-alpha.30 → 4.2.0-alpha.31
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 +13 -34
- package/dist/index.js +13 -34
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +15 -29
package/dist/index.esm.js
CHANGED
|
@@ -11980,7 +11980,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11980
11980
|
}, {
|
|
11981
11981
|
name: 'qp-salesOrgCode-eq',
|
|
11982
11982
|
type: 'select',
|
|
11983
|
-
label: '
|
|
11983
|
+
label: '销售组织',
|
|
11984
11984
|
field: {
|
|
11985
11985
|
type: 'select',
|
|
11986
11986
|
props: {
|
|
@@ -12040,54 +12040,33 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12040
12040
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12041
12041
|
}
|
|
12042
12042
|
}
|
|
12043
|
-
}, {
|
|
12044
|
-
name: 'qp-orgCode-in',
|
|
12045
|
-
type: 'select',
|
|
12046
|
-
label: '销售组织',
|
|
12047
|
-
field: {
|
|
12048
|
-
type: 'select',
|
|
12049
|
-
props: {
|
|
12050
|
-
mode: 'multiple',
|
|
12051
|
-
notFoundContent: '暂无数据',
|
|
12052
|
-
allowClear: true,
|
|
12053
|
-
showSearch: true,
|
|
12054
|
-
showArrow: true,
|
|
12055
|
-
maxTagCount: 1,
|
|
12056
|
-
optionFilterProp: 'children',
|
|
12057
|
-
filterOption: function filterOption(input, option) {
|
|
12058
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12059
|
-
}
|
|
12060
|
-
}
|
|
12061
|
-
}
|
|
12062
12043
|
}];
|
|
12063
12044
|
var _queryHeaderParams0 = getQueryHeadersList({
|
|
12064
12045
|
querySelectHeadersList: querySelectHeadersList,
|
|
12065
12046
|
extralHeaders: extralHeaders
|
|
12066
12047
|
});
|
|
12067
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/
|
|
12048
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12049
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12050
|
+
'qp-realOrg-eq': true,
|
|
12051
|
+
'qp-status-eq': 10
|
|
12052
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-salesOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
12068
12053
|
'qp-status-eq': 10,
|
|
12069
12054
|
'qp-isMain-eq': 1,
|
|
12070
12055
|
'qp-type-in': '1,2'
|
|
12071
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-
|
|
12056
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-saleChannel-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
12072
12057
|
'qp-status-eq': 1
|
|
12073
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-
|
|
12074
|
-
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12075
|
-
'qp-realOrg-eq': true,
|
|
12076
|
-
'qp-status-eq': 10
|
|
12077
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
12058
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-refCode-in'))]).then(function (x) {
|
|
12078
12059
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12079
|
-
|
|
12080
|
-
formatSource(
|
|
12081
|
-
formatSource(allList, 1, 3, tableSearchForm);
|
|
12060
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
12061
|
+
formatSource(x, 1, 3, tableSearchForm);
|
|
12082
12062
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12083
12063
|
return data['parentCode'] === '0';
|
|
12084
12064
|
}; // 所属销售渠道 树节点不能点判断
|
|
12085
12065
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12086
12066
|
return data['parent'] === '0';
|
|
12087
12067
|
}; // 所属营销区域 树节点不能点判断
|
|
12088
|
-
formatTreeDataSource(x,
|
|
12089
|
-
formatTreeDataSource(x,
|
|
12090
|
-
formatSource(x, 3, 6, tableSearchForm);
|
|
12068
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12069
|
+
formatTreeDataSource(x, 3, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12091
12070
|
});
|
|
12092
12071
|
modalTableProps = _objectSpread2({
|
|
12093
12072
|
modalTableTitle: '选择客户',
|
|
@@ -12109,7 +12088,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12109
12088
|
dataIndex: 'createOrgName',
|
|
12110
12089
|
defaultSort: 3
|
|
12111
12090
|
}, {
|
|
12112
|
-
title: '
|
|
12091
|
+
title: '销售组织',
|
|
12113
12092
|
dataIndex: 'salesOrgName',
|
|
12114
12093
|
defaultSort: 4,
|
|
12115
12094
|
width: 100
|
package/dist/index.js
CHANGED
|
@@ -12003,7 +12003,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12003
12003
|
}, {
|
|
12004
12004
|
name: 'qp-salesOrgCode-eq',
|
|
12005
12005
|
type: 'select',
|
|
12006
|
-
label: '
|
|
12006
|
+
label: '销售组织',
|
|
12007
12007
|
field: {
|
|
12008
12008
|
type: 'select',
|
|
12009
12009
|
props: {
|
|
@@ -12063,54 +12063,33 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12063
12063
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12064
12064
|
}
|
|
12065
12065
|
}
|
|
12066
|
-
}, {
|
|
12067
|
-
name: 'qp-orgCode-in',
|
|
12068
|
-
type: 'select',
|
|
12069
|
-
label: '销售组织',
|
|
12070
|
-
field: {
|
|
12071
|
-
type: 'select',
|
|
12072
|
-
props: {
|
|
12073
|
-
mode: 'multiple',
|
|
12074
|
-
notFoundContent: '暂无数据',
|
|
12075
|
-
allowClear: true,
|
|
12076
|
-
showSearch: true,
|
|
12077
|
-
showArrow: true,
|
|
12078
|
-
maxTagCount: 1,
|
|
12079
|
-
optionFilterProp: 'children',
|
|
12080
|
-
filterOption: function filterOption(input, option) {
|
|
12081
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12082
|
-
}
|
|
12083
|
-
}
|
|
12084
|
-
}
|
|
12085
12066
|
}];
|
|
12086
12067
|
var _queryHeaderParams0 = getQueryHeadersList({
|
|
12087
12068
|
querySelectHeadersList: querySelectHeadersList,
|
|
12088
12069
|
extralHeaders: extralHeaders
|
|
12089
12070
|
});
|
|
12090
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/
|
|
12071
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12072
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12073
|
+
'qp-realOrg-eq': true,
|
|
12074
|
+
'qp-status-eq': 10
|
|
12075
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-salesOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
12091
12076
|
'qp-status-eq': 10,
|
|
12092
12077
|
'qp-isMain-eq': 1,
|
|
12093
12078
|
'qp-type-in': '1,2'
|
|
12094
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-
|
|
12079
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-saleChannel-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
12095
12080
|
'qp-status-eq': 1
|
|
12096
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-
|
|
12097
|
-
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12098
|
-
'qp-realOrg-eq': true,
|
|
12099
|
-
'qp-status-eq': 10
|
|
12100
|
-
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
12081
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-refCode-in'))]).then(function (x) {
|
|
12101
12082
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12102
|
-
|
|
12103
|
-
formatSource(
|
|
12104
|
-
formatSource(allList, 1, 3, tableSearchForm);
|
|
12083
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
12084
|
+
formatSource(x, 1, 3, tableSearchForm);
|
|
12105
12085
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12106
12086
|
return data['parentCode'] === '0';
|
|
12107
12087
|
}; // 所属销售渠道 树节点不能点判断
|
|
12108
12088
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12109
12089
|
return data['parent'] === '0';
|
|
12110
12090
|
}; // 所属营销区域 树节点不能点判断
|
|
12111
|
-
formatTreeDataSource(x,
|
|
12112
|
-
formatTreeDataSource(x,
|
|
12113
|
-
formatSource(x, 3, 6, tableSearchForm);
|
|
12091
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12092
|
+
formatTreeDataSource(x, 3, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12114
12093
|
});
|
|
12115
12094
|
modalTableProps = _objectSpread2({
|
|
12116
12095
|
modalTableTitle: '选择客户',
|
|
@@ -12132,7 +12111,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12132
12111
|
dataIndex: 'createOrgName',
|
|
12133
12112
|
defaultSort: 3
|
|
12134
12113
|
}, {
|
|
12135
|
-
title: '
|
|
12114
|
+
title: '销售组织',
|
|
12136
12115
|
dataIndex: 'salesOrgName',
|
|
12137
12116
|
defaultSort: 4,
|
|
12138
12117
|
width: 100
|
package/package.json
CHANGED
|
@@ -1790,7 +1790,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1790
1790
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1791
1791
|
},
|
|
1792
1792
|
} },
|
|
1793
|
-
{ name: 'qp-salesOrgCode-eq', type: 'select', label: '
|
|
1793
|
+
{ name: 'qp-salesOrgCode-eq', type: 'select', label: '销售组织', field: {
|
|
1794
1794
|
type: 'select',
|
|
1795
1795
|
props: {
|
|
1796
1796
|
// mode: 'multiple',
|
|
@@ -1843,47 +1843,33 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1843
1843
|
},
|
|
1844
1844
|
}
|
|
1845
1845
|
},
|
|
1846
|
-
{ name: 'qp-orgCode-in', type: 'select', label: '销售组织', field: {
|
|
1847
|
-
type: 'select',
|
|
1848
|
-
props: {
|
|
1849
|
-
mode: 'multiple',
|
|
1850
|
-
notFoundContent: '暂无数据',
|
|
1851
|
-
allowClear: true,
|
|
1852
|
-
showSearch: true,
|
|
1853
|
-
showArrow: true,
|
|
1854
|
-
maxTagCount: 1,
|
|
1855
|
-
optionFilterProp: 'children',
|
|
1856
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1857
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1858
|
-
},
|
|
1859
|
-
} },
|
|
1860
1846
|
];
|
|
1861
1847
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1862
1848
|
Promise.all([
|
|
1863
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {
|
|
1849
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {
|
|
1850
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
1851
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
1852
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
1853
|
+
'qp-realOrg-eq': true,
|
|
1854
|
+
'qp-status-eq': 10
|
|
1855
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-eq')),
|
|
1864
1856
|
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1865
1857
|
'qp-status-eq': 10,
|
|
1866
1858
|
'qp-isMain-eq': 1,
|
|
1867
1859
|
'qp-type-in': '1,2',
|
|
1868
|
-
},getQueryHeadersItem(queryHeaderParams,'qp-
|
|
1860
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-saleChannel-in')),
|
|
1869
1861
|
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1870
1862
|
'qp-status-eq': 1,
|
|
1871
|
-
},getQueryHeadersItem(queryHeaderParams,'qp-
|
|
1872
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
1873
|
-
'qp-employeeCode-eq': getEmployeeCode(),
|
|
1874
|
-
'qp-realOrg-eq': true,
|
|
1875
|
-
'qp-status-eq': 10
|
|
1876
|
-
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1863
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-refCode-in')),
|
|
1877
1864
|
]).then((x: any)=>{
|
|
1878
1865
|
const firstElement = x?.[0];
|
|
1879
1866
|
const allList = firstElement && [firstElement, firstElement];
|
|
1880
|
-
formatSource(
|
|
1881
|
-
formatSource(
|
|
1867
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
1868
|
+
formatSource(x, 1, 3, tableSearchForm);
|
|
1882
1869
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1883
1870
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1884
|
-
formatTreeDataSource(x,
|
|
1885
|
-
formatTreeDataSource(x,
|
|
1886
|
-
formatSource(x, 3, 6, tableSearchForm);
|
|
1871
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1872
|
+
formatTreeDataSource(x, 3, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1887
1873
|
})
|
|
1888
1874
|
modalTableProps = {
|
|
1889
1875
|
modalTableTitle: '选择客户',
|
|
@@ -1910,7 +1896,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1910
1896
|
defaultSort: 3,
|
|
1911
1897
|
},
|
|
1912
1898
|
{
|
|
1913
|
-
title: '
|
|
1899
|
+
title: '销售组织',
|
|
1914
1900
|
dataIndex: 'salesOrgName',
|
|
1915
1901
|
defaultSort: 4,
|
|
1916
1902
|
width: 100,
|