@bit-sun/business-component 4.2.1-alpha.10-aiwei → 4.2.1-alpha.12-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +41 -34
- package/dist/index.js +41 -34
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +53 -29
package/dist/index.esm.js
CHANGED
|
@@ -11624,11 +11624,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11624
11624
|
});
|
|
11625
11625
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11626
11626
|
'qp-status-eq': 1
|
|
11627
|
-
},
|
|
11627
|
+
}, {
|
|
11628
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
11629
|
+
}), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11628
11630
|
'qp-status-eq': 10,
|
|
11629
11631
|
'qp-isMain-eq': 1,
|
|
11630
11632
|
'qp-type-in': '1,2'
|
|
11631
|
-
},
|
|
11633
|
+
}, {
|
|
11634
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
11635
|
+
})]).then(function (x) {
|
|
11632
11636
|
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11633
11637
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11634
11638
|
var newData1 = [];
|
|
@@ -12296,26 +12300,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12296
12300
|
initialSource: shopFile2Type
|
|
12297
12301
|
},
|
|
12298
12302
|
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12303
|
+
// { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
12304
|
+
// type: 'select',
|
|
12305
|
+
// props: {
|
|
12306
|
+
// mode: 'multiple',
|
|
12307
|
+
// notFoundContent: '暂无数据',
|
|
12308
|
+
// allowClear: true,
|
|
12309
|
+
// showSearch: true,
|
|
12310
|
+
// showArrow: true,
|
|
12311
|
+
// maxTagCount: 1,
|
|
12312
|
+
// optionFilterProp: 'children',
|
|
12313
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
12314
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
12315
|
+
// },
|
|
12316
|
+
// } },
|
|
12299
12317
|
{
|
|
12300
|
-
name: 'qp-orgCode-in',
|
|
12301
|
-
type: 'select',
|
|
12302
|
-
label: '所属销售组织',
|
|
12303
|
-
field: {
|
|
12304
|
-
type: 'select',
|
|
12305
|
-
props: {
|
|
12306
|
-
mode: 'multiple',
|
|
12307
|
-
notFoundContent: '暂无数据',
|
|
12308
|
-
allowClear: true,
|
|
12309
|
-
showSearch: true,
|
|
12310
|
-
showArrow: true,
|
|
12311
|
-
maxTagCount: 1,
|
|
12312
|
-
optionFilterProp: 'children',
|
|
12313
|
-
filterOption: function filterOption(input, option) {
|
|
12314
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12315
|
-
}
|
|
12316
|
-
}
|
|
12317
|
-
}
|
|
12318
|
-
}, {
|
|
12319
12318
|
name: 'qp-channelCode-in',
|
|
12320
12319
|
type: 'treeSelect',
|
|
12321
12320
|
label: '战区',
|
|
@@ -12502,17 +12501,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12502
12501
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12503
12502
|
'qp-realOrg-eq': true,
|
|
12504
12503
|
'qp-status-eq': 10
|
|
12505
|
-
},
|
|
12504
|
+
}, {
|
|
12505
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12506
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12506
12507
|
'qp-status-eq': 10,
|
|
12507
12508
|
'qp-isMain-eq': 1,
|
|
12508
12509
|
'qp-type-in': '1,2'
|
|
12509
|
-
},
|
|
12510
|
+
}, {
|
|
12511
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12512
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12510
12513
|
'qp-status-eq': 1
|
|
12511
|
-
},
|
|
12514
|
+
}, {
|
|
12515
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12516
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12512
12517
|
pageSize: 5000,
|
|
12513
12518
|
currentPage: 1,
|
|
12514
12519
|
'ctl-withAuth': true
|
|
12515
|
-
},
|
|
12520
|
+
}, {
|
|
12521
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12522
|
+
}), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12516
12523
|
headers: _objectSpread2({}, extralHeaders)
|
|
12517
12524
|
})]).then(function (x) {
|
|
12518
12525
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
@@ -12530,10 +12537,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12530
12537
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12531
12538
|
return data['parent'] === '0';
|
|
12532
12539
|
}; // 所属营销区域 树节点不能点判断
|
|
12533
|
-
formatSource(x,
|
|
12534
|
-
formatTreeDataSource(x, 1,
|
|
12535
|
-
formatTreeDataSource(x, 2,
|
|
12536
|
-
formatSource(x, 3,
|
|
12540
|
+
// formatSource(x,0, 3, tableSearchForm);
|
|
12541
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12542
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12543
|
+
formatSource(x, 3, 6, tableSearchForm, ['brandCode', 'name']);
|
|
12537
12544
|
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12538
12545
|
// 新增label属性
|
|
12539
12546
|
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
@@ -12559,19 +12566,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12559
12566
|
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12560
12567
|
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12561
12568
|
});
|
|
12562
|
-
tableSearchForm[
|
|
12569
|
+
tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12563
12570
|
initialSource: m1
|
|
12564
12571
|
});
|
|
12565
|
-
tableSearchForm[
|
|
12572
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12566
12573
|
initialSource: m2
|
|
12567
12574
|
});
|
|
12568
|
-
tableSearchForm[
|
|
12575
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12569
12576
|
initialSource: m3
|
|
12570
12577
|
});
|
|
12571
|
-
tableSearchForm[
|
|
12578
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12572
12579
|
initialSource: m4
|
|
12573
12580
|
});
|
|
12574
|
-
tableSearchForm[
|
|
12581
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12575
12582
|
initialSource: m5
|
|
12576
12583
|
});
|
|
12577
12584
|
});
|
package/dist/index.js
CHANGED
|
@@ -11647,11 +11647,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11647
11647
|
});
|
|
11648
11648
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11649
11649
|
'qp-status-eq': 1
|
|
11650
|
-
},
|
|
11650
|
+
}, {
|
|
11651
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
11652
|
+
}), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11651
11653
|
'qp-status-eq': 10,
|
|
11652
11654
|
'qp-isMain-eq': 1,
|
|
11653
11655
|
'qp-type-in': '1,2'
|
|
11654
|
-
},
|
|
11656
|
+
}, {
|
|
11657
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
11658
|
+
})]).then(function (x) {
|
|
11655
11659
|
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11656
11660
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11657
11661
|
var newData1 = [];
|
|
@@ -12319,26 +12323,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12319
12323
|
initialSource: shopFile2Type
|
|
12320
12324
|
},
|
|
12321
12325
|
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12326
|
+
// { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
12327
|
+
// type: 'select',
|
|
12328
|
+
// props: {
|
|
12329
|
+
// mode: 'multiple',
|
|
12330
|
+
// notFoundContent: '暂无数据',
|
|
12331
|
+
// allowClear: true,
|
|
12332
|
+
// showSearch: true,
|
|
12333
|
+
// showArrow: true,
|
|
12334
|
+
// maxTagCount: 1,
|
|
12335
|
+
// optionFilterProp: 'children',
|
|
12336
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
12337
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
12338
|
+
// },
|
|
12339
|
+
// } },
|
|
12322
12340
|
{
|
|
12323
|
-
name: 'qp-orgCode-in',
|
|
12324
|
-
type: 'select',
|
|
12325
|
-
label: '所属销售组织',
|
|
12326
|
-
field: {
|
|
12327
|
-
type: 'select',
|
|
12328
|
-
props: {
|
|
12329
|
-
mode: 'multiple',
|
|
12330
|
-
notFoundContent: '暂无数据',
|
|
12331
|
-
allowClear: true,
|
|
12332
|
-
showSearch: true,
|
|
12333
|
-
showArrow: true,
|
|
12334
|
-
maxTagCount: 1,
|
|
12335
|
-
optionFilterProp: 'children',
|
|
12336
|
-
filterOption: function filterOption(input, option) {
|
|
12337
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12338
|
-
}
|
|
12339
|
-
}
|
|
12340
|
-
}
|
|
12341
|
-
}, {
|
|
12342
12341
|
name: 'qp-channelCode-in',
|
|
12343
12342
|
type: 'treeSelect',
|
|
12344
12343
|
label: '战区',
|
|
@@ -12525,17 +12524,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12525
12524
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12526
12525
|
'qp-realOrg-eq': true,
|
|
12527
12526
|
'qp-status-eq': 10
|
|
12528
|
-
},
|
|
12527
|
+
}, {
|
|
12528
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12529
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12529
12530
|
'qp-status-eq': 10,
|
|
12530
12531
|
'qp-isMain-eq': 1,
|
|
12531
12532
|
'qp-type-in': '1,2'
|
|
12532
|
-
},
|
|
12533
|
+
}, {
|
|
12534
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12535
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12533
12536
|
'qp-status-eq': 1
|
|
12534
|
-
},
|
|
12537
|
+
}, {
|
|
12538
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12539
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12535
12540
|
pageSize: 5000,
|
|
12536
12541
|
currentPage: 1,
|
|
12537
12542
|
'ctl-withAuth': true
|
|
12538
|
-
},
|
|
12543
|
+
}, {
|
|
12544
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12545
|
+
}), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12539
12546
|
headers: _objectSpread2({}, extralHeaders)
|
|
12540
12547
|
})]).then(function (x) {
|
|
12541
12548
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
@@ -12553,10 +12560,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12553
12560
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12554
12561
|
return data['parent'] === '0';
|
|
12555
12562
|
}; // 所属营销区域 树节点不能点判断
|
|
12556
|
-
formatSource(x,
|
|
12557
|
-
formatTreeDataSource(x, 1,
|
|
12558
|
-
formatTreeDataSource(x, 2,
|
|
12559
|
-
formatSource(x, 3,
|
|
12563
|
+
// formatSource(x,0, 3, tableSearchForm);
|
|
12564
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12565
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12566
|
+
formatSource(x, 3, 6, tableSearchForm, ['brandCode', 'name']);
|
|
12560
12567
|
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12561
12568
|
// 新增label属性
|
|
12562
12569
|
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
@@ -12582,19 +12589,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12582
12589
|
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12583
12590
|
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12584
12591
|
});
|
|
12585
|
-
tableSearchForm[
|
|
12592
|
+
tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12586
12593
|
initialSource: m1
|
|
12587
12594
|
});
|
|
12588
|
-
tableSearchForm[
|
|
12595
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12589
12596
|
initialSource: m2
|
|
12590
12597
|
});
|
|
12591
|
-
tableSearchForm[
|
|
12598
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12592
12599
|
initialSource: m3
|
|
12593
12600
|
});
|
|
12594
|
-
tableSearchForm[
|
|
12601
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12595
12602
|
initialSource: m4
|
|
12596
12603
|
});
|
|
12597
|
-
tableSearchForm[
|
|
12604
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12598
12605
|
initialSource: m5
|
|
12599
12606
|
});
|
|
12600
12607
|
});
|
package/package.json
CHANGED
|
@@ -1562,12 +1562,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1562
1562
|
]
|
|
1563
1563
|
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1564
1564
|
Promise.all([
|
|
1565
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },
|
|
1565
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 }, {
|
|
1566
|
+
headers: {
|
|
1567
|
+
...extralHeaders
|
|
1568
|
+
}
|
|
1569
|
+
}),
|
|
1566
1570
|
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1567
1571
|
'qp-status-eq': 10,
|
|
1568
1572
|
'qp-isMain-eq': 1,
|
|
1569
1573
|
'qp-type-in': '1,2',
|
|
1570
|
-
},
|
|
1574
|
+
}, {
|
|
1575
|
+
headers: {
|
|
1576
|
+
...extralHeaders
|
|
1577
|
+
}
|
|
1578
|
+
}),
|
|
1571
1579
|
]).then((x: any)=>{
|
|
1572
1580
|
formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
|
|
1573
1581
|
const newData1: any[] = [];
|
|
@@ -2211,20 +2219,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2211
2219
|
{ name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
|
|
2212
2220
|
{ name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
|
|
2213
2221
|
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
2214
|
-
{ name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2222
|
+
// { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
2223
|
+
// type: 'select',
|
|
2224
|
+
// props: {
|
|
2225
|
+
// mode: 'multiple',
|
|
2226
|
+
// notFoundContent: '暂无数据',
|
|
2227
|
+
// allowClear: true,
|
|
2228
|
+
// showSearch: true,
|
|
2229
|
+
// showArrow: true,
|
|
2230
|
+
// maxTagCount: 1,
|
|
2231
|
+
// optionFilterProp: 'children',
|
|
2232
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2233
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2234
|
+
// },
|
|
2235
|
+
// } },
|
|
2228
2236
|
{ name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
|
|
2229
2237
|
type: 'treeSelect',
|
|
2230
2238
|
props: {
|
|
@@ -2369,20 +2377,36 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2369
2377
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
2370
2378
|
'qp-realOrg-eq': true,
|
|
2371
2379
|
'qp-status-eq': 10
|
|
2372
|
-
},
|
|
2380
|
+
}, {
|
|
2381
|
+
headers: {
|
|
2382
|
+
...extralHeaders
|
|
2383
|
+
}
|
|
2384
|
+
}),
|
|
2373
2385
|
loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
|
|
2374
2386
|
'qp-status-eq': 10,
|
|
2375
2387
|
'qp-isMain-eq': 1,
|
|
2376
2388
|
'qp-type-in': '1,2',
|
|
2377
|
-
},
|
|
2389
|
+
}, {
|
|
2390
|
+
headers: {
|
|
2391
|
+
...extralHeaders
|
|
2392
|
+
}
|
|
2393
|
+
}),
|
|
2378
2394
|
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
2379
2395
|
'qp-status-eq': 1,
|
|
2380
|
-
},
|
|
2396
|
+
},{
|
|
2397
|
+
headers: {
|
|
2398
|
+
...extralHeaders
|
|
2399
|
+
}
|
|
2400
|
+
}),
|
|
2381
2401
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
2382
2402
|
pageSize: 5000,
|
|
2383
2403
|
currentPage: 1,
|
|
2384
2404
|
'ctl-withAuth': true,
|
|
2385
|
-
},
|
|
2405
|
+
}, {
|
|
2406
|
+
headers: {
|
|
2407
|
+
...extralHeaders
|
|
2408
|
+
}
|
|
2409
|
+
}),
|
|
2386
2410
|
loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, {
|
|
2387
2411
|
headers: {
|
|
2388
2412
|
...extralHeaders
|
|
@@ -2396,10 +2420,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2396
2420
|
x[1].data = newData1;
|
|
2397
2421
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2398
2422
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2399
|
-
formatSource(x,0, 3, tableSearchForm);
|
|
2400
|
-
formatTreeDataSource(x, 1,
|
|
2401
|
-
formatTreeDataSource(x, 2,
|
|
2402
|
-
formatSource(x,3,
|
|
2423
|
+
// formatSource(x,0, 3, tableSearchForm);
|
|
2424
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2425
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2426
|
+
formatSource(x,3, 6, tableSearchForm, ['brandCode', 'name']);
|
|
2403
2427
|
|
|
2404
2428
|
const opRaw = x[4]?.data;
|
|
2405
2429
|
// 新增label属性
|
|
@@ -2414,11 +2438,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2414
2438
|
debugger
|
|
2415
2439
|
const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
|
|
2416
2440
|
const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
|
|
2417
|
-
tableSearchForm[
|
|
2418
|
-
tableSearchForm[
|
|
2419
|
-
tableSearchForm[
|
|
2420
|
-
tableSearchForm[
|
|
2421
|
-
tableSearchForm[
|
|
2441
|
+
tableSearchForm[7] = { ...tableSearchForm[8], initialSource: m1 };
|
|
2442
|
+
tableSearchForm[8] = { ...tableSearchForm[9], initialSource: m2 };
|
|
2443
|
+
tableSearchForm[9] = { ...tableSearchForm[10], initialSource: m3 };
|
|
2444
|
+
tableSearchForm[10] = { ...tableSearchForm[11], initialSource: m4 };
|
|
2445
|
+
tableSearchForm[11] = { ...tableSearchForm[12], initialSource: m5 };
|
|
2422
2446
|
})
|
|
2423
2447
|
modalTableProps = {
|
|
2424
2448
|
modalTableTitle: '选择商店',
|