@bit-sun/business-component 4.2.0-alpha.3 → 4.2.0-alpha.31

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 (138) hide show
  1. package/.fatherrc.ts +1 -1
  2. package/.umirc.ts +13 -9
  3. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  4. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  15. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  16. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  17. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  18. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  19. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  20. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  21. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  22. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  23. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  24. package/dist/components/Business/ImportExport/ExportButton/ModalTitle.d.ts +11 -0
  25. package/dist/components/Business/ImportExport/ExportButton/TemplatePicker.d.ts +13 -0
  26. package/dist/components/Business/ImportExport/ExportButton/index.d.ts +15 -0
  27. package/dist/components/Business/ImportExport/ImportWizard/Preview.d.ts +11 -0
  28. package/dist/components/Business/ImportExport/ImportWizard/index.d.ts +15 -0
  29. package/dist/components/Business/ImportExport/TaskDrawer/index.d.ts +15 -0
  30. package/dist/components/Business/ImportExport/TaskProgress/index.d.ts +15 -0
  31. package/dist/components/Business/ImportExport/businessFunction.d.ts +15 -0
  32. package/dist/components/Business/ImportExport/index.d.ts +14 -0
  33. package/dist/components/Business/ImportExport/sceneCapability.d.ts +20 -0
  34. package/dist/components/Business/ImportExport/services/importExport.d.ts +22 -0
  35. package/dist/components/Business/ImportExport/services/routing.d.ts +8 -0
  36. package/dist/components/Business/ImportExport/types.d.ts +134 -0
  37. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  38. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  39. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  40. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  41. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  42. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  43. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  44. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  45. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  46. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  47. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  48. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  49. package/dist/components/Business/TrialCalculation/index.d.ts +15 -0
  50. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  51. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  52. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  53. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  54. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  55. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  56. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  57. package/dist/components/Common/Section/index.d.ts +1 -1
  58. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  59. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  60. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  61. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  62. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  63. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  64. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  65. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  66. package/dist/components/Functional/SearchSelect/pagination.d.ts +22 -0
  67. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  68. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  69. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  70. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  71. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  72. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  73. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  74. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  75. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  76. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  77. package/dist/index.d.ts +5 -0
  78. package/dist/index.esm.js +5397 -1220
  79. package/dist/index.js +5417 -1213
  80. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  81. package/dist/utils/TableUtils.d.ts +18 -19
  82. package/dist/utils/auth.d.ts +4 -0
  83. package/dist/utils/utils.d.ts +41 -0
  84. package/docs/error-record.md +52 -0
  85. package/docs/flow-control-readme.md +283 -0
  86. package/docs/task-records/2026-07-31-import-export-extraction.md +81 -0
  87. package/package.json +1 -1
  88. package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
  89. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  90. package/src/components/Business/BsSulaQueryTable/index.tsx +174 -10
  91. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  92. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  93. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  94. package/src/components/Business/ImportExport/ExportButton/ModalTitle.tsx +27 -0
  95. package/src/components/Business/ImportExport/ExportButton/TemplatePicker.tsx +424 -0
  96. package/src/components/Business/ImportExport/ExportButton/index.module.less +382 -0
  97. package/src/components/Business/ImportExport/ExportButton/index.tsx +273 -0
  98. package/src/components/Business/ImportExport/ImportWizard/Preview.tsx +129 -0
  99. package/src/components/Business/ImportExport/ImportWizard/index.module.less +360 -0
  100. package/src/components/Business/ImportExport/ImportWizard/index.tsx +679 -0
  101. package/src/components/Business/ImportExport/TaskDrawer/index.tsx +285 -0
  102. package/src/components/Business/ImportExport/TaskProgress/index.tsx +267 -0
  103. package/src/components/Business/ImportExport/businessFunction.ts +29 -0
  104. package/src/components/Business/ImportExport/index.md +104 -0
  105. package/src/components/Business/ImportExport/index.tsx +208 -0
  106. package/src/components/Business/ImportExport/sceneCapability.ts +28 -0
  107. package/src/components/Business/ImportExport/services/importExport.ts +208 -0
  108. package/src/components/Business/ImportExport/services/routing.ts +21 -0
  109. package/src/components/Business/ImportExport/types.ts +180 -0
  110. package/src/components/Business/SearchSelect/BusinessUtils.tsx +704 -48
  111. package/src/components/Business/SearchSelect/index.md +2 -2
  112. package/src/components/Business/SystemLog/index.md +37 -0
  113. package/src/components/Business/SystemLog/index.tsx +87 -0
  114. package/src/components/Business/TrialCalculation/PathDisplay.less +93 -0
  115. package/src/components/Business/TrialCalculation/PathDisplay_README.md +77 -0
  116. package/src/components/Business/TrialCalculation/index.tsx +322 -0
  117. package/src/components/Business/columnSettingTable/index.tsx +7 -6
  118. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
  119. package/src/components/Functional/AddSelect/index.tsx +95 -1
  120. package/src/components/Functional/DataValidation/index.tsx +31 -9
  121. package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -2
  122. package/src/components/Functional/SearchSelect/index.md +109 -0
  123. package/src/components/Functional/SearchSelect/index.tsx +99 -17
  124. package/src/components/Functional/SearchSelect/pagination.ts +57 -0
  125. package/src/components/Functional/SearchSelect/utils.tsx +28 -18
  126. package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
  127. package/src/components/Solution/RuleComponent/README.md +187 -0
  128. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  129. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  130. package/src/components/Solution/RuleComponent/RuleField.md +63 -0
  131. package/src/components/Solution/RuleComponent/index.js +237 -8
  132. package/src/components/Solution/RuleComponent/ruleFiled.js +46 -6
  133. package/src/components/Solution/RuleSetter/README.md +97 -0
  134. package/src/index.ts +9 -0
  135. package/src/typings/umi.d.ts +9 -0
  136. package/src/utils/LocalstorageUtils.ts +1 -1
  137. package/src/utils/auth.ts +39 -2
  138. package/src/utils/utils.ts +41 -1
