@bit-sun/business-component 4.2.0-alpha.26 → 4.2.0-alpha.27
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 +286 -15
- package/dist/index.js +286 -15
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +253 -0
package/dist/index.esm.js
CHANGED
|
@@ -12457,6 +12457,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12457
12457
|
noEmptySearchField: true
|
|
12458
12458
|
}, modalTableBusProps);
|
|
12459
12459
|
}
|
|
12460
|
+
if (type === 'shopFile3') {
|
|
12461
|
+
selectProps = _objectSpread2({
|
|
12462
|
+
placeholder: '输入商店编码或名称',
|
|
12463
|
+
renderTableColumns: [{
|
|
12464
|
+
title: '商店编码',
|
|
12465
|
+
dataIndex: 'code'
|
|
12466
|
+
}, {
|
|
12467
|
+
title: '商店名称',
|
|
12468
|
+
dataIndex: 'name'
|
|
12469
|
+
}]
|
|
12470
|
+
}, selectConfigProps);
|
|
12471
|
+
requestConfig = _objectSpread2({
|
|
12472
|
+
init: true,
|
|
12473
|
+
url: "".concat(prefixUrl.selectPrefix, "/store/doPagerPw"),
|
|
12474
|
+
filter: 'qp-name,code-orGroup,like',
|
|
12475
|
+
mappingTextField: 'name',
|
|
12476
|
+
mappingValueField: 'code',
|
|
12477
|
+
otherParams: _objectSpread2({
|
|
12478
|
+
sorter: 'desc-id',
|
|
12479
|
+
'qp-status-in': 10
|
|
12480
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
12481
|
+
sourceName: 'code'
|
|
12482
|
+
}, requestConfigProp);
|
|
12483
|
+
tableSearchForm = [{
|
|
12484
|
+
name: 'name*multiInput',
|
|
12485
|
+
label: '商店名称',
|
|
12486
|
+
type: 'multipleQueryInput'
|
|
12487
|
+
}, {
|
|
12488
|
+
name: 'code*multiInput',
|
|
12489
|
+
label: '商店编码',
|
|
12490
|
+
type: 'multipleQueryInput'
|
|
12491
|
+
}, {
|
|
12492
|
+
name: 'qp-type-in',
|
|
12493
|
+
type: 'select',
|
|
12494
|
+
label: '商店类型',
|
|
12495
|
+
initialSource: shopFile2Type
|
|
12496
|
+
},
|
|
12497
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12498
|
+
{
|
|
12499
|
+
name: 'qp-orgCode-in',
|
|
12500
|
+
type: 'select',
|
|
12501
|
+
label: '所属销售组织',
|
|
12502
|
+
field: {
|
|
12503
|
+
type: 'select',
|
|
12504
|
+
props: {
|
|
12505
|
+
mode: 'multiple',
|
|
12506
|
+
notFoundContent: '暂无数据',
|
|
12507
|
+
allowClear: true,
|
|
12508
|
+
showSearch: true,
|
|
12509
|
+
showArrow: true,
|
|
12510
|
+
maxTagCount: 1,
|
|
12511
|
+
optionFilterProp: 'children',
|
|
12512
|
+
filterOption: function filterOption(input, option) {
|
|
12513
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12514
|
+
}
|
|
12515
|
+
}
|
|
12516
|
+
}
|
|
12517
|
+
}, {
|
|
12518
|
+
name: 'qp-channelCode-in',
|
|
12519
|
+
type: 'treeSelect',
|
|
12520
|
+
label: '所属销售渠道',
|
|
12521
|
+
field: {
|
|
12522
|
+
type: 'treeSelect',
|
|
12523
|
+
props: {
|
|
12524
|
+
multiple: true,
|
|
12525
|
+
treeData: [],
|
|
12526
|
+
treeCheckable: false,
|
|
12527
|
+
notFoundContent: '暂无数据',
|
|
12528
|
+
allowClear: true,
|
|
12529
|
+
showSearch: true,
|
|
12530
|
+
showArrow: true,
|
|
12531
|
+
maxTagCount: 1,
|
|
12532
|
+
optionFilterProp: 'children',
|
|
12533
|
+
filterOption: function filterOption(input, option) {
|
|
12534
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12535
|
+
},
|
|
12536
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12537
|
+
}
|
|
12538
|
+
}
|
|
12539
|
+
}, {
|
|
12540
|
+
name: 'qp-commonRelationAreaCode-in',
|
|
12541
|
+
type: 'treeSelect',
|
|
12542
|
+
label: '营销区域',
|
|
12543
|
+
field: {
|
|
12544
|
+
type: 'treeSelect',
|
|
12545
|
+
props: {
|
|
12546
|
+
multiple: true,
|
|
12547
|
+
treeData: [],
|
|
12548
|
+
treeCheckable: false,
|
|
12549
|
+
notFoundContent: '暂无数据',
|
|
12550
|
+
allowClear: true,
|
|
12551
|
+
showSearch: true,
|
|
12552
|
+
showArrow: true,
|
|
12553
|
+
maxTagCount: 1,
|
|
12554
|
+
optionFilterProp: 'children',
|
|
12555
|
+
filterOption: function filterOption(input, option) {
|
|
12556
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12557
|
+
},
|
|
12558
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12559
|
+
}
|
|
12560
|
+
}
|
|
12561
|
+
}, {
|
|
12562
|
+
name: 'qp-businessType-in',
|
|
12563
|
+
type: 'select',
|
|
12564
|
+
label: '店铺性质',
|
|
12565
|
+
field: {
|
|
12566
|
+
type: 'select',
|
|
12567
|
+
props: {
|
|
12568
|
+
mode: 'multiple',
|
|
12569
|
+
notFoundContent: '暂无数据',
|
|
12570
|
+
allowClear: true,
|
|
12571
|
+
showSearch: true,
|
|
12572
|
+
showArrow: true,
|
|
12573
|
+
maxTagCount: 1,
|
|
12574
|
+
optionFilterProp: 'children',
|
|
12575
|
+
filterOption: function filterOption(input, option) {
|
|
12576
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12577
|
+
}
|
|
12578
|
+
}
|
|
12579
|
+
},
|
|
12580
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12581
|
+
}, {
|
|
12582
|
+
name: "qp-brandCode-in",
|
|
12583
|
+
label: "品牌",
|
|
12584
|
+
field: {
|
|
12585
|
+
type: 'select',
|
|
12586
|
+
props: {
|
|
12587
|
+
mode: 'multiple',
|
|
12588
|
+
notFoundContent: '暂无数据',
|
|
12589
|
+
allowClear: true,
|
|
12590
|
+
showSearch: true,
|
|
12591
|
+
showArrow: true,
|
|
12592
|
+
maxTagCount: 1,
|
|
12593
|
+
optionFilterProp: 'children',
|
|
12594
|
+
filterOption: function filterOption(input, option) {
|
|
12595
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12596
|
+
}
|
|
12597
|
+
}
|
|
12598
|
+
}
|
|
12599
|
+
}, {
|
|
12600
|
+
name: 'qp-physicalWarehouseCode-in',
|
|
12601
|
+
type: 'select',
|
|
12602
|
+
label: '物理仓库',
|
|
12603
|
+
field: {
|
|
12604
|
+
type: 'select',
|
|
12605
|
+
props: {
|
|
12606
|
+
notFoundContent: '暂无数据',
|
|
12607
|
+
allowClear: true,
|
|
12608
|
+
showSearch: true,
|
|
12609
|
+
showArrow: true,
|
|
12610
|
+
maxTagCount: 1,
|
|
12611
|
+
optionFilterProp: 'children',
|
|
12612
|
+
filterOption: function filterOption(input, option) {
|
|
12613
|
+
var _option$value;
|
|
12614
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12615
|
+
}
|
|
12616
|
+
}
|
|
12617
|
+
}
|
|
12618
|
+
}];
|
|
12619
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12620
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
12621
|
+
extralHeaders: extralHeaders
|
|
12622
|
+
});
|
|
12623
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12624
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12625
|
+
'qp-realOrg-eq': true,
|
|
12626
|
+
'qp-status-eq': 10
|
|
12627
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12628
|
+
'qp-status-eq': 10,
|
|
12629
|
+
'qp-isMain-eq': 1,
|
|
12630
|
+
'qp-type-in': '1,2'
|
|
12631
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12632
|
+
'qp-status-eq': 1
|
|
12633
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12634
|
+
pageSize: 5000,
|
|
12635
|
+
currentPage: 1,
|
|
12636
|
+
'ctl-withAuth': true
|
|
12637
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'ctl-withAuth')), loadSelectSource$1("/stock/physicalWarehouse", {
|
|
12638
|
+
pageSize: 5000,
|
|
12639
|
+
currentPage: 1,
|
|
12640
|
+
'qp-isEnable-eq': 1,
|
|
12641
|
+
sorter: 'desc-id'
|
|
12642
|
+
}, {
|
|
12643
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12644
|
+
})]).then(function (x) {
|
|
12645
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12646
|
+
return data['parentCode'] === '0';
|
|
12647
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12648
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12649
|
+
return data['parent'] === '0';
|
|
12650
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12651
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12652
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12653
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12654
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12655
|
+
formatSource(x, 4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
|
|
12656
|
+
});
|
|
12657
|
+
modalTableProps = _objectSpread2({
|
|
12658
|
+
modalTableTitle: '选择商店',
|
|
12659
|
+
tableSearchForm: tableSearchForm,
|
|
12660
|
+
tableColumns: [{
|
|
12661
|
+
title: '序号',
|
|
12662
|
+
dataIndex: 'keyIndex',
|
|
12663
|
+
defaultSort: 0,
|
|
12664
|
+
width: 60
|
|
12665
|
+
}, {
|
|
12666
|
+
title: '商店编码',
|
|
12667
|
+
dataIndex: 'code',
|
|
12668
|
+
defaultSort: 1,
|
|
12669
|
+
width: 100
|
|
12670
|
+
}, {
|
|
12671
|
+
title: '商店名称',
|
|
12672
|
+
dataIndex: 'name',
|
|
12673
|
+
defaultSort: 2,
|
|
12674
|
+
width: 120
|
|
12675
|
+
}, {
|
|
12676
|
+
title: '商店类型',
|
|
12677
|
+
dataIndex: 'type',
|
|
12678
|
+
defaultSort: 3,
|
|
12679
|
+
width: 100,
|
|
12680
|
+
render: function render(text) {
|
|
12681
|
+
var _shopFile2Type$find2;
|
|
12682
|
+
return (_shopFile2Type$find2 = shopFile2Type.find(function (i) {
|
|
12683
|
+
return i.value === text;
|
|
12684
|
+
})) === null || _shopFile2Type$find2 === void 0 ? void 0 : _shopFile2Type$find2.text;
|
|
12685
|
+
}
|
|
12686
|
+
}, {
|
|
12687
|
+
title: '启用状态',
|
|
12688
|
+
dataIndex: 'status',
|
|
12689
|
+
width: 80,
|
|
12690
|
+
render: function render(text) {
|
|
12691
|
+
var _shopFile2Status$find2;
|
|
12692
|
+
return (_shopFile2Status$find2 = shopFile2Status.find(function (i) {
|
|
12693
|
+
return i.value === text;
|
|
12694
|
+
})) === null || _shopFile2Status$find2 === void 0 ? void 0 : _shopFile2Status$find2.text;
|
|
12695
|
+
}
|
|
12696
|
+
}, {
|
|
12697
|
+
title: '所属销售组织',
|
|
12698
|
+
dataIndex: 'orgName',
|
|
12699
|
+
defaultSort: 4,
|
|
12700
|
+
width: 95
|
|
12701
|
+
}, {
|
|
12702
|
+
title: '所属销售渠道',
|
|
12703
|
+
dataIndex: 'channelName',
|
|
12704
|
+
defaultSort: 5,
|
|
12705
|
+
width: 100
|
|
12706
|
+
}, {
|
|
12707
|
+
title: '营销区域',
|
|
12708
|
+
dataIndex: 'commonRelationAreaName',
|
|
12709
|
+
defaultSort: 6,
|
|
12710
|
+
width: 100
|
|
12711
|
+
}, {
|
|
12712
|
+
title: '店铺性质',
|
|
12713
|
+
dataIndex: 'businessType',
|
|
12714
|
+
defaultSort: 7,
|
|
12715
|
+
render: function render(text) {
|
|
12716
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12717
|
+
},
|
|
12718
|
+
width: 80
|
|
12719
|
+
}, {
|
|
12720
|
+
title: '库存组织编码',
|
|
12721
|
+
dataIndex: 'physicalPhysicalWarehouseCode',
|
|
12722
|
+
render: function render(text) {
|
|
12723
|
+
return (text === null || text === void 0 ? void 0 : text.physicalWarehouseCode) || '-';
|
|
12724
|
+
},
|
|
12725
|
+
defaultSort: 8,
|
|
12726
|
+
width: 100
|
|
12727
|
+
}],
|
|
12728
|
+
noEmptySearchField: true
|
|
12729
|
+
}, modalTableBusProps);
|
|
12730
|
+
}
|
|
12460
12731
|
// 核算主体选择器(无弹窗)
|
|
12461
12732
|
if (type === 'accountingSubject') {
|
|
12462
12733
|
selectProps = _objectSpread2({
|
|
@@ -12618,7 +12889,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12618
12889
|
name: 'qp-officeTelephone-like',
|
|
12619
12890
|
label: '手机号'
|
|
12620
12891
|
}];
|
|
12621
|
-
var
|
|
12892
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12622
12893
|
querySelectHeadersList: querySelectHeadersList,
|
|
12623
12894
|
extralHeaders: extralHeaders
|
|
12624
12895
|
});
|
|
@@ -12626,7 +12897,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12626
12897
|
pageSize: 5000,
|
|
12627
12898
|
currentPage: 1,
|
|
12628
12899
|
'qp-companyType-eq': 20
|
|
12629
|
-
}, getQueryHeadersItem(
|
|
12900
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12630
12901
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12631
12902
|
});
|
|
12632
12903
|
modalTableProps = _objectSpread2({
|
|
@@ -12735,13 +13006,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
13006
|
name: 'qp-phone-like',
|
|
12736
13007
|
label: '手机号'
|
|
12737
13008
|
}]);
|
|
12738
|
-
var
|
|
13009
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12739
13010
|
querySelectHeadersList: querySelectHeadersList,
|
|
12740
13011
|
extralHeaders: extralHeaders
|
|
12741
13012
|
});
|
|
12742
13013
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12743
13014
|
'orgViewCode': 'administrative-organization-view'
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
13015
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12745
13016
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12746
13017
|
});
|
|
12747
13018
|
modalTableProps = _objectSpread2({
|
|
@@ -12888,17 +13159,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12888
13159
|
name: 'qp-remark-like',
|
|
12889
13160
|
label: '备注'
|
|
12890
13161
|
}];
|
|
12891
|
-
var
|
|
13162
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12892
13163
|
querySelectHeadersList: querySelectHeadersList,
|
|
12893
13164
|
extralHeaders: extralHeaders
|
|
12894
13165
|
});
|
|
12895
13166
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12896
13167
|
pageSize: 5000,
|
|
12897
13168
|
currentPage: 1
|
|
12898
|
-
}, getQueryHeadersItem(
|
|
13169
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12899
13170
|
pageSize: 5000,
|
|
12900
13171
|
currentPage: 1
|
|
12901
|
-
}, getQueryHeadersItem(
|
|
13172
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12902
13173
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12903
13174
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12904
13175
|
});
|
|
@@ -13068,14 +13339,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13068
13339
|
}
|
|
13069
13340
|
}
|
|
13070
13341
|
}];
|
|
13071
|
-
var
|
|
13342
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13072
13343
|
querySelectHeadersList: querySelectHeadersList,
|
|
13073
13344
|
extralHeaders: extralHeaders
|
|
13074
13345
|
});
|
|
13075
13346
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13076
13347
|
pageSize: 5000,
|
|
13077
13348
|
currentPage: 1
|
|
13078
|
-
}, getQueryHeadersItem(
|
|
13349
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13079
13350
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13080
13351
|
});
|
|
13081
13352
|
modalTableProps = _objectSpread2({
|
|
@@ -13172,7 +13443,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13172
13443
|
}
|
|
13173
13444
|
}
|
|
13174
13445
|
}];
|
|
13175
|
-
var
|
|
13446
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13176
13447
|
querySelectHeadersList: querySelectHeadersList,
|
|
13177
13448
|
extralHeaders: extralHeaders
|
|
13178
13449
|
});
|
|
@@ -13180,7 +13451,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13180
13451
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13181
13452
|
'qp-realOrg-eq': true,
|
|
13182
13453
|
'qp-status-eq': 10
|
|
13183
|
-
}, getQueryHeadersItem(
|
|
13454
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13184
13455
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13185
13456
|
});
|
|
13186
13457
|
modalTableProps = _objectSpread2({
|
|
@@ -13286,13 +13557,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13286
13557
|
},
|
|
13287
13558
|
initialSource: nodeType
|
|
13288
13559
|
}];
|
|
13289
|
-
var
|
|
13560
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13290
13561
|
querySelectHeadersList: querySelectHeadersList,
|
|
13291
13562
|
extralHeaders: extralHeaders
|
|
13292
13563
|
});
|
|
13293
13564
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13294
13565
|
'qp-status-eq': 10
|
|
13295
|
-
}, getQueryHeadersItem(
|
|
13566
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13296
13567
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13297
13568
|
});
|
|
13298
13569
|
modalTableProps = _objectSpread2({
|
|
@@ -13618,13 +13889,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13618
13889
|
},
|
|
13619
13890
|
initialSource: nodeType
|
|
13620
13891
|
}];
|
|
13621
|
-
var
|
|
13892
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13622
13893
|
querySelectHeadersList: querySelectHeadersList,
|
|
13623
13894
|
extralHeaders: extralHeaders
|
|
13624
13895
|
});
|
|
13625
13896
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13626
13897
|
'qp-status-eq': 10
|
|
13627
|
-
}, getQueryHeadersItem(
|
|
13898
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13628
13899
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13629
13900
|
});
|
|
13630
13901
|
modalTableProps = _objectSpread2({
|
package/dist/index.js
CHANGED
|
@@ -12480,6 +12480,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12480
12480
|
noEmptySearchField: true
|
|
12481
12481
|
}, modalTableBusProps);
|
|
12482
12482
|
}
|
|
12483
|
+
if (type === 'shopFile3') {
|
|
12484
|
+
selectProps = _objectSpread2({
|
|
12485
|
+
placeholder: '输入商店编码或名称',
|
|
12486
|
+
renderTableColumns: [{
|
|
12487
|
+
title: '商店编码',
|
|
12488
|
+
dataIndex: 'code'
|
|
12489
|
+
}, {
|
|
12490
|
+
title: '商店名称',
|
|
12491
|
+
dataIndex: 'name'
|
|
12492
|
+
}]
|
|
12493
|
+
}, selectConfigProps);
|
|
12494
|
+
requestConfig = _objectSpread2({
|
|
12495
|
+
init: true,
|
|
12496
|
+
url: "".concat(prefixUrl.selectPrefix, "/store/doPagerPw"),
|
|
12497
|
+
filter: 'qp-name,code-orGroup,like',
|
|
12498
|
+
mappingTextField: 'name',
|
|
12499
|
+
mappingValueField: 'code',
|
|
12500
|
+
otherParams: _objectSpread2({
|
|
12501
|
+
sorter: 'desc-id',
|
|
12502
|
+
'qp-status-in': 10
|
|
12503
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
12504
|
+
sourceName: 'code'
|
|
12505
|
+
}, requestConfigProp);
|
|
12506
|
+
tableSearchForm = [{
|
|
12507
|
+
name: 'name*multiInput',
|
|
12508
|
+
label: '商店名称',
|
|
12509
|
+
type: 'multipleQueryInput'
|
|
12510
|
+
}, {
|
|
12511
|
+
name: 'code*multiInput',
|
|
12512
|
+
label: '商店编码',
|
|
12513
|
+
type: 'multipleQueryInput'
|
|
12514
|
+
}, {
|
|
12515
|
+
name: 'qp-type-in',
|
|
12516
|
+
type: 'select',
|
|
12517
|
+
label: '商店类型',
|
|
12518
|
+
initialSource: shopFile2Type
|
|
12519
|
+
},
|
|
12520
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12521
|
+
{
|
|
12522
|
+
name: 'qp-orgCode-in',
|
|
12523
|
+
type: 'select',
|
|
12524
|
+
label: '所属销售组织',
|
|
12525
|
+
field: {
|
|
12526
|
+
type: 'select',
|
|
12527
|
+
props: {
|
|
12528
|
+
mode: 'multiple',
|
|
12529
|
+
notFoundContent: '暂无数据',
|
|
12530
|
+
allowClear: true,
|
|
12531
|
+
showSearch: true,
|
|
12532
|
+
showArrow: true,
|
|
12533
|
+
maxTagCount: 1,
|
|
12534
|
+
optionFilterProp: 'children',
|
|
12535
|
+
filterOption: function filterOption(input, option) {
|
|
12536
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12537
|
+
}
|
|
12538
|
+
}
|
|
12539
|
+
}
|
|
12540
|
+
}, {
|
|
12541
|
+
name: 'qp-channelCode-in',
|
|
12542
|
+
type: 'treeSelect',
|
|
12543
|
+
label: '所属销售渠道',
|
|
12544
|
+
field: {
|
|
12545
|
+
type: 'treeSelect',
|
|
12546
|
+
props: {
|
|
12547
|
+
multiple: true,
|
|
12548
|
+
treeData: [],
|
|
12549
|
+
treeCheckable: false,
|
|
12550
|
+
notFoundContent: '暂无数据',
|
|
12551
|
+
allowClear: true,
|
|
12552
|
+
showSearch: true,
|
|
12553
|
+
showArrow: true,
|
|
12554
|
+
maxTagCount: 1,
|
|
12555
|
+
optionFilterProp: 'children',
|
|
12556
|
+
filterOption: function filterOption(input, option) {
|
|
12557
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12558
|
+
},
|
|
12559
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12560
|
+
}
|
|
12561
|
+
}
|
|
12562
|
+
}, {
|
|
12563
|
+
name: 'qp-commonRelationAreaCode-in',
|
|
12564
|
+
type: 'treeSelect',
|
|
12565
|
+
label: '营销区域',
|
|
12566
|
+
field: {
|
|
12567
|
+
type: 'treeSelect',
|
|
12568
|
+
props: {
|
|
12569
|
+
multiple: true,
|
|
12570
|
+
treeData: [],
|
|
12571
|
+
treeCheckable: false,
|
|
12572
|
+
notFoundContent: '暂无数据',
|
|
12573
|
+
allowClear: true,
|
|
12574
|
+
showSearch: true,
|
|
12575
|
+
showArrow: true,
|
|
12576
|
+
maxTagCount: 1,
|
|
12577
|
+
optionFilterProp: 'children',
|
|
12578
|
+
filterOption: function filterOption(input, option) {
|
|
12579
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12580
|
+
},
|
|
12581
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12582
|
+
}
|
|
12583
|
+
}
|
|
12584
|
+
}, {
|
|
12585
|
+
name: 'qp-businessType-in',
|
|
12586
|
+
type: 'select',
|
|
12587
|
+
label: '店铺性质',
|
|
12588
|
+
field: {
|
|
12589
|
+
type: 'select',
|
|
12590
|
+
props: {
|
|
12591
|
+
mode: 'multiple',
|
|
12592
|
+
notFoundContent: '暂无数据',
|
|
12593
|
+
allowClear: true,
|
|
12594
|
+
showSearch: true,
|
|
12595
|
+
showArrow: true,
|
|
12596
|
+
maxTagCount: 1,
|
|
12597
|
+
optionFilterProp: 'children',
|
|
12598
|
+
filterOption: function filterOption(input, option) {
|
|
12599
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12600
|
+
}
|
|
12601
|
+
}
|
|
12602
|
+
},
|
|
12603
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12604
|
+
}, {
|
|
12605
|
+
name: "qp-brandCode-in",
|
|
12606
|
+
label: "品牌",
|
|
12607
|
+
field: {
|
|
12608
|
+
type: 'select',
|
|
12609
|
+
props: {
|
|
12610
|
+
mode: 'multiple',
|
|
12611
|
+
notFoundContent: '暂无数据',
|
|
12612
|
+
allowClear: true,
|
|
12613
|
+
showSearch: true,
|
|
12614
|
+
showArrow: true,
|
|
12615
|
+
maxTagCount: 1,
|
|
12616
|
+
optionFilterProp: 'children',
|
|
12617
|
+
filterOption: function filterOption(input, option) {
|
|
12618
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12619
|
+
}
|
|
12620
|
+
}
|
|
12621
|
+
}
|
|
12622
|
+
}, {
|
|
12623
|
+
name: 'qp-physicalWarehouseCode-in',
|
|
12624
|
+
type: 'select',
|
|
12625
|
+
label: '物理仓库',
|
|
12626
|
+
field: {
|
|
12627
|
+
type: 'select',
|
|
12628
|
+
props: {
|
|
12629
|
+
notFoundContent: '暂无数据',
|
|
12630
|
+
allowClear: true,
|
|
12631
|
+
showSearch: true,
|
|
12632
|
+
showArrow: true,
|
|
12633
|
+
maxTagCount: 1,
|
|
12634
|
+
optionFilterProp: 'children',
|
|
12635
|
+
filterOption: function filterOption(input, option) {
|
|
12636
|
+
var _option$value;
|
|
12637
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12638
|
+
}
|
|
12639
|
+
}
|
|
12640
|
+
}
|
|
12641
|
+
}];
|
|
12642
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12643
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
12644
|
+
extralHeaders: extralHeaders
|
|
12645
|
+
});
|
|
12646
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12647
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12648
|
+
'qp-realOrg-eq': true,
|
|
12649
|
+
'qp-status-eq': 10
|
|
12650
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12651
|
+
'qp-status-eq': 10,
|
|
12652
|
+
'qp-isMain-eq': 1,
|
|
12653
|
+
'qp-type-in': '1,2'
|
|
12654
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12655
|
+
'qp-status-eq': 1
|
|
12656
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12657
|
+
pageSize: 5000,
|
|
12658
|
+
currentPage: 1,
|
|
12659
|
+
'ctl-withAuth': true
|
|
12660
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'ctl-withAuth')), loadSelectSource$1("/stock/physicalWarehouse", {
|
|
12661
|
+
pageSize: 5000,
|
|
12662
|
+
currentPage: 1,
|
|
12663
|
+
'qp-isEnable-eq': 1,
|
|
12664
|
+
sorter: 'desc-id'
|
|
12665
|
+
}, {
|
|
12666
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12667
|
+
})]).then(function (x) {
|
|
12668
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12669
|
+
return data['parentCode'] === '0';
|
|
12670
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12671
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12672
|
+
return data['parent'] === '0';
|
|
12673
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12674
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12675
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12676
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12677
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12678
|
+
formatSource(x, 4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
|
|
12679
|
+
});
|
|
12680
|
+
modalTableProps = _objectSpread2({
|
|
12681
|
+
modalTableTitle: '选择商店',
|
|
12682
|
+
tableSearchForm: tableSearchForm,
|
|
12683
|
+
tableColumns: [{
|
|
12684
|
+
title: '序号',
|
|
12685
|
+
dataIndex: 'keyIndex',
|
|
12686
|
+
defaultSort: 0,
|
|
12687
|
+
width: 60
|
|
12688
|
+
}, {
|
|
12689
|
+
title: '商店编码',
|
|
12690
|
+
dataIndex: 'code',
|
|
12691
|
+
defaultSort: 1,
|
|
12692
|
+
width: 100
|
|
12693
|
+
}, {
|
|
12694
|
+
title: '商店名称',
|
|
12695
|
+
dataIndex: 'name',
|
|
12696
|
+
defaultSort: 2,
|
|
12697
|
+
width: 120
|
|
12698
|
+
}, {
|
|
12699
|
+
title: '商店类型',
|
|
12700
|
+
dataIndex: 'type',
|
|
12701
|
+
defaultSort: 3,
|
|
12702
|
+
width: 100,
|
|
12703
|
+
render: function render(text) {
|
|
12704
|
+
var _shopFile2Type$find2;
|
|
12705
|
+
return (_shopFile2Type$find2 = shopFile2Type.find(function (i) {
|
|
12706
|
+
return i.value === text;
|
|
12707
|
+
})) === null || _shopFile2Type$find2 === void 0 ? void 0 : _shopFile2Type$find2.text;
|
|
12708
|
+
}
|
|
12709
|
+
}, {
|
|
12710
|
+
title: '启用状态',
|
|
12711
|
+
dataIndex: 'status',
|
|
12712
|
+
width: 80,
|
|
12713
|
+
render: function render(text) {
|
|
12714
|
+
var _shopFile2Status$find2;
|
|
12715
|
+
return (_shopFile2Status$find2 = shopFile2Status.find(function (i) {
|
|
12716
|
+
return i.value === text;
|
|
12717
|
+
})) === null || _shopFile2Status$find2 === void 0 ? void 0 : _shopFile2Status$find2.text;
|
|
12718
|
+
}
|
|
12719
|
+
}, {
|
|
12720
|
+
title: '所属销售组织',
|
|
12721
|
+
dataIndex: 'orgName',
|
|
12722
|
+
defaultSort: 4,
|
|
12723
|
+
width: 95
|
|
12724
|
+
}, {
|
|
12725
|
+
title: '所属销售渠道',
|
|
12726
|
+
dataIndex: 'channelName',
|
|
12727
|
+
defaultSort: 5,
|
|
12728
|
+
width: 100
|
|
12729
|
+
}, {
|
|
12730
|
+
title: '营销区域',
|
|
12731
|
+
dataIndex: 'commonRelationAreaName',
|
|
12732
|
+
defaultSort: 6,
|
|
12733
|
+
width: 100
|
|
12734
|
+
}, {
|
|
12735
|
+
title: '店铺性质',
|
|
12736
|
+
dataIndex: 'businessType',
|
|
12737
|
+
defaultSort: 7,
|
|
12738
|
+
render: function render(text) {
|
|
12739
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12740
|
+
},
|
|
12741
|
+
width: 80
|
|
12742
|
+
}, {
|
|
12743
|
+
title: '库存组织编码',
|
|
12744
|
+
dataIndex: 'physicalPhysicalWarehouseCode',
|
|
12745
|
+
render: function render(text) {
|
|
12746
|
+
return (text === null || text === void 0 ? void 0 : text.physicalWarehouseCode) || '-';
|
|
12747
|
+
},
|
|
12748
|
+
defaultSort: 8,
|
|
12749
|
+
width: 100
|
|
12750
|
+
}],
|
|
12751
|
+
noEmptySearchField: true
|
|
12752
|
+
}, modalTableBusProps);
|
|
12753
|
+
}
|
|
12483
12754
|
// 核算主体选择器(无弹窗)
|
|
12484
12755
|
if (type === 'accountingSubject') {
|
|
12485
12756
|
selectProps = _objectSpread2({
|
|
@@ -12641,7 +12912,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12641
12912
|
name: 'qp-officeTelephone-like',
|
|
12642
12913
|
label: '手机号'
|
|
12643
12914
|
}];
|
|
12644
|
-
var
|
|
12915
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12645
12916
|
querySelectHeadersList: querySelectHeadersList,
|
|
12646
12917
|
extralHeaders: extralHeaders
|
|
12647
12918
|
});
|
|
@@ -12649,7 +12920,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12649
12920
|
pageSize: 5000,
|
|
12650
12921
|
currentPage: 1,
|
|
12651
12922
|
'qp-companyType-eq': 20
|
|
12652
|
-
}, getQueryHeadersItem(
|
|
12923
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12653
12924
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12654
12925
|
});
|
|
12655
12926
|
modalTableProps = _objectSpread2({
|
|
@@ -12758,13 +13029,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12758
13029
|
name: 'qp-phone-like',
|
|
12759
13030
|
label: '手机号'
|
|
12760
13031
|
}]);
|
|
12761
|
-
var
|
|
13032
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12762
13033
|
querySelectHeadersList: querySelectHeadersList,
|
|
12763
13034
|
extralHeaders: extralHeaders
|
|
12764
13035
|
});
|
|
12765
13036
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12766
13037
|
'orgViewCode': 'administrative-organization-view'
|
|
12767
|
-
}, getQueryHeadersItem(
|
|
13038
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12768
13039
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12769
13040
|
});
|
|
12770
13041
|
modalTableProps = _objectSpread2({
|
|
@@ -12911,17 +13182,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12911
13182
|
name: 'qp-remark-like',
|
|
12912
13183
|
label: '备注'
|
|
12913
13184
|
}];
|
|
12914
|
-
var
|
|
13185
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12915
13186
|
querySelectHeadersList: querySelectHeadersList,
|
|
12916
13187
|
extralHeaders: extralHeaders
|
|
12917
13188
|
});
|
|
12918
13189
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12919
13190
|
pageSize: 5000,
|
|
12920
13191
|
currentPage: 1
|
|
12921
|
-
}, getQueryHeadersItem(
|
|
13192
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12922
13193
|
pageSize: 5000,
|
|
12923
13194
|
currentPage: 1
|
|
12924
|
-
}, getQueryHeadersItem(
|
|
13195
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12925
13196
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12926
13197
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12927
13198
|
});
|
|
@@ -13091,14 +13362,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13091
13362
|
}
|
|
13092
13363
|
}
|
|
13093
13364
|
}];
|
|
13094
|
-
var
|
|
13365
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13095
13366
|
querySelectHeadersList: querySelectHeadersList,
|
|
13096
13367
|
extralHeaders: extralHeaders
|
|
13097
13368
|
});
|
|
13098
13369
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13099
13370
|
pageSize: 5000,
|
|
13100
13371
|
currentPage: 1
|
|
13101
|
-
}, getQueryHeadersItem(
|
|
13372
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13102
13373
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13103
13374
|
});
|
|
13104
13375
|
modalTableProps = _objectSpread2({
|
|
@@ -13195,7 +13466,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13195
13466
|
}
|
|
13196
13467
|
}
|
|
13197
13468
|
}];
|
|
13198
|
-
var
|
|
13469
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13199
13470
|
querySelectHeadersList: querySelectHeadersList,
|
|
13200
13471
|
extralHeaders: extralHeaders
|
|
13201
13472
|
});
|
|
@@ -13203,7 +13474,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13203
13474
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13204
13475
|
'qp-realOrg-eq': true,
|
|
13205
13476
|
'qp-status-eq': 10
|
|
13206
|
-
}, getQueryHeadersItem(
|
|
13477
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13207
13478
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13208
13479
|
});
|
|
13209
13480
|
modalTableProps = _objectSpread2({
|
|
@@ -13309,13 +13580,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13309
13580
|
},
|
|
13310
13581
|
initialSource: nodeType
|
|
13311
13582
|
}];
|
|
13312
|
-
var
|
|
13583
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13313
13584
|
querySelectHeadersList: querySelectHeadersList,
|
|
13314
13585
|
extralHeaders: extralHeaders
|
|
13315
13586
|
});
|
|
13316
13587
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13317
13588
|
'qp-status-eq': 10
|
|
13318
|
-
}, getQueryHeadersItem(
|
|
13589
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13319
13590
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13320
13591
|
});
|
|
13321
13592
|
modalTableProps = _objectSpread2({
|
|
@@ -13641,13 +13912,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13641
13912
|
},
|
|
13642
13913
|
initialSource: nodeType
|
|
13643
13914
|
}];
|
|
13644
|
-
var
|
|
13915
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13645
13916
|
querySelectHeadersList: querySelectHeadersList,
|
|
13646
13917
|
extralHeaders: extralHeaders
|
|
13647
13918
|
});
|
|
13648
13919
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13649
13920
|
'qp-status-eq': 10
|
|
13650
|
-
}, getQueryHeadersItem(
|
|
13921
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13651
13922
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13652
13923
|
});
|
|
13653
13924
|
modalTableProps = _objectSpread2({
|
package/package.json
CHANGED
|
@@ -2307,7 +2307,260 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2307
2307
|
...modalTableBusProps
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
2310
|
+
if(type === 'shopFile3') {
|
|
2311
|
+
selectProps = {
|
|
2312
|
+
placeholder: '输入商店编码或名称',
|
|
2313
|
+
renderTableColumns: [
|
|
2314
|
+
{
|
|
2315
|
+
title: '商店编码',
|
|
2316
|
+
dataIndex: 'code',
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
title: '商店名称',
|
|
2320
|
+
dataIndex: 'name',
|
|
2321
|
+
},
|
|
2322
|
+
],
|
|
2323
|
+
...selectConfigProps,
|
|
2324
|
+
}
|
|
2325
|
+
requestConfig = {
|
|
2326
|
+
init: true,
|
|
2327
|
+
url: `${prefixUrl.selectPrefix}/store/doPagerPw`,
|
|
2328
|
+
filter: 'qp-name,code-orGroup,like', // 过滤参数
|
|
2329
|
+
mappingTextField: 'name',
|
|
2330
|
+
mappingValueField: 'code',
|
|
2331
|
+
otherParams: {
|
|
2332
|
+
sorter: 'desc-id',
|
|
2333
|
+
'qp-status-in': 10,
|
|
2334
|
+
...(requestConfigProp?.addOtherParams || {}),
|
|
2335
|
+
}, // 默认参数
|
|
2336
|
+
sourceName: 'code',
|
|
2337
|
+
...requestConfigProp,
|
|
2338
|
+
}
|
|
2339
|
+
tableSearchForm = [
|
|
2340
|
+
{ name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
|
|
2341
|
+
{ name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
|
|
2342
|
+
{ name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
|
|
2343
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
2344
|
+
{ name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
2345
|
+
type: 'select',
|
|
2346
|
+
props: {
|
|
2347
|
+
mode: 'multiple',
|
|
2348
|
+
notFoundContent: '暂无数据',
|
|
2349
|
+
allowClear: true,
|
|
2350
|
+
showSearch: true,
|
|
2351
|
+
showArrow: true,
|
|
2352
|
+
maxTagCount: 1,
|
|
2353
|
+
optionFilterProp: 'children',
|
|
2354
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2355
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2356
|
+
},
|
|
2357
|
+
} },
|
|
2358
|
+
{ name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
|
|
2359
|
+
type: 'treeSelect',
|
|
2360
|
+
props: {
|
|
2361
|
+
multiple: true,
|
|
2362
|
+
treeData: [],
|
|
2363
|
+
treeCheckable: false,
|
|
2364
|
+
notFoundContent: '暂无数据',
|
|
2365
|
+
allowClear: true,
|
|
2366
|
+
showSearch: true,
|
|
2367
|
+
showArrow: true,
|
|
2368
|
+
maxTagCount: 1,
|
|
2369
|
+
optionFilterProp: 'children',
|
|
2370
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2371
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2372
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2373
|
+
},
|
|
2374
|
+
} },
|
|
2375
|
+
{ name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
2376
|
+
type: 'treeSelect',
|
|
2377
|
+
props: {
|
|
2378
|
+
multiple: true,
|
|
2379
|
+
treeData: [],
|
|
2380
|
+
treeCheckable: false,
|
|
2381
|
+
notFoundContent: '暂无数据',
|
|
2382
|
+
allowClear: true,
|
|
2383
|
+
showSearch: true,
|
|
2384
|
+
showArrow: true,
|
|
2385
|
+
maxTagCount: 1,
|
|
2386
|
+
optionFilterProp: 'children',
|
|
2387
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2388
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2310
2389
|
|
|
2390
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2391
|
+
},
|
|
2392
|
+
} },
|
|
2393
|
+
{ name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
|
|
2394
|
+
type: 'select',
|
|
2395
|
+
props: {
|
|
2396
|
+
mode: 'multiple',
|
|
2397
|
+
notFoundContent: '暂无数据',
|
|
2398
|
+
allowClear: true,
|
|
2399
|
+
showSearch: true,
|
|
2400
|
+
showArrow: true,
|
|
2401
|
+
maxTagCount: 1,
|
|
2402
|
+
optionFilterProp: 'children',
|
|
2403
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2404
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2405
|
+
},
|
|
2406
|
+
} ,
|
|
2407
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
name: "qp-brandCode-in",
|
|
2411
|
+
label: "品牌",
|
|
2412
|
+
field: {
|
|
2413
|
+
type:'select',
|
|
2414
|
+
props: {
|
|
2415
|
+
mode: 'multiple',
|
|
2416
|
+
notFoundContent: '暂无数据',
|
|
2417
|
+
allowClear: true,
|
|
2418
|
+
showSearch: true,
|
|
2419
|
+
showArrow: true,
|
|
2420
|
+
maxTagCount: 1,
|
|
2421
|
+
optionFilterProp: 'children',
|
|
2422
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2423
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2424
|
+
},
|
|
2425
|
+
},
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
name: 'qp-physicalWarehouseCode-in',
|
|
2429
|
+
type: 'select',
|
|
2430
|
+
label: '物理仓库',
|
|
2431
|
+
field: {
|
|
2432
|
+
type: 'select',
|
|
2433
|
+
props: {
|
|
2434
|
+
notFoundContent: '暂无数据',
|
|
2435
|
+
allowClear: true,
|
|
2436
|
+
showSearch: true,
|
|
2437
|
+
showArrow: true,
|
|
2438
|
+
maxTagCount: 1,
|
|
2439
|
+
optionFilterProp: 'children',
|
|
2440
|
+
filterOption: (
|
|
2441
|
+
input: string,
|
|
2442
|
+
option: { props: { children: string } },
|
|
2443
|
+
) =>
|
|
2444
|
+
(option?.value ?? '').toLowerCase().includes(input.toLowerCase()),
|
|
2445
|
+
},
|
|
2446
|
+
},
|
|
2447
|
+
},
|
|
2448
|
+
]
|
|
2449
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2450
|
+
Promise.all([
|
|
2451
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
2452
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
2453
|
+
'qp-realOrg-eq': true,
|
|
2454
|
+
'qp-status-eq': 10
|
|
2455
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2456
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
|
|
2457
|
+
'qp-status-eq': 10,
|
|
2458
|
+
'qp-isMain-eq': 1,
|
|
2459
|
+
'qp-type-in': '1,2',
|
|
2460
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2461
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
2462
|
+
'qp-status-eq': 1,
|
|
2463
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2464
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
2465
|
+
pageSize: 5000,
|
|
2466
|
+
currentPage: 1,
|
|
2467
|
+
'ctl-withAuth': true,
|
|
2468
|
+
},getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
|
|
2469
|
+
loadSelectSource(
|
|
2470
|
+
`/stock/physicalWarehouse`,
|
|
2471
|
+
{
|
|
2472
|
+
pageSize: 5000,
|
|
2473
|
+
currentPage: 1,
|
|
2474
|
+
'qp-isEnable-eq': 1,
|
|
2475
|
+
sorter: 'desc-id',
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
headers: {
|
|
2479
|
+
...extralHeaders,
|
|
2480
|
+
},
|
|
2481
|
+
},
|
|
2482
|
+
),
|
|
2483
|
+
]).then((x: any)=>{
|
|
2484
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2485
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2486
|
+
formatSource(x,0, 3, tableSearchForm);
|
|
2487
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2488
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2489
|
+
formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
2490
|
+
formatSource(x,4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
|
|
2491
|
+
})
|
|
2492
|
+
modalTableProps = {
|
|
2493
|
+
modalTableTitle: '选择商店',
|
|
2494
|
+
tableSearchForm,
|
|
2495
|
+
tableColumns: [
|
|
2496
|
+
{
|
|
2497
|
+
title: '序号',
|
|
2498
|
+
dataIndex: 'keyIndex',
|
|
2499
|
+
defaultSort: 0,
|
|
2500
|
+
width: 60,
|
|
2501
|
+
},
|
|
2502
|
+
{
|
|
2503
|
+
title: '商店编码',
|
|
2504
|
+
dataIndex: 'code',
|
|
2505
|
+
defaultSort: 1,
|
|
2506
|
+
width: 100,
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
title: '商店名称',
|
|
2510
|
+
dataIndex: 'name',
|
|
2511
|
+
defaultSort: 2,
|
|
2512
|
+
width: 120,
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
title: '商店类型',
|
|
2516
|
+
dataIndex: 'type',
|
|
2517
|
+
defaultSort: 3,
|
|
2518
|
+
width: 100,
|
|
2519
|
+
render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
title: '启用状态',
|
|
2523
|
+
dataIndex: 'status',
|
|
2524
|
+
width: 80,
|
|
2525
|
+
render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
title: '所属销售组织',
|
|
2529
|
+
dataIndex: 'orgName',
|
|
2530
|
+
defaultSort: 4,
|
|
2531
|
+
width: 95,
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
title: '所属销售渠道',
|
|
2535
|
+
dataIndex: 'channelName',
|
|
2536
|
+
defaultSort: 5,
|
|
2537
|
+
width: 100,
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
title: '营销区域',
|
|
2541
|
+
dataIndex: 'commonRelationAreaName',
|
|
2542
|
+
defaultSort: 6,
|
|
2543
|
+
width: 100,
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
title: '店铺性质',
|
|
2547
|
+
dataIndex: 'businessType',
|
|
2548
|
+
defaultSort: 7,
|
|
2549
|
+
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
2550
|
+
width: 80,
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
title: '库存组织编码',
|
|
2554
|
+
dataIndex: 'physicalPhysicalWarehouseCode',
|
|
2555
|
+
render: (text: any) => text?.physicalWarehouseCode || '-',
|
|
2556
|
+
defaultSort: 8,
|
|
2557
|
+
width: 100,
|
|
2558
|
+
}
|
|
2559
|
+
],
|
|
2560
|
+
noEmptySearchField: true,
|
|
2561
|
+
...modalTableBusProps
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2311
2564
|
// 核算主体选择器(无弹窗)
|
|
2312
2565
|
if(type === 'accountingSubject') {
|
|
2313
2566
|
selectProps = {
|