@bit-sun/business-component 4.2.0-alpha.6 → 4.2.0-alpha.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -11174,6 +11174,26 @@ function commonFun(type, prefixUrl, parentProps) {
11174
11174
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11175
11175
  sourceName: 'warehouseIds'
11176
11176
  }, requestConfigProp);
11177
+ var _queryHeaderParams7 = getQueryHeadersList({
11178
+ querySelectHeadersList: querySelectHeadersList,
11179
+ extralHeaders: extralHeaders
11180
+ });
11181
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11182
+ 'qp-status-eq': 10,
11183
+ 'qp-isMain-eq': 1,
11184
+ 'qp-type-in': '1,2'
11185
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11186
+ 'qp-status-eq': 1
11187
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11188
+ var channelDisabledJude = function channelDisabledJude(data) {
11189
+ return data['parentCode'] === '0';
11190
+ }; // 所属销售渠道 树节点不能点判断
11191
+ var areaDisabledJude = function areaDisabledJude(data) {
11192
+ return data['parent'] === '0';
11193
+ }; // 所属营销区域 树节点不能点判断
11194
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11195
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11196
+ });
11177
11197
  tableSearchForm = [{
11178
11198
  name: 'realWarehouseName*multiInput',
11179
11199
  label: '逻辑仓名称',
@@ -11197,6 +11217,70 @@ function commonFun(type, prefixUrl, parentProps) {
11197
11217
  },
11198
11218
  label: '管理大区',
11199
11219
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11220
+ }, {
11221
+ name: 'qp-channelCode-in',
11222
+ type: 'treeSelect',
11223
+ label: '销售渠道',
11224
+ field: {
11225
+ type: 'treeSelect',
11226
+ props: {
11227
+ multiple: true,
11228
+ treeData: [],
11229
+ treeCheckable: false,
11230
+ notFoundContent: '暂无数据',
11231
+ allowClear: true,
11232
+ showSearch: true,
11233
+ showArrow: true,
11234
+ maxTagCount: 1,
11235
+ optionFilterProp: 'children',
11236
+ filterOption: function filterOption(input, option) {
11237
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11238
+ },
11239
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11240
+ }
11241
+ }
11242
+ }, {
11243
+ name: 'qp-refCode-in',
11244
+ type: 'treeSelect',
11245
+ label: '营销区域',
11246
+ field: {
11247
+ type: 'treeSelect',
11248
+ props: {
11249
+ multiple: true,
11250
+ treeData: [],
11251
+ treeCheckable: false,
11252
+ notFoundContent: '暂无数据',
11253
+ allowClear: true,
11254
+ showSearch: true,
11255
+ showArrow: true,
11256
+ maxTagCount: 1,
11257
+ optionFilterProp: 'children',
11258
+ filterOption: function filterOption(input, option) {
11259
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11260
+ },
11261
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11262
+ }
11263
+ }
11264
+ }, {
11265
+ name: 'qp-type-in',
11266
+ type: 'select',
11267
+ label: '店铺性质',
11268
+ field: {
11269
+ type: 'select',
11270
+ props: {
11271
+ mode: 'multiple',
11272
+ notFoundContent: '暂无数据',
11273
+ allowClear: true,
11274
+ showSearch: true,
11275
+ showArrow: true,
11276
+ maxTagCount: 1,
11277
+ optionFilterProp: 'children',
11278
+ filterOption: function filterOption(input, option) {
11279
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11280
+ }
11281
+ }
11282
+ },
11283
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11200
11284
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11201
11285
  name: 'qp-isEnable-eq',
11202
11286
  type: 'select',
@@ -11225,10 +11309,28 @@ function commonFun(type, prefixUrl, parentProps) {
11225
11309
  render: function render(text) {
11226
11310
  return getDictionaryTextByValue$1('SC00004', text);
11227
11311
  }
11312
+ }, {
11313
+ title: '所属销售渠道',
11314
+ dataIndex: 'channelName',
11315
+ defaultSort: 4,
11316
+ width: 100
11317
+ }, {
11318
+ title: '营销区域',
11319
+ dataIndex: 'commonRelationAreaName',
11320
+ defaultSort: 5,
11321
+ width: 100
11322
+ }, {
11323
+ title: '店铺性质',
11324
+ dataIndex: 'type',
11325
+ defaultSort: 6,
11326
+ render: function render(text) {
11327
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11328
+ },
11329
+ width: 80
11228
11330
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11229
11331
  title: '状态',
11230
11332
  dataIndex: 'isEnable',
11231
- defaultSort: 4,
11333
+ defaultSort: 7,
11232
11334
  render: function render(text) {
11233
11335
  return getDictionaryTextByValue$1('SC00001', text);
11234
11336
  }
@@ -11294,13 +11396,13 @@ function commonFun(type, prefixUrl, parentProps) {
11294
11396
  label: '运营仓状态',
11295
11397
  initialSource: getDictionarySource$1('SC00001')
11296
11398
  }] : []));
