@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.jw-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/DataValidation/index.d.ts +1 -1
- package/dist/index.esm.js +879 -1110
- package/dist/index.js +879 -1110
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +2 -2
- package/src/components/Business/BsLayouts/index.tsx +2 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
- package/src/components/Functional/DataValidation/index.tsx +22 -3
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ const CustomerMenu = forwardRef(({isCollapse, handleClose, actionRef, originRout
|
|
|
89
89
|
|
|
90
90
|
return (
|
|
91
91
|
<div className={'customer_menu_content'}>
|
|
92
|
-
<div
|
|
92
|
+
{/* <div
|
|
93
93
|
style={{cursor: 'pointer'}}
|
|
94
94
|
onClick={(e) => {
|
|
95
95
|
handleClose();
|
|
@@ -106,7 +106,7 @@ const CustomerMenu = forwardRef(({isCollapse, handleClose, actionRef, originRout
|
|
|
106
106
|
>
|
|
107
107
|
自定义菜单
|
|
108
108
|
</Button>
|
|
109
|
-
</div>
|
|
109
|
+
</div> */}
|
|
110
110
|
{!isCollapse && (
|
|
111
111
|
<Drawer
|
|
112
112
|
style={{ left: isDrawer ? 140 : 0 }}
|
|
@@ -87,7 +87,7 @@ const getAuthMenuPathAndDocsId = (pathToRegexp) => {
|
|
|
87
87
|
if (item.children && item.children.length > 0) {
|
|
88
88
|
getLimitedMenuKeys(item.children);
|
|
89
89
|
} else {
|
|
90
|
-
const originPath = item.path.replace(/^\/\w+\//, '/');
|
|
90
|
+
const originPath = (item.path || item.frontendPath).replace(/^\/\w+\//, '/');
|
|
91
91
|
menuKeys.push(originPath);
|
|
92
92
|
if (pathToRegexp('/operation-and-maintenance-center/configuration-management/all-general-documents-specific/:id').test(originPath)) {
|
|
93
93
|
getId(originPath) && docsId.push(getId(originPath))
|
|
@@ -647,7 +647,7 @@ class BasicLayout extends React.PureComponent {
|
|
|
647
647
|
return;
|
|
648
648
|
}
|
|
649
649
|
// todo:暂时处理非wujie环境不做404管控
|
|
650
|
-
if (!window.__POWERED_BY_WUJIE__) {
|
|
650
|
+
if (!window.__POWERED_BY_WUJIE__ && !this.props.isSingleSystem) {
|
|
651
651
|
treeList.push({
|
|
652
652
|
tab: node.locale,
|
|
653
653
|
key: node.path,
|
|
@@ -2120,6 +2120,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2120
2120
|
} ,
|
|
2121
2121
|
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2122
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
name: "qp-brandCode-in",
|
|
2125
|
+
label: "品牌",
|
|
2126
|
+
field: {
|
|
2127
|
+
type:'select',
|
|
2128
|
+
props: {
|
|
2129
|
+
mode: 'multiple',
|
|
2130
|
+
notFoundContent: '暂无数据',
|
|
2131
|
+
allowClear: true,
|
|
2132
|
+
showSearch: true,
|
|
2133
|
+
showArrow: true,
|
|
2134
|
+
maxTagCount: 1,
|
|
2135
|
+
optionFilterProp: 'children',
|
|
2136
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2137
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2138
|
+
},
|
|
2139
|
+
},
|
|
2140
|
+
},
|
|
2123
2141
|
]
|
|
2124
2142
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2125
2143
|
Promise.all([
|
|
@@ -2136,12 +2154,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2136
2154
|
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
2137
2155
|
'qp-status-eq': 1,
|
|
2138
2156
|
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2157
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
2158
|
+
pageSize: 5000,
|
|
2159
|
+
currentPage: 1,
|
|
2160
|
+
'ctl-withAuth': true,
|
|
2161
|
+
},getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
|
|
2139
2162
|
]).then((x: any)=>{
|
|
2140
2163
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2141
2164
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2142
2165
|
formatSource(x,0, 3, tableSearchForm);
|
|
2143
2166
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2144
2167
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2168
|
+
formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
2145
2169
|
})
|
|
2146
2170
|
modalTableProps = {
|
|
2147
2171
|
modalTableTitle: '选择商店',
|
|
@@ -2389,7 +2413,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2389
2413
|
},
|
|
2390
2414
|
} },
|
|
2391
2415
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
2392
|
-
{ name: 'qp-
|
|
2416
|
+
{ name: 'qp-officeTelephone-like', label: '手机号' },
|
|
2393
2417
|
]
|
|
2394
2418
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2395
2419
|
Promise.all([
|
|
@@ -2550,7 +2574,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2550
2574
|
},
|
|
2551
2575
|
{
|
|
2552
2576
|
title: '手机号',
|
|
2553
|
-
dataIndex: '
|
|
2577
|
+
dataIndex: 'phone',
|
|
2554
2578
|
defaultSort: 4,
|
|
2555
2579
|
render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
|
|
2556
2580
|
},
|
|
@@ -477,9 +477,10 @@ customSort = (a, b) => {
|
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
resetData = () => {
|
|
481
|
-
const { validDataUrl, validDataParams, updateData, columns, isBrandAuth, isCheckStockNum = true, customerColumnsMapping } = this.props;
|
|
482
|
-
|
|
480
|
+
resetData = async () => {
|
|
481
|
+
const { validDataUrl, validDataParams, updateData, columns, isBrandAuth, isCheckStockNum = true, customerColumnsMapping, checkSharedValue, beforeCheckCallback } = this.props;
|
|
482
|
+
|
|
483
|
+
let resultData = this.getData().filter(d => {
|
|
483
484
|
return _.compact(Object.values(d)).length
|
|
484
485
|
})
|
|
485
486
|
|
|
@@ -491,6 +492,24 @@ customSort = (a, b) => {
|
|
|
491
492
|
otherParams = { brandAuth: 'ctl-withAuth' }
|
|
492
493
|
}
|
|
493
494
|
|
|
495
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
496
|
+
if(checkSharedValue){
|
|
497
|
+
resultData = resultData.map(d => {
|
|
498
|
+
return {
|
|
499
|
+
...d,
|
|
500
|
+
...checkSharedValue,
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// 调用回调函数
|
|
506
|
+
if(beforeCheckCallback){
|
|
507
|
+
resultData = await beforeCheckCallback(resultData);
|
|
508
|
+
if(!resultData){
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
494
513
|
request
|
|
495
514
|
.post(validDataUrl, {
|
|
496
515
|
...otherParams,
|