@@ -6,13 +6,14 @@ import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/componen
6
6
  import { getSkuImg } from '@/utils/TableUtils';
7
7
  import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8
8
  import { Image } from 'antd';
9
+ import { isBoolean } from 'lodash';
9
10
 
10
11
  const hasDictSharingType = getDictionarySource('UC000013')?.length;
11
12
  const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
12
13
 
13
14
  export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
14
15
  const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
15
-
16
+
16
17
  // 默认type === 'supplier' 供应商选择器
17
18
  let requestConfig = {
18
19
  init: true,
@@ -42,29 +43,40 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
42
43
  }
43
44
 
44
45
  // 格式化树选择器数据源
45
- const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any) => {
46
- const haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
46
+ const mapSearchTree = (treeDataItem: any, resKeyValue: any, disabledJudge?: any, childrenKey?: any) => {
47
+ const haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
47
48
  return {
48
49
  title: treeDataItem[resKeyValue[1]],
49
50
  value: treeDataItem[resKeyValue[0]],
50
51
  parentId: treeDataItem.parent,
51
52
  data: { ...treeDataItem },
52
53
  isLeaf: !haveChildren,
53
- disabled: disabledJudge!==undefined? disabledJudge : haveChildren,
54
- children: haveChildren ? treeDataItem.children.map((i: any) => mapSearchTree(i, resKeyValue, disabledJudge)) : [],
54
+ disabled: disabledJudge !== undefined ? isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
55
+ children: haveChildren ? treeDataItem[childrenKey].map((i: any) => mapSearchTree(i, resKeyValue, disabledJudge, childrenKey)) : [],
55
56
  };
56
57
  };
57
- const formatTreeDataSource = (reData: any, position: number, changePosition: number,changeSearchForm: any,resKeyValue=['id', 'name']) => {
58
+ const formatTreeDataSource = (
59
+ reData: any,
60
+ position: number,
61
+ changePosition: number,
62
+ changeSearchForm: any,
63
+ resKeyValue=['id', 'name'],
64
+ childrenKey = 'children',
65
+ nodeDisabledJudge?: (data: any) => boolean, // 树节点能不能选 函数判断
66
+ ) => {
58
67
  let data = reData && reData[position]?.data;
59
68
  let disabledJudge;
60
69
  if(data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
61
70
  data = [data];
62
71
  disabledJudge=false
63
72
  }
73
+ if(nodeDisabledJudge) {
74
+ disabledJudge = nodeDisabledJudge;
75
+ }
64
76
  const formatData = (data &&
65
77
  Array.isArray(data) &&
66
78
  data.length &&
67
- data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge))) ||
79
+ data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey))) ||
68
80
  []
69
81
  changeSearchForm[changePosition].field.props.treeData = formatData;
70
82
  }
@@ -225,7 +237,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
225
237
  }
226
238
  tableSearchForm = [
227
239
  { name: 'qp-name-like', label: '供应商名称' }, // field: { type: 'input', props: { placeholder: '请输入'}}
228
- { name: 'qp-code-like', label: '供应商编码' },
240
+ { name: 'qp-code-in', label: '供应商编码', type: 'multipleQueryInput' },
229
241
  { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
230
242
  type: 'select',
231
243
  props: {
@@ -254,6 +266,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
254
266
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
255
267
  },
256
268
  } },
269
+ { name: 'qp-enableDropShipping-eq', label: '启用工厂直发', type: 'select', initialSource: getDictionarySource('BSC00001') },
270
+ { name: 'qp-enableVmiStock-eq', label: '启用VMI库存管理', type: 'select', initialSource: getDictionarySource('BSC00001') },
257
271
  ]
258
272
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
259
273
  Promise.all([
@@ -293,6 +307,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
293
307
  dataIndex: 'salesOrgName',
294
308
  defaultSort: 4,
295
309
  },
310
+ {
311
+ title: '启用工厂直发',
312
+ dataIndex: 'enableDropShipping',
313
+ defaultSort: 5,
314
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
315
+ },
316
+ {
317
+ title: '启用VMI库存管理',
318
+ dataIndex: 'enableVmiStock',
319
+ defaultSort: 6,
320
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
321
+ },
296
322
  ],
297
323
  ...modalTableBusProps
298
324
  }
@@ -332,7 +358,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
332
358
  }
