@bit-sun/business-component 4.2.0-alpha.2 → 4.2.0-alpha.4

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 (67) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -4
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -2
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -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 +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -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 +2 -2
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -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 +2 -2
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -15
  17. package/dist/components/Business/CommodityEntry/index.d.ts +2 -2
  18. package/dist/components/Business/CommonAlert/index.d.ts +2 -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 +2 -2
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -2
  28. package/dist/components/Business/PropertyModal/index.d.ts +2 -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 +2 -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 +2 -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 +2 -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 +2 -2
  42. package/dist/components/Functional/AuthButton/index.d.ts +2 -2
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -2
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -2
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -2
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +3 -3
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -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 +2 -2
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -2
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -2
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -2
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -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.esm.js +128 -23
  60. package/dist/index.js +128 -23
  61. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  62. package/dist/utils/TableUtils.d.ts +19 -19
  63. package/package.json +1 -1
  64. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
  65. package/src/components/Business/SearchSelect/BusinessUtils.tsx +96 -7
  66. package/src/components/Functional/SearchSelect/index.tsx +1 -1
  67. package/src/components/Functional/SearchSelect/utils.tsx +4 -1
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
+ declare const SearchSelect: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default SearchSelect;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="lodash" />
2
- /// <reference types="react" />
2
+ import React from 'react';
3
3
  export declare const columnsPerRow = 4;
4
4
  export declare const ColSpan = 6;
5
5
  export declare const handleSourceName: (sName: any) => any;
@@ -24,7 +24,7 @@ export declare const convertUrlQueryParams: (params: any) => string;
24
24
  export declare const convertBodyParams: (params: any) => any;
25
25
  export declare const convertResData: (requestConfig: any, res: any, selectProps: any) => any;
26
26
  export declare const handleSelectOptionsShowValue: (specialBracket: boolean, noNeedSplit: boolean, item: any) => any;
27
- export declare const LightHeightOption: (props: any) => JSX.Element;
28
- export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => JSX.Element;
27
+ export declare const LightHeightOption: (props: any) => React.JSX.Element;
28
+ export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => React.JSX.Element;
29
29
  export declare const handleTableColumns: (tableColumns: any) => any;
30
30
  export declare const getShowStr: ({ viewShowValueStr, labelInValue, selectMode, value, items }: any) => any;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const TreeSearchSelect: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const TreeSearchSelect: (props: any) => React.JSX.Element;
3
3
  export default TreeSearchSelect;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const App: ({ setValue, formula, record, sourceData, disabled }: {
3
3
  setValue: any;
4
4
  record: any;
5
5
  sourceData: any;
6
6
  formula?: any;
7
7
  disabled?: boolean | undefined;
8
- }) => JSX.Element;
8
+ }) => React.JSX.Element;
9
9
  export default App;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Iprops {
3
3
  disabled: boolean;
4
4
  inputType: number;
@@ -8,5 +8,5 @@ interface Iprops {
8
8
  onChange: any;
9
9
  dictionaryCode?: string;
10
10
  }
11
- declare const _default: (props: Iprops) => JSX.Element;
11
+ declare const _default: (props: Iprops) => React.JSX.Element;
12
12
  export default _default;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function RenderCompItem(props: any): JSX.Element | undefined;
1
+ import React from 'react';
2
+ export default function RenderCompItem(props: any): React.JSX.Element | undefined;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
3
  export default _default;
package/dist/index.esm.js CHANGED
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
188
188
  r,
189
189
  i = _objectWithoutPropertiesLoose(e, t);
190
190
  if (Object.getOwnPropertySymbols) {
191
- var n = Object.getOwnPropertySymbols(e);
192
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
191
+ var s = Object.getOwnPropertySymbols(e);
192
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
193
193
  }
194
194
  return i;
195
195
  }
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
197
197
  if (null == r) return {};
198
198
  var t = {};
199
199
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
200
- if (-1 !== e.indexOf(n)) continue;
200
+ if (e.includes(n)) continue;
201
201
  t[n] = r[n];
202
202
  }
203
203
  return t;
@@ -4594,11 +4594,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
4594
4594
  };
4595
4595
  // 弹窗数据表头处理
