@bit-sun/business-component 4.2.0-alpha.jw-1 → 4.2.1-alpha.10-aiwei

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 (73) hide show
  1. package/.umirc.ts +9 -9
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  35. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  36. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  39. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  40. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  41. package/dist/components/Common/Section/index.d.ts +1 -1
  42. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  43. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  44. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  45. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  46. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  49. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  50. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  51. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  59. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  60. package/dist/index.esm.js +517 -69
  61. package/dist/index.js +516 -68
  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/BsLayouts/Components/CustomerMenu/index.tsx +2 -2
  66. package/src/components/Business/BsLayouts/index.tsx +2 -2
  67. package/src/components/Business/BsSulaQueryTable/index.tsx +11 -10
  68. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  69. package/src/components/Business/SearchSelect/BusinessUtils.tsx +314 -25
  70. package/src/components/Business/SearchSelect/index.md +32 -12
  71. package/src/components/Functional/SearchSelect/index.tsx +33 -1
  72. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  73. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
@@ -6,7 +6,7 @@ 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
+ import { isBoolean, trim } from 'lodash';
10
10
 
11
11
  const hasDictSharingType = getDictionarySource('UC000013')?.length;
12
12
  const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
@@ -85,6 +85,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
85
85
  let modalTableProps = {
86
86
  modalTableTitle: '',
87
87
  tableSearchForm,
88
+ visibleFieldsCount: 13,
88
89
  tableColumns: [],
89
90
  ...modalTableBusProps,
90
91
  }
@@ -423,15 +424,125 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
423
424
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
424
425
  },
425
426
  } },
426
- { name: 'UNIQUE_SPEC', label: '属性', field: {
427
- type: 'proppertySelector',
428
- } },
427
+ { name: 'qp-skcCode-in', label: 'SKC编码', field: {
428
+ type:'multipleQuerySearchSelect',
429
+ props: {
430
+ selectProps: {
431
+ mode: "multiple",
432
+ placeholder: '请输入SKC编码查询'
433
+ },
434
+ requestConfig: {
435
+ url: '/items/sku//listNoPage/Simple',
436
+ filter: 'qp-skcCode,name-orGroup,like',
437
+ mappingTextField: 'name',
438
+ mappingValueField: 'skcCode',
439
+ sourceName: 'qp-skcCode-in',
440
+ specialBracket: true,
441
+ otherParams: {
442
+ 'ownOrgSign': getCurrentTargetBgId(),
443
+ 'ctl-count': true
444
+ }, // 默认参数
445
+ },
446
+ }
447
+ } },
448
+ { name: 'qp-year-in', type: 'select', label: '年份', field: {
449
+ type: 'select',
450
+ props: {
451
+ mode: 'multiple',
452
+ notFoundContent: '暂无数据',
453
+ allowClear: true,
454
+ showSearch: true,
455
+ showArrow: true,
456
+ maxTagCount: 1,
457
+ optionFilterProp: 'children',
458
+ filterOption: (input: string, option: { props: { children: string } }) =>
459
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
460
+ },
461
+ } },
462
+ { name: 'qp-season-in', type: 'select', label: '季节', field: {
463
+ type: 'select',
464
+ props: {
465
+ mode: 'multiple',
466
+ notFoundContent: '暂无数据',
467
+ allowClear: true,
468
+ showSearch: true,
469
+ showArrow: true,
470
+ maxTagCount: 1,
471
+ optionFilterProp: 'children',
472
+ filterOption: (input: string, option: { props: { children: string } }) =>
473
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
474
+ },
475
+ } },
476
+ { name: 'qp-zzbdbm-in', type: 'select', label: '波段', field: {
477
+ type: 'select',
478
+ props: {
479
+ mode: 'multiple',
480
+ notFoundContent: '暂无数据',
481
+ allowClear: true,
482
+ showSearch: true,
483
+ showArrow: true,
484
+ maxTagCount: 1,
485
+ optionFilterProp: 'children',
486
+ filterOption: (input: string, option: { props: { children: string } }) =>
487
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
488
+ },
489
+ } },
490
+ { name: 'qp-zzdlbm-in', type: 'select', label: '品类', field: {
491
+ type: 'select',
492
+ props: {
493
+ mode: 'multiple',
494
+ notFoundContent: '暂无数据',
495
+ allowClear: true,
496
+ showSearch: true,
497
+ showArrow: true,
498
+ maxTagCount: 1,
499
+ optionFilterProp: 'children',
500
+ filterOption: (input: string, option: { props: { children: string } }) =>
501
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
502
+ },
503
+ } },
504
+ { name: 'qp-zzzlbm-in', type: 'select', label: '大类', field: {
505
+ type: 'select',
506
+ props: {
507
+ mode: 'multiple',
508
+ notFoundContent: '暂无数据',
509
+ allowClear: true,
510
+ showSearch: true,
511
+ showArrow: true,
512
+ maxTagCount: 1,
513
+ optionFilterProp: 'children',
514
+ filterOption: (input: string, option: { props: { children: string } }) =>
515
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
516
+ },
517
+ } },
518
+ { name: 'qp-zzxlbm-in', type: 'select', label: '中类', field: {
519
+ type: 'select',
520
+ props: {
521
+ mode: 'multiple',
522
+ notFoundContent: '暂无数据',
523
+ allowClear: true,
524
+ showSearch: true,
525
+ showArrow: true,
526
+ maxTagCount: 1,
527
+ optionFilterProp: 'children',
528
+ filterOption: (input: string, option: { props: { children: string } }) =>
529
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
530
+ },
531
+ } },
532
+
533
+ // { name: 'UNIQUE_SPEC', label: '属性', field: {
534
+ // type: 'proppertySelector',
535
+ // } },
429
536
  ]