333
359
  tableSearchForm = [
334
360
  { name: 'qp-skuCode-in', label: 'SKU编码', field: {
335
- type:'multipleQuerySearchSelect',
361
+ type:'multipleQuerySearchSelect',
336
362
  props: {
337
363
  selectProps: {
338
364
  mode: "multiple",
@@ -354,7 +380,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
354
380
  } },
355
381
  { name: 'qp-skuName-like', label: 'SKU名称' },
356
382
  { name: 'qp-itemCode-in', label: 'SPU编码', field: {
357
- type:'multipleQuerySearchSelect',
383
+ type:'multipleQuerySearchSelect',
358
384
  props: {
359
385
  selectProps: {
360
386
  placeholder: '请输入SPU编码查询'
@@ -414,6 +440,21 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
414
440
  { name: 'UNIQUE_SPEC', label: '属性', field: {
415
441
  type: 'proppertySelector',
416
442
  } },
443
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
444
+ type: 'select',
445
+ props: {
446
+ mode: 'multiple',
447
+ notFoundContent: '暂无数据',
448
+ allowClear: true,
449
+ showSearch: true,
450
+ showArrow: true,
451
+ maxTagCount: 1,
452
+ optionFilterProp: 'children',
453
+ filterOption: (input: string, option: { props: { children: string } }) =>
454
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
455
+ },
456
+ } },
457
+ { name: 'qp-skcCode-like', label: 'SKC编码' },
417
458
  ]
418
459
  const defaultQSHL = [
419
460
  {
@@ -433,9 +474,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
433
474
  pageSize: 5000,
434
475
  currentPage: 1,
435
476
  },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
477
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
478
+ pageSize: 500,
479
+ currentPage: 1,
480
+ 'qp-labelType-eq': 1,
481
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
436
482
  ]).then((x: any)=>{
437
483
  formatSource(x,0, 3, tableSearchForm,['id','name'])
438
484
  formatTreeDataSource(x,1, 4, tableSearchForm)
485
+ formatSource(x,2, 6, tableSearchForm,['id','name'])
439
486
  })
440
487
  modalTableProps = {
441
488
  modalTableTitle: '选择SKU',
@@ -511,11 +558,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
511
558
  placeholder: '输入商品(SPU)编码或名称',
512
559
  renderTableColumns: [
513
560
  {
514
- title: '商品编码(SPU)',
561
+ title: 'SPU编码',
515
562
  dataIndex: 'itemCode',
516
563
  },
517
564
  {
518
- title: '商品名称(SPU)',
565
+ title: 'SPU名称',
519
566
  dataIndex: 'name',
520
567
  },
521
568
  ],
@@ -535,8 +582,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
535
582
  ...requestConfigProp,
536
583
  }
537
584
  tableSearchForm = [
538
- { name: 'itemCode*multiInput', label: '商品编码(SPU)', type: 'multipleQueryInput' },
539
- { name: 'name*multiInput', label: '商品名称(SPU)', type: 'multipleQueryInput' },
585
+ { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
586
+ { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
540
587
  { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
541
588
  type: 'select',
542
589
  props: {
@@ -583,6 +630,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
583
630
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
584
631
  },
585
632
  } },
633
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
634
+ type: 'select',
635
+ props: {
636
+ mode: 'multiple',
637
+ notFoundContent: '暂无数据',
638
+ allowClear: true,
639
+ showSearch: true,
640
+ showArrow: true,
641
+ maxTagCount: 1,
642
+ optionFilterProp: 'children',
643
+ filterOption: (input: string, option: { props: { children: string } }) =>
644
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
645
+ },
646
+ } },
586
647
  ]
587
648
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
588
649
  Promise.all([
@@ -599,10 +660,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
599
660
  pageSize: 5000,
600
661
  currentPage: 1,
601
662
  },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
663
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
664
+ pageSize: 500,
665
+ currentPage: 1,
666
+ 'qp-labelType-eq': 1,
667
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
602
668
  ]).then((x: any)=>{
603
669
  formatSource(x,0, 2, tableSearchForm,['id','name']);
604
670
  formatTreeDataSource(x,1, 3, tableSearchForm);
605
671
  formatSource(x,2, 4, tableSearchForm,['id','name']);
672
+ formatSource(x,3, 5, tableSearchForm,['id','name']);
606
673
  })
607
674
  modalTableProps = {
608
675
  modalTableTitle: '选择商品(SPU) ',
@@ -614,12 +681,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
614
681
  defaultSort: 0,
615
682
  },
616
683
  {
617
- title: '商品编码(SPU)',
684
+ title: 'SPU编码',
618
685
  dataIndex: 'itemCode',
619
686
  defaultSort: 1,
620
687
  },
621
688
  {
622
- title: '商品名称(SPU) ',
689
+ title: 'SPU名称',
623
690
  dataIndex: 'name',
624
691
  defaultSort: 2,
625
692
  },
@@ -721,9 +788,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
721
788
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
722
789
  },
723
790
  } },