4596
4596
  var handleTableColumns = function handleTableColumns(tableColumns) {
4597
+ var _showTableColumns, _showTableColumns2;
4597
4598
  // 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
4598
4599
  var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
4599
4600
  return typeof s.defaultSort == 'number';
4600
4601
  })) || tableColumns || [];
4601
- return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
4602
+ showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
4603
+ return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
4602
4604
  return a.defaultSort - b.defaultSort;
4603
4605
  })) || [];
4604
4606
  };
@@ -5513,7 +5515,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5513
5515
  };
5514
5516
  var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
5515
5517
  total: 0,
5516
- current: 1
5518
+ current: 1,
5519
+ pageSizeOptions: [10, 20, 50, 100, 500, 1000]
5517
5520
  });
5518
5521
  var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
5519
5522
  var isHaveDependency = fixedparameter && fieldValToParam && ctx;
@@ -9991,8 +9994,8 @@ function commonFun(type, prefixUrl, parentProps) {
9991
9994
  });
9992
9995
  };
9993
9996
  // 格式化树选择器数据源
9994
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
9995
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
9997
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
9998
+ var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
9996
9999
  return {
9997
10000
  title: treeDataItem[resKeyValue[1]],
9998
10001
  value: treeDataItem[resKeyValue[0]],
@@ -10000,14 +10003,15 @@ function commonFun(type, prefixUrl, parentProps) {
10000
10003
  data: _objectSpread2({}, treeDataItem),
10001
10004
  isLeaf: !haveChildren,
10002
10005
  disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
10003
- children: haveChildren ? treeDataItem.children.map(function (i) {
10004
- return _mapSearchTree(i, resKeyValue, disabledJudge);
10006
+ children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
10007
+ return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
10005
10008
  }) : []
10006
10009
  };
10007
10010
  };
10008
10011
  var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
10009
10012
  var _reData$position2;
10010
10013
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
10014
+ var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
10011
10015
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
10012
10016
  var disabledJudge;
10013
10017
  if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
@@ -10015,7 +10019,7 @@ function commonFun(type, prefixUrl, parentProps) {
10015
10019
  disabledJudge = false;
10016
10020
  }
10017
10021
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
10018
- return _mapSearchTree(ites, resKeyValue, disabledJudge);
10022
+ return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
10019
10023
  }) || [];
10020
10024
  changeSearchForm[changePosition].field.props.treeData = formatData;
10021
10025
  };
@@ -11852,7 +11856,8 @@ function commonFun(type, prefixUrl, parentProps) {
11852
11856
  mappingTextField: 'name',
11853
11857
  mappingValueField: 'code',
11854
11858
  otherParams: _objectSpread2({
11855
- sorter: 'desc-id'
11859
+ sorter: 'desc-id',
11860
+ 'qp-status-in': 10
11856
11861
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11857
11862
  sourceName: 'code'
11858
11863
  }, requestConfigProp);
@@ -11869,12 +11874,9 @@ function commonFun(type, prefixUrl, parentProps) {
11869
11874
  type: 'select',
11870
11875
  label: '商店类型',
11871
11876
  initialSource: shopFile2Type
11872
- }, {
11873
- name: 'qp-status-in',
11874
- type: 'select',
11875
- label: '商店状态',
11876
- initialSource: shopFile2Status
11877
- }, {
11877
+ },
11878
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
11879
+ {
11878
11880
  name: 'qp-orgCode-in',
11879
11881
  type: 'select',
11880
11882
  label: '所属销售组织',
@@ -11893,6 +11895,76 @@ function commonFun(type, prefixUrl, parentProps) {
11893
11895
  }
11894
11896
  }
11895
11897
  }
