@bit-sun/business-component 4.2.1-alpha.1-aiwei → 4.2.1-alpha.11-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.js
CHANGED
|
@@ -5346,7 +5346,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5346
5346
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5347
5347
|
searchStartLength = _ref.searchStartLength,
|
|
5348
5348
|
_ref$isQuery = _ref.isQuery,
|
|
5349
|
-
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery
|
|
5349
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
|
|
5350
|
+
_ref$requireSearchCon = _ref.requireSearchCondition,
|
|
5351
|
+
requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
|
|
5350
5352
|
var requestConfig = _objectSpread2({
|
|
5351
5353
|
url: url,
|
|
5352
5354
|
method: method,
|
|
@@ -5909,6 +5911,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5909
5911
|
};
|
|
5910
5912
|
var onSearchTable = function onSearchTable() {
|
|
5911
5913
|
var params = form.getFieldsValue();
|
|
5914
|
+
// 必须选择一个值
|
|
5915
|
+
if (requireSearchCondition) {
|
|
5916
|
+
var hasValidValue = Object.values(params).some(function (value) {
|
|
5917
|
+
return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
|
|
5918
|
+
});
|
|
5919
|
+
if (!hasValidValue) {
|
|
5920
|
+
antd.message.warning('请至少选择一个搜索条件');
|
|
5921
|
+
return;
|
|
5922
|
+
}
|
|
5923
|
+
}
|
|
5912
5924
|
setModalSearched(true);
|
|
5913
5925
|
setTableFormParams(params);
|
|
5914
5926
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -6203,7 +6215,26 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6203
6215
|
});
|
|
6204
6216
|
};
|
|
6205
6217
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6206
|
-
var
|
|
6218
|
+
var _modalTableProps$tabl;
|
|
6219
|
+
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6220
|
+
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6221
|
+
var collapsedList = modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableSearchForm) === null || _modalTableProps$tabl === void 0 ? void 0 : _modalTableProps$tabl.slice(0, viCount);
|
|
6222
|
+
var baseHeight = getTableHeigth(collapsedList);
|
|
6223
|
+
var rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan).totalRows;
|
|
6224
|
+
var rowsExpandedData = getFormRowInfo(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan);
|
|
6225
|
+
var rowsExpanded = rowsExpandedData.totalRows;
|
|
6226
|
+
var isMoreAction = false;
|
|
6227
|
+
if (24 / (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan) - rowsExpandedData.emptyArray.length === 1) {
|
|
6228
|
+
rowsExpanded++;
|
|
6229
|
+
isMoreAction = true;
|
|
6230
|
+
}
|
|
6231
|
+
var extraRows = !collapsed && canExpand ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
|
|
6232
|
+
var tableBoxHeighth = baseHeight;
|
|
6233
|
+
if (isMoreAction && extraRows > 0) {
|
|
6234
|
+
tableBoxHeighth = tableBoxHeighth + (extraRows - 1 ? extraRows - 1 : 0) * 34 + 32;
|
|
6235
|
+
} else {
|
|
6236
|
+
tableBoxHeighth = tableBoxHeighth + extraRows * 34;
|
|
6237
|
+
}
|
|
6207
6238
|
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6208
6239
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6209
6240
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
@@ -10478,7 +10509,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10478
10509
|
}, {
|
|
10479
10510
|
name: 'qp-zzdlbm-in',
|
|
10480
10511
|
type: 'select',
|
|
10481
|
-
label: '
|
|
10512
|
+
label: '品类',
|
|
10482
10513
|
field: {
|
|
10483
10514
|
type: 'select',
|
|
10484
10515
|
props: {
|
|
@@ -10497,7 +10528,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10497
10528
|
}, {
|
|
10498
10529
|
name: 'qp-zzzlbm-in',
|
|
10499
10530
|
type: 'select',
|
|
10500
|
-
label: '
|
|
10531
|
+
label: '大类',
|
|
10501
10532
|
field: {
|
|
10502
10533
|
type: 'select',
|
|
10503
10534
|
props: {
|
|
@@ -10516,7 +10547,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10516
10547
|
}, {
|
|
10517
10548
|
name: 'qp-zzxlbm-in',
|
|
10518
10549
|
type: 'select',
|
|
10519
|
-
label: '
|
|
10550
|
+
label: '中类',
|
|
10520
10551
|
field: {
|
|
10521
10552
|
type: 'select',
|
|
10522
10553
|
props: {
|
|
@@ -10606,7 +10637,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10606
10637
|
tableSearchForm: tableSearchForm,
|
|
10607
10638
|
isHorizontally: true,
|
|
10608
10639
|
tableSearchColSpan: 6,
|
|
10609
|
-
visibleFieldsCount: 13,
|
|
10610
10640
|
tableColumns: [{
|
|
10611
10641
|
title: '序号',
|
|
10612
10642
|
dataIndex: 'keyIndex',
|
|
@@ -11366,14 +11396,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11366
11396
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11367
11397
|
'qp-status-eq': 1
|
|
11368
11398
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11399
|
+
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11400
|
+
debugger;
|
|
11401
|
+
// 战区限制一级数据
|
|
11402
|
+
var newData1 = [];
|
|
11403
|
+
(_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
|
|
11404
|
+
newData1.push({
|
|
11405
|
+
code: item.code,
|
|
11406
|
+
name: item.name
|
|
11407
|
+
});
|
|
11408
|
+
});
|
|
11409
|
+
x[0].data = newData1;
|
|
11369
11410
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11370
11411
|
return data['parentCode'] === '0';
|
|
11371
11412
|
}; // 所属销售渠道 树节点不能点判断
|
|
11372
11413
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11373
11414
|
return data['parent'] === '0';
|
|
11374
11415
|
}; // 所属营销区域 树节点不能点判断
|
|
11375
|
-
formatTreeDataSource(x, 0,
|
|
11376
|
-
formatTreeDataSource(x, 1,
|
|
11416
|
+
formatTreeDataSource(x, 0, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11417
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11377
11418
|
});
|
|
11378
11419
|
tableSearchForm = [{
|
|
11379
11420
|
name: 'realWarehouseName*multiInput',
|
|
@@ -11388,17 +11429,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11388
11429
|
type: 'select',
|
|
11389
11430
|
label: '逻辑仓类型',
|
|
11390
11431
|
initialSource: getDictionarySource$1('SC00004')
|
|
11391
|
-
},
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
type: 'select',
|
|
11395
|
-
props: {
|
|
11396
|
-
mode: 'multiple'
|
|
11397
|
-
}
|
|
11398
|
-
},
|
|
11399
|
-
label: '管理大区',
|
|
11400
|
-
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11401
|
-
}, {
|
|
11432
|
+
},
|
|
11433
|
+
// { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
|
|
11434
|
+
{
|
|
11402
11435
|
name: 'qp-channelCode-in',
|
|
11403
11436
|
type: 'treeSelect',
|
|
11404
11437
|
label: '战区',
|
|
@@ -11499,7 +11532,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11499
11532
|
},
|
|
11500
11533
|
width: 100
|
|
11501
11534
|
}, {
|
|
11502
|
-
title: '
|
|
11535
|
+
title: '战区',
|
|
11503
11536
|
dataIndex: 'channelName',
|
|
11504
11537
|
defaultSort: 4,
|
|
11505
11538
|
width: 100
|
|
@@ -11580,11 +11613,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11580
11613
|
}
|
|
11581
11614
|
}
|
|
11582
11615
|
}, {
|
|
11583
|
-
name: 'qp-
|
|
11584
|
-
type: '
|
|
11585
|
-
label: '
|
|
11616
|
+
name: 'qp-operationWarehouseClassification-in',
|
|
11617
|
+
type: 'select',
|
|
11618
|
+
label: '分类',
|
|
11586
11619
|
field: {
|
|
11587
|
-
type: '
|
|
11620
|
+
type: 'select',
|
|
11588
11621
|
props: {
|
|
11589
11622
|
multiple: true,
|
|
11590
11623
|
treeData: [],
|
|
@@ -11600,7 +11633,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11600
11633
|
},
|
|
11601
11634
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11602
11635
|
}
|
|
11603
|
-
}
|
|
11636
|
+
},
|
|
11637
|
+
initialSource: getDictionarySource$1('BASIC_OPS_WH_TYPE')
|
|
11604
11638
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11605
11639
|
name: 'qp-status-eq',
|
|
11606
11640
|
type: 'select',
|
|
@@ -11618,11 +11652,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11618
11652
|
'qp-isMain-eq': 1,
|
|
11619
11653
|
'qp-type-in': '1,2'
|
|
11620
11654
|
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11655
|
+
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11621
11656
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11622
|
-
var
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11657
|
+
var newData1 = [];
|
|
11658
|
+
(_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
|
|
11659
|
+
newData1.push({
|
|
11660
|
+
code: item.code,
|
|
11661
|
+
name: item.name
|
|
11662
|
+
});
|
|
11663
|
+
});
|
|
11664
|
+
x[1].data = newData1;
|
|
11626
11665
|
});
|
|
11627
11666
|
modalTableProps = _objectSpread2({
|
|
11628
11667
|
modalTableTitle: '选择运营仓',
|
|
@@ -11894,18 +11933,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11894
11933
|
name: 'qp-code-like',
|
|
11895
11934
|
label: '客户编码'
|
|
11896
11935
|
}, {
|
|
11897
|
-
name: 'qp-createOrgCode-
|
|
11936
|
+
name: 'qp-createOrgCode-in',
|
|
11898
11937
|
type: 'select',
|
|
11899
11938
|
label: '创建组织',
|
|
11900
11939
|
field: {
|
|
11901
11940
|
type: 'select',
|
|
11902
11941
|
props: {
|
|
11903
|
-
|
|
11942
|
+
mode: 'multiple',
|
|
11904
11943
|
notFoundContent: '暂无数据',
|
|
11905
11944
|
allowClear: true,
|
|
11906
11945
|
showSearch: true,
|
|
11907
11946
|
showArrow: true,
|
|
11908
|
-
|
|
11947
|
+
maxTagCount: 1,
|
|
11909
11948
|
optionFilterProp: 'children',
|
|
11910
11949
|
filterOption: function filterOption(input, option) {
|
|
11911
11950
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -12280,26 +12319,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12280
12319
|
initialSource: shopFile2Type
|
|
12281
12320
|
},
|
|
12282
12321
|
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12322
|
+
// { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
12323
|
+
// type: 'select',
|
|
12324
|
+
// props: {
|
|
12325
|
+
// mode: 'multiple',
|
|
12326
|
+
// notFoundContent: '暂无数据',
|
|
12327
|
+
// allowClear: true,
|
|
12328
|
+
// showSearch: true,
|
|
12329
|
+
// showArrow: true,
|
|
12330
|
+
// maxTagCount: 1,
|
|
12331
|
+
// optionFilterProp: 'children',
|
|
12332
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
12333
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
12334
|
+
// },
|
|
12335
|
+
// } },
|
|
12283
12336
|
{
|
|
12284
|
-
name: 'qp-orgCode-in',
|
|
12285
|
-
type: 'select',
|
|
12286
|
-
label: '所属销售组织',
|
|
12287
|
-
field: {
|
|
12288
|
-
type: 'select',
|
|
12289
|
-
props: {
|
|
12290
|
-
mode: 'multiple',
|
|
12291
|
-
notFoundContent: '暂无数据',
|
|
12292
|
-
allowClear: true,
|
|
12293
|
-
showSearch: true,
|
|
12294
|
-
showArrow: true,
|
|
12295
|
-
maxTagCount: 1,
|
|
12296
|
-
optionFilterProp: 'children',
|
|
12297
|
-
filterOption: function filterOption(input, option) {
|
|
12298
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12299
|
-
}
|
|
12300
|
-
}
|
|
12301
|
-
}
|
|
12302
|
-
}, {
|
|
12303
12337
|
name: 'qp-channelCode-in',
|
|
12304
12338
|
type: 'treeSelect',
|
|
12305
12339
|
label: '战区',
|
|
@@ -12383,24 +12417,100 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12383
12417
|
}
|
|
12384
12418
|
}, {
|
|
12385
12419
|
name: 'qp-manageSupervisor-like',
|
|
12420
|
+
type: 'select',
|
|
12386
12421
|
label: '管理督导',
|
|
12387
|
-
|
|
12422
|
+
field: {
|
|
12423
|
+
type: 'select',
|
|
12424
|
+
props: {
|
|
12425
|
+
notFoundContent: '暂无数据',
|
|
12426
|
+
allowClear: true,
|
|
12427
|
+
showSearch: true,
|
|
12428
|
+
showArrow: true,
|
|
12429
|
+
maxTagCount: 1,
|
|
12430
|
+
optionFilterProp: 'children',
|
|
12431
|
+
filterOption: function filterOption(input, option) {
|
|
12432
|
+
var _option$value;
|
|
12433
|
+
debugger;
|
|
12434
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12435
|
+
}
|
|
12436
|
+
}
|
|
12437
|
+
}
|
|
12388
12438
|
}, {
|
|
12389
12439
|
name: 'qp-directSupervisor-like',
|
|
12440
|
+
type: 'select',
|
|
12390
12441
|
label: '直接督导',
|
|
12391
|
-
|
|
12442
|
+
field: {
|
|
12443
|
+
type: 'select',
|
|
12444
|
+
props: {
|
|
12445
|
+
notFoundContent: '暂无数据',
|
|
12446
|
+
allowClear: true,
|
|
12447
|
+
showSearch: true,
|
|
12448
|
+
showArrow: true,
|
|
12449
|
+
maxTagCount: 1,
|
|
12450
|
+
optionFilterProp: 'children',
|
|
12451
|
+
filterOption: function filterOption(input, option) {
|
|
12452
|
+
var _option$value2;
|
|
12453
|
+
return ((_option$value2 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value2 !== void 0 ? _option$value2 : '').toLowerCase().includes(input.toLowerCase());
|
|
12454
|
+
}
|
|
12455
|
+
}
|
|
12456
|
+
}
|
|
12392
12457
|
}, {
|
|
12393
12458
|
name: 'qp-distributionItem-like',
|
|
12459
|
+
type: 'select',
|
|
12394
12460
|
label: '分销商品',
|
|
12395
|
-
|
|
12461
|
+
field: {
|
|
12462
|
+
type: 'select',
|
|
12463
|
+
props: {
|
|
12464
|
+
notFoundContent: '暂无数据',
|
|
12465
|
+
allowClear: true,
|
|
12466
|
+
showSearch: true,
|
|
12467
|
+
showArrow: true,
|
|
12468
|
+
maxTagCount: 1,
|
|
12469
|
+
optionFilterProp: 'children',
|
|
12470
|
+
filterOption: function filterOption(input, option) {
|
|
12471
|
+
var _option$value3;
|
|
12472
|
+
return ((_option$value3 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value3 !== void 0 ? _option$value3 : '').toLowerCase().includes(input.toLowerCase());
|
|
12473
|
+
}
|
|
12474
|
+
}
|
|
12475
|
+
}
|
|
12396
12476
|
}, {
|
|
12397
12477
|
name: 'qp-headItem-like',
|
|
12478
|
+
type: 'select',
|
|
12398
12479
|
label: '总部商品',
|
|
12399
|
-
|
|
12480
|
+
field: {
|
|
12481
|
+
type: 'select',
|
|
12482
|
+
props: {
|
|
12483
|
+
notFoundContent: '暂无数据',
|
|
12484
|
+
allowClear: true,
|
|
12485
|
+
showSearch: true,
|
|
12486
|
+
showArrow: true,
|
|
12487
|
+
maxTagCount: 1,
|
|
12488
|
+
optionFilterProp: 'children',
|
|
12489
|
+
filterOption: function filterOption(input, option) {
|
|
12490
|
+
var _option$value4;
|
|
12491
|
+
return ((_option$value4 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value4 !== void 0 ? _option$value4 : '').toLowerCase().includes(input.toLowerCase());
|
|
12492
|
+
}
|
|
12493
|
+
}
|
|
12494
|
+
}
|
|
12400
12495
|
}, {
|
|
12401
12496
|
name: 'qp-storeChannelName-like',
|
|
12497
|
+
type: 'select',
|
|
12402
12498
|
label: '管理模式',
|
|
12403
|
-
|
|
12499
|
+
field: {
|
|
12500
|
+
type: 'select',
|
|
12501
|
+
props: {
|
|
12502
|
+
notFoundContent: '暂无数据',
|
|
12503
|
+
allowClear: true,
|
|
12504
|
+
showSearch: true,
|
|
12505
|
+
showArrow: true,
|
|
12506
|
+
maxTagCount: 1,
|
|
12507
|
+
optionFilterProp: 'children',
|
|
12508
|
+
filterOption: function filterOption(input, option) {
|
|
12509
|
+
var _option$value5;
|
|
12510
|
+
return ((_option$value5 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value5 !== void 0 ? _option$value5 : '').toLowerCase().includes(input.toLowerCase());
|
|
12511
|
+
}
|
|
12512
|
+
}
|
|
12513
|
+
}
|
|
12404
12514
|
}];
|
|
12405
12515
|
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12406
12516
|
querySelectHeadersList: querySelectHeadersList,
|
|
@@ -12420,7 +12530,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12420
12530
|
pageSize: 5000,
|
|
12421
12531
|
currentPage: 1,
|
|
12422
12532
|
'ctl-withAuth': true
|
|
12423
|
-
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))
|
|
12533
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12534
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12535
|
+
})]).then(function (x) {
|
|
12536
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12537
|
+
var newData1 = [];
|
|
12538
|
+
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
12539
|
+
newData1.push({
|
|
12540
|
+
code: item.code,
|
|
12541
|
+
name: item.name
|
|
12542
|
+
});
|
|
12543
|
+
});
|
|
12544
|
+
x[1].data = newData1;
|
|
12424
12545
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12425
12546
|
return data['parentCode'] === '0';
|
|
12426
12547
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12431,6 +12552,46 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12431
12552
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12432
12553
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12433
12554
|
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12555
|
+
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12556
|
+
// 新增label属性
|
|
12557
|
+
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
12558
|
+
r.label = r === null || r === void 0 ? void 0 : r.value;
|
|
12559
|
+
});
|
|
12560
|
+
var opList = Array.isArray(opRaw) ? opRaw : (opRaw === null || opRaw === void 0 ? void 0 : opRaw.items) || (opRaw === null || opRaw === void 0 ? void 0 : opRaw.list) || [];
|
|
12561
|
+
if (Array.isArray(opList) && Array.isArray(opList[0]) && !((_opList$ = opList[0]) === null || _opList$ === void 0 ? void 0 : _opList$.field)) {
|
|
12562
|
+
opList = opList[0];
|
|
12563
|
+
}
|
|
12564
|
+
var m1 = (_opList2 = opList) === null || _opList2 === void 0 ? void 0 : _opList2.filter(function (r) {
|
|
12565
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'manage_supervisor' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12566
|
+
});
|
|
12567
|
+
var m2 = (_opList3 = opList) === null || _opList3 === void 0 ? void 0 : _opList3.filter(function (r) {
|
|
12568
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'direct_supervisor' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12569
|
+
});
|
|
12570
|
+
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12571
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12572
|
+
});
|
|
12573
|
+
debugger;
|
|
12574
|
+
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12575
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12576
|
+
});
|
|
12577
|
+
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12578
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && _.trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12579
|
+
});
|
|
12580
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12581
|
+
initialSource: m1
|
|
12582
|
+
});
|
|
12583
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12584
|
+
initialSource: m2
|
|
12585
|
+
});
|
|
12586
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12587
|
+
initialSource: m3
|
|
12588
|
+
});
|
|
12589
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12590
|
+
initialSource: m4
|
|
12591
|
+
});
|
|
12592
|
+
tableSearchForm[12] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12593
|
+
initialSource: m5
|
|
12594
|
+
});
|
|
12434
12595
|
});
|
|
12435
12596
|
modalTableProps = _objectSpread2({
|
|
12436
12597
|
modalTableTitle: '选择商店',
|