11297
- var _queryHeaderParams7 = getQueryHeadersList({
11399
+ var _queryHeaderParams8 = getQueryHeadersList({
11298
11400
  querySelectHeadersList: querySelectHeadersList,
11299
11401
  extralHeaders: extralHeaders
11300
11402
  });
11301
11403
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11302
11404
  'qp-status-eq': 1
11303
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11405
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
11304
11406
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11305
11407
  });
11306
11408
  modalTableProps = _objectSpread2({
@@ -11478,7 +11580,7 @@ function commonFun(type, prefixUrl, parentProps) {
11478
11580
  label: '共享类型',
11479
11581
  initialSource: sharingTypeDataList
11480
11582
  }];
11481
- var _queryHeaderParams8 = getQueryHeadersList({
11583
+ var _queryHeaderParams9 = getQueryHeadersList({
11482
11584
  querySelectHeadersList: querySelectHeadersList,
11483
11585
  extralHeaders: extralHeaders
11484
11586
  });
@@ -11486,14 +11588,14 @@ function commonFun(type, prefixUrl, parentProps) {
11486
11588
  pageSize: 5000,
11487
11589
  currentPage: 1,
11488
11590
  'qp-companyType-eq': '30'
11489
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11591
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11490
11592
  pageSize: 5000,
11491
11593
  currentPage: 1
11492
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11594
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11493
11595
  pageSize: 5000,
11494
11596
  currentPage: 1,
11495
11597
  'qp-companyType-eq': '20'
11496
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11598
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11497
11599
  formatSource(x, 0, 2, tableSearchForm);
11498
11600
  formatSource(x, 1, 3, tableSearchForm);
11499
11601
  formatSource(x, 2, 4, tableSearchForm);
@@ -11606,11 +11708,11 @@ function commonFun(type, prefixUrl, parentProps) {
11606
11708
  }
11607
11709
  }
11608
11710
  }];
11609
- var _queryHeaderParams9 = getQueryHeadersList({
11711
+ var _queryHeaderParams10 = getQueryHeadersList({
11610
11712
  querySelectHeadersList: querySelectHeadersList,
11611
11713
  extralHeaders: extralHeaders
11612
11714
  });
11613
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11715
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
11614
11716
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11615
11717
  var allList = firstElement && [firstElement, firstElement];
11616
11718
  formatSource(allList, 0, 2, tableSearchForm);
@@ -11772,7 +11874,7 @@ function commonFun(type, prefixUrl, parentProps) {
11772
11874
  }
11773
11875
  }
11774
11876
  }];
