@bit-sun/business-component 4.2.0-alpha.26 → 4.2.0-alpha.28
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
|
@@ -4260,7 +4260,7 @@ var handleParams = function handleParams(params) {
|
|
|
4260
4260
|
//处理单据编号查询 如果是查询单条数据 就是模糊查询 两条以上就是精准查询
|
|
4261
4261
|
var convertOrderNo = function convertOrderNo(params) {
|
|
4262
4262
|
//需要处理得编号字段名
|
|
4263
|
-
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in'];
|
|
4263
|
+
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in', 'qp-code-in'];
|
|
4264
4264
|
for (var i = 0; i < arr.length; i++) {
|
|
4265
4265
|
if (params[arr[i]]) {
|
|
4266
4266
|
if (!params[arr[i]].includes(',')) {
|
|
@@ -10991,8 +10991,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10991
10991
|
}]
|
|
10992
10992
|
}, selectConfigProps);
|
|
10993
10993
|
var _tableSearchForm = handleHiddenFields([{
|
|
10994
|
-
name: 'qp-code-
|
|
10995
|
-
label: 'SKC编码'
|
|
10994
|
+
name: 'qp-code-in',
|
|
10995
|
+
label: 'SKC编码',
|
|
10996
|
+
type: 'multipleQueryInput'
|
|
10996
10997
|
}, {
|
|
10997
10998
|
name: 'qp-skcName-like',
|
|
10998
10999
|
label: 'SKC名称'
|
|
@@ -12457,6 +12458,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12457
12458
|
noEmptySearchField: true
|
|
12458
12459
|
}, modalTableBusProps);
|
|
12459
12460
|
}
|
|
12461
|
+
if (type === 'shopFile3') {
|
|
12462
|
+
selectProps = _objectSpread2({
|
|
12463
|
+
placeholder: '输入商店编码或名称',
|
|
12464
|
+
renderTableColumns: [{
|
|
12465
|
+
title: '商店编码',
|
|
12466
|
+
dataIndex: 'code'
|
|
12467
|
+
}, {
|
|
12468
|
+
title: '商店名称',
|
|
12469
|
+
dataIndex: 'name'
|
|
12470
|
+
}]
|
|
12471
|
+
}, selectConfigProps);
|
|
12472
|
+
requestConfig = _objectSpread2({
|
|
12473
|
+
init: true,
|
|
12474
|
+
url: "".concat(prefixUrl.selectPrefix, "/store/doPagerPw"),
|
|
12475
|
+
filter: 'qp-name,code-orGroup,like',
|
|
12476
|
+
mappingTextField: 'name',
|
|
12477
|
+
mappingValueField: 'code',
|
|
12478
|
+
otherParams: _objectSpread2({
|
|
12479
|
+
sorter: 'desc-id',
|
|
12480
|
+
'qp-status-in': 10
|
|
12481
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
12482
|
+
sourceName: 'code'
|
|
12483
|
+
}, requestConfigProp);
|
|
12484
|
+
tableSearchForm = [{
|
|
12485
|
+
name: 'name*multiInput',
|
|
12486
|
+
label: '商店名称',
|
|
12487
|
+
type: 'multipleQueryInput'
|
|
12488
|
+
}, {
|
|
12489
|
+
name: 'code*multiInput',
|
|
12490
|
+
label: '商店编码',
|
|
12491
|
+
type: 'multipleQueryInput'
|
|
12492
|
+
}, {
|
|
12493
|
+
name: 'qp-type-in',
|
|
12494
|
+
type: 'select',
|
|
12495
|
+
label: '商店类型',
|
|
12496
|
+
initialSource: shopFile2Type
|
|
12497
|
+
},
|
|
12498
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12499
|
+
{
|
|
12500
|
+
name: 'qp-orgCode-in',
|
|
12501
|
+
type: 'select',
|
|
12502
|
+
label: '所属销售组织',
|
|
12503
|
+
field: {
|
|
12504
|
+
type: 'select',
|
|
12505
|
+
props: {
|
|
12506
|
+
mode: 'multiple',
|
|
12507
|
+
notFoundContent: '暂无数据',
|
|
12508
|
+
allowClear: true,
|
|
12509
|
+
showSearch: true,
|
|
12510
|
+
showArrow: true,
|
|
12511
|
+
maxTagCount: 1,
|
|
12512
|
+
optionFilterProp: 'children',
|
|
12513
|
+
filterOption: function filterOption(input, option) {
|
|
12514
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12515
|
+
}
|
|
12516
|
+
}
|
|
12517
|
+
}
|
|
12518
|
+
}, {
|
|
12519
|
+
name: 'qp-channelCode-in',
|
|
12520
|
+
type: 'treeSelect',
|
|
12521
|
+
label: '所属销售渠道',
|
|
12522
|
+
field: {
|
|
12523
|
+
type: 'treeSelect',
|
|
12524
|
+
props: {
|
|
12525
|
+
multiple: true,
|
|
12526
|
+
treeData: [],
|
|
12527
|
+
treeCheckable: false,
|
|
12528
|
+
notFoundContent: '暂无数据',
|
|
12529
|
+
allowClear: true,
|
|
12530
|
+
showSearch: true,
|
|
12531
|
+
showArrow: true,
|
|
12532
|
+
maxTagCount: 1,
|
|
12533
|
+
optionFilterProp: 'children',
|
|
12534
|
+
filterOption: function filterOption(input, option) {
|
|
12535
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12536
|
+
},
|
|
12537
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12538
|
+
}
|
|
12539
|
+
}
|
|
12540
|
+
}, {
|
|
12541
|
+
name: 'qp-commonRelationAreaCode-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-businessType-in',
|
|
12564
|
+
type: 'select',
|
|
12565
|
+
label: '店铺性质',
|
|
12566
|
+
field: {
|
|
12567
|
+
type: 'select',
|
|
12568
|
+
props: {
|
|
12569
|
+
mode: 'multiple',
|
|
12570
|
+
notFoundContent: '暂无数据',
|
|
12571
|
+
allowClear: true,
|
|
12572
|
+
showSearch: true,
|
|
12573
|
+
showArrow: true,
|
|
12574
|
+
maxTagCount: 1,
|
|
12575
|
+
optionFilterProp: 'children',
|
|
12576
|
+
filterOption: function filterOption(input, option) {
|
|
12577
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12578
|
+
}
|
|
12579
|
+
}
|
|
12580
|
+
},
|
|
12581
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12582
|
+
}, {
|
|
12583
|
+
name: "qp-brandCode-in",
|
|
12584
|
+
label: "品牌",
|
|
12585
|
+
field: {
|
|
12586
|
+
type: 'select',
|
|
12587
|
+
props: {
|
|
12588
|
+
mode: 'multiple',
|
|
12589
|
+
notFoundContent: '暂无数据',
|
|
12590
|
+
allowClear: true,
|
|
12591
|
+
showSearch: true,
|
|
12592
|
+
showArrow: true,
|
|
12593
|
+
maxTagCount: 1,
|
|
12594
|
+
optionFilterProp: 'children',
|
|
12595
|
+
filterOption: function filterOption(input, option) {
|
|
12596
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12597
|
+
}
|
|
12598
|
+
}
|
|
12599
|
+
}
|
|
12600
|
+
}, {
|
|
12601
|
+
name: 'qp-physicalWarehouseCode-in',
|
|
12602
|
+
type: 'select',
|
|
12603
|
+
label: '物理仓库',
|
|
12604
|
+
field: {
|
|
12605
|
+
type: 'select',
|
|
12606
|
+
props: {
|
|
12607
|
+
notFoundContent: '暂无数据',
|
|
12608
|
+
allowClear: true,
|
|
12609
|
+
showSearch: true,
|
|
12610
|
+
showArrow: true,
|
|
12611
|
+
maxTagCount: 1,
|
|
12612
|
+
optionFilterProp: 'children',
|
|
12613
|
+
filterOption: function filterOption(input, option) {
|
|
12614
|
+
var _option$value;
|
|
12615
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12616
|
+
}
|
|
12617
|
+
}
|
|
12618
|
+
}
|
|
12619
|
+
}];
|
|
12620
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12621
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
12622
|
+
extralHeaders: extralHeaders
|
|
12623
|
+
});
|
|
12624
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12625
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12626
|
+
'qp-realOrg-eq': true,
|
|
12627
|
+
'qp-status-eq': 10
|
|
12628
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12629
|
+
'qp-status-eq': 10,
|
|
12630
|
+
'qp-isMain-eq': 1,
|
|
12631
|
+
'qp-type-in': '1,2'
|
|
12632
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12633
|
+
'qp-status-eq': 1
|
|
12634
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12635
|
+
pageSize: 5000,
|
|
12636
|
+
currentPage: 1,
|
|
12637
|
+
'ctl-withAuth': true
|
|
12638
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'ctl-withAuth')), loadSelectSource$1("/stock/physicalWarehouse", {
|
|
12639
|
+
pageSize: 5000,
|
|
12640
|
+
currentPage: 1,
|
|
12641
|
+
'qp-isEnable-eq': 1,
|
|
12642
|
+
sorter: 'desc-id'
|
|
12643
|
+
}, {
|
|
12644
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12645
|
+
})]).then(function (x) {
|
|
12646
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12647
|
+
return data['parentCode'] === '0';
|
|
12648
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12649
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12650
|
+
return data['parent'] === '0';
|
|
12651
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12652
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12653
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12654
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12655
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12656
|
+
formatSource(x, 4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
|
|
12657
|
+
});
|
|
12658
|
+
modalTableProps = _objectSpread2({
|
|
12659
|
+
modalTableTitle: '选择商店',
|
|
12660
|
+
tableSearchForm: tableSearchForm,
|
|
12661
|
+
tableColumns: [{
|
|
12662
|
+
title: '序号',
|
|
12663
|
+
dataIndex: 'keyIndex',
|
|
12664
|
+
defaultSort: 0,
|
|
12665
|
+
width: 60
|
|
12666
|
+
}, {
|
|
12667
|
+
title: '商店编码',
|
|
12668
|
+
dataIndex: 'code',
|
|
12669
|
+
defaultSort: 1,
|
|
12670
|
+
width: 100
|
|
12671
|
+
}, {
|
|
12672
|
+
title: '商店名称',
|
|
12673
|
+
dataIndex: 'name',
|
|
12674
|
+
defaultSort: 2,
|
|
12675
|
+
width: 120
|
|
12676
|
+
}, {
|
|
12677
|
+
title: '商店类型',
|
|
12678
|
+
dataIndex: 'type',
|
|
12679
|
+
defaultSort: 3,
|
|
12680
|
+
width: 100,
|
|
12681
|
+
render: function render(text) {
|
|
12682
|
+
var _shopFile2Type$find2;
|
|
12683
|
+
return (_shopFile2Type$find2 = shopFile2Type.find(function (i) {
|
|
12684
|
+
return i.value === text;
|
|
12685
|
+
})) === null || _shopFile2Type$find2 === void 0 ? void 0 : _shopFile2Type$find2.text;
|
|
12686
|
+
}
|
|
12687
|
+
}, {
|
|
12688
|
+
title: '启用状态',
|
|
12689
|
+
dataIndex: 'status',
|
|
12690
|
+
width: 80,
|
|
12691
|
+
render: function render(text) {
|
|
12692
|
+
var _shopFile2Status$find2;
|
|
12693
|
+
return (_shopFile2Status$find2 = shopFile2Status.find(function (i) {
|
|
12694
|
+
return i.value === text;
|
|
12695
|
+
})) === null || _shopFile2Status$find2 === void 0 ? void 0 : _shopFile2Status$find2.text;
|
|
12696
|
+
}
|
|
12697
|
+
}, {
|
|
12698
|
+
title: '所属销售组织',
|
|
12699
|
+
dataIndex: 'orgName',
|
|
12700
|
+
defaultSort: 4,
|
|
12701
|
+
width: 95
|
|
12702
|
+
}, {
|
|
12703
|
+
title: '所属销售渠道',
|
|
12704
|
+
dataIndex: 'channelName',
|
|
12705
|
+
defaultSort: 5,
|
|
12706
|
+
width: 100
|
|
12707
|
+
}, {
|
|
12708
|
+
title: '营销区域',
|
|
12709
|
+
dataIndex: 'commonRelationAreaName',
|
|
12710
|
+
defaultSort: 6,
|
|
12711
|
+
width: 100
|
|
12712
|
+
}, {
|
|
12713
|
+
title: '店铺性质',
|
|
12714
|
+
dataIndex: 'businessType',
|
|
12715
|
+
defaultSort: 7,
|
|
12716
|
+
render: function render(text) {
|
|
12717
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12718
|
+
},
|
|
12719
|
+
width: 80
|
|
12720
|
+
}, {
|
|
12721
|
+
title: '库存组织编码',
|
|
12722
|
+
dataIndex: 'physicalWarehouseCode',
|
|
12723
|
+
render: function render(text) {
|
|
12724
|
+
return (text === null || text === void 0 ? void 0 : text.physicalWarehouseCode) || '-';
|
|
12725
|
+
},
|
|
12726
|
+
defaultSort: 8,
|
|
12727
|
+
width: 100
|
|
12728
|
+
}],
|
|
12729
|
+
noEmptySearchField: true
|
|
12730
|
+
}, modalTableBusProps);
|
|
12731
|
+
}
|
|
12460
12732
|
// 核算主体选择器(无弹窗)
|
|
12461
12733
|
if (type === 'accountingSubject') {
|
|
12462
12734
|
selectProps = _objectSpread2({
|
|
@@ -12618,7 +12890,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12618
12890
|
name: 'qp-officeTelephone-like',
|
|
12619
12891
|
label: '手机号'
|
|
12620
12892
|
}];
|
|
12621
|
-
var
|
|
12893
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12622
12894
|
querySelectHeadersList: querySelectHeadersList,
|
|
12623
12895
|
extralHeaders: extralHeaders
|
|
12624
12896
|
});
|
|
@@ -12626,7 +12898,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12626
12898
|
pageSize: 5000,
|
|
12627
12899
|
currentPage: 1,
|
|
12628
12900
|
'qp-companyType-eq': 20
|
|
12629
|
-
}, getQueryHeadersItem(
|
|
12901
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12630
12902
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12631
12903
|
});
|
|
12632
12904
|
modalTableProps = _objectSpread2({
|
|
@@ -12735,13 +13007,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
13007
|
name: 'qp-phone-like',
|
|
12736
13008
|
label: '手机号'
|
|
12737
13009
|
}]);
|
|
12738
|
-
var
|
|
13010
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12739
13011
|
querySelectHeadersList: querySelectHeadersList,
|
|
12740
13012
|
extralHeaders: extralHeaders
|
|
12741
13013
|
});
|
|
12742
13014
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12743
13015
|
'orgViewCode': 'administrative-organization-view'
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
13016
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12745
13017
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12746
13018
|
});
|
|
12747
13019
|
modalTableProps = _objectSpread2({
|
|
@@ -12888,17 +13160,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12888
13160
|
name: 'qp-remark-like',
|
|
12889
13161
|
label: '备注'
|
|
12890
13162
|
}];
|
|
12891
|
-
var
|
|
13163
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12892
13164
|
querySelectHeadersList: querySelectHeadersList,
|
|
12893
13165
|
extralHeaders: extralHeaders
|
|
12894
13166
|
});
|
|
12895
13167
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12896
13168
|
pageSize: 5000,
|
|
12897
13169
|
currentPage: 1
|
|
12898
|
-
}, getQueryHeadersItem(
|
|
13170
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12899
13171
|
pageSize: 5000,
|
|
12900
13172
|
currentPage: 1
|
|
12901
|
-
}, getQueryHeadersItem(
|
|
13173
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12902
13174
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12903
13175
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12904
13176
|
});
|
|
@@ -13068,14 +13340,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13068
13340
|
}
|
|
13069
13341
|
}
|
|
13070
13342
|
}];
|
|
13071
|
-
var
|
|
13343
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13072
13344
|
querySelectHeadersList: querySelectHeadersList,
|
|
13073
13345
|
extralHeaders: extralHeaders
|
|
13074
13346
|
});
|
|
13075
13347
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13076
13348
|
pageSize: 5000,
|
|
13077
13349
|
currentPage: 1
|
|
13078
|
-
}, getQueryHeadersItem(
|
|
13350
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13079
13351
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13080
13352
|
});
|
|
13081
13353
|
modalTableProps = _objectSpread2({
|
|
@@ -13172,7 +13444,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13172
13444
|
}
|
|
13173
13445
|
}
|
|
13174
13446
|
}];
|
|
13175
|
-
var
|
|
13447
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13176
13448
|
querySelectHeadersList: querySelectHeadersList,
|
|
13177
13449
|
extralHeaders: extralHeaders
|
|
13178
13450
|
});
|
|
@@ -13180,7 +13452,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13180
13452
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13181
13453
|
'qp-realOrg-eq': true,
|
|
13182
13454
|
'qp-status-eq': 10
|
|
13183
|
-
}, getQueryHeadersItem(
|
|
13455
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13184
13456
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13185
13457
|
});
|
|
13186
13458
|
modalTableProps = _objectSpread2({
|
|
@@ -13286,13 +13558,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13286
13558
|
},
|
|
13287
13559
|
initialSource: nodeType
|
|
13288
13560
|
}];
|
|
13289
|
-
var
|
|
13561
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13290
13562
|
querySelectHeadersList: querySelectHeadersList,
|
|
13291
13563
|
extralHeaders: extralHeaders
|
|
13292
13564
|
});
|
|
13293
13565
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13294
13566
|
'qp-status-eq': 10
|
|
13295
|
-
}, getQueryHeadersItem(
|
|
13567
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13296
13568
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13297
13569
|
});
|
|
13298
13570
|
modalTableProps = _objectSpread2({
|
|
@@ -13618,13 +13890,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13618
13890
|
},
|
|
13619
13891
|
initialSource: nodeType
|
|
13620
13892
|
}];
|
|
13621
|
-
var
|
|
13893
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13622
13894
|
querySelectHeadersList: querySelectHeadersList,
|
|
13623
13895
|
extralHeaders: extralHeaders
|
|
13624
13896
|
});
|
|
13625
13897
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13626
13898
|
'qp-status-eq': 10
|
|
13627
|
-
}, getQueryHeadersItem(
|
|
13899
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13628
13900
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13629
13901
|
});
|
|
13630
13902
|
modalTableProps = _objectSpread2({
|
|
@@ -14392,8 +14664,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14392
14664
|
}];
|
|
14393
14665
|
var mTpTableColumn = handleTableColumn(initialTableColumn, parProps);
|
|
14394
14666
|
var initialTableSearchForm = [{
|
|
14395
|
-
name: 'qp-code-
|
|
14396
|
-
label: 'SKC编码'
|
|
14667
|
+
name: 'qp-code-in',
|
|
14668
|
+
label: 'SKC编码',
|
|
14669
|
+
type: 'multipleQueryInput'
|
|
14397
14670
|
}, {
|
|
14398
14671
|
name: 'qp-skcName-like',
|
|
14399
14672
|
label: 'SKC名称'
|
package/dist/index.js
CHANGED
|
@@ -4283,7 +4283,7 @@ var handleParams = function handleParams(params) {
|
|
|
4283
4283
|
//处理单据编号查询 如果是查询单条数据 就是模糊查询 两条以上就是精准查询
|
|
4284
4284
|
var convertOrderNo = function convertOrderNo(params) {
|
|
4285
4285
|
//需要处理得编号字段名
|
|
4286
|
-
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in'];
|
|
4286
|
+
var arr = ['qp-skuCode-in', 'qp-eancode-in', 'qp-itemCode-in', 'qp-code-in'];
|
|
4287
4287
|
for (var i = 0; i < arr.length; i++) {
|
|
4288
4288
|
if (params[arr[i]]) {
|
|
4289
4289
|
if (!params[arr[i]].includes(',')) {
|
|
@@ -11014,8 +11014,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11014
11014
|
}]
|
|
11015
11015
|
}, selectConfigProps);
|
|
11016
11016
|
var _tableSearchForm = handleHiddenFields([{
|
|
11017
|
-
name: 'qp-code-
|
|
11018
|
-
label: 'SKC编码'
|
|
11017
|
+
name: 'qp-code-in',
|
|
11018
|
+
label: 'SKC编码',
|
|
11019
|
+
type: 'multipleQueryInput'
|
|
11019
11020
|
}, {
|
|
11020
11021
|
name: 'qp-skcName-like',
|
|
11021
11022
|
label: 'SKC名称'
|
|
@@ -12480,6 +12481,277 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12480
12481
|
noEmptySearchField: true
|
|
12481
12482
|
}, modalTableBusProps);
|
|
12482
12483
|
}
|
|
12484
|
+
if (type === 'shopFile3') {
|
|
12485
|
+
selectProps = _objectSpread2({
|
|
12486
|
+
placeholder: '输入商店编码或名称',
|
|
12487
|
+
renderTableColumns: [{
|
|
12488
|
+
title: '商店编码',
|
|
12489
|
+
dataIndex: 'code'
|
|
12490
|
+
}, {
|
|
12491
|
+
title: '商店名称',
|
|
12492
|
+
dataIndex: 'name'
|
|
12493
|
+
}]
|
|
12494
|
+
}, selectConfigProps);
|
|
12495
|
+
requestConfig = _objectSpread2({
|
|
12496
|
+
init: true,
|
|
12497
|
+
url: "".concat(prefixUrl.selectPrefix, "/store/doPagerPw"),
|
|
12498
|
+
filter: 'qp-name,code-orGroup,like',
|
|
12499
|
+
mappingTextField: 'name',
|
|
12500
|
+
mappingValueField: 'code',
|
|
12501
|
+
otherParams: _objectSpread2({
|
|
12502
|
+
sorter: 'desc-id',
|
|
12503
|
+
'qp-status-in': 10
|
|
12504
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
12505
|
+
sourceName: 'code'
|
|
12506
|
+
}, requestConfigProp);
|
|
12507
|
+
tableSearchForm = [{
|
|
12508
|
+
name: 'name*multiInput',
|
|
12509
|
+
label: '商店名称',
|
|
12510
|
+
type: 'multipleQueryInput'
|
|
12511
|
+
}, {
|
|
12512
|
+
name: 'code*multiInput',
|
|
12513
|
+
label: '商店编码',
|
|
12514
|
+
type: 'multipleQueryInput'
|
|
12515
|
+
}, {
|
|
12516
|
+
name: 'qp-type-in',
|
|
12517
|
+
type: 'select',
|
|
12518
|
+
label: '商店类型',
|
|
12519
|
+
initialSource: shopFile2Type
|
|
12520
|
+
},
|
|
12521
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12522
|
+
{
|
|
12523
|
+
name: 'qp-orgCode-in',
|
|
12524
|
+
type: 'select',
|
|
12525
|
+
label: '所属销售组织',
|
|
12526
|
+
field: {
|
|
12527
|
+
type: 'select',
|
|
12528
|
+
props: {
|
|
12529
|
+
mode: 'multiple',
|
|
12530
|
+
notFoundContent: '暂无数据',
|
|
12531
|
+
allowClear: true,
|
|
12532
|
+
showSearch: true,
|
|
12533
|
+
showArrow: true,
|
|
12534
|
+
maxTagCount: 1,
|
|
12535
|
+
optionFilterProp: 'children',
|
|
12536
|
+
filterOption: function filterOption(input, option) {
|
|
12537
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12538
|
+
}
|
|
12539
|
+
}
|
|
12540
|
+
}
|
|
12541
|
+
}, {
|
|
12542
|
+
name: 'qp-channelCode-in',
|
|
12543
|
+
type: 'treeSelect',
|
|
12544
|
+
label: '所属销售渠道',
|
|
12545
|
+
field: {
|
|
12546
|
+
type: 'treeSelect',
|
|
12547
|
+
props: {
|
|
12548
|
+
multiple: true,
|
|
12549
|
+
treeData: [],
|
|
12550
|
+
treeCheckable: false,
|
|
12551
|
+
notFoundContent: '暂无数据',
|
|
12552
|
+
allowClear: true,
|
|
12553
|
+
showSearch: true,
|
|
12554
|
+
showArrow: true,
|
|
12555
|
+
maxTagCount: 1,
|
|
12556
|
+
optionFilterProp: 'children',
|
|
12557
|
+
filterOption: function filterOption(input, option) {
|
|
12558
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12559
|
+
},
|
|
12560
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12561
|
+
}
|
|
12562
|
+
}
|
|
12563
|
+
}, {
|
|
12564
|
+
name: 'qp-commonRelationAreaCode-in',
|
|
12565
|
+
type: 'treeSelect',
|
|
12566
|
+
label: '营销区域',
|
|
12567
|
+
field: {
|
|
12568
|
+
type: 'treeSelect',
|
|
12569
|
+
props: {
|
|
12570
|
+
multiple: true,
|
|
12571
|
+
treeData: [],
|
|
12572
|
+
treeCheckable: false,
|
|
12573
|
+
notFoundContent: '暂无数据',
|
|
12574
|
+
allowClear: true,
|
|
12575
|
+
showSearch: true,
|
|
12576
|
+
showArrow: true,
|
|
12577
|
+
maxTagCount: 1,
|
|
12578
|
+
optionFilterProp: 'children',
|
|
12579
|
+
filterOption: function filterOption(input, option) {
|
|
12580
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12581
|
+
},
|
|
12582
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12583
|
+
}
|
|
12584
|
+
}
|
|
12585
|
+
}, {
|
|
12586
|
+
name: 'qp-businessType-in',
|
|
12587
|
+
type: 'select',
|
|
12588
|
+
label: '店铺性质',
|
|
12589
|
+
field: {
|
|
12590
|
+
type: 'select',
|
|
12591
|
+
props: {
|
|
12592
|
+
mode: 'multiple',
|
|
12593
|
+
notFoundContent: '暂无数据',
|
|
12594
|
+
allowClear: true,
|
|
12595
|
+
showSearch: true,
|
|
12596
|
+
showArrow: true,
|
|
12597
|
+
maxTagCount: 1,
|
|
12598
|
+
optionFilterProp: 'children',
|
|
12599
|
+
filterOption: function filterOption(input, option) {
|
|
12600
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12601
|
+
}
|
|
12602
|
+
}
|
|
12603
|
+
},
|
|
12604
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12605
|
+
}, {
|
|
12606
|
+
name: "qp-brandCode-in",
|
|
12607
|
+
label: "品牌",
|
|
12608
|
+
field: {
|
|
12609
|
+
type: 'select',
|
|
12610
|
+
props: {
|
|
12611
|
+
mode: 'multiple',
|
|
12612
|
+
notFoundContent: '暂无数据',
|
|
12613
|
+
allowClear: true,
|
|
12614
|
+
showSearch: true,
|
|
12615
|
+
showArrow: true,
|
|
12616
|
+
maxTagCount: 1,
|
|
12617
|
+
optionFilterProp: 'children',
|
|
12618
|
+
filterOption: function filterOption(input, option) {
|
|
12619
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12620
|
+
}
|
|
12621
|
+
}
|
|
12622
|
+
}
|
|
12623
|
+
}, {
|
|
12624
|
+
name: 'qp-physicalWarehouseCode-in',
|
|
12625
|
+
type: 'select',
|
|
12626
|
+
label: '物理仓库',
|
|
12627
|
+
field: {
|
|
12628
|
+
type: 'select',
|
|
12629
|
+
props: {
|
|
12630
|
+
notFoundContent: '暂无数据',
|
|
12631
|
+
allowClear: true,
|
|
12632
|
+
showSearch: true,
|
|
12633
|
+
showArrow: true,
|
|
12634
|
+
maxTagCount: 1,
|
|
12635
|
+
optionFilterProp: 'children',
|
|
12636
|
+
filterOption: function filterOption(input, option) {
|
|
12637
|
+
var _option$value;
|
|
12638
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12639
|
+
}
|
|
12640
|
+
}
|
|
12641
|
+
}
|
|
12642
|
+
}];
|
|
12643
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12644
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
12645
|
+
extralHeaders: extralHeaders
|
|
12646
|
+
});
|
|
12647
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
|
|
12648
|
+
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12649
|
+
'qp-realOrg-eq': true,
|
|
12650
|
+
'qp-status-eq': 10
|
|
12651
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12652
|
+
'qp-status-eq': 10,
|
|
12653
|
+
'qp-isMain-eq': 1,
|
|
12654
|
+
'qp-type-in': '1,2'
|
|
12655
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12656
|
+
'qp-status-eq': 1
|
|
12657
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12658
|
+
pageSize: 5000,
|
|
12659
|
+
currentPage: 1,
|
|
12660
|
+
'ctl-withAuth': true
|
|
12661
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'ctl-withAuth')), loadSelectSource$1("/stock/physicalWarehouse", {
|
|
12662
|
+
pageSize: 5000,
|
|
12663
|
+
currentPage: 1,
|
|
12664
|
+
'qp-isEnable-eq': 1,
|
|
12665
|
+
sorter: 'desc-id'
|
|
12666
|
+
}, {
|
|
12667
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12668
|
+
})]).then(function (x) {
|
|
12669
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12670
|
+
return data['parentCode'] === '0';
|
|
12671
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12672
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12673
|
+
return data['parent'] === '0';
|
|
12674
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12675
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12676
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12677
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12678
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12679
|
+
formatSource(x, 4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
|
|
12680
|
+
});
|
|
12681
|
+
modalTableProps = _objectSpread2({
|
|
12682
|
+
modalTableTitle: '选择商店',
|
|
12683
|
+
tableSearchForm: tableSearchForm,
|
|
12684
|
+
tableColumns: [{
|
|
12685
|
+
title: '序号',
|
|
12686
|
+
dataIndex: 'keyIndex',
|
|
12687
|
+
defaultSort: 0,
|
|
12688
|
+
width: 60
|
|
12689
|
+
}, {
|
|
12690
|
+
title: '商店编码',
|
|
12691
|
+
dataIndex: 'code',
|
|
12692
|
+
defaultSort: 1,
|
|
12693
|
+
width: 100
|
|
12694
|
+
}, {
|
|
12695
|
+
title: '商店名称',
|
|
12696
|
+
dataIndex: 'name',
|
|
12697
|
+
defaultSort: 2,
|
|
12698
|
+
width: 120
|
|
12699
|
+
}, {
|
|
12700
|
+
title: '商店类型',
|
|
12701
|
+
dataIndex: 'type',
|
|
12702
|
+
defaultSort: 3,
|
|
12703
|
+
width: 100,
|
|
12704
|
+
render: function render(text) {
|
|
12705
|
+
var _shopFile2Type$find2;
|
|
12706
|
+
return (_shopFile2Type$find2 = shopFile2Type.find(function (i) {
|
|
12707
|
+
return i.value === text;
|
|
12708
|
+
})) === null || _shopFile2Type$find2 === void 0 ? void 0 : _shopFile2Type$find2.text;
|
|
12709
|
+
}
|
|
12710
|
+
}, {
|
|
12711
|
+
title: '启用状态',
|
|
12712
|
+
dataIndex: 'status',
|
|
12713
|
+
width: 80,
|
|
12714
|
+
render: function render(text) {
|
|
12715
|
+
var _shopFile2Status$find2;
|
|
12716
|
+
return (_shopFile2Status$find2 = shopFile2Status.find(function (i) {
|
|
12717
|
+
return i.value === text;
|
|
12718
|
+
})) === null || _shopFile2Status$find2 === void 0 ? void 0 : _shopFile2Status$find2.text;
|
|
12719
|
+
}
|
|
12720
|
+
}, {
|
|
12721
|
+
title: '所属销售组织',
|
|
12722
|
+
dataIndex: 'orgName',
|
|
12723
|
+
defaultSort: 4,
|
|
12724
|
+
width: 95
|
|
12725
|
+
}, {
|
|
12726
|
+
title: '所属销售渠道',
|
|
12727
|
+
dataIndex: 'channelName',
|
|
12728
|
+
defaultSort: 5,
|
|
12729
|
+
width: 100
|
|
12730
|
+
}, {
|
|
12731
|
+
title: '营销区域',
|
|
12732
|
+
dataIndex: 'commonRelationAreaName',
|
|
12733
|
+
defaultSort: 6,
|
|
12734
|
+
width: 100
|
|
12735
|
+
}, {
|
|
12736
|
+
title: '店铺性质',
|
|
12737
|
+
dataIndex: 'businessType',
|
|
12738
|
+
defaultSort: 7,
|
|
12739
|
+
render: function render(text) {
|
|
12740
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12741
|
+
},
|
|
12742
|
+
width: 80
|
|
12743
|
+
}, {
|
|
12744
|
+
title: '库存组织编码',
|
|
12745
|
+
dataIndex: 'physicalWarehouseCode',
|
|
12746
|
+
render: function render(text) {
|
|
12747
|
+
return (text === null || text === void 0 ? void 0 : text.physicalWarehouseCode) || '-';
|
|
12748
|
+
},
|
|
12749
|
+
defaultSort: 8,
|
|
12750
|
+
width: 100
|
|
12751
|
+
}],
|
|
12752
|
+
noEmptySearchField: true
|
|
12753
|
+
}, modalTableBusProps);
|
|
12754
|
+
}
|
|
12483
12755
|
// 核算主体选择器(无弹窗)
|
|
12484
12756
|
if (type === 'accountingSubject') {
|
|
12485
12757
|
selectProps = _objectSpread2({
|
|
@@ -12641,7 +12913,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12641
12913
|
name: 'qp-officeTelephone-like',
|
|
12642
12914
|
label: '手机号'
|
|
12643
12915
|
}];
|
|
12644
|
-
var
|
|
12916
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12645
12917
|
querySelectHeadersList: querySelectHeadersList,
|
|
12646
12918
|
extralHeaders: extralHeaders
|
|
12647
12919
|
});
|
|
@@ -12649,7 +12921,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12649
12921
|
pageSize: 5000,
|
|
12650
12922
|
currentPage: 1,
|
|
12651
12923
|
'qp-companyType-eq': 20
|
|
12652
|
-
}, getQueryHeadersItem(
|
|
12924
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
|
|
12653
12925
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12654
12926
|
});
|
|
12655
12927
|
modalTableProps = _objectSpread2({
|
|
@@ -12758,13 +13030,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12758
13030
|
name: 'qp-phone-like',
|
|
12759
13031
|
label: '手机号'
|
|
12760
13032
|
}]);
|
|
12761
|
-
var
|
|
13033
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12762
13034
|
querySelectHeadersList: querySelectHeadersList,
|
|
12763
13035
|
extralHeaders: extralHeaders
|
|
12764
13036
|
});
|
|
12765
13037
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12766
13038
|
'orgViewCode': 'administrative-organization-view'
|
|
12767
|
-
}, getQueryHeadersItem(
|
|
13039
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
|
|
12768
13040
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12769
13041
|
});
|
|
12770
13042
|
modalTableProps = _objectSpread2({
|
|
@@ -12911,17 +13183,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12911
13183
|
name: 'qp-remark-like',
|
|
12912
13184
|
label: '备注'
|
|
12913
13185
|
}];
|
|
12914
|
-
var
|
|
13186
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12915
13187
|
querySelectHeadersList: querySelectHeadersList,
|
|
12916
13188
|
extralHeaders: extralHeaders
|
|
12917
13189
|
});
|
|
12918
13190
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12919
13191
|
pageSize: 5000,
|
|
12920
13192
|
currentPage: 1
|
|
12921
|
-
}, getQueryHeadersItem(
|
|
13193
|
+
}, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12922
13194
|
pageSize: 5000,
|
|
12923
13195
|
currentPage: 1
|
|
12924
|
-
}, getQueryHeadersItem(
|
|
13196
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12925
13197
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12926
13198
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12927
13199
|
});
|
|
@@ -13091,14 +13363,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13091
13363
|
}
|
|
13092
13364
|
}
|
|
13093
13365
|
}];
|
|
13094
|
-
var
|
|
13366
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13095
13367
|
querySelectHeadersList: querySelectHeadersList,
|
|
13096
13368
|
extralHeaders: extralHeaders
|
|
13097
13369
|
});
|
|
13098
13370
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13099
13371
|
pageSize: 5000,
|
|
13100
13372
|
currentPage: 1
|
|
13101
|
-
}, getQueryHeadersItem(
|
|
13373
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13102
13374
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13103
13375
|
});
|
|
13104
13376
|
modalTableProps = _objectSpread2({
|
|
@@ -13195,7 +13467,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13195
13467
|
}
|
|
13196
13468
|
}
|
|
13197
13469
|
}];
|
|
13198
|
-
var
|
|
13470
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13199
13471
|
querySelectHeadersList: querySelectHeadersList,
|
|
13200
13472
|
extralHeaders: extralHeaders
|
|
13201
13473
|
});
|
|
@@ -13203,7 +13475,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13203
13475
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13204
13476
|
'qp-realOrg-eq': true,
|
|
13205
13477
|
'qp-status-eq': 10
|
|
13206
|
-
}, getQueryHeadersItem(
|
|
13478
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13207
13479
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13208
13480
|
});
|
|
13209
13481
|
modalTableProps = _objectSpread2({
|
|
@@ -13309,13 +13581,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13309
13581
|
},
|
|
13310
13582
|
initialSource: nodeType
|
|
13311
13583
|
}];
|
|
13312
|
-
var
|
|
13584
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13313
13585
|
querySelectHeadersList: querySelectHeadersList,
|
|
13314
13586
|
extralHeaders: extralHeaders
|
|
13315
13587
|
});
|
|
13316
13588
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13317
13589
|
'qp-status-eq': 10
|
|
13318
|
-
}, getQueryHeadersItem(
|
|
13590
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13319
13591
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13320
13592
|
});
|
|
13321
13593
|
modalTableProps = _objectSpread2({
|
|
@@ -13641,13 +13913,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13641
13913
|
},
|
|
13642
13914
|
initialSource: nodeType
|
|
13643
13915
|
}];
|
|
13644
|
-
var
|
|
13916
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13645
13917
|
querySelectHeadersList: querySelectHeadersList,
|
|
13646
13918
|
extralHeaders: extralHeaders
|
|
13647
13919
|
});
|
|
13648
13920
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13649
13921
|
'qp-status-eq': 10
|
|
13650
|
-
}, getQueryHeadersItem(
|
|
13922
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13651
13923
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13652
13924
|
});
|
|
13653
13925
|
modalTableProps = _objectSpread2({
|
|
@@ -14415,8 +14687,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
|
|
|
14415
14687
|
}];
|
|
14416
14688
|
var mTpTableColumn = handleTableColumn(initialTableColumn, parProps);
|
|
14417
14689
|
var initialTableSearchForm = [{
|
|
14418
|
-
name: 'qp-code-
|
|
14419
|
-
label: 'SKC编码'
|
|
14690
|
+
name: 'qp-code-in',
|
|
14691
|
+
label: 'SKC编码',
|
|
14692
|
+
type: 'multipleQueryInput'
|
|
14420
14693
|
}, {
|
|
14421
14694
|
name: 'qp-skcName-like',
|
|
14422
14695
|
label: 'SKC名称'
|
package/package.json
CHANGED
|
@@ -654,7 +654,7 @@ export const AddSkcSelect = (parProps: any) => {
|
|
|
654
654
|
]
|
|
655
655
|
const mTpTableColumn = handleTableColumn(initialTableColumn, parProps);
|
|
656
656
|
const initialTableSearchForm = [
|
|
657
|
-
{ name: 'qp-code-
|
|
657
|
+
{ name: 'qp-code-in', label: 'SKC编码', type: 'multipleQueryInput' },
|
|
658
658
|
{ name: 'qp-skcName-like', label: 'SKC名称' },
|
|
659
659
|
{ name: 'qp-itemName-like', label: '商品名称' },
|
|
660
660
|
{ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
|
|
@@ -940,7 +940,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
940
940
|
...selectConfigProps,
|
|
941
941
|
}
|
|
942
942
|
const tableSearchForm = handleHiddenFields([
|
|
943
|
-
{ name: 'qp-code-
|
|
943
|
+
{ name: 'qp-code-in', label: 'SKC编码', type: 'multipleQueryInput' },
|
|
944
944
|
{ name: 'qp-skcName-like', label: 'SKC名称' },
|
|
945
945
|
{ name: 'qp-itemName-like', label: '商品名称' },
|
|
946
946
|
{ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
|
|
@@ -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: 'physicalWarehouseCode',
|
|
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 = {
|