724
- {
725
- name: 'qp-year-in',
726
- label: '年份',
791
+ {
792
+ name: 'qp-year-in',
793
+ label: '年份',
727
794
  field: {
728
795
  type: 'itemPropertySelector',
729
796
  props: {
@@ -732,9 +799,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
732
799
  }
733
800
  }
734
801
  },
735
- {
736
- name: 'qp-season-in',
737
- label: '季节',
802
+ {
803
+ name: 'qp-season-in',
804
+ label: '季节',
738
805
  field: {
739
806
  type: 'itemPropertySelector',
740
807
  props: {
@@ -743,9 +810,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
743
810
  }
744
811
  }
745
812
  },
746
- {
747
- name: 'qp-zzdlbm-in',
748
- label: '大类',
813
+ {
814
+ name: 'qp-zzdlbm-in',
815
+ label: '大类',
749
816
  field: {
750
817
  type: 'itemPropertySelector',
751
818
  props: {
@@ -754,9 +821,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
754
821
  }
755
822
  }
756
823
  },
757
- {
758
- name: 'qp-zzzlbm-in',
759
- label: '中类',
824
+ {
825
+ name: 'qp-zzzlbm-in',
826
+ label: '中类',
760
827
  field: {
761
828
  type: 'itemPropertySelector',
762
829
  props: {
@@ -765,9 +832,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
765
832
  }
766
833
  }
767
834
  },
768
- {
769
- name: 'qp-zzxlbm-in',
770
- label: '小类',
835
+ {
836
+ name: 'qp-zzxlbm-in',
837
+ label: '小类',
771
838
  field: {
772
839
  type: 'itemPropertySelector',
773
840
  props: {
@@ -776,6 +843,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
776
843
  }
777
844
  }
778
845
  },
846
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
847
+ type: 'select',
848
+ props: {
849
+ mode: 'multiple',
850
+ notFoundContent: '暂无数据',
851
+ allowClear: true,
852
+ showSearch: true,
853
+ showArrow: true,
854
+ maxTagCount: 1,
855
+ optionFilterProp: 'children',
856
+ filterOption: (input: string, option: { props: { children: string } }) =>
857
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
858
+ },
859
+ } },
779
860
  ]
780
861
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
781
862
  Promise.all([
@@ -792,10 +873,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
792
873
  pageSize: 5000,
793
874
  currentPage: 1,
794
875
  },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
876
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
877
+ pageSize: 500,
878
+ currentPage: 1,
879
+ 'qp-labelType-eq': 1,
880
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
795
881
  ]).then((x: any)=>{
796
882
  formatSource(x,0, 2, tableSearchForm,['id','name']);
797
883
  formatTreeDataSource(x,1, 3, tableSearchForm);
798
884
  formatSource(x,2, 4, tableSearchForm,['id','name']);
885
+ formatSource(x,3, 10, tableSearchForm,['id','name']);
799
886
  })
800
887
  modalTableProps = {
801
888
  modalTableTitle: '选择SPU',
@@ -958,7 +1045,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
958
1045
  ['colorName', 'categoryId', 'classId', 'brandId'],
959
1046
  hiddenFields,
960
1047
  );
961
- const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,options));
1048
+ const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params, i.options));
962
1049
  requestConfig = {
963
1050
  url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
964
1051
  filter: 'qp-code,name-orGroup,like', // 过滤参数
@@ -1186,12 +1273,84 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1186
1273
  sourceName: 'warehouseIds',
1187
1274
  ...requestConfigProp,
1188
1275
  }
1276
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1277
+ Promise.all([
1278
+ loadSelectSource(`/channel-manage/channelInfo/tree`, {
1279
+ 'qp-status-eq': 10,
1280
+ 'qp-isMain-eq': 1,
1281
+ 'qp-type-in': '1,2',
1282
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1283
+ loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1284
+ 'qp-status-eq': 1,
1285
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1286
+ ]).then((x: any)=>{
1287
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1288
+ const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1289
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1290
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1291
+ })
1189
1292
  tableSearchForm = [
1190
1293
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1191
1294
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1192
1295
  { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1193
1296
  { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1194
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1297
+ {
1298
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1299
+ type: 'treeSelect',
1300
+ props: {
1301
+ multiple: true,
1302
+ treeData: [],
1303
+ treeCheckable: false,
1304
+ notFoundContent: '暂无数据',
1305
+ allowClear: true,
1306
+ showSearch: true,
1307
+ showArrow: true,
1308
+ maxTagCount: 1,
1309
+ optionFilterProp: 'children',
1310
+ filterOption: (input: string, option: { props: { children: string } }) =>
1311
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1312
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1313
+ },
1314
+ }
1315
+ },
1316
+ {
1317
+ name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1318
+ type: 'treeSelect',
1319
+ props: {
1320
+ multiple: true,
1321
+ treeData: [],
1322
+ treeCheckable: false,
1323
+ notFoundContent: '暂无数据',
1324
+ allowClear: true,
1325
+ showSearch: true,
1326
+ showArrow: true,
1327
+ maxTagCount: 1,
1328
+ optionFilterProp: 'children',
1329
+ filterOption: (input: string, option: { props: { children: string } }) =>
1330
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1331
+
1332
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1333
+ },
1334
+ }
1335
+ },
1336
+ {
1337
+ name: 'qp-type-in', type: 'select', label: '店铺性质', field: {
1338
+ type: 'select',
1339
+ props: {
1340
+ mode: 'multiple',
1341
+ notFoundContent: '暂无数据',
1342
+ allowClear: true,
1343
+ showSearch: true,
1344
+ showArrow: true,
1345
+ maxTagCount: 1,
1346
+ optionFilterProp: 'children',
1347
+ filterOption: (input: string, option: { props: { children: string } }) =>
1348
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1349
+ },
1350
+ },
1351
+ initialSource: getDictionarySource('BUSINESS_StoreType')
1352
+ },
1353
+ ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1195
1354
  ]
1196
1355
  modalTableProps = {
1197
1356
  modalTableTitle: '选择逻辑仓',
@@ -1218,10 +1377,36 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1218
1377
  defaultSort: 3,
1219
1378
  render: (text: number) => getDictionaryTextByValue('SC00004', text),
1220
1379
  },
1380
+ {
1381
+ title: '运营组名称',
1382
+ dataIndex: 'groupCode',
1383
+ defaultSort: 7,
1384
+ render: (text: any, record) => record?.groupName ? `【${text}】${record?.groupName}` : "",
1385
+ width: 100,
1386
+ },
1387
+ {
1388
+ title: '所属销售渠道',
1389
+ dataIndex: 'channelName',
1390
+ defaultSort: 4,
1391
+ width: 100,
1392
+ },
1393
+ {
1394
+ title: '营销区域',
1395
+ dataIndex: 'commonRelationAreaName',
1396
+ defaultSort: 5,
1397
+ width: 100,
1398
+ },
1399
+ {
1400
+ title: '店铺性质',
1401
+ dataIndex: 'type',
1402
+ defaultSort: 6,
1403
+ render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
1404
+ width: 80,
1405
+ },
1221
1406
  ...(modalTableBusProps?.needStatusSearch?[{
1222
1407
  title: '状态',
1223
1408
  dataIndex: 'isEnable',
1224
- defaultSort: 4,
1409
+ defaultSort: 8,
1225
1410
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1226
1411
  }]:[]),
1227
1412
  ],
@@ -1276,13 +1461,39 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1276
1461
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1277
1462
  },