11775
- var _queryHeaderParams10 = getQueryHeadersList({
11877
+ var _queryHeaderParams11 = getQueryHeadersList({
11776
11878
  querySelectHeadersList: querySelectHeadersList,
11777
11879
  extralHeaders: extralHeaders
11778
11880
  });
@@ -11780,21 +11882,21 @@ function commonFun(type, prefixUrl, parentProps) {
11780
11882
  pageSize: 5000,
11781
11883
  currentPage: 1,
11782
11884
  'qp-companyType-eq': '30'
11783
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11885
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11784
11886
  pageSize: 5000,
11785
11887
  currentPage: 1,
11786
11888
  'qp-companyType-eq': '20'
11787
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11889
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11788
11890
  // pageSize: 5000,
11789
11891
  // currentPage: 1,
11790
11892
  'qp-status-eq': '1'
11791
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11893
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11792
11894
  pageSize: 5000,
11793
11895
  currentPage: 1
11794
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11896
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11795
11897
  pageSize: 5000,
11796
11898
  currentPage: 1
11797
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-accountingCode-in'))]).then(function (x) {
11899
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11798
11900
  formatSource(x, 0, 2, tableSearchForm);
11799
11901
  formatSource(x, 1, 3, tableSearchForm);
11800
11902
  formatSource(x, 2, 5, tableSearchForm);
@@ -11964,7 +12066,7 @@ function commonFun(type, prefixUrl, parentProps) {
11964
12066
  },
11965
12067
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
11966
12068
  }];
11967
- var _queryHeaderParams11 = getQueryHeadersList({
12069
+ var _queryHeaderParams12 = getQueryHeadersList({
11968
12070
  querySelectHeadersList: querySelectHeadersList,
11969
12071
  extralHeaders: extralHeaders
11970
12072
  });
@@ -11972,13 +12074,13 @@ function commonFun(type, prefixUrl, parentProps) {
11972
12074
  'qp-employeeCode-eq': getEmployeeCode(),
11973
12075
  'qp-realOrg-eq': true,
11974
12076
  'qp-status-eq': 10
11975
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12077
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11976
12078
  'qp-status-eq': 10,
11977
12079
  'qp-isMain-eq': 1,
11978
12080
  'qp-type-in': '1,2'
11979
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12081
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
11980
12082
  'qp-status-eq': 1
11981
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
12083
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
11982
12084
  var channelDisabledJude = function channelDisabledJude(data) {
11983
12085
  return data['parentCode'] === '0';
11984
12086
  }; // 所属销售渠道 树节点不能点判断
@@ -12216,7 +12318,7 @@ function commonFun(type, prefixUrl, parentProps) {
12216
12318
  name: 'qp-officeTelephone-like',
12217
12319
  label: '手机号'
12218
12320
  }];
12219
- var _queryHeaderParams12 = getQueryHeadersList({
12321
+ var _queryHeaderParams13 = getQueryHeadersList({
12220
12322
  querySelectHeadersList: querySelectHeadersList,
12221
12323
  extralHeaders: extralHeaders
12222
12324
  });
@@ -12224,7 +12326,7 @@ function commonFun(type, prefixUrl, parentProps) {
12224
12326
  pageSize: 5000,
12225
12327
  currentPage: 1,
12226
12328
  'qp-companyType-eq': 20
12227
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
12329
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12228
12330
  formatSource(x, 0, 2, tableSearchForm);
12229
12331
  });
12230
12332
  modalTableProps = _objectSpread2({
@@ -12333,13 +12435,13 @@ function commonFun(type, prefixUrl, parentProps) {
12333
12435
  name: 'qp-officeTelephone-like',
12334
12436
  label: '手机号'
12335
12437
  }]);
12336
- var _queryHeaderParams13 = getQueryHeadersList({
12438
+ var _queryHeaderParams14 = getQueryHeadersList({
12337
12439
  querySelectHeadersList: querySelectHeadersList,
12338
12440
  extralHeaders: extralHeaders
12339
12441
  });
12340
12442
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12341
12443
  'orgViewCode': 'administrative-organization-view'
12342
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
12444
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12343
12445
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12344
12446
  });
12345
12447
  modalTableProps = _objectSpread2({
@@ -12486,17 +12588,17 @@ function commonFun(type, prefixUrl, parentProps) {
12486
12588
  name: 'qp-remark-like',
12487
12589
  label: '备注'
12488
12590
  }];
12489
- var _queryHeaderParams14 = getQueryHeadersList({
12591
+ var _queryHeaderParams15 = getQueryHeadersList({
12490
12592
  querySelectHeadersList: querySelectHeadersList,
12491
12593
  extralHeaders: extralHeaders
12492
12594
  });
12493
12595
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12494
12596
  pageSize: 5000,
12495
12597
  currentPage: 1
12496
- }, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12598
+ }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12497
12599
  pageSize: 5000,
12498
12600
  currentPage: 1
12499
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12601
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12500
12602
  formatSource(x, 0, 2, tableSearchForm);
12501
12603
  formatSource(x, 1, 5, tableSearchForm);
12502
12604
  });
@@ -12666,14 +12768,14 @@ function commonFun(type, prefixUrl, parentProps) {
12666
12768
  }
12667
12769
  }
12668
12770
  }];
12669
- var _queryHeaderParams15 = getQueryHeadersList({
12771
+ var _queryHeaderParams16 = getQueryHeadersList({
12670
12772
  querySelectHeadersList: querySelectHeadersList,
12671
12773
  extralHeaders: extralHeaders
12672
12774
  });
12673
12775
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12674
12776
  pageSize: 5000,
12675
12777
  currentPage: 1
12676
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
12778
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12677
12779
  formatSource(x, 0, 2, tableSearchForm);
12678
12780
  });