430
537
  const defaultQSHL = [
431
- {
432
- isOpen: true,
433
- queryKey: 'qp-brandId-in',
434
- },
538
+ { isOpen: true, queryKey: 'qp-brandId-in' },
539
+ { isOpen: true, queryKey: 'qp-categoryId-in' },
540
+ { isOpen: true, queryKey: 'qp-year-in' },
541
+ { isOpen: true, queryKey: 'qp-season-in' },
542
+ { isOpen: true, queryKey: 'qp-zzbdbm-in' },
543
+ { isOpen: true, queryKey: 'qp-zzdlbm-in' },
544
+ { isOpen: true, queryKey: 'qp-zzzlbm-in' },
545
+ { isOpen: true, queryKey: 'qp-zzxlbm-in' },
435
546
  ]
436
547
  const queryHeaderParams = getQueryHeadersList({defaultQSHL, querySelectHeadersList, extralHeaders});
437
548
 
@@ -445,14 +556,45 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
445
556
  pageSize: 5000,
446
557
  currentPage: 1,
447
558
  },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
559
+ loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
560
+ 'qp-propertyCode-eq': 'PROP_YEAR',
561
+ pageSize: 999,
562
+ }, getQueryHeadersItem(queryHeaderParams,'qp-year-in')),
563
+ loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
564
+ 'qp-propertyCode-eq': 'PROP_SEASON',
565
+ pageSize: 999,
566
+ }, getQueryHeadersItem(queryHeaderParams,'qp-season-in')),
567
+ loadSelectSource(`${prefixUrl.formSelectFix}/band`, {
568
+ pageSize: 999,
569
+ currentPage: 1,
570
+ }, getQueryHeadersItem(queryHeaderParams,'qp-zzbdbm-in')),
571
+ loadSelectSource(`${prefixUrl.formSelectFix}/rule/getClassPropertyValue/110000217`, {
572
+ }, getQueryHeadersItem(queryHeaderParams,'qp-zzdlbm-in')),
573
+ loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
574
+ 'qp-propertyCode-eq': 'MID_CATA',
575
+ pageSize: 999,
576
+ }, getQueryHeadersItem(queryHeaderParams,'qp-zzzlbm-in')),
577
+ loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
578
+ 'qp-propertyCode-eq': 'PROP_SUBCATEORY',
579
+ pageSize: 999,
580
+ }, getQueryHeadersItem(queryHeaderParams,'qp-zzxlbm-in')),
448
581
  ]).then((x: any)=>{
449
582
  formatSource(x,0, 3, tableSearchForm,['id','name'])
450
583
  formatTreeDataSource(x,1, 4, tableSearchForm)
584
+ formatSource(x,0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm,['id','name'])
585
+ formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'qp-categoryId-in'), tableSearchForm)
586
+ formatSource(x,2, getFieldIndex(tableSearchForm, 'qp-year-in'), tableSearchForm,['value','value'])
587
+ formatSource(x,3, getFieldIndex(tableSearchForm, 'qp-season-in'), tableSearchForm,['value','value'])
588
+ formatSource(x,4, getFieldIndex(tableSearchForm, 'qp-zzbdbm-in'), tableSearchForm,['bandCode','bandName'])
589
+ formatSource(x,5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm,['value','value'])
590
+ formatSource(x,6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm,['value','value'])
591
+ formatSource(x,7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm,['value','value'])
451
592
  })