1278
1463
  } },
1279
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1464
+ {
1465
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1466
+ type: 'treeSelect',
1467
+ props: {
1468
+ multiple: true,
1469
+ treeData: [],
1470
+ treeCheckable: false,
1471
+ notFoundContent: '暂无数据',
1472
+ allowClear: true,
1473
+ showSearch: true,
1474
+ showArrow: true,
1475
+ maxTagCount: 1,
1476
+ optionFilterProp: 'children',
1477
+ filterOption: (input: string, option: { props: { children: string } }) =>
1478
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1479
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1480
+ },
1481
+ }
1482
+ },
1483
+ ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1280
1484
  ]
1281
1485
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1282
1486
  Promise.all([
1283
1487
  loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },getQueryHeadersItem(queryHeaderParams,'qp-groupCode-in')),
1488
+ loadSelectSource(`/channel-manage/channelInfo/tree`, {
1489
+ 'qp-status-eq': 10,
1490
+ 'qp-isMain-eq': 1,
1491
+ 'qp-type-in': '1,2',
1492
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1284
1493
  ]).then((x: any)=>{
1285
1494
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1495
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1496
+ formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1286
1497
  })
1287
1498
  modalTableProps = {
1288
1499
  modalTableTitle: '选择运营仓',
@@ -1314,6 +1525,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1314
1525
  defaultSort: 4,
1315
1526
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1316
1527
  }]:[]),
1528
+ {
1529
+ title: '所属销售渠道',
1530
+ dataIndex: 'channelName',
1531
+ defaultSort: 5,
1532
+ width: 100,
1533
+ },
1317
1534
  ],
1318
1535
  ...modalTableBusProps,
1319
1536
  }
@@ -1558,7 +1775,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1558
1775
  }
1559
1776
  tableSearchForm = [
1560
1777
  { name: 'qp-name-like', label: '客户名称' },
1561
- { name: 'qp-code-like', label: '客户编码' },
1778
+ { name: 'qp-code-in', label: '客户编码', type: 'multipleQueryInput' },
1562
1779
  { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
1563
1780
  type: 'select',
1564
1781
  props: {
@@ -1573,7 +1790,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1573
1790
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1574
1791
  },
1575
1792
  } },
1576
- { name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1793
+ { name: 'qp-salesOrgCode-eq', type: 'select', label: '销售组织', field: {
1577
1794
  type: 'select',
1578
1795
  props: {
1579
1796
  // mode: 'multiple',
@@ -1587,15 +1804,72 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1587
1804
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1588
1805
  },
1589
1806
  } },
1590
- ]
1807
+ {
1808
+ name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
1809
+ type: 'treeSelect',
1810
+ props: {
1811
+ multiple: true,
1812
+ treeData: [],
1813
+ treeCheckable: false,
1814
+ notFoundContent: '暂无数据',
1815
+ allowClear: true,
1816
+ showSearch: true,
1817
+ showArrow: true,
1818
+ maxTagCount: 1,
1819
+ optionFilterProp: 'children',
1820
+ filterOption: (input: string, option: { props: { children: string } }) =>
1821
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1822
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1823
+ },
1824
+ }
1825
+ },
1826
+ {
1827
+ name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1828
+ type: 'treeSelect',
1829
+ props: {
1830
+ multiple: true,
1831
+ treeData: [],
1832
+ treeCheckable: false,
1833
+ notFoundContent: '暂无数据',
1834
+ allowClear: true,
1835
+ showSearch: true,
1836
+ showArrow: true,
1837
+ maxTagCount: 1,
1838
+ optionFilterProp: 'children',
1839
+ filterOption: (input: string, option: { props: { children: string } }) =>
1840
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1841
+
1842
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1843
+ },
1844
+ }
1845
+ },
1846
+ ];
1591
1847
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1592
1848
  Promise.all([
1593
- loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1849
+ loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {
1850
+ },getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1851
+ loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
1852
+ 'qp-employeeCode-eq': getEmployeeCode(),
1853
+ 'qp-realOrg-eq': true,
1854
+ 'qp-status-eq': 10
1855
+ },getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-eq')),
1856
+ loadSelectSource(`/channel-manage/channelInfo/tree`, {
1857
+ 'qp-status-eq': 10,
1858
+ 'qp-isMain-eq': 1,
1859
+ 'qp-type-in': '1,2',
1860
+ },getQueryHeadersItem(queryHeaderParams,'qp-saleChannel-in')),
1861
+ loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1862
+ 'qp-status-eq': 1,
1863
+ },getQueryHeadersItem(queryHeaderParams,'qp-refCode-in')),
1594
1864
  ]).then((x: any)=>{
1595
1865
  const firstElement = x?.[0];
1596
1866
  const allList = firstElement && [firstElement, firstElement];
1597
- formatSource(allList,0, 2, tableSearchForm);
1598
- formatSource(allList,1, 3, tableSearchForm);
1867
+ formatSource(x, 0, 2, tableSearchForm);
1868
+ formatSource(x, 1, 3, tableSearchForm);
1869
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1870
+ const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1871
+ formatTreeDataSource(x, 2, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1872
+ formatTreeDataSource(x, 3, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1599
1873
  })
1600
1874
  modalTableProps = {
1601
1875
  modalTableTitle: '选择客户',
@@ -1622,9 +1896,22 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1622
1896
  defaultSort: 3,
1623
1897
  },
1624
1898
  {
1625
- title: '使用组织',
1899
+ title: '销售组织',
1626
1900
  dataIndex: 'salesOrgName',
1627
1901
  defaultSort: 4,
1902
+ width: 100,
1903
+ },
1904
+ {
1905
+ title: '所属销售渠道',
1906
+ dataIndex: 'channelName',
1907
+ defaultSort: 5,
1908
+ width: 100,
1909
+ },
1910
+ {
1911
+ title: '营销区域',
1912
+ dataIndex: 'commonRelationAreaName',
1913
+ defaultSort: 6,
1914
+ width: 100,
1628
1915
  },
1629
1916
  ],
1630
1917
  ...modalTableBusProps
@@ -1661,8 +1948,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1661
1948
  ...requestConfigProp,
1662
1949
  }