12679
12781
  modalTableProps = _objectSpread2({
@@ -12770,7 +12872,7 @@ function commonFun(type, prefixUrl, parentProps) {
12770
12872
  }
12771
12873
  }
12772
12874
  }];
12773
- var _queryHeaderParams16 = getQueryHeadersList({
12875
+ var _queryHeaderParams17 = getQueryHeadersList({
12774
12876
  querySelectHeadersList: querySelectHeadersList,
12775
12877
  extralHeaders: extralHeaders
12776
12878
  });
@@ -12778,7 +12880,7 @@ function commonFun(type, prefixUrl, parentProps) {
12778
12880
  'qp-employeeCode-eq': getEmployeeCode(),
12779
12881
  'qp-realOrg-eq': true,
12780
12882
  'qp-status-eq': 10
12781
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
12883
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12782
12884
  formatSource(x, 0, 2, tableSearchForm);
12783
12885
  });
12784
12886
  modalTableProps = _objectSpread2({
@@ -12884,13 +12986,13 @@ function commonFun(type, prefixUrl, parentProps) {
12884
12986
  },
12885
12987
  initialSource: nodeType
12886
12988
  }];
12887
- var _queryHeaderParams17 = getQueryHeadersList({
12989
+ var _queryHeaderParams18 = getQueryHeadersList({
12888
12990
  querySelectHeadersList: querySelectHeadersList,
12889
12991
  extralHeaders: extralHeaders
12890
12992
  });
12891
12993
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12892
12994
  'qp-status-eq': 10
12893
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
12995
+ }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
12894
12996
  formatSource(x, 0, 2, tableSearchForm);
12895
12997
  });
12896
12998
  modalTableProps = _objectSpread2({
@@ -13216,13 +13318,13 @@ function commonFun(type, prefixUrl, parentProps) {
13216
13318
  },
13217
13319
  initialSource: nodeType
13218
13320
  }];
13219
- var _queryHeaderParams18 = getQueryHeadersList({
13321
+ var _queryHeaderParams19 = getQueryHeadersList({
13220
13322
  querySelectHeadersList: querySelectHeadersList,
13221
13323
  extralHeaders: extralHeaders
13222
13324
  });
13223
13325
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13224
13326
  'qp-status-eq': 10
13225
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13327
+ }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13226
13328
  formatSource(x, 0, 2, tableSearchForm);
13227
13329
  });
