@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.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
4
|
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
|
-
import _, { omit, uniqBy, escapeRegExp, isNil, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
5
|
+
import _, { omit, uniqBy, escapeRegExp, isNil, trim, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
@@ -5323,7 +5323,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5323
5323
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5324
5324
|
searchStartLength = _ref.searchStartLength,
|
|
5325
5325
|
_ref$isQuery = _ref.isQuery,
|
|
5326
|
-
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery
|
|
5326
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
|
|
5327
|
+
_ref$requireSearchCon = _ref.requireSearchCondition,
|
|
5328
|
+
requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
|
|
5327
5329
|
var requestConfig = _objectSpread2({
|
|
5328
5330
|
url: url,
|
|
5329
5331
|
method: method,
|
|
@@ -5886,6 +5888,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5886
5888
|
};
|
|
5887
5889
|
var onSearchTable = function onSearchTable() {
|
|
5888
5890
|
var params = form.getFieldsValue();
|
|
5891
|
+
// 必须选择一个值
|
|
5892
|
+
if (requireSearchCondition) {
|
|
5893
|
+
var hasValidValue = Object.values(params).some(function (value) {
|
|
5894
|
+
return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
|
|
5895
|
+
});
|
|
5896
|
+
if (!hasValidValue) {
|
|
5897
|
+
message$1.warning('请至少选择一个搜索条件');
|
|
5898
|
+
return;
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5889
5901
|
setModalSearched(true);
|
|
5890
5902
|
setTableFormParams(params);
|
|
5891
5903
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -6180,7 +6192,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6180
6192
|
});
|
|
6181
6193
|
};
|
|
6182
6194
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6183
|
-
var
|
|
6195
|
+
var _modalTableProps$tabl;
|
|
6196
|
+
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6197
|
+
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6198
|
+
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);
|
|
6199
|
+
var baseHeight = getTableHeigth(collapsedList);
|
|
6200
|
+
var rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan).totalRows;
|
|
6201
|
+
var rowsExpandedData = getFormRowInfo(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan);
|
|
6202
|
+
var rowsExpanded = rowsExpandedData.totalRows;
|
|
6203
|
+
var isMoreAction = false;
|
|
6204
|
+
if (24 / (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan) - rowsExpandedData.emptyArray.length === 1) {
|
|
6205
|
+
rowsExpanded++;
|
|
6206
|
+
isMoreAction = true;
|
|
6207
|
+
}
|
|
6208
|
+
var extraRows = !collapsed && canExpand ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
|
|
6209
|
+
var tableBoxHeighth = baseHeight;
|
|
6210
|
+
if (isMoreAction && extraRows > 0) {
|
|
6211
|
+
tableBoxHeighth = tableBoxHeighth + (extraRows - 1 ? extraRows - 1 : 0) * 34 + 32;
|
|
6212
|
+
} else {
|
|
6213
|
+
tableBoxHeighth = tableBoxHeighth + extraRows * 34;
|
|
6214
|
+
}
|
|
6184
6215
|
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6185
6216
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6186
6217
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
@@ -10455,7 +10486,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10455
10486
|
}, {
|
|
10456
10487
|
name: 'qp-zzdlbm-in',
|
|
10457
10488
|
type: 'select',
|
|
10458
|
-
label: '
|
|
10489
|
+
label: '品类',
|
|
10459
10490
|
field: {
|
|
10460
10491
|
type: 'select',
|
|
10461
10492
|
props: {
|
|
@@ -10474,7 +10505,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10474
10505
|
}, {
|
|
10475
10506
|
name: 'qp-zzzlbm-in',
|
|
10476
10507
|
type: 'select',
|
|
10477
|
-
label: '
|
|
10508
|
+
label: '大类',
|
|
10478
10509
|
field: {
|
|
10479
10510
|
type: 'select',
|
|
10480
10511
|
props: {
|
|
@@ -10493,7 +10524,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10493
10524
|
}, {
|
|
10494
10525
|
name: 'qp-zzxlbm-in',
|
|
10495
10526
|
type: 'select',
|
|
10496
|
-
label: '
|
|
10527
|
+
label: '中类',
|
|
10497
10528
|
field: {
|
|
10498
10529
|
type: 'select',
|
|
10499
10530
|
props: {
|
|
@@ -10583,7 +10614,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10583
10614
|
tableSearchForm: tableSearchForm,
|
|
10584
10615
|
isHorizontally: true,
|
|
10585
10616
|
tableSearchColSpan: 6,
|
|
10586
|
-
visibleFieldsCount: 13,
|
|
10587
10617
|
tableColumns: [{
|
|
10588
10618
|
title: '序号',
|
|
10589
10619
|
dataIndex: 'keyIndex',
|
|
@@ -11343,14 +11373,25 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11343
11373
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11344
11374
|
'qp-status-eq': 1
|
|
11345
11375
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11376
|
+
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11377
|
+
debugger;
|
|
11378
|
+
// 战区限制一级数据
|
|
11379
|
+
var newData1 = [];
|
|
11380
|
+
(_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) {
|
|
11381
|
+
newData1.push({
|
|
11382
|
+
code: item.code,
|
|
11383
|
+
name: item.name
|
|
11384
|
+
});
|
|
11385
|
+
});
|
|
11386
|
+
x[0].data = newData1;
|
|
11346
11387
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11347
11388
|
return data['parentCode'] === '0';
|
|
11348
11389
|
}; // 所属销售渠道 树节点不能点判断
|
|
11349
11390
|
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11350
11391
|
return data['parent'] === '0';
|
|
11351
11392
|
}; // 所属营销区域 树节点不能点判断
|
|
11352
|
-
formatTreeDataSource(x, 0,
|
|
11353
|
-
formatTreeDataSource(x, 1,
|
|
11393
|
+
formatTreeDataSource(x, 0, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11394
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11354
11395
|
});
|
|
11355
11396
|
tableSearchForm = [{
|
|
11356
11397
|
name: 'realWarehouseName*multiInput',
|
|
@@ -11365,17 +11406,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11365
11406
|
type: 'select',
|
|
11366
11407
|
label: '逻辑仓类型',
|
|
11367
11408
|
initialSource: getDictionarySource$1('SC00004')
|
|
11368
|
-
},
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
type: 'select',
|
|
11372
|
-
props: {
|
|
11373
|
-
mode: 'multiple'
|
|
11374
|
-
}
|
|
11375
|
-
},
|
|
11376
|
-
label: '管理大区',
|
|
11377
|
-
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11378
|
-
}, {
|
|
11409
|
+
},
|
|
11410
|
+
// { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
|
|
11411
|
+
{
|
|
11379
11412
|
name: 'qp-channelCode-in',
|
|
11380
11413
|
type: 'treeSelect',
|
|
11381
11414
|
label: '战区',
|
|
@@ -11476,7 +11509,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11476
11509
|
},
|
|
11477
11510
|
width: 100
|
|
11478
11511
|
}, {
|
|
11479
|
-
title: '
|
|
11512
|
+
title: '战区',
|
|
11480
11513
|
dataIndex: 'channelName',
|
|
11481
11514
|
defaultSort: 4,
|
|
11482
11515
|
width: 100
|
|
@@ -11557,11 +11590,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11557
11590
|
}
|
|
11558
11591
|
}
|
|
11559
11592
|
}, {
|
|
11560
|
-
name: 'qp-
|
|
11561
|
-
type: '
|
|
11562
|
-
label: '
|
|
11593
|
+
name: 'qp-operationWarehouseClassification-in',
|
|
11594
|
+
type: 'select',
|
|
11595
|
+
label: '分类',
|
|
11563
11596
|
field: {
|
|
11564
|
-
type: '
|
|
11597
|
+
type: 'select',
|
|
11565
11598
|
props: {
|
|
11566
11599
|
multiple: true,
|
|
11567
11600
|
treeData: [],
|
|
@@ -11577,7 +11610,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11577
11610
|
},
|
|
11578
11611
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11579
11612
|
}
|
|
11580
|
-
}
|
|
11613
|
+
},
|
|
11614
|
+
initialSource: getDictionarySource$1('BASIC_OPS_WH_TYPE')
|
|
11581
11615
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11582
11616
|
name: 'qp-status-eq',
|
|
11583
11617
|
type: 'select',
|
|
@@ -11595,11 +11629,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11595
11629
|
'qp-isMain-eq': 1,
|
|
11596
11630
|
'qp-type-in': '1,2'
|
|
11597
11631
|
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11632
|
+
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11598
11633
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11599
|
-
var
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11634
|
+
var newData1 = [];
|
|
11635
|
+
(_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) {
|
|
11636
|
+
newData1.push({
|
|
11637
|
+
code: item.code,
|
|
11638
|
+
name: item.name
|
|
11639
|
+
});
|
|
11640
|
+
});
|
|
11641
|
+
x[1].data = newData1;
|
|
11603
11642
|
});
|
|
11604
11643
|
modalTableProps = _objectSpread2({
|
|
11605
11644
|
modalTableTitle: '选择运营仓',
|
|
@@ -11871,18 +11910,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11871
11910
|
name: 'qp-code-like',
|
|
11872
11911
|
label: '客户编码'
|
|
11873
11912
|
}, {
|
|
11874
|
-
name: 'qp-createOrgCode-
|
|
11913
|
+
name: 'qp-createOrgCode-in',
|
|
11875
11914
|
type: 'select',
|
|
11876
11915
|
label: '创建组织',
|
|
11877
11916
|
field: {
|
|
11878
11917
|
type: 'select',
|
|
11879
11918
|
props: {
|
|
11880
|
-
|
|
11919
|
+
mode: 'multiple',
|
|
11881
11920
|
notFoundContent: '暂无数据',
|
|
11882
11921
|
allowClear: true,
|
|
11883
11922
|
showSearch: true,
|
|
11884
11923
|
showArrow: true,
|
|
11885
|
-
|
|
11924
|
+
maxTagCount: 1,
|
|
11886
11925
|
optionFilterProp: 'children',
|
|
11887
11926
|
filterOption: function filterOption(input, option) {
|
|
11888
11927
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -12257,26 +12296,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12257
12296
|
initialSource: shopFile2Type
|
|
12258
12297
|
},
|
|
12259
12298
|
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12299
|
+
// { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
12300
|
+
// type: 'select',
|
|
12301
|
+
// props: {
|
|
12302
|
+
// mode: 'multiple',
|
|
12303
|
+
// notFoundContent: '暂无数据',
|
|
12304
|
+
// allowClear: true,
|
|
12305
|
+
// showSearch: true,
|
|
12306
|
+
// showArrow: true,
|
|
12307
|
+
// maxTagCount: 1,
|
|
12308
|
+
// optionFilterProp: 'children',
|
|
12309
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
12310
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
12311
|
+
// },
|
|
12312
|
+
// } },
|
|
12260
12313
|
{
|
|
12261
|
-
name: 'qp-orgCode-in',
|
|
12262
|
-
type: 'select',
|
|
12263
|
-
label: '所属销售组织',
|
|
12264
|
-
field: {
|
|
12265
|
-
type: 'select',
|
|
12266
|
-
props: {
|
|
12267
|
-
mode: 'multiple',
|
|
12268
|
-
notFoundContent: '暂无数据',
|
|
12269
|
-
allowClear: true,
|
|
12270
|
-
showSearch: true,
|
|
12271
|
-
showArrow: true,
|
|
12272
|
-
maxTagCount: 1,
|
|
12273
|
-
optionFilterProp: 'children',
|
|
12274
|
-
filterOption: function filterOption(input, option) {
|
|
12275
|
-
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12276
|
-
}
|
|
12277
|
-
}
|
|
12278
|
-
}
|
|
12279
|
-
}, {
|
|
12280
12314
|
name: 'qp-channelCode-in',
|
|
12281
12315
|
type: 'treeSelect',
|
|
12282
12316
|
label: '战区',
|
|
@@ -12360,24 +12394,100 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12360
12394
|
}
|
|
12361
12395
|
}, {
|
|
12362
12396
|
name: 'qp-manageSupervisor-like',
|
|
12397
|
+
type: 'select',
|
|
12363
12398
|
label: '管理督导',
|
|
12364
|
-
|
|
12399
|
+
field: {
|
|
12400
|
+
type: 'select',
|
|
12401
|
+
props: {
|
|
12402
|
+
notFoundContent: '暂无数据',
|
|
12403
|
+
allowClear: true,
|
|
12404
|
+
showSearch: true,
|
|
12405
|
+
showArrow: true,
|
|
12406
|
+
maxTagCount: 1,
|
|
12407
|
+
optionFilterProp: 'children',
|
|
12408
|
+
filterOption: function filterOption(input, option) {
|
|
12409
|
+
var _option$value;
|
|
12410
|
+
debugger;
|
|
12411
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12412
|
+
}
|
|
12413
|
+
}
|
|
12414
|
+
}
|
|
12365
12415
|
}, {
|
|
12366
12416
|
name: 'qp-directSupervisor-like',
|
|
12417
|
+
type: 'select',
|
|
12367
12418
|
label: '直接督导',
|
|
12368
|
-
|
|
12419
|
+
field: {
|
|
12420
|
+
type: 'select',
|
|
12421
|
+
props: {
|
|
12422
|
+
notFoundContent: '暂无数据',
|
|
12423
|
+
allowClear: true,
|
|
12424
|
+
showSearch: true,
|
|
12425
|
+
showArrow: true,
|
|
12426
|
+
maxTagCount: 1,
|
|
12427
|
+
optionFilterProp: 'children',
|
|
12428
|
+
filterOption: function filterOption(input, option) {
|
|
12429
|
+
var _option$value2;
|
|
12430
|
+
return ((_option$value2 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value2 !== void 0 ? _option$value2 : '').toLowerCase().includes(input.toLowerCase());
|
|
12431
|
+
}
|
|
12432
|
+
}
|
|
12433
|
+
}
|
|
12369
12434
|
}, {
|
|
12370
12435
|
name: 'qp-distributionItem-like',
|
|
12436
|
+
type: 'select',
|
|
12371
12437
|
label: '分销商品',
|
|
12372
|
-
|
|
12438
|
+
field: {
|
|
12439
|
+
type: 'select',
|
|
12440
|
+
props: {
|
|
12441
|
+
notFoundContent: '暂无数据',
|
|
12442
|
+
allowClear: true,
|
|
12443
|
+
showSearch: true,
|
|
12444
|
+
showArrow: true,
|
|
12445
|
+
maxTagCount: 1,
|
|
12446
|
+
optionFilterProp: 'children',
|
|
12447
|
+
filterOption: function filterOption(input, option) {
|
|
12448
|
+
var _option$value3;
|
|
12449
|
+
return ((_option$value3 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value3 !== void 0 ? _option$value3 : '').toLowerCase().includes(input.toLowerCase());
|
|
12450
|
+
}
|
|
12451
|
+
}
|
|
12452
|
+
}
|
|
12373
12453
|
}, {
|
|
12374
12454
|
name: 'qp-headItem-like',
|
|
12455
|
+
type: 'select',
|
|
12375
12456
|
label: '总部商品',
|
|
12376
|
-
|
|
12457
|
+
field: {
|
|
12458
|
+
type: 'select',
|
|
12459
|
+
props: {
|
|
12460
|
+
notFoundContent: '暂无数据',
|
|
12461
|
+
allowClear: true,
|
|
12462
|
+
showSearch: true,
|
|
12463
|
+
showArrow: true,
|
|
12464
|
+
maxTagCount: 1,
|
|
12465
|
+
optionFilterProp: 'children',
|
|
12466
|
+
filterOption: function filterOption(input, option) {
|
|
12467
|
+
var _option$value4;
|
|
12468
|
+
return ((_option$value4 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value4 !== void 0 ? _option$value4 : '').toLowerCase().includes(input.toLowerCase());
|
|
12469
|
+
}
|
|
12470
|
+
}
|
|
12471
|
+
}
|
|
12377
12472
|
}, {
|
|
12378
12473
|
name: 'qp-storeChannelName-like',
|
|
12474
|
+
type: 'select',
|
|
12379
12475
|
label: '管理模式',
|
|
12380
|
-
|
|
12476
|
+
field: {
|
|
12477
|
+
type: 'select',
|
|
12478
|
+
props: {
|
|
12479
|
+
notFoundContent: '暂无数据',
|
|
12480
|
+
allowClear: true,
|
|
12481
|
+
showSearch: true,
|
|
12482
|
+
showArrow: true,
|
|
12483
|
+
maxTagCount: 1,
|
|
12484
|
+
optionFilterProp: 'children',
|
|
12485
|
+
filterOption: function filterOption(input, option) {
|
|
12486
|
+
var _option$value5;
|
|
12487
|
+
return ((_option$value5 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value5 !== void 0 ? _option$value5 : '').toLowerCase().includes(input.toLowerCase());
|
|
12488
|
+
}
|
|
12489
|
+
}
|
|
12490
|
+
}
|
|
12381
12491
|
}];
|
|
12382
12492
|
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12383
12493
|
querySelectHeadersList: querySelectHeadersList,
|
|
@@ -12397,7 +12507,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12397
12507
|
pageSize: 5000,
|
|
12398
12508
|
currentPage: 1,
|
|
12399
12509
|
'ctl-withAuth': true
|
|
12400
|
-
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))
|
|
12510
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, {
|
|
12511
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
12512
|
+
})]).then(function (x) {
|
|
12513
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12514
|
+
var newData1 = [];
|
|
12515
|
+
(_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) {
|
|
12516
|
+
newData1.push({
|
|
12517
|
+
code: item.code,
|
|
12518
|
+
name: item.name
|
|
12519
|
+
});
|
|
12520
|
+
});
|
|
12521
|
+
x[1].data = newData1;
|
|
12401
12522
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12402
12523
|
return data['parentCode'] === '0';
|
|
12403
12524
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12408,6 +12529,46 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12408
12529
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12409
12530
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12410
12531
|
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12532
|
+
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12533
|
+
// 新增label属性
|
|
12534
|
+
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
12535
|
+
r.label = r === null || r === void 0 ? void 0 : r.value;
|
|
12536
|
+
});
|
|
12537
|
+
var opList = Array.isArray(opRaw) ? opRaw : (opRaw === null || opRaw === void 0 ? void 0 : opRaw.items) || (opRaw === null || opRaw === void 0 ? void 0 : opRaw.list) || [];
|
|
12538
|
+
if (Array.isArray(opList) && Array.isArray(opList[0]) && !((_opList$ = opList[0]) === null || _opList$ === void 0 ? void 0 : _opList$.field)) {
|
|
12539
|
+
opList = opList[0];
|
|
12540
|
+
}
|
|
12541
|
+
var m1 = (_opList2 = opList) === null || _opList2 === void 0 ? void 0 : _opList2.filter(function (r) {
|
|
12542
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'manage_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12543
|
+
});
|
|
12544
|
+
var m2 = (_opList3 = opList) === null || _opList3 === void 0 ? void 0 : _opList3.filter(function (r) {
|
|
12545
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'direct_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12546
|
+
});
|
|
12547
|
+
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12548
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12549
|
+
});
|
|
12550
|
+
debugger;
|
|
12551
|
+
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12552
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12553
|
+
});
|
|
12554
|
+
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12555
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12556
|
+
});
|
|
12557
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12558
|
+
initialSource: m1
|
|
12559
|
+
});
|
|
12560
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12561
|
+
initialSource: m2
|
|
12562
|
+
});
|
|
12563
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12564
|
+
initialSource: m3
|
|
12565
|
+
});
|
|
12566
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12567
|
+
initialSource: m4
|
|
12568
|
+
});
|
|
12569
|
+
tableSearchForm[12] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12570
|
+
initialSource: m5
|
|
12571
|
+
});
|
|
12411
12572
|
});
|
|
12412
12573
|
modalTableProps = _objectSpread2({
|
|
12413
12574
|
modalTableTitle: '选择商店',
|