1663
1950
  tableSearchForm = [
1664
- { name: 'qp-name-like', label: '店铺名称' },
1665
- { name: 'qp-code-like', label: '店铺编码' },
1951
+ { name: 'name*multiInput', label: '店铺名称', type: 'multipleQueryInput' },
1952
+ { name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
1953
+ // { name: 'qp-name-like', label: '店铺名称' },
1954
+ // { name: 'qp-code-like', label: '店铺编码' },
1666
1955
  { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1667
1956
  type: 'select',
1668
1957
  props: {
@@ -1836,6 +2125,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1836
2125
  mappingValueField: 'code',
1837
2126
  otherParams: {
1838
2127
  sorter: 'desc-id',
2128
+ 'qp-status-in': 10,
1839
2129
  ...(requestConfigProp?.addOtherParams || {}),
1840
2130
  }, // 默认参数
1841
2131
  sourceName: 'code',
@@ -1845,7 +2135,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1845
2135
  { name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
1846
2136
  { name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
1847
2137
  { name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
1848
- { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
2138
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
1849
2139
  { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
1850
2140
  type: 'select',
1851
2141
  props: {
@@ -1860,6 +2150,75 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1860
2150
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1861
2151
  },
1862
2152
  } },
2153
+ { name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
2154
+ type: 'treeSelect',
2155
+ props: {
2156
+ multiple: true,
2157
+ treeData: [],
2158
+ treeCheckable: false,
2159
+ notFoundContent: '暂无数据',
2160
+ allowClear: true,
2161
+ showSearch: true,
2162
+ showArrow: true,
2163
+ maxTagCount: 1,
2164
+ optionFilterProp: 'children',
2165
+ filterOption: (input: string, option: { props: { children: string } }) =>
2166
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2167
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2168
+ },
2169
+ } },
2170
+ { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
2171
+ type: 'treeSelect',
2172
+ props: {
2173
+ multiple: true,
2174
+ treeData: [],
2175
+ treeCheckable: false,
2176
+ notFoundContent: '暂无数据',
2177
+ allowClear: true,
2178
+ showSearch: true,
2179
+ showArrow: true,
2180
+ maxTagCount: 1,
2181
+ optionFilterProp: 'children',
2182
+ filterOption: (input: string, option: { props: { children: string } }) =>
2183
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2184
+
2185
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2186
+ },
2187
+ } },
2188
+ { name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2189
+ type: 'select',
2190
+ props: {
2191
+ mode: 'multiple',
2192
+ notFoundContent: '暂无数据',
2193
+ allowClear: true,
2194
+ showSearch: true,
2195
+ showArrow: true,
2196
+ maxTagCount: 1,
2197
+ optionFilterProp: 'children',
2198
+ filterOption: (input: string, option: { props: { children: string } }) =>
2199
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2200
+ },
2201
+ } ,
2202
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2203
+ },
2204
+ {
2205
+ name: "qp-brandCode-in",
2206
+ label: "品牌",
2207
+ field: {
2208
+ type:'select',
2209
+ props: {
2210
+ mode: 'multiple',
2211
+ notFoundContent: '暂无数据',
2212
+ allowClear: true,
2213
+ showSearch: true,
2214
+ showArrow: true,
2215
+ maxTagCount: 1,
2216
+ optionFilterProp: 'children',
2217
+ filterOption: (input: string, option: { props: { children: string } }) =>
2218
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2219
+ },
2220
+ },
2221
+ },
1863
2222
  ]
1864
2223
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1865
2224
  Promise.all([
@@ -1868,8 +2227,26 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1868
2227
  'qp-realOrg-eq': true,
1869
2228
  'qp-status-eq': 10
1870
2229
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2230
+ loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
2231
+ 'qp-status-eq': 10,
2232
+ 'qp-isMain-eq': 1,
2233
+ 'qp-type-in': '1,2',
2234
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2235
+ loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2236
+ 'qp-status-eq': 1,
2237
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2238
+ loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2239
+ pageSize: 5000,
2240
+ currentPage: 1,
2241
+ 'ctl-withAuth': true,
2242
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
1871
2243
  ]).then((x: any)=>{
1872
- formatSource(x,0, 4, tableSearchForm);
2244
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2245
+ const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2246
+ formatSource(x,0, 3, tableSearchForm);
2247
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2248
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2249
+ formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
1873
2250
  })
1874
2251
  modalTableProps = {
1875
2252
  modalTableTitle: '选择商店',
@@ -1879,38 +2256,317 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1879
2256
  title: '序号',
1880
2257
  dataIndex: 'keyIndex',
1881
2258
  defaultSort: 0,
2259
+ width: 60,
1882
2260
  },
1883
2261
  {
1884
2262
  title: '商店编码',
1885
2263
  dataIndex: 'code',
1886
2264
  defaultSort: 1,
2265
+ width: 100,
1887
2266
  },
1888
2267
  {
1889
2268
  title: '商店名称',
1890
2269
  dataIndex: 'name',
1891
2270
  defaultSort: 2,
2271
+ width: 120,
1892
2272
  },
1893
2273
  {
1894
2274
  title: '商店类型',
1895
2275
  dataIndex: 'type',
1896
2276
  defaultSort: 3,
2277
+ width: 100,
1897
2278
  render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
1898
2279
  },
1899
2280
  {
1900
2281
  title: '启用状态',
1901
2282
  dataIndex: 'status',
2283
+ width: 80,
1902
2284
  render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
1903
2285
  },
1904
2286
  {
1905
2287
  title: '所属销售组织',
1906
2288
  dataIndex: 'orgName',
1907
2289
  defaultSort: 4,
2290
+ width: 95,
2291
+ },
2292
+ {
2293
+ title: '所属销售渠道',
2294
+ dataIndex: 'channelName',
2295
+ defaultSort: 5,
2296
+ width: 100,
2297
+ },
2298
+ {
2299
+ title: '营销区域',
2300
+ dataIndex: 'commonRelationAreaName',
2301
+ defaultSort: 6,
2302
+ width: 100,
2303
+ },
2304
+ {
2305
+ title: '店铺性质',
2306
+ dataIndex: 'businessType',
2307
+ defaultSort: 7,
2308
+ render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
2309
+ width: 80,
1908
2310
  },
1909
2311
  ],
2312
+ noEmptySearchField: true,
1910
2313
  ...modalTableBusProps
1911
2314
  }
1912
2315
  }