13228
13330
  modalTableProps = _objectSpread2({
package/dist/index.js CHANGED
@@ -11197,6 +11197,26 @@ function commonFun(type, prefixUrl, parentProps) {
11197
11197
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11198
11198
  sourceName: 'warehouseIds'
11199
11199
  }, requestConfigProp);
11200
+ var _queryHeaderParams7 = getQueryHeadersList({
11201
+ querySelectHeadersList: querySelectHeadersList,
11202
+ extralHeaders: extralHeaders
11203
+ });
11204
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11205
+ 'qp-status-eq': 10,
11206
+ 'qp-isMain-eq': 1,
11207
+ 'qp-type-in': '1,2'
11208
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11209
+ 'qp-status-eq': 1
11210
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11211
+ var channelDisabledJude = function channelDisabledJude(data) {
11212
+ return data['parentCode'] === '0';
11213
+ }; // 所属销售渠道 树节点不能点判断
11214
+ var areaDisabledJude = function areaDisabledJude(data) {
11215
+ return data['parent'] === '0';
11216
+ }; // 所属营销区域 树节点不能点判断
11217
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11218
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11219
+ });
11200
11220
  tableSearchForm = [{
11201
11221
  name: 'realWarehouseName*multiInput',
11202
11222
  label: '逻辑仓名称',
@@ -11220,6 +11240,70 @@ function commonFun(type, prefixUrl, parentProps) {
11220
11240
  },
11221
11241
  label: '管理大区',
11222
11242
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11243
+ }, {
11244
+ name: 'qp-channelCode-in',
11245
+ type: 'treeSelect',
11246
+ label: '销售渠道',
11247
+ field: {
11248
+ type: 'treeSelect',
11249
+ props: {
11250
+ multiple: true,
11251
+ treeData: [],
11252
+ treeCheckable: false,
11253
+ notFoundContent: '暂无数据',
11254
+ allowClear: true,
11255
+ showSearch: true,
11256
+ showArrow: true,
11257
+ maxTagCount: 1,
11258
+ optionFilterProp: 'children',
11259
+ filterOption: function filterOption(input, option) {
11260
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11261
+ },
11262
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11263
+ }
11264
+ }
11265
+ }, {
11266
+ name: 'qp-refCode-in',
11267
+ type: 'treeSelect',
11268
+ label: '营销区域',
11269
+ field: {
11270
+ type: 'treeSelect',
11271
+ props: {
11272
+ multiple: true,
11273
+ treeData: [],
11274
+ treeCheckable: false,
11275
+ notFoundContent: '暂无数据',
11276
+ allowClear: true,
11277
+ showSearch: true,
11278
+ showArrow: true,
11279
+ maxTagCount: 1,
11280
+ optionFilterProp: 'children',
11281
+ filterOption: function filterOption(input, option) {
11282
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11283
+ },
11284
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11285
+ }
11286
+ }
11287
+ }, {
11288
+ name: 'qp-type-in',
11289
+ type: 'select',
11290
+ label: '店铺性质',
11291
+ field: {
11292
+ type: 'select',
11293
+ props: {
11294
+ mode: 'multiple',
11295
+ notFoundContent: '暂无数据',
11296
+ allowClear: true,
11297
+ showSearch: true,
11298
+ showArrow: true,
11299
+ maxTagCount: 1,
11300
+ optionFilterProp: 'children',
11301
+ filterOption: function filterOption(input, option) {
11302
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11303
+ }
11304
+ }
11305
+ },
11306
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11223
11307
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11224
11308
  name: 'qp-isEnable-eq',
11225
11309
  type: 'select',
@@ -11248,10 +11332,28 @@ function commonFun(type, prefixUrl, parentProps) {
11248
11332
  render: function render(text) {
11249
11333
  return getDictionaryTextByValue$1('SC00004', text);
11250
11334
  }
11335
+ }, {
11336
+ title: '所属销售渠道',
11337
+ dataIndex: 'channelName',
11338
+ defaultSort: 4,
11339
+ width: 100
11340
+ }, {
11341
+ title: '营销区域',
11342
+ dataIndex: 'commonRelationAreaName',
11343
+ defaultSort: 5,
11344
+ width: 100
11345
+ }, {
11346
+ title: '店铺性质',
11347
+ dataIndex: 'type',
11348
+ defaultSort: 6,
11349
+ render: function render(text) {
11350
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11351
+ },
11352
+ width: 80
11251
11353
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11252
11354
  title: '状态',
11253
11355
  dataIndex: 'isEnable',
11254
- defaultSort: 4,
11356
+ defaultSort: 7,
11255
11357
  render: function render(text) {
11256
11358
  return getDictionaryTextByValue$1('SC00001', text);
11257
11359
  }
@@ -11317,13 +11419,13 @@ function commonFun(type, prefixUrl, parentProps) {
11317
11419
  label: '运营仓状态',
11318
11420
  initialSource: getDictionarySource$1('SC00001')
11319
11421
  }] : []));
11320
- var _queryHeaderParams7 = getQueryHeadersList({
11422
+ var _queryHeaderParams8 = getQueryHeadersList({
11321
11423
  querySelectHeadersList: querySelectHeadersList,
11322
11424
  extralHeaders: extralHeaders
11323
11425
  });
11324
11426
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11325
11427
  'qp-status-eq': 1
11326
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11428
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
11327
11429
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11328
11430
  });