11898
+ }, {
11899
+ name: 'qp-channelCode-in',
11900
+ type: 'treeSelect',
11901
+ label: '所属销售渠道',
11902
+ field: {
11903
+ type: 'treeSelect',
11904
+ props: {
11905
+ multiple: true,
11906
+ treeData: [],
11907
+ treeCheckable: false,
11908
+ notFoundContent: '暂无数据',
11909
+ allowClear: true,
11910
+ showSearch: true,
11911
+ showArrow: true,
11912
+ maxTagCount: 1,
11913
+ optionFilterProp: 'children',
11914
+ filterOption: function filterOption(input, option) {
11915
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11916
+ },
11917
+ disabledJude: function disabledJude(data) {
11918
+ return data['parentCode'] === '0';
11919
+ },
11920
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11921
+ }
11922
+ }
11923
+ }, {
11924
+ name: 'qp-commonRelationAreaCode-in',
11925
+ type: 'treeSelect',
11926
+ label: '营销区域',
11927
+ field: {
11928
+ type: 'treeSelect',
11929
+ props: {
11930
+ multiple: true,
11931
+ treeData: [],
11932
+ treeCheckable: false,
11933
+ notFoundContent: '暂无数据',
11934
+ allowClear: true,
11935
+ showSearch: true,
11936
+ showArrow: true,
11937
+ maxTagCount: 1,
11938
+ optionFilterProp: 'children',
11939
+ filterOption: function filterOption(input, option) {
11940
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11941
+ },
11942
+ disabledJude: function disabledJude(data) {
11943
+ return data['parent'] === '0';
11944
+ },
11945
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11946
+ }
11947
+ }
11948
+ }, {
11949
+ name: 'qp-businessType-in',
11950
+ type: 'select',
11951
+ label: '店铺性质',
11952
+ field: {
11953
+ type: 'select',
11954
+ props: {
11955
+ mode: 'multiple',
11956
+ notFoundContent: '暂无数据',
11957
+ allowClear: true,
11958
+ showSearch: true,
11959
+ showArrow: true,
11960
+ maxTagCount: 1,
11961
+ optionFilterProp: 'children',
11962
+ filterOption: function filterOption(input, option) {
11963
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11964
+ }
11965
+ }
11966
+ },
11967
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11896
11968
  }];
11897
11969
  var _queryHeaderParams11 = getQueryHeadersList({
11898
11970
  querySelectHeadersList: querySelectHeadersList,
@@ -11902,8 +11974,16 @@ function commonFun(type, prefixUrl, parentProps) {
11902
11974
  'qp-employeeCode-eq': getEmployeeCode(),
11903
11975
  'qp-realOrg-eq': true,
11904
11976
  'qp-status-eq': 10
11977
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11978
+ 'qp-status-eq': 10,
11979
+ 'qp-isMain-eq': 1,
11980
+ 'qp-type-in': '1,2'
11981
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
11982
+ 'qp-status-eq': 1
11905
11983
  }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
11906
- formatSource(x, 0, 4, tableSearchForm);
11984
+ formatSource(x, 0, 3, tableSearchForm);
11985
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['id', 'name'], 'channelInfoSon');
11986
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children');
11907
11987
  });