452
593
  modalTableProps = {
453
594
  modalTableTitle: '选择SKU',
454
595
  tableSearchForm,
455
596
  isHorizontally: true,
597
+ tableSearchColSpan: 6,
456
598
  tableColumns: [
457
599
  {
458
600
  title: '序号',
@@ -1209,18 +1351,28 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1209
1351
  'qp-status-eq': 1,
1210
1352
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1211
1353
  ]).then((x: any)=>{
1354
+ debugger
1355
+ // 战区限制一级数据
1356
+ const newData1 = [];
1357
+ x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1358
+ newData1.push({
1359
+ code: item.code,
1360
+ name: item.name
1361
+ })
1362
+ })
1363
+ x[0].data = newData1;
1212
1364
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1213
1365
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1214
- formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1215
- formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1366
+ formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1367
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1216
1368
  })
1217
1369
  tableSearchForm = [
1218
1370
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1219
1371
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1220
1372
  { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1221
- { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1373
+ // { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1222
1374
  {
1223
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1375
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
1224
1376
  type: 'treeSelect',
1225
1377
  props: {
1226
1378
  multiple: true,
@@ -1239,7 +1391,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1239
1391
  }
1240
1392
  },
1241
1393
  {
1242
- name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1394
+ name: 'qp-refCode-in', type: 'treeSelect', label: '大区', field: {
1243
1395
  type: 'treeSelect',
1244
1396
  props: {
1245
1397
  multiple: true,
@@ -1310,7 +1462,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1310
1462
  width: 100,
1311
1463
  },
1312
1464
  {
1313
- title: '所属销售渠道',
1465
+ title: '战区',
1314
1466
  dataIndex: 'channelName',
1315
1467
  defaultSort: 4,
1316
1468
  width: 100,
@@ -1387,8 +1539,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1387
1539
  },
1388
1540
  } },
1389
1541
  {
1390
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1391
- type: 'treeSelect',
1542
+ name: 'qp-operationWarehouseClassification-in', type: 'select', label: '分类', field: {
1543
+ type: 'select',
1392
1544
  props: {
1393
1545
  multiple: true,
1394
1546
  treeData: [],
@@ -1403,7 +1555,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1403
1555
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1404
1556
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1405
1557
  },
1406
- }
1558
+ },
1559
+ initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
1407
1560
  },
1408
1561
  ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1409
1562
  ]
@@ -1417,8 +1570,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1417
1570
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1418
1571
  ]).then((x: any)=>{
1419
1572
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1420
- const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1421
- formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1573
+ const newData1: any[] = [];
1574
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1575
+ newData1.push({ code: item.code, name: item.name })
1576
+ });
1577
+ x[1].data = newData1;
1422
1578
  })