11329
11431
  modalTableProps = _objectSpread2({
@@ -11501,7 +11603,7 @@ function commonFun(type, prefixUrl, parentProps) {
11501
11603
  label: '共享类型',
11502
11604
  initialSource: sharingTypeDataList
11503
11605
  }];
11504
- var _queryHeaderParams8 = getQueryHeadersList({
11606
+ var _queryHeaderParams9 = getQueryHeadersList({
11505
11607
  querySelectHeadersList: querySelectHeadersList,
11506
11608
  extralHeaders: extralHeaders
11507
11609
  });
@@ -11509,14 +11611,14 @@ function commonFun(type, prefixUrl, parentProps) {
11509
11611
  pageSize: 5000,
11510
11612
  currentPage: 1,
11511
11613
  'qp-companyType-eq': '30'
11512
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11614
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11513
11615
  pageSize: 5000,
11514
11616
  currentPage: 1
11515
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11617
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11516
11618
  pageSize: 5000,
11517
11619
  currentPage: 1,
11518
11620
  'qp-companyType-eq': '20'
11519
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11621
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11520
11622
  formatSource(x, 0, 2, tableSearchForm);
11521
11623
  formatSource(x, 1, 3, tableSearchForm);
11522
11624
  formatSource(x, 2, 4, tableSearchForm);
@@ -11629,11 +11731,11 @@ function commonFun(type, prefixUrl, parentProps) {
11629
11731
  }
11630
11732
  }
11631
11733
  }];
11632
- var _queryHeaderParams9 = getQueryHeadersList({
11734
+ var _queryHeaderParams10 = getQueryHeadersList({
11633
11735
  querySelectHeadersList: querySelectHeadersList,
11634
11736
  extralHeaders: extralHeaders
11635
11737
  });
11636
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11738
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
11637
11739
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11638
11740
  var allList = firstElement && [firstElement, firstElement];
11639
11741
  formatSource(allList, 0, 2, tableSearchForm);
@@ -11795,7 +11897,7 @@ function commonFun(type, prefixUrl, parentProps) {
11795
11897
  }
11796
11898
  }
11797
11899
  }];
11798
- var _queryHeaderParams10 = getQueryHeadersList({
11900
+ var _queryHeaderParams11 = getQueryHeadersList({
11799
11901
  querySelectHeadersList: querySelectHeadersList,
11800
11902
  extralHeaders: extralHeaders
11801
11903
  });
@@ -11803,21 +11905,21 @@ function commonFun(type, prefixUrl, parentProps) {
11803
11905
  pageSize: 5000,
11804
11906
  currentPage: 1,
11805
11907
  'qp-companyType-eq': '30'
11806
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11908
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11807
11909
  pageSize: 5000,
11808
11910
  currentPage: 1,
11809
11911
  'qp-companyType-eq': '20'
11810
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11912
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11811
11913
  // pageSize: 5000,
11812
11914
  // currentPage: 1,
11813
11915
  'qp-status-eq': '1'
11814
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11916
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11815
11917
  pageSize: 5000,
11816
11918
  currentPage: 1
11817
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11919
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11818
11920
  pageSize: 5000,
11819
11921
  currentPage: 1
11820
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-accountingCode-in'))]).then(function (x) {
11922
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11821
11923
  formatSource(x, 0, 2, tableSearchForm);
11822
11924
  formatSource(x, 1, 3, tableSearchForm);
11823
11925
  formatSource(x, 2, 5, tableSearchForm);
@@ -11987,7 +12089,7 @@ function commonFun(type, prefixUrl, parentProps) {
11987
12089
  },
11988
12090
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
11989
12091
  }];
11990
- var _queryHeaderParams11 = getQueryHeadersList({
12092
+ var _queryHeaderParams12 = getQueryHeadersList({
11991
12093
  querySelectHeadersList: querySelectHeadersList,
11992
12094
  extralHeaders: extralHeaders
11993
12095
  });
@@ -11995,13 +12097,13 @@ function commonFun(type, prefixUrl, parentProps) {
11995
12097
  'qp-employeeCode-eq': getEmployeeCode(),
11996
12098
  'qp-realOrg-eq': true,
11997
12099
  'qp-status-eq': 10
11998
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12100
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11999
12101
  'qp-status-eq': 10,
12000
12102
  'qp-isMain-eq': 1,
12001
12103
  'qp-type-in': '1,2'
12002
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12104
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12003
12105
  'qp-status-eq': 1
12004
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
12106
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12005
12107
  var channelDisabledJude = function channelDisabledJude(data) {
12006
12108
  return data['parentCode'] === '0';
12007
12109
  }; // 所属销售渠道 树节点不能点判断
@@ -12239,7 +12341,7 @@ function commonFun(type, prefixUrl, parentProps) {
12239
12341
  name: 'qp-officeTelephone-like',
12240
12342
  label: '手机号'
12241
12343
  }];
12242
- var _queryHeaderParams12 = getQueryHeadersList({
12344
+ var _queryHeaderParams13 = getQueryHeadersList({
12243
12345
  querySelectHeadersList: querySelectHeadersList,
12244
12346
  extralHeaders: extralHeaders
12245
12347
  });
@@ -12247,7 +12349,7 @@ function commonFun(type, prefixUrl, parentProps) {
12247
12349
  pageSize: 5000,
12248
12350
  currentPage: 1,
12249
12351
  'qp-companyType-eq': 20
12250
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
12352
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12251
12353
  formatSource(x, 0, 2, tableSearchForm);
12252
12354
  });
12253
12355
  modalTableProps = _objectSpread2({
@@ -12356,13 +12458,13 @@ function commonFun(type, prefixUrl, parentProps) {
12356
12458
  name: 'qp-officeTelephone-like',
12357
12459
  label: '手机号'
12358
12460
  }]);
12359
- var _queryHeaderParams13 = getQueryHeadersList({
12461
+ var _queryHeaderParams14 = getQueryHeadersList({
12360
12462
  querySelectHeadersList: querySelectHeadersList,
12361
12463
  extralHeaders: extralHeaders
12362
12464
  });
12363
12465
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12364
12466
  'orgViewCode': 'administrative-organization-view'
12365
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
12467
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12366
12468
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12367
12469
  });
12368
12470
  modalTableProps = _objectSpread2({
@@ -12509,17 +12611,17 @@ function commonFun(type, prefixUrl, parentProps) {
12509
12611
  name: 'qp-remark-like',
12510
12612
  label: '备注'
12511
12613
  }];
12512
- var _queryHeaderParams14 = getQueryHeadersList({
12614
+ var _queryHeaderParams15 = getQueryHeadersList({
12513
12615
  querySelectHeadersList: querySelectHeadersList,
12514
12616
  extralHeaders: extralHeaders
12515
12617
  });
12516
12618
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12517
12619
  pageSize: 5000,
12518
12620
  currentPage: 1
12519
- }, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12621
+ }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12520
12622
  pageSize: 5000,
12521
12623
  currentPage: 1
12522
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12624
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12523
12625
  formatSource(x, 0, 2, tableSearchForm);
12524
12626
  formatSource(x, 1, 5, tableSearchForm);
12525
12627
  });
@@ -12689,14 +12791,14 @@ function commonFun(type, prefixUrl, parentProps) {
12689
12791
  }
12690
12792
  }
12691
12793
  }];