11908
11988
  modalTableProps = _objectSpread2({
11909
11989
  modalTableTitle: '选择商店',
@@ -11911,19 +11991,23 @@ function commonFun(type, prefixUrl, parentProps) {
11911
11991
  tableColumns: [{
11912
11992
  title: '序号',
11913
11993
  dataIndex: 'keyIndex',
11914
- defaultSort: 0
11994
+ defaultSort: 0,
11995
+ width: 60
11915
11996
  }, {
11916
11997
  title: '商店编码',
11917
11998
  dataIndex: 'code',
11918
- defaultSort: 1
11999
+ defaultSort: 1,
12000
+ width: 100
11919
12001
  }, {
11920
12002
  title: '商店名称',
11921
12003
  dataIndex: 'name',
11922
- defaultSort: 2
12004
+ defaultSort: 2,
12005
+ width: 120
11923
12006
  }, {
11924
12007
  title: '商店类型',
11925
12008
  dataIndex: 'type',
11926
12009
  defaultSort: 3,
12010
+ width: 100,
11927
12011
  render: function render(text) {
11928
12012
  var _shopFile2Type$find;
11929
12013
  return (_shopFile2Type$find = shopFile2Type.find(function (i) {
@@ -11933,6 +12017,7 @@ function commonFun(type, prefixUrl, parentProps) {
11933
12017
  }, {
11934
12018
  title: '启用状态',
11935
12019
  dataIndex: 'status',
12020
+ width: 80,
11936
12021
  render: function render(text) {
11937
12022
  var _shopFile2Status$find;
11938
12023
  return (_shopFile2Status$find = shopFile2Status.find(function (i) {
@@ -11942,8 +12027,28 @@ function commonFun(type, prefixUrl, parentProps) {
11942
12027
  }, {
11943
12028
  title: '所属销售组织',
11944
12029
  dataIndex: 'orgName',
11945
- defaultSort: 4
11946
- }]
12030
+ defaultSort: 4,
12031
+ width: 95
12032
+ }, {
12033
+ title: '所属销售渠道',
12034
+ dataIndex: 'channelName',
12035
+ defaultSort: 5,
12036
+ width: 100
12037
+ }, {
12038
+ title: '营销区域',
12039
+ dataIndex: 'commonRelationAreaName',
12040
+ defaultSort: 6,
12041
+ width: 100
12042
+ }, {
12043
+ title: '店铺性质',
12044
+ dataIndex: 'businessType',
12045
+ defaultSort: 7,
12046
+ render: function render(text) {
12047
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
12048
+ },
12049
+ width: 80
12050
+ }],
12051
+ noEmptySearchField: true
11947
12052
  }, modalTableBusProps);
11948
12053
  }
11949
12054
  // 核算主体选择器(无弹窗)
package/dist/index.js CHANGED
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
211
211
  r,
212
212
  i = _objectWithoutPropertiesLoose(e, t);
213
213
  if (Object.getOwnPropertySymbols) {
214
- var n = Object.getOwnPropertySymbols(e);
215
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
214
+ var s = Object.getOwnPropertySymbols(e);
215
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
216
216
  }
217
217
  return i;
218
218
  }
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
220
220
  if (null == r) return {};
221
221
  var t = {};
222
222
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
223
- if (-1 !== e.indexOf(n)) continue;
223
+ if (e.includes(n)) continue;
224
224
  t[n] = r[n];
225
225
  }
226
226
  return t;
@@ -4617,11 +4617,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
4617
4617
  };
4618
4618
  // 弹窗数据表头处理
4619
4619
  var handleTableColumns = function handleTableColumns(tableColumns) {
4620
+ var _showTableColumns, _showTableColumns2;
4620
4621
  // 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
4621
4622
  var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
4622
4623
  return typeof s.defaultSort == 'number';
4623
4624
  })) || tableColumns || [];
4624
- return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
4625
+ showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
4626
+ return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
4625
4627
  return a.defaultSort - b.defaultSort;
4626
4628
  })) || [];
4627
4629
  };
@@ -5536,7 +5538,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5536
5538
  };
5537
5539
  var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
5538
5540
  total: 0,
5539
- current: 1
5541
+ current: 1,
5542
+ pageSizeOptions: [10, 20, 50, 100, 500, 1000]
5540
5543
  });
5541
5544
  var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
5542
5545
  var isHaveDependency = fixedparameter && fieldValToParam && ctx;
@@ -10014,8 +10017,8 @@ function commonFun(type, prefixUrl, parentProps) {
10014
10017
  });
10015
10018
  };
10016
10019
  // 格式化树选择器数据源
10017
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
10018
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
10020
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
10021
+ var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
10019
10022
  return {
10020
10023
  title: treeDataItem[resKeyValue[1]],
10021
10024
  value: treeDataItem[resKeyValue[0]],
@@ -10023,14 +10026,15 @@ function commonFun(type, prefixUrl, parentProps) {
10023
10026
  data: _objectSpread2({}, treeDataItem),
10024
10027
  isLeaf: !haveChildren,
10025
10028
  disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
10026
- children: haveChildren ? treeDataItem.children.map(function (i) {
10027
- return _mapSearchTree(i, resKeyValue, disabledJudge);
10029
+ children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
10030
+ return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
10028
10031
  }) : []
10029
10032
  };
10030
10033
  };
10031
10034
  var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
10032
10035
  var _reData$position2;
10033
10036
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
10037
+ var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
10034
10038
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
10035
10039
  var disabledJudge;
10036
10040
  if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
@@ -10038,7 +10042,7 @@ function commonFun(type, prefixUrl, parentProps) {
10038
10042
  disabledJudge = false;
10039
10043
  }
10040
10044
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
10041
- return _mapSearchTree(ites, resKeyValue, disabledJudge);
10045
+ return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
10042
10046
  }) || [];
10043
10047
  changeSearchForm[changePosition].field.props.treeData = formatData;