1423
1579
  modalTableProps = {
1424
1580
  modalTableTitle: '选择运营仓',
@@ -1701,15 +1857,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1701
1857
  tableSearchForm = [
1702
1858
  { name: 'qp-name-like', label: '客户名称' },
1703
1859
  { name: 'qp-code-like', label: '客户编码' },
1704
- { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
1860
+ { name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1705
1861
  type: 'select',
1706
1862
  props: {
1707
- // mode: 'multiple',
1863
+ mode: 'multiple',
1708
1864
  notFoundContent: '暂无数据',
1709
1865
  allowClear: true,
1710
1866
  showSearch: true,
1711
1867
  showArrow: true,
1712
- // maxTagCount: 1,
1868
+ maxTagCount: 1,
1713
1869
  optionFilterProp: 'children',
1714
1870
  filterOption: (input: string, option: { props: { children: string } }) =>
1715
1871
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
@@ -2069,7 +2225,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2069
2225
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2070
2226
  },
2071
2227
  } },
2072
- { name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
2228
+ { name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
2073
2229
  type: 'treeSelect',
2074
2230
  props: {
2075
2231
  multiple: true,
@@ -2086,7 +2242,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2086
2242
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2087
2243
  },
2088
2244
  } },
2089
- { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
2245
+ { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
2090
2246
  type: 'treeSelect',
2091
2247
  props: {
2092
2248
  multiple: true,
@@ -2138,6 +2294,74 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2138
2294
  },
2139
2295
  },
2140
2296
  },
2297
+ { name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
2298
+ type: 'select',
2299
+ props: {
2300
+ notFoundContent: '暂无数据',
2301
+ allowClear: true,
2302
+ showSearch: true,
2303
+ showArrow: true,
2304
+ maxTagCount: 1,
2305
+ optionFilterProp: 'children',
2306
+ filterOption: (input: string, option: { props: { children: string } }) =>
2307
+ {
2308
+ debugger
2309
+ return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2310
+ }
2311
+ },
2312
+ } },
2313
+ { name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
2314
+ type: 'select',
2315
+ props: {
2316
+ notFoundContent: '暂无数据',
2317
+ allowClear: true,
2318
+ showSearch: true,
2319
+ showArrow: true,
2320
+ maxTagCount: 1,
2321
+ optionFilterProp: 'children',
2322
+ filterOption: (input: string, option: { props: { children: string } }) =>
2323
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2324
+ },
2325
+ } },
2326
+ { name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
2327
+ type: 'select',
2328
+ props: {
2329
+ notFoundContent: '暂无数据',
2330
+ allowClear: true,
2331
+ showSearch: true,
2332
+ showArrow: true,
2333
+ maxTagCount: 1,
2334
+ optionFilterProp: 'children',
2335
+ filterOption: (input: string, option: { props: { children: string } }) =>
2336
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2337
+ },
2338
+ } },
2339
+ { name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
2340
+ type: 'select',
2341
+ props: {
2342
+ notFoundContent: '暂无数据',
2343
+ allowClear: true,
2344
+ showSearch: true,
2345
+ showArrow: true,
2346
+ maxTagCount: 1,
2347
+ optionFilterProp: 'children',
2348
+ filterOption: (input: string, option: { props: { children: string } }) =>
2349
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2350
+ },
2351
+ } },
2352
+ { name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
2353
+ type: 'select',
2354
+ props: {
2355
+ notFoundContent: '暂无数据',
2356
+ allowClear: true,
2357
+ showSearch: true,
2358
+ showArrow: true,
2359
+ maxTagCount: 1,
2360
+ optionFilterProp: 'children',
2361
+ filterOption: (input: string, option: { props: { children: string } }) =>
2362
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2363
+ },
2364
+ } },
2141
2365
  ]
2142
2366
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2143
2367
  Promise.all([
@@ -2158,14 +2382,43 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2158
2382
  pageSize: 5000,
2159
2383
  currentPage: 1,
2160
2384
  'ctl-withAuth': true,
2161
- },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2385
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
2386
+ loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, {
2387
+ headers: {
2388
+ ...extralHeaders
2389
+ },
2390
+ })
2162
2391
  ]).then((x: any)=>{
2392
+ const newData1: any[] = [];
2393
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
2394
+ newData1.push({ code: item.code, name: item.name })
2395
+ });
2396
+ x[1].data = newData1;
2163
2397
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2164
2398
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2165
2399
  formatSource(x,0, 3, tableSearchForm);
2166
2400
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2167
2401
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2168
2402
  formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2403
+
2404
+ const opRaw = x[4]?.data;
2405
+ // 新增label属性
2406
+ opList?.forEach((r: any) => {
2407
+ r.label = r?.value;
2408
+ })
2409
+ let opList = Array.isArray(opRaw) ? opRaw : (opRaw?.items || opRaw?.list || []);
2410
+ if (Array.isArray(opList) && Array.isArray(opList[0]) && !opList[0]?.field) { opList = opList[0]; }
2411
+ const m1 = opList?.filter((r: any) => r?.field === 'manage_supervisor' && trim(r?.value));
2412
+ const m2 = opList?.filter((r: any) => r?.field === 'direct_supervisor' && trim(r?.value));
2413
+ const m3 = opList?.filter((r: any) => r?.field === 'distribution_item' && trim(r?.value));
2414
+ debugger
2415
+ const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
2416
+ const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
2417
+ tableSearchForm[8] = { ...tableSearchForm[8], initialSource: m1 };
2418
+ tableSearchForm[9] = { ...tableSearchForm[9], initialSource: m2 };
2419
+ tableSearchForm[10] = { ...tableSearchForm[10], initialSource: m3 };
2420
+ tableSearchForm[11] = { ...tableSearchForm[11], initialSource: m4 };
2421
+ tableSearchForm[12] = { ...tableSearchForm[12], initialSource: m5 };
2169
2422
  })
2170
2423
  modalTableProps = {
2171
2424
  modalTableTitle: '选择商店',
@@ -2227,6 +2480,42 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2227
2480
  render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
2228
2481
  width: 80,
2229
2482
  },
2483
+ {
2484
+ title: '品牌',
2485
+ dataIndex: 'brandName',
2486
+ defaultSort: 8,
2487
+ width: 80,
2488
+ },
2489
+ {
2490
+ title: '管理督导',
2491
+ dataIndex: 'manageSupervisor',
2492
+ defaultSort: 9,
2493
+ width: 100,
2494
+ },
2495
+ {
2496
+ title: '直接督导',
2497
+ dataIndex: 'directSupervisor',
2498
+ defaultSort: 10,
2499
+ width: 100,
2500
+ },
2501
+ {
2502
+ title: '分销商品',
2503
+ dataIndex: 'distributionItem',
2504
+ defaultSort: 11,
2505
+ width: 100,
2506
+ },
2507
+ {
2508
+ title: '总部商品',
2509
+ dataIndex: 'headItem',
2510
+ defaultSort: 12,
2511
+ width: 100,
2512
+ },
2513
+ {
2514
+ title: '管理模式',
2515
+ dataIndex: 'storeChannelName',
2516
+ defaultSort: 13,
2517
+ width: 100,
2518
+ },
2230
2519
  ],
2231
2520
  noEmptySearchField: true,
2232
2521
  ...modalTableBusProps
@@ -150,7 +150,7 @@ export default () => {
150
150
  // },
151
151
  // prefixUrl: { selectPrefix: '/bop/api', formSelectFix: '/bop/api' },
152
152
  selectProps,
153
- selectBusinessType: 'shopFile2',
153
+ selectBusinessType: 'skuCommodity',
154
154
  };
155
155
 
156
156
  const onTabChange = (key) => {
@@ -317,7 +317,7 @@ export default () => {
317
317
  },
318
318
  // prefixUrl: { selectPrefix: '/bop/api', formSelectFix: '/bop/api' },
319
319
  selectProps,
320
- selectBusinessType: 'spuCommodityWithProperty',
320
+ selectBusinessType: 'skuCommodity',
321
321
  };
322
322
 
323
323
  const onTabChange = (key) => {
@@ -859,16 +859,17 @@ export default () => {
859
859
  console.log(value)
860
860
  setValue(value)
861
861
  },
862
- // requestConfig: {
863
- // url: `/bop/api/store`,
864
- // filter: 'qp-name,code-orGroup,like',,
865
- // mappingTextField: 'name',
866
- // mappingValueField: 'code',
867
- // otherParams: {
868
- // sorter: 'desc-id'
869
- // }, // 默认参数
870
- // sourceName: 'code',
871
- // },
862
+ requestConfig: {
863
+ url: `/bop/api/store`,
864
+ filter: 'qp-name,code-orGroup,like',
865
+ mappingTextField: 'name',
866
+ mappingValueField: 'code',
867
+ otherParams: {
868
+ sorter: 'desc-id'
869
+ }, // 默认参数
870
+ sourceName: 'code',
871
+ extralHeaders: {'x-biz-code': 3}
872
+ },
872
873
  // prefixUrl: { selectPrefix: '/bop/api', formSelectFix: '/bop/api' },
873
874
  selectProps,
874
875
  selectBusinessType: 'shopFile',
@@ -878,6 +879,25 @@ export default () => {
878
879
  ...props,
879
880
  // prefixUrl: { selectPrefix: '/channel-manage/', formSelectFix: '/channel-manage/' },
880
881
  selectBusinessType: 'shopFile2',
882
+ modalTableProps: {
883
+ isOpen: true,
884
+ querySelectHeadersList: [
885
+ {
886
+ 'x-biz-code': 3
887
+ }
888
+ ]
889
+ },
890
+ requestConfig: {
891
+ url: `/bop/api/store`,
892
+ filter: 'qp-name,code-orGroup,like',
893
+ mappingTextField: 'name',
894
+ mappingValueField: 'code',
895
+ otherParams: {
896
+ sorter: 'desc-id'
897
+ }, // 默认参数
898
+ sourceName: 'code',
899
+ extralHeaders: {'x-biz-code': 3}
900
+ },
881
901
  }
882
902
 
883
903
  const onTabChange = (key) => {
@@ -55,6 +55,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
55
55
  viewShowValueStr, // 详情展示值,不传展示组件处理的默认值
56
56
  searchStartLength, // 默认不校验长度去搜索,如果配置了,则按照配置项长度进行处理搜索
57
57
  isQuery = false, // 是否是查询条件
58
+ requireSearchCondition = false, // 是否必须选择一个值
58
59
  } = rCTemp || {};
59
60
  const requestConfig = {url,method,otherParams,isMap,fixedparameter,fieldValToParam,fixedparamsDisabled,mappingTextField,mappingTextShowKeyField,mappingValueField,mappingTextShowTextField,init,extralHeaders,specialBracket,noNeedSplit,noOperate,viewShowValueStr,searchStartLength,...rCTemp};
60
61
  const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || ctx?.name || 'supplierCode')
@@ -479,6 +480,18 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
479
480
 
480
481
  const onSearchTable = () => {
481
482
  const params = form.getFieldsValue();
483
+ // 必须选择一个值
484
+ if(requireSearchCondition) {
485
+ const hasValidValue = Object.values(params).some(value =>
486
+ (Array.isArray(value) && value.length > 0) ||
487
+ (typeof value === 'string' && value.trim().length > 0)
488
+ );
489
+
490
+ if(!hasValidValue) {
491
+ message.warning('请至少选择一个搜索条件');
492
+ return;
493
+ }
494
+ }
482
495
  setModalSearched(true);
483
496
  setTableFormParams(params);
484
497
  getData({ ...params, pageSize: tableInitPageSize }, 2, null);
@@ -570,6 +583,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
570
583
 
571
584
  const formItem = (list) => {
572
585
  if (isModalVisible && list?.length) {
586
+ debugger
573
587
  const setDisabled = (name: any) => {
574
588
  if (fixedparamsDisabled && fixedparameter?.length && fixedparameter.find((item: any) => item === name)) {
575
589
  return true
@@ -710,7 +724,25 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
710
724
  }
711
725
 
712
726
  const renderShowTable = (tableList, type) => {
713
- const tableBoxHeighth = getTableHeigth(modalTableProps?.tableSearchForm);
727
+ const viCount = modalTableProps?.visibleFieldsCount || defaultVisibleFieldsCount;
728
+ const canExpand = hasMoreQueryFields(modalTableProps);
729
+ const collapsedList = modalTableProps?.tableSearchForm?.slice(0, viCount);
730
+ const baseHeight = getTableHeigth(collapsedList);
731
+ const rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps?.tableSearchColSpan).totalRows;
732
+ const rowsExpandedData = getFormRowInfo(modalTableProps?.tableSearchForm, modalTableProps?.tableSearchColSpan);
733
+ let rowsExpanded = rowsExpandedData.totalRows;
734
+ let isMoreAction = false;
735
+ if(24 / modalTableProps?.tableSearchColSpan - rowsExpandedData.emptyArray.length === 1) {
736
+ rowsExpanded++;
737
+ isMoreAction = true;
738
+ }
739
+ const extraRows = (!collapsed && canExpand) ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
740
+ let tableBoxHeighth = baseHeight;
741
+ if(isMoreAction && extraRows > 0) {
742
+ tableBoxHeighth = tableBoxHeighth + ((extraRows - 1) ? (extraRows - 1) : 0) * 34 + 32
743
+ } else {
744
+ tableBoxHeighth = tableBoxHeighth + extraRows * 34
745
+ }
714
746
  const x = tableList?.length ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
715
747
  const oSY = `calc(100vh - ${tableBoxHeighth}px - ${x}px)`;
716
748
  const mTB = `calc(50vh - ${tableBoxHeighth/2}px - ${x/2}px - 40px)`
@@ -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) => {