12692
- var _queryHeaderParams15 = getQueryHeadersList({
12794
+ var _queryHeaderParams16 = getQueryHeadersList({
12693
12795
  querySelectHeadersList: querySelectHeadersList,
12694
12796
  extralHeaders: extralHeaders
12695
12797
  });
12696
12798
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12697
12799
  pageSize: 5000,
12698
12800
  currentPage: 1
12699
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
12801
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12700
12802
  formatSource(x, 0, 2, tableSearchForm);
12701
12803
  });
12702
12804
  modalTableProps = _objectSpread2({
@@ -12793,7 +12895,7 @@ function commonFun(type, prefixUrl, parentProps) {
12793
12895
  }
12794
12896
  }
12795
12897
  }];
12796
- var _queryHeaderParams16 = getQueryHeadersList({
12898
+ var _queryHeaderParams17 = getQueryHeadersList({
12797
12899
  querySelectHeadersList: querySelectHeadersList,
12798
12900
  extralHeaders: extralHeaders
12799
12901
  });
@@ -12801,7 +12903,7 @@ function commonFun(type, prefixUrl, parentProps) {
12801
12903
  'qp-employeeCode-eq': getEmployeeCode(),
12802
12904
  'qp-realOrg-eq': true,
12803
12905
  'qp-status-eq': 10
12804
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
12906
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12805
12907
  formatSource(x, 0, 2, tableSearchForm);
12806
12908
  });
12807
12909
  modalTableProps = _objectSpread2({
@@ -12907,13 +13009,13 @@ function commonFun(type, prefixUrl, parentProps) {
12907
13009
  },
12908
13010
  initialSource: nodeType
12909
13011
  }];
12910
- var _queryHeaderParams17 = getQueryHeadersList({
13012
+ var _queryHeaderParams18 = getQueryHeadersList({
12911
13013
  querySelectHeadersList: querySelectHeadersList,
12912
13014
  extralHeaders: extralHeaders
12913
13015
  });
12914
13016
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12915
13017
  'qp-status-eq': 10
12916
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13018
+ }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
12917
13019
  formatSource(x, 0, 2, tableSearchForm);
12918
13020
  });
12919
13021
  modalTableProps = _objectSpread2({
@@ -13239,13 +13341,13 @@ function commonFun(type, prefixUrl, parentProps) {
13239
13341
  },
13240
13342
  initialSource: nodeType
13241
13343
  }];