10044
10048
  };
@@ -11875,7 +11879,8 @@ function commonFun(type, prefixUrl, parentProps) {
11875
11879
  mappingTextField: 'name',
11876
11880
  mappingValueField: 'code',
11877
11881
  otherParams: _objectSpread2({
11878
- sorter: 'desc-id'
11882
+ sorter: 'desc-id',
11883
+ 'qp-status-in': 10
11879
11884
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11880
11885
  sourceName: 'code'
11881
11886
  }, requestConfigProp);
@@ -11892,12 +11897,9 @@ function commonFun(type, prefixUrl, parentProps) {
11892
11897
  type: 'select',
11893
11898
  label: '商店类型',
11894
11899
  initialSource: shopFile2Type
11895
- }, {
11896
- name: 'qp-status-in',
11897
- type: 'select',
11898
- label: '商店状态',
11899
- initialSource: shopFile2Status
11900
- }, {
11900
+ },
11901
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
11902
+ {
11901
11903
  name: 'qp-orgCode-in',
11902
11904
  type: 'select',
11903
11905
  label: '所属销售组织',
@@ -11916,6 +11918,76 @@ function commonFun(type, prefixUrl, parentProps) {
11916
11918
  }
11917
11919
  }
11918
11920
  }
11921
+ }, {
11922
+ name: 'qp-channelCode-in',
11923
+ type: 'treeSelect',
11924
+ label: '所属销售渠道',
11925
+ field: {
11926
+ type: 'treeSelect',
11927
+ props: {
11928
+ multiple: true,
11929
+ treeData: [],
11930
+ treeCheckable: false,
11931
+ notFoundContent: '暂无数据',
11932
+ allowClear: true,
11933
+ showSearch: true,
11934
+ showArrow: true,
11935
+ maxTagCount: 1,
11936
+ optionFilterProp: 'children',
11937
+ filterOption: function filterOption(input, option) {
11938
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11939
+ },
11940
+ disabledJude: function disabledJude(data) {
11941
+ return data['parentCode'] === '0';
11942
+ },
11943
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11944
+ }
11945
+ }
11946
+ }, {
11947
+ name: 'qp-commonRelationAreaCode-in',
11948
+ type: 'treeSelect',
11949
+ label: '营销区域',
11950
+ field: {
11951
+ type: 'treeSelect',
11952
+ props: {
11953
+ multiple: true,
11954
+ treeData: [],
11955
+ treeCheckable: false,
11956
+ notFoundContent: '暂无数据',
11957
+ allowClear: true,
11958
+ showSearch: true,
11959
+ showArrow: true,
11960
+ maxTagCount: 1,
11961
+ optionFilterProp: 'children',
11962
+ filterOption: function filterOption(input, option) {
11963
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11964
+ },
11965
+ disabledJude: function disabledJude(data) {
11966
+ return data['parent'] === '0';
11967
+ },
11968
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11969
+ }
11970
+ }
11971
+ }, {
11972
+ name: 'qp-businessType-in',
11973
+ type: 'select',
11974
+ label: '店铺性质',
11975
+ field: {
11976
+ type: 'select',
11977
+ props: {
11978
+ mode: 'multiple',
11979
+ notFoundContent: '暂无数据',
11980
+ allowClear: true,
11981
+ showSearch: true,
11982
+ showArrow: true,
11983
+ maxTagCount: 1,
11984
+ optionFilterProp: 'children',
11985
+ filterOption: function filterOption(input, option) {
11986
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11987
+ }
11988
+ }
11989
+ },
11990
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11919
11991
  }];
11920
11992
  var _queryHeaderParams11 = getQueryHeadersList({
11921
11993
  querySelectHeadersList: querySelectHeadersList,
@@ -11925,8 +11997,16 @@ function commonFun(type, prefixUrl, parentProps) {
11925
11997
  'qp-employeeCode-eq': getEmployeeCode(),
11926
11998
  'qp-realOrg-eq': true,
11927
11999
  'qp-status-eq': 10
12000
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12001
+ 'qp-status-eq': 10,
12002
+ 'qp-isMain-eq': 1,
12003
+ 'qp-type-in': '1,2'
12004
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12005
+ 'qp-status-eq': 1
11928
12006
  }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
11929
- formatSource(x, 0, 4, tableSearchForm);
12007
+ formatSource(x, 0, 3, tableSearchForm);
12008
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['id', 'name'], 'channelInfoSon');
12009
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children');
11930
12010
  });