2316
+ if(type === 'shopFile3') {
2317
+ selectProps = {
2318
+ placeholder: '输入商店编码或名称',
2319
+ renderTableColumns: [
2320
+ {
2321
+ title: '商店编码',
2322
+ dataIndex: 'code',
2323
+ },
2324
+ {
2325
+ title: '商店名称',
2326
+ dataIndex: 'name',
2327
+ },
2328
+ ],
2329
+ ...selectConfigProps,
2330
+ }
2331
+ requestConfig = {
2332
+ init: true,
2333
+ url: `${prefixUrl.selectPrefix}/store/doPagerPw`,
2334
+ filter: 'qp-name,code-orGroup,like', // 过滤参数
2335
+ mappingTextField: 'name',
2336
+ mappingValueField: 'code',
2337
+ otherParams: {
2338
+ sorter: 'desc-id',
2339
+ 'qp-status-in': 10,
2340
+ ...(requestConfigProp?.addOtherParams || {}),
2341
+ }, // 默认参数
2342
+ sourceName: 'code',
2343
+ ...requestConfigProp,
2344
+ }
2345
+ tableSearchForm = [
2346
+ { name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
2347
+ { name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
2348
+ { name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
2349
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
2350
+ { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
2351
+ type: 'select',
2352
+ props: {
2353
+ mode: 'multiple',
2354
+ notFoundContent: '暂无数据',
2355
+ allowClear: true,
2356
+ showSearch: true,
2357
+ showArrow: true,
2358
+ maxTagCount: 1,
2359
+ optionFilterProp: 'children',
2360
+ filterOption: (input: string, option: { props: { children: string } }) =>
2361
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2362
+ },
2363
+ } },
2364
+ { name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
2365
+ type: 'treeSelect',
2366
+ props: {
2367
+ multiple: true,
2368
+ treeData: [],
2369
+ treeCheckable: false,
2370
+ notFoundContent: '暂无数据',
2371
+ allowClear: true,
2372
+ showSearch: true,
2373
+ showArrow: true,
2374
+ maxTagCount: 1,
2375
+ optionFilterProp: 'children',
2376
+ filterOption: (input: string, option: { props: { children: string } }) =>
2377
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2378
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2379
+ },
2380
+ } },
2381
+ { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
2382
+ type: 'treeSelect',
2383
+ props: {
2384
+ multiple: true,
2385
+ treeData: [],
2386
+ treeCheckable: false,
2387
+ notFoundContent: '暂无数据',
2388
+ allowClear: true,
2389
+ showSearch: true,
2390
+ showArrow: true,
2391
+ maxTagCount: 1,
2392
+ optionFilterProp: 'children',
2393
+ filterOption: (input: string, option: { props: { children: string } }) =>
2394
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1913
2395
 
2396
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2397
+ },
2398
+ } },
2399
+ { name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2400
+ type: 'select',
2401
+ props: {
2402
+ mode: 'multiple',
2403
+ notFoundContent: '暂无数据',
2404
+ allowClear: true,
2405
+ showSearch: true,
2406
+ showArrow: true,
2407
+ maxTagCount: 1,
2408
+ optionFilterProp: 'children',
2409
+ filterOption: (input: string, option: { props: { children: string } }) =>
2410
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2411
+ },
2412
+ } ,
2413
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2414
+ },
2415
+ {
2416
+ name: "qp-brandCode-in",
2417
+ label: "品牌",
2418
+ field: {
2419
+ type:'select',
2420
+ props: {
2421
+ mode: 'multiple',
2422
+ notFoundContent: '暂无数据',
2423
+ allowClear: true,
2424
+ showSearch: true,
2425
+ showArrow: true,
2426
+ maxTagCount: 1,
2427
+ optionFilterProp: 'children',
2428
+ filterOption: (input: string, option: { props: { children: string } }) =>
2429
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2430
+ },
2431
+ },
2432
+ },
2433
+ {
2434
+ name: 'qp-physicalWarehouseCode-in',
2435
+ type: 'select',
2436
+ label: '物理仓库',
2437
+ field: {
2438
+ type: 'select',
2439
+ props: {
2440
+ notFoundContent: '暂无数据',
2441
+ allowClear: true,
2442
+ showSearch: true,
2443
+ showArrow: true,
2444
+ maxTagCount: 1,
2445
+ optionFilterProp: 'children',
2446
+ filterOption: (
2447
+ input: string,
2448
+ option: { props: { children: string } },
2449
+ ) =>
2450
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase()),
2451
+ },
2452
+ },
2453
+ },
2454
+ ]
2455
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2456
+ Promise.all([
2457
+ loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
2458
+ 'qp-employeeCode-eq': getEmployeeCode(),
2459
+ 'qp-realOrg-eq': true,
2460
+ 'qp-status-eq': 10
2461
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2462
+ loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
2463
+ 'qp-status-eq': 10,
2464
+ 'qp-isMain-eq': 1,
2465
+ 'qp-type-in': '1,2',
2466
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2467
+ loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2468
+ 'qp-status-eq': 1,
2469
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2470
+ loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2471
+ pageSize: 5000,
2472
+ currentPage: 1,
2473
+ 'ctl-withAuth': true,
2474
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
2475
+ loadSelectSource(
2476
+ `/stock/physicalWarehouse`,
2477
+ {
2478
+ pageSize: 5000,
2479
+ currentPage: 1,
2480
+ 'qp-isEnable-eq': 1,
2481
+ sorter: 'desc-id',
2482
+ },
2483
+ {
2484
+ headers: {
2485
+ ...extralHeaders,
2486
+ },
2487
+ },
2488
+ ),
2489
+ ]).then((x: any)=>{
2490
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2491
+ const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2492
+ formatSource(x,0, 3, tableSearchForm);
2493
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2494
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2495
+ formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2496
+ formatSource(x,4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
2497
+ })
2498
+ modalTableProps = {
2499
+ modalTableTitle: '选择商店',
2500
+ tableSearchForm,
2501
+ tableColumns: [
2502
+ {
2503
+ title: '序号',
2504
+ dataIndex: 'keyIndex',
2505
+ defaultSort: 0,
2506
+ width: 60,
2507
+ },
2508
+ {
2509
+ title: '商店编码',
2510
+ dataIndex: 'code',
2511
+ defaultSort: 1,
2512
+ width: 100,
2513
+ },
2514
+ {
2515
+ title: '商店名称',
2516
+ dataIndex: 'name',
2517
+ defaultSort: 2,
2518
+ width: 120,
2519
+ },
2520
+ {
2521
+ title: '商店类型',
2522
+ dataIndex: 'type',
2523
+ defaultSort: 3,
2524
+ width: 100,
2525
+ render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
2526
+ },
2527
+ {
2528
+ title: '启用状态',
2529
+ dataIndex: 'status',
2530
+ width: 80,
2531
+ render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
2532
+ },
2533
+ {
2534
+ title: '所属销售组织',
2535
+ dataIndex: 'orgName',
2536
+ defaultSort: 4,
2537
+ width: 95,
2538
+ },
2539
+ {
2540
+ title: '所属销售渠道',
2541
+ dataIndex: 'channelName',
2542
+ defaultSort: 5,
2543
+ width: 100,
2544
+ },
2545
+ {
2546
+ title: '营销区域',
2547
+ dataIndex: 'commonRelationAreaName',
2548
+ defaultSort: 6,
2549
+ width: 100,
2550
+ },
2551
+ {
2552
+ title: '店铺性质',
2553
+ dataIndex: 'businessType',
2554
+ defaultSort: 7,
2555
+ render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
2556
+ width: 80,
2557
+ },
2558
+ {
2559
+ title: '库存组织编码',
2560
+ dataIndex: 'physicalWarehouseCode',
2561
+ render: (text: any) => text?.physicalWarehouseCode || '-',
2562
+ defaultSort: 8,
2563
+ width: 100,
2564
+ }
2565
+ ],
2566
+ noEmptySearchField: true,
2567
+ ...modalTableBusProps
2568
+ }
2569
+ }
1914
2570
  // 核算主体选择器(无弹窗)
1915
2571
  if(type === 'accountingSubject') {
1916
2572
  selectProps = {
@@ -2199,7 +2855,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2199
2855
  } },
2200
2856
  ...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
2201
2857
  { name: 'qp-email-like', label: '邮箱' },
2202
- { name: 'qp-officeTelephone-like', label: '手机号' },
2858
+ { name: 'qp-phone-like', label: '手机号' },
2203
2859
  ]
2204
2860
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2205
2861
  Promise.all([
@@ -2252,7 +2908,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2252
2908
  },
2253
2909
  {
2254
2910
  title: '手机号',
2255
- dataIndex: 'officeTelephone',
2911
+ dataIndex: 'phone',
2256
2912
  defaultSort: 4,
2257
2913
  render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
2258
2914
  },