@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.7
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/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1206 -1109
- package/dist/index.js +1206 -1108
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.md +57 -4
- package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
- package/src/components/Business/DetailPageWrapper/readme.md +89 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
- package/src/index.ts +4 -0
|
@@ -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,
|
|
@@ -589,7 +589,7 @@ export default function RenderCompItem(props:any){
|
|
|
589
589
|
null}
|
|
590
590
|
{/* 单选/多选 配送方式选择器 */}
|
|
591
591
|
{((ites?.inputType === 20 || ites?.inputType === 30) &&
|
|
592
|
-
ites?.choiceType === 310 && (
|
|
592
|
+
(ites?.choiceType === 310 || ites?.choiceType === 311)&& (
|
|
593
593
|
<BusinessSearchSelect
|
|
594
594
|
selectBusinessType="deliveryMode"
|
|
595
595
|
selectProps={{
|
|
@@ -606,6 +606,14 @@ export default function RenderCompItem(props:any){
|
|
|
606
606
|
labelInValue={true}
|
|
607
607
|
value={showValue(ites.code)}
|
|
608
608
|
requestConfig={{
|
|
609
|
+
...(ites?.choiceType === 311
|
|
610
|
+
? {
|
|
611
|
+
otherParams: {
|
|
612
|
+
// 配送方式只选择标准配送方式
|
|
613
|
+
'qp-recordChannnelCode-eq': 80,
|
|
614
|
+
},
|
|
615
|
+
}
|
|
616
|
+
: {}),
|
|
609
617
|
filterInit: 'qp-code-in',
|
|
610
618
|
}}
|
|
611
619
|
onChange={(value) => {
|
|
@@ -1932,7 +1932,7 @@ export default class RuleField extends Component {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
// 配送方式选择器
|
|
1935
|
-
if (dataChoiceBusinessType == 310) {
|
|
1935
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
1936
1936
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
1937
1937
|
return (
|
|
1938
1938
|
<>
|
|
@@ -1952,6 +1952,14 @@ export default class RuleField extends Component {
|
|
|
1952
1952
|
labelInValue={true}
|
|
1953
1953
|
value={values[0]}
|
|
1954
1954
|
requestConfig={{
|
|
1955
|
+
...(dataChoiceBusinessType === 311
|
|
1956
|
+
? {
|
|
1957
|
+
otherParams: {
|
|
1958
|
+
// 配送方式只选择标准配送方式
|
|
1959
|
+
'qp-recordChannnelCode-eq': 80,
|
|
1960
|
+
},
|
|
1961
|
+
}
|
|
1962
|
+
: {}),
|
|
1955
1963
|
filterInit: 'qp-code-in',
|
|
1956
1964
|
}}
|
|
1957
1965
|
onChange={(value) => {
|
|
@@ -1983,6 +1991,14 @@ export default class RuleField extends Component {
|
|
|
1983
1991
|
labelInValue={true}
|
|
1984
1992
|
value={values[1]}
|
|
1985
1993
|
requestConfig={{
|
|
1994
|
+
...(dataChoiceBusinessType === 311
|
|
1995
|
+
? {
|
|
1996
|
+
otherParams: {
|
|
1997
|
+
// 配送方式只选择标准配送方式
|
|
1998
|
+
'qp-recordChannnelCode-eq': 80,
|
|
1999
|
+
},
|
|
2000
|
+
}
|
|
2001
|
+
: {}),
|
|
1986
2002
|
filterInit: 'qp-code-in',
|
|
1987
2003
|
}}
|
|
1988
2004
|
onChange={(value) => {
|
|
@@ -2020,6 +2036,14 @@ export default class RuleField extends Component {
|
|
|
2020
2036
|
labelInValue={true}
|
|
2021
2037
|
value={currentValue}
|
|
2022
2038
|
requestConfig={{
|
|
2039
|
+
...(dataChoiceBusinessType === 311
|
|
2040
|
+
? {
|
|
2041
|
+
otherParams: {
|
|
2042
|
+
// 配送方式只选择标准配送方式
|
|
2043
|
+
'qp-recordChannnelCode-eq': 80,
|
|
2044
|
+
},
|
|
2045
|
+
}
|
|
2046
|
+
: {}),
|
|
2023
2047
|
filterInit: 'qp-code-in',
|
|
2024
2048
|
}}
|
|
2025
2049
|
onChange={(value) => {
|
package/src/index.ts
CHANGED
|
@@ -44,6 +44,10 @@ export * from './components/Functional/BsAntdSula/index';
|
|
|
44
44
|
export { default as RuleComponent} from './components/Solution/RuleComponent';
|
|
45
45
|
export { default as RuleSetter} from './components/Solution/RuleSetter';
|
|
46
46
|
|
|
47
|
+
export { processDetailButtonsVisible as processDetailButtonsVisible } from './components/Business/DetailPageWrapper';
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
47
51
|
// 通用组件
|
|
48
52
|
export { default as ExtendedCollapse } from './components/Common/ExtendedCollapse';
|
|
49
53
|
export { default as Section } from './components/Common/Section';
|