11931
12011
  modalTableProps = _objectSpread2({
11932
12012
  modalTableTitle: '选择商店',
@@ -11934,19 +12014,23 @@ function commonFun(type, prefixUrl, parentProps) {
11934
12014
  tableColumns: [{
11935
12015
  title: '序号',
11936
12016
  dataIndex: 'keyIndex',
11937
- defaultSort: 0
12017
+ defaultSort: 0,
12018
+ width: 60
11938
12019
  }, {
11939
12020
  title: '商店编码',
11940
12021
  dataIndex: 'code',
11941
- defaultSort: 1
12022
+ defaultSort: 1,
12023
+ width: 100
11942
12024
  }, {
11943
12025
  title: '商店名称',
11944
12026
  dataIndex: 'name',
11945
- defaultSort: 2
12027
+ defaultSort: 2,
12028
+ width: 120
11946
12029
  }, {
11947
12030
  title: '商店类型',
11948
12031
  dataIndex: 'type',
11949
12032
  defaultSort: 3,
12033
+ width: 100,
11950
12034
  render: function render(text) {
11951
12035
  var _shopFile2Type$find;
11952
12036
  return (_shopFile2Type$find = shopFile2Type.find(function (i) {
@@ -11956,6 +12040,7 @@ function commonFun(type, prefixUrl, parentProps) {
11956
12040
  }, {
11957
12041
  title: '启用状态',
11958
12042
  dataIndex: 'status',
12043
+ width: 80,
11959
12044
  render: function render(text) {
11960
12045
  var _shopFile2Status$find;
11961
12046
  return (_shopFile2Status$find = shopFile2Status.find(function (i) {
@@ -11965,8 +12050,28 @@ function commonFun(type, prefixUrl, parentProps) {
11965
12050
  }, {
11966
12051
  title: '所属销售组织',
11967
12052
  dataIndex: 'orgName',
11968
- defaultSort: 4
11969
- }]
12053
+ defaultSort: 4,
12054
+ width: 95
12055
+ }, {
12056
+ title: '所属销售渠道',
12057
+ dataIndex: 'channelName',
12058
+ defaultSort: 5,
12059
+ width: 100
12060
+ }, {
12061
+ title: '营销区域',
12062
+ dataIndex: 'commonRelationAreaName',
12063
+ defaultSort: 6,
12064
+ width: 100
12065
+ }, {
12066
+ title: '店铺性质',
12067
+ dataIndex: 'businessType',
12068
+ defaultSort: 7,
12069
+ render: function render(text) {
12070
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
12071
+ },
12072
+ width: 80
12073
+ }],
12074
+ noEmptySearchField: true
11970
12075
  }, modalTableBusProps);
11971
12076
  }
11972
12077
  // 核算主体选择器(无弹窗)
@@ -38,14 +38,14 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
38
38
  } | {
39
39
  title: string;
40
40
  dataIndex: string;
41
- render: (text: any, record: any) => JSX.Element;
41
+ render: (text: any, record: any) => React.JSX.Element;
42
42
  className?: undefined;
43
43
  width?: undefined;
44
44
  } | {
45
45
  title: string;
46
46
  dataIndex: string;
47
47
  className: string;
48
- render: () => JSX.Element;
48
+ render: () => React.JSX.Element;
49
49
  width?: undefined;
50
50
  })[];
51
51
  showModal: () => void;
@@ -53,13 +53,13 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
53
53
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
54
54
  handleTableHeadHidden: (title: string) => void;
55
55
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
56
- DraggableContainer: (props: any) => JSX.Element;
57
- DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
56
+ DraggableContainer: (props: any) => React.JSX.Element;
57
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
58
58
  onChange: (e: any, title: any) => void;
59
59
  handleReset: () => void;
60
60
  handleResetSetting: () => Promise<unknown>;
61
61
  onSearch: (e: any) => void;
62
62
  onSearchSort: (e: any) => void;
63
- render(): JSX.Element;
63
+ render(): React.JSX.Element;
64
64
  }
65
65
  export default TableColumnSetting;