@bit-sun/business-component 4.2.1-alpha.11-aiwei → 4.2.1-alpha.13-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 +27 -15
- package/dist/index.js +27 -15
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +716 -795
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 = [];
|
|
@@ -12497,17 +12501,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12497
12501
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12498
12502
|
'qp-realOrg-eq': true,
|
|
12499
12503
|
'qp-status-eq': 10
|
|
12500
|
-
},
|
|
12504
|
+
}, {
|
|
12505
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12506
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12501
12507
|
'qp-status-eq': 10,
|
|
12502
12508
|
'qp-isMain-eq': 1,
|
|
12503
12509
|
'qp-type-in': '1,2'
|
|
12504
|
-
},
|
|
12510
|
+
}, {
|
|
12511
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12512
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12505
12513
|
'qp-status-eq': 1
|
|
12506
|
-
},
|
|
12514
|
+
}, {
|
|
12515
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12516
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12507
12517
|
pageSize: 5000,
|
|
12508
12518
|
currentPage: 1,
|
|
12509
12519
|
'ctl-withAuth': true
|
|
12510
|
-
},
|
|
12520
|
+
}, {
|
|
12521
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12522
|
+
}), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12511
12523
|
headers: _objectSpread2({}, extralHeaders)
|
|
12512
12524
|
})]).then(function (x) {
|
|
12513
12525
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
@@ -12525,10 +12537,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12525
12537
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12526
12538
|
return data['parent'] === '0';
|
|
12527
12539
|
}; // 所属营销区域 树节点不能点判断
|
|
12528
|
-
formatSource(x,
|
|
12529
|
-
formatTreeDataSource(x, 1,
|
|
12530
|
-
formatTreeDataSource(x, 2,
|
|
12531
|
-
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']);
|
|
12532
12544
|
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12533
12545
|
// 新增label属性
|
|
12534
12546
|
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
@@ -12554,19 +12566,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12554
12566
|
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12555
12567
|
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12556
12568
|
});
|
|
12557
|
-
tableSearchForm[
|
|
12569
|
+
tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[7]), {}, {
|
|
12558
12570
|
initialSource: m1
|
|
12559
12571
|
});
|
|
12560
|
-
tableSearchForm[
|
|
12572
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12561
12573
|
initialSource: m2
|
|
12562
12574
|
});
|
|
12563
|
-
tableSearchForm[
|
|
12575
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12564
12576
|
initialSource: m3
|
|
12565
12577
|
});
|
|
12566
|
-
tableSearchForm[
|
|
12578
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12567
12579
|
initialSource: m4
|
|
12568
12580
|
});
|
|
12569
|
-
tableSearchForm[
|
|
12581
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12570
12582
|
initialSource: m5
|
|
12571
12583
|
});
|
|
12572
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 = [];
|
|
@@ -12520,17 +12524,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12520
12524
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12521
12525
|
'qp-realOrg-eq': true,
|
|
12522
12526
|
'qp-status-eq': 10
|
|
12523
|
-
},
|
|
12527
|
+
}, {
|
|
12528
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12529
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12524
12530
|
'qp-status-eq': 10,
|
|
12525
12531
|
'qp-isMain-eq': 1,
|
|
12526
12532
|
'qp-type-in': '1,2'
|
|
12527
|
-
},
|
|
12533
|
+
}, {
|
|
12534
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12535
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12528
12536
|
'qp-status-eq': 1
|
|
12529
|
-
},
|
|
12537
|
+
}, {
|
|
12538
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12539
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12530
12540
|
pageSize: 5000,
|
|
12531
12541
|
currentPage: 1,
|
|
12532
12542
|
'ctl-withAuth': true
|
|
12533
|
-
},
|
|
12543
|
+
}, {
|
|
12544
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12545
|
+
}), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12534
12546
|
headers: _objectSpread2({}, extralHeaders)
|
|
12535
12547
|
})]).then(function (x) {
|
|
12536
12548
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
@@ -12548,10 +12560,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12548
12560
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12549
12561
|
return data['parent'] === '0';
|
|
12550
12562
|
}; // 所属营销区域 树节点不能点判断
|
|
12551
|
-
formatSource(x,
|
|
12552
|
-
formatTreeDataSource(x, 1,
|
|
12553
|
-
formatTreeDataSource(x, 2,
|
|
12554
|
-
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']);
|
|
12555
12567
|
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12556
12568
|
// 新增label属性
|
|
12557
12569
|
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
@@ -12577,19 +12589,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12577
12589
|
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12578
12590
|
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12579
12591
|
});
|
|
12580
|
-
tableSearchForm[
|
|
12592
|
+
tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[7]), {}, {
|
|
12581
12593
|
initialSource: m1
|
|
12582
12594
|
});
|
|
12583
|
-
tableSearchForm[
|
|
12595
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12584
12596
|
initialSource: m2
|
|
12585
12597
|
});
|
|
12586
|
-
tableSearchForm[
|
|
12598
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12587
12599
|
initialSource: m3
|
|
12588
12600
|
});
|
|
12589
|
-
tableSearchForm[
|
|
12601
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12590
12602
|
initialSource: m4
|
|
12591
12603
|
});
|
|
12592
|
-
tableSearchForm[
|
|
12604
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12593
12605
|
initialSource: m5
|
|
12594
12606
|
});
|
|
12595
12607
|
});
|