@bit-sun/business-component 4.2.0-alpha.25 → 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
CHANGED
|
@@ -4108,7 +4108,8 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4108
4108
|
};
|
|
4109
4109
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4110
4110
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4111
|
-
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4111
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4112
|
+
if (totalRows == 3) return 403; // modal弹窗760 调整为700 适应小屏
|
|
4112
4113
|
return 411 - totalRows * 10;
|
|
4113
4114
|
};
|
|
4114
4115
|
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
@@ -10503,6 +10504,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10503
10504
|
}
|
|
10504
10505
|
}
|
|
10505
10506
|
}
|
|
10507
|
+
}, {
|
|
10508
|
+
name: 'qp-skcCode-like',
|
|
10509
|
+
label: 'SKC编码'
|
|
10506
10510
|
}];
|
|
10507
10511
|
var defaultQSHL = [{
|
|
10508
10512
|
isOpen: true,
|
|
@@ -12453,6 +12457,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12453
12457
|
noEmptySearchField: true
|
|
12454
12458
|
}, modalTableBusProps);
|
|
12455
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
|
+
}
|
|
12456
12731
|
// 核算主体选择器(无弹窗)
|
|
12457
12732
|
if (type === 'accountingSubject') {
|
|
12458
12733
|
selectProps = _objectSpread2({
|
|
@@ -12614,7 +12889,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12614
12889
|
name: 'qp-officeTelephone-like',
|
|
12615
12890
|
label: '手机号'
|
|
12616
12891
|
}];
|
|
12617
|
-
var
|
|
12892
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12618
12893
|
querySelectHeadersList: querySelectHeadersList,
|
|
12619
12894
|
extralHeaders: extralHeaders
|
|
12620
12895
|
});
|
|
@@ -12622,7 +12897,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12622
12897
|
pageSize: 5000,
|
|
12623
12898
|
currentPage: 1,
|
|
12624
12899
|
'qp-companyType-eq': 20
|
|
12625
|
-
}, getQueryHeadersItem(
|
|
12900
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12626
12901
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12627
12902
|
});
|
|
12628
12903
|
modalTableProps = _objectSpread2({
|
|
@@ -12731,13 +13006,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12731
13006
|
name: 'qp-phone-like',
|
|
12732
13007
|
label: '手机号'
|
|
12733
13008
|
}]);
|
|
12734
|
-
var
|
|
13009
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12735
13010
|
querySelectHeadersList: querySelectHeadersList,
|
|
12736
13011
|
extralHeaders: extralHeaders
|
|
12737
13012
|
});
|
|
12738
13013
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12739
13014
|
'orgViewCode': 'administrative-organization-view'
|
|
12740
|
-
}, getQueryHeadersItem(
|
|
13015
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12741
13016
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12742
13017
|
});
|
|
12743
13018
|
modalTableProps = _objectSpread2({
|
|
@@ -12884,17 +13159,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12884
13159
|
name: 'qp-remark-like',
|
|
12885
13160
|
label: '备注'
|
|
12886
13161
|
}];
|
|
12887
|
-
var
|
|
13162
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12888
13163
|
querySelectHeadersList: querySelectHeadersList,
|
|
12889
13164
|
extralHeaders: extralHeaders
|
|
12890
13165
|
});
|
|
12891
13166
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12892
13167
|
pageSize: 5000,
|
|
12893
13168
|
currentPage: 1
|
|
12894
|
-
}, getQueryHeadersItem(
|
|
13169
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12895
13170
|
pageSize: 5000,
|
|
12896
13171
|
currentPage: 1
|
|
12897
|
-
}, getQueryHeadersItem(
|
|
13172
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12898
13173
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12899
13174
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12900
13175
|
});
|
|
@@ -13064,14 +13339,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13064
13339
|
}
|
|
13065
13340
|
}
|
|
13066
13341
|
}];
|
|
13067
|
-
var
|
|
13342
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13068
13343
|
querySelectHeadersList: querySelectHeadersList,
|
|
13069
13344
|
extralHeaders: extralHeaders
|
|
13070
13345
|
});
|
|
13071
13346
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13072
13347
|
pageSize: 5000,
|
|
13073
13348
|
currentPage: 1
|
|
13074
|
-
}, getQueryHeadersItem(
|
|
13349
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13075
13350
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13076
13351
|
});
|
|
13077
13352
|
modalTableProps = _objectSpread2({
|
|
@@ -13168,7 +13443,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13168
13443
|
}
|
|
13169
13444
|
}
|
|
13170
13445
|
}];
|
|
13171
|
-
var
|
|
13446
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13172
13447
|
querySelectHeadersList: querySelectHeadersList,
|
|
13173
13448
|
extralHeaders: extralHeaders
|
|
13174
13449
|
});
|
|
@@ -13176,7 +13451,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13176
13451
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13177
13452
|
'qp-realOrg-eq': true,
|
|
13178
13453
|
'qp-status-eq': 10
|
|
13179
|
-
}, getQueryHeadersItem(
|
|
13454
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13180
13455
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13181
13456
|
});
|
|
13182
13457
|
modalTableProps = _objectSpread2({
|
|
@@ -13282,13 +13557,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13282
13557
|
},
|
|
13283
13558
|
initialSource: nodeType
|
|
13284
13559
|
}];
|
|
13285
|
-
var
|
|
13560
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13286
13561
|
querySelectHeadersList: querySelectHeadersList,
|
|
13287
13562
|
extralHeaders: extralHeaders
|
|
13288
13563
|
});
|
|
13289
13564
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13290
13565
|
'qp-status-eq': 10
|
|
13291
|
-
}, getQueryHeadersItem(
|
|
13566
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13292
13567
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13293
13568
|
});
|
|
13294
13569
|
modalTableProps = _objectSpread2({
|
|
@@ -13614,13 +13889,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13614
13889
|
},
|
|
13615
13890
|
initialSource: nodeType
|
|
13616
13891
|
}];
|
|
13617
|
-
var
|
|
13892
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13618
13893
|
querySelectHeadersList: querySelectHeadersList,
|
|
13619
13894
|
extralHeaders: extralHeaders
|
|
13620
13895
|
});
|
|
13621
13896
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13622
13897
|
'qp-status-eq': 10
|
|
13623
|
-
}, getQueryHeadersItem(
|
|
13898
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13624
13899
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13625
13900
|
});
|
|
13626
13901
|
modalTableProps = _objectSpread2({
|
package/dist/index.js
CHANGED
|
@@ -4131,7 +4131,8 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4131
4131
|
};
|
|
4132
4132
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4133
4133
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4134
|
-
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4134
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4135
|
+
if (totalRows == 3) return 403; // modal弹窗760 调整为700 适应小屏
|
|
4135
4136
|
return 411 - totalRows * 10;
|
|
4136
4137
|
};
|
|
4137
4138
|
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
@@ -10526,6 +10527,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10526
10527
|
}
|
|
10527
10528
|
}
|
|
10528
10529
|
}
|
|
10530
|
+
}, {
|
|
10531
|
+
name: 'qp-skcCode-like',
|
|
10532
|
+
label: 'SKC编码'
|
|
10529
10533
|
}];
|
|
10530
10534
|
var defaultQSHL = [{
|
|
10531
10535
|
isOpen: true,
|
|
@@ -12476,6 +12480,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12476
12480
|
noEmptySearchField: true
|
|
12477
12481
|
}, modalTableBusProps);
|
|
12478
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
|
+
}
|
|
12479
12754
|
// 核算主体选择器(无弹窗)
|
|
12480
12755
|
if (type === 'accountingSubject') {
|
|
12481
12756
|
selectProps = _objectSpread2({
|
|
@@ -12637,7 +12912,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12637
12912
|
name: 'qp-officeTelephone-like',
|
|
12638
12913
|
label: '手机号'
|
|
12639
12914
|
}];
|
|
12640
|
-
var
|
|
12915
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12641
12916
|
querySelectHeadersList: querySelectHeadersList,
|
|
12642
12917
|
extralHeaders: extralHeaders
|
|
12643
12918
|
});
|
|
@@ -12645,7 +12920,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12645
12920
|
pageSize: 5000,
|
|
12646
12921
|
currentPage: 1,
|
|
12647
12922
|
'qp-companyType-eq': 20
|
|
12648
|
-
}, getQueryHeadersItem(
|
|
12923
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12649
12924
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12650
12925
|
});
|
|
12651
12926
|
modalTableProps = _objectSpread2({
|
|
@@ -12754,13 +13029,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12754
13029
|
name: 'qp-phone-like',
|
|
12755
13030
|
label: '手机号'
|
|
12756
13031
|
}]);
|
|
12757
|
-
var
|
|
13032
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12758
13033
|
querySelectHeadersList: querySelectHeadersList,
|
|
12759
13034
|
extralHeaders: extralHeaders
|
|
12760
13035
|
});
|
|
12761
13036
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12762
13037
|
'orgViewCode': 'administrative-organization-view'
|
|
12763
|
-
}, getQueryHeadersItem(
|
|
13038
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12764
13039
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12765
13040
|
});
|
|
12766
13041
|
modalTableProps = _objectSpread2({
|
|
@@ -12907,17 +13182,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12907
13182
|
name: 'qp-remark-like',
|
|
12908
13183
|
label: '备注'
|
|
12909
13184
|
}];
|
|
12910
|
-
var
|
|
13185
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12911
13186
|
querySelectHeadersList: querySelectHeadersList,
|
|
12912
13187
|
extralHeaders: extralHeaders
|
|
12913
13188
|
});
|
|
12914
13189
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12915
13190
|
pageSize: 5000,
|
|
12916
13191
|
currentPage: 1
|
|
12917
|
-
}, getQueryHeadersItem(
|
|
13192
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12918
13193
|
pageSize: 5000,
|
|
12919
13194
|
currentPage: 1
|
|
12920
|
-
}, getQueryHeadersItem(
|
|
13195
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12921
13196
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12922
13197
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12923
13198
|
});
|
|
@@ -13087,14 +13362,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13087
13362
|
}
|
|
13088
13363
|
}
|
|
13089
13364
|
}];
|
|
13090
|
-
var
|
|
13365
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13091
13366
|
querySelectHeadersList: querySelectHeadersList,
|
|
13092
13367
|
extralHeaders: extralHeaders
|
|
13093
13368
|
});
|
|
13094
13369
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13095
13370
|
pageSize: 5000,
|
|
13096
13371
|
currentPage: 1
|
|
13097
|
-
}, getQueryHeadersItem(
|
|
13372
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13098
13373
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13099
13374
|
});
|
|
13100
13375
|
modalTableProps = _objectSpread2({
|
|
@@ -13191,7 +13466,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13191
13466
|
}
|
|
13192
13467
|
}
|
|
13193
13468
|
}];
|
|
13194
|
-
var
|
|
13469
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13195
13470
|
querySelectHeadersList: querySelectHeadersList,
|
|
13196
13471
|
extralHeaders: extralHeaders
|
|
13197
13472
|
});
|
|
@@ -13199,7 +13474,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13199
13474
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13200
13475
|
'qp-realOrg-eq': true,
|
|
13201
13476
|
'qp-status-eq': 10
|
|
13202
|
-
}, getQueryHeadersItem(
|
|
13477
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13203
13478
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13204
13479
|
});
|
|
13205
13480
|
modalTableProps = _objectSpread2({
|
|
@@ -13305,13 +13580,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13305
13580
|
},
|
|
13306
13581
|
initialSource: nodeType
|
|
13307
13582
|
}];
|
|
13308
|
-
var
|
|
13583
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13309
13584
|
querySelectHeadersList: querySelectHeadersList,
|
|
13310
13585
|
extralHeaders: extralHeaders
|
|
13311
13586
|
});
|
|
13312
13587
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13313
13588
|
'qp-status-eq': 10
|
|
13314
|
-
}, getQueryHeadersItem(
|
|
13589
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13315
13590
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13316
13591
|
});
|
|
13317
13592
|
modalTableProps = _objectSpread2({
|
|
@@ -13637,13 +13912,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13637
13912
|
},
|
|
13638
13913
|
initialSource: nodeType
|
|
13639
13914
|
}];
|
|
13640
|
-
var
|
|
13915
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13641
13916
|
querySelectHeadersList: querySelectHeadersList,
|
|
13642
13917
|
extralHeaders: extralHeaders
|
|
13643
13918
|
});
|
|
13644
13919
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13645
13920
|
'qp-status-eq': 10
|
|
13646
|
-
}, getQueryHeadersItem(
|
|
13921
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13647
13922
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13648
13923
|
});
|
|
13649
13924
|
modalTableProps = _objectSpread2({
|
package/package.json
CHANGED
|
@@ -454,6 +454,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
454
454
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
455
455
|
},
|
|
456
456
|
} },
|
|
457
|
+
{ name: 'qp-skcCode-like', label: 'SKC编码' },
|
|
457
458
|
]
|
|
458
459
|
const defaultQSHL = [
|
|
459
460
|
{
|
|
@@ -2306,7 +2307,260 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2306
2307
|
...modalTableBusProps
|
|
2307
2308
|
}
|
|
2308
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,
|
|
2309
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
|
+
}
|
|
2310
2564
|
// 核算主体选择器(无弹窗)
|
|
2311
2565
|
if(type === 'accountingSubject') {
|
|
2312
2566
|
selectProps = {
|
|
@@ -42,7 +42,8 @@ export const hasMoreQueryFields = (modalTableProps: any) => {
|
|
|
42
42
|
}
|
|
43
43
|
export const getTableHeigth = (list: any) => {
|
|
44
44
|
const totalRows = Math.ceil((list?.length+1) / 4);
|
|
45
|
-
if(totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
45
|
+
if(totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
46
|
+
if(totalRows == 3) return 403; // modal弹窗760 调整为700 适应小屏
|
|
46
47
|
return 411 - totalRows*10
|
|
47
48
|
}
|
|
48
49
|
|