@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.
Files changed (74) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  17. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  18. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  28. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  42. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.esm.js +1206 -1109
  61. package/dist/index.js +1206 -1108
  62. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  63. package/dist/utils/TableUtils.d.ts +18 -19
  64. package/package.json +1 -1
  65. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  66. package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
  67. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  68. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  69. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  70. package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
  71. package/src/components/Functional/DataValidation/index.tsx +22 -3
  72. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  73. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  74. 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-phone-like', label: '手机号' },
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: 'officeTelephone',
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
- const resultData = this.getData().filter(d => {
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';