13242
- var _queryHeaderParams18 = getQueryHeadersList({
13344
+ var _queryHeaderParams19 = getQueryHeadersList({
13243
13345
  querySelectHeadersList: querySelectHeadersList,
13244
13346
  extralHeaders: extralHeaders
13245
13347
  });
13246
13348
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13247
13349
  'qp-status-eq': 10
13248
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13350
+ }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13249
13351
  formatSource(x, 0, 2, tableSearchForm);
13250
13352
  });
13251
13353
  modalTableProps = _objectSpread2({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.6",
3
+ "version": "4.2.0-alpha.6.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1198,12 +1198,84 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1198
1198
  sourceName: 'warehouseIds',
1199
1199
  ...requestConfigProp,
1200
1200
  }
1201
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1202
+ Promise.all([
1203
+ loadSelectSource(`/channel-manage/channelInfo/tree`, {
1204
+ 'qp-status-eq': 10,
1205
+ 'qp-isMain-eq': 1,
1206
+ 'qp-type-in': '1,2',
1207
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1208
+ loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1209
+ 'qp-status-eq': 1,
1210
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1211
+ ]).then((x: any)=>{
1212
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1213
+ 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)
1216
+ })
1201
1217
  tableSearchForm = [
1202
1218
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1203
1219
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1204
1220
  { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1205
1221
  { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1206
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1222
+ {
1223
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1224
+ type: 'treeSelect',
1225
+ props: {
1226
+ multiple: true,
1227
+ treeData: [],
1228
+ treeCheckable: false,
1229
+ notFoundContent: '暂无数据',
1230
+ allowClear: true,
1231
+ showSearch: true,
1232
+ showArrow: true,
1233
+ maxTagCount: 1,
1234
+ optionFilterProp: 'children',
1235
+ filterOption: (input: string, option: { props: { children: string } }) =>
1236
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1237
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1238
+ },
1239
+ }
1240
+ },
1241
+ {
1242
+ name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1243
+ type: 'treeSelect',
1244
+ props: {
1245
+ multiple: true,
1246
+ treeData: [],
1247
+ treeCheckable: false,
1248
+ notFoundContent: '暂无数据',
1249
+ allowClear: true,
1250
+ showSearch: true,
1251
+ showArrow: true,
1252
+ maxTagCount: 1,
1253
+ optionFilterProp: 'children',
1254
+ filterOption: (input: string, option: { props: { children: string } }) =>
1255
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1256
+
1257
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1258
+ },
1259
+ }
1260
+ },
1261
+ {
1262
+ name: 'qp-type-in', type: 'select', label: '店铺性质', field: {
1263
+ type: 'select',
1264
+ props: {
1265
+ mode: 'multiple',
1266
+ notFoundContent: '暂无数据',
1267
+ allowClear: true,
1268
+ showSearch: true,
1269
+ showArrow: true,
1270
+ maxTagCount: 1,
1271
+ optionFilterProp: 'children',
1272
+ filterOption: (input: string, option: { props: { children: string } }) =>
1273
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1274
+ },
1275
+ },
1276
+ initialSource: getDictionarySource('BUSINESS_StoreType')
1277
+ },
1278
+ ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1207
1279
  ]
1208
1280
  modalTableProps = {
1209
1281
  modalTableTitle: '选择逻辑仓',
@@ -1230,10 +1302,29 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1230
1302
  defaultSort: 3,
1231
1303
  render: (text: number) => getDictionaryTextByValue('SC00004', text),
1232
1304
  },
1305
+ {
1306
+ title: '所属销售渠道',
1307
+ dataIndex: 'channelName',
1308
+ defaultSort: 4,
1309
+ width: 100,
1310
+ },
1311
+ {
1312
+ title: '营销区域',
1313
+ dataIndex: 'commonRelationAreaName',
1314
+ defaultSort: 5,
1315
+ width: 100,
1316
+ },
1317
+ {
1318
+ title: '店铺性质',
1319
+ dataIndex: 'type',
1320
+ defaultSort: 6,
1321
+ render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
1322
+ width: 80,
1323
+ },
1233
1324
  ...(modalTableBusProps?.needStatusSearch?[{
1234
1325
  title: '状态',
1235
1326
  dataIndex: 'isEnable',
1236
- defaultSort: 4,
1327
+ defaultSort: 7,
1237
1328
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1238
1329
  }]:[]),
1239
1330
  ],