@bit-sun/business-component 2.4.14 → 2.4.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/BsAntdSula/index.d 6.ts +1 -0
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +4 -0
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +4 -0
- package/dist 2/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.ts +67 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsCascader } from './BsCascader';
|
package/package.json
CHANGED
|
@@ -1832,5 +1832,72 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
|
+
// 销售渠道选择器
|
|
1836
|
+
if(type === 'market-channel') {
|
|
1837
|
+
requestConfig = {
|
|
1838
|
+
url: `${prefixUrl.selectPrefix}/channelInfo`,
|
|
1839
|
+
filter: 'qp-name,code-orGroup,like', // 过滤参数
|
|
1840
|
+
mappingTextField: 'name',
|
|
1841
|
+
mappingTextShowKeyField: 'code',
|
|
1842
|
+
mappingValueField: 'code',
|
|
1843
|
+
otherParams: {
|
|
1844
|
+
'qp-type-eq': 1, //销售渠道类型
|
|
1845
|
+
'qp-isMain-eq': 1,
|
|
1846
|
+
'qp-status-eq': 10, // 10启用 20禁用
|
|
1847
|
+
sorter: 'desc-id',
|
|
1848
|
+
}, // 默认参数
|
|
1849
|
+
sourceName: 'marketChannelCode',
|
|
1850
|
+
...requestConfigProp
|
|
1851
|
+
}
|
|
1852
|
+
tableSearchForm = [
|
|
1853
|
+
{ name: 'qp-name-like', label: '销售渠道名称' },
|
|
1854
|
+
{ name: 'qp-code-like', label: '销售渠道编码' },
|
|
1855
|
+
{ name: 'qp-salesOrgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
1856
|
+
type: 'select',
|
|
1857
|
+
props: {
|
|
1858
|
+
mode: 'multiple',
|
|
1859
|
+
notFoundContent: '暂无数据',
|
|
1860
|
+
allowClear: true,
|
|
1861
|
+
showSearch: true,
|
|
1862
|
+
showArrow: true,
|
|
1863
|
+
maxTagCount: 1,
|
|
1864
|
+
optionFilterProp: 'children',
|
|
1865
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1866
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1867
|
+
},
|
|
1868
|
+
} },
|
|
1869
|
+
]
|
|
1870
|
+
Promise.all([
|
|
1871
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
1872
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
1873
|
+
'qp-realOrg-eq': true,
|
|
1874
|
+
'qp-status-eq': 10
|
|
1875
|
+
}),
|
|
1876
|
+
]).then((x: any)=>{
|
|
1877
|
+
formatSource(x, 0, 2, tableSearchForm);
|
|
1878
|
+
})
|
|
1879
|
+
modalTableProps = {
|
|
1880
|
+
modalTableTitle: '选择销售渠道',
|
|
1881
|
+
tableSearchForm,
|
|
1882
|
+
tableColumns: [
|
|
1883
|
+
{
|
|
1884
|
+
title: '销售渠道编码',
|
|
1885
|
+
dataIndex: 'code',
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
title: '销售渠道名称',
|
|
1889
|
+
dataIndex: 'name',
|
|
1890
|
+
render: (text: any) => handleTextOverflow(text),
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
title: '所属销售组织',
|
|
1894
|
+
dataIndex: 'salesOrgCodeName',
|
|
1895
|
+
render: (text: any) => handleTextOverflow(text),
|
|
1896
|
+
},
|
|
1897
|
+
],
|
|
1898
|
+
...modalTableBusProps
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1835
1902
|
return { modalTableProps, requestConfig, needModalTable };
|
|
1836
1903
|
}
|