@bit-sun/business-component 4.2.1-alpha.16-aiwei → 4.2.1-alpha.17-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
|
@@ -12403,7 +12403,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12403
12403
|
}
|
|
12404
12404
|
}
|
|
12405
12405
|
}, {
|
|
12406
|
-
name: 'qp-manageSupervisor-
|
|
12406
|
+
name: 'qp-manageSupervisor-like',
|
|
12407
12407
|
type: 'select',
|
|
12408
12408
|
label: '管理督导',
|
|
12409
12409
|
field: {
|
|
@@ -12411,9 +12411,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12411
12411
|
props: {
|
|
12412
12412
|
notFoundContent: '暂无数据',
|
|
12413
12413
|
allowClear: true,
|
|
12414
|
-
mode: 'multiple',
|
|
12415
12414
|
showSearch: true,
|
|
12416
12415
|
showArrow: true,
|
|
12416
|
+
maxTagCount: 1,
|
|
12417
12417
|
optionFilterProp: 'children',
|
|
12418
12418
|
filterOption: function filterOption(input, option) {
|
|
12419
12419
|
var _option$value;
|
|
@@ -12423,17 +12423,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12423
12423
|
}
|
|
12424
12424
|
}
|
|
12425
12425
|
}, {
|
|
12426
|
-
name: 'qp-directSupervisor-
|
|
12426
|
+
name: 'qp-directSupervisor-like',
|
|
12427
12427
|
type: 'select',
|
|
12428
12428
|
label: '直接督导',
|
|
12429
12429
|
field: {
|
|
12430
12430
|
type: 'select',
|
|
12431
12431
|
props: {
|
|
12432
12432
|
notFoundContent: '暂无数据',
|
|
12433
|
-
mode: 'multiple',
|
|
12434
12433
|
allowClear: true,
|
|
12435
12434
|
showSearch: true,
|
|
12436
12435
|
showArrow: true,
|
|
12436
|
+
maxTagCount: 1,
|
|
12437
12437
|
optionFilterProp: 'children',
|
|
12438
12438
|
filterOption: function filterOption(input, option) {
|
|
12439
12439
|
var _option$value2;
|
|
@@ -12442,17 +12442,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12442
12442
|
}
|
|
12443
12443
|
}
|
|
12444
12444
|
}, {
|
|
12445
|
-
name: 'qp-distributionItem-
|
|
12445
|
+
name: 'qp-distributionItem-like',
|
|
12446
12446
|
type: 'select',
|
|
12447
12447
|
label: '分销商品',
|
|
12448
12448
|
field: {
|
|
12449
12449
|
type: 'select',
|
|
12450
12450
|
props: {
|
|
12451
12451
|
notFoundContent: '暂无数据',
|
|
12452
|
-
mode: 'multiple',
|
|
12453
12452
|
allowClear: true,
|
|
12454
12453
|
showSearch: true,
|
|
12455
12454
|
showArrow: true,
|
|
12455
|
+
maxTagCount: 1,
|
|
12456
12456
|
optionFilterProp: 'children',
|
|
12457
12457
|
filterOption: function filterOption(input, option) {
|
|
12458
12458
|
var _option$value3;
|
|
@@ -12461,14 +12461,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12461
12461
|
}
|
|
12462
12462
|
}
|
|
12463
12463
|
}, {
|
|
12464
|
-
name: 'qp-headItem-
|
|
12464
|
+
name: 'qp-headItem-like',
|
|
12465
12465
|
type: 'select',
|
|
12466
12466
|
label: '总部商品',
|
|
12467
12467
|
field: {
|
|
12468
12468
|
type: 'select',
|
|
12469
12469
|
props: {
|
|
12470
12470
|
notFoundContent: '暂无数据',
|
|
12471
|
-
mode: 'multiple',
|
|
12472
12471
|
allowClear: true,
|
|
12473
12472
|
showSearch: true,
|
|
12474
12473
|
showArrow: true,
|
|
@@ -12481,17 +12480,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12481
12480
|
}
|
|
12482
12481
|
}
|
|
12483
12482
|
}, {
|
|
12484
|
-
name: 'qp-storeChannelName-
|
|
12483
|
+
name: 'qp-storeChannelName-like',
|
|
12485
12484
|
type: 'select',
|
|
12486
12485
|
label: '管理模式',
|
|
12487
12486
|
field: {
|
|
12488
12487
|
type: 'select',
|
|
12489
12488
|
props: {
|
|
12490
12489
|
notFoundContent: '暂无数据',
|
|
12491
|
-
mode: 'multiple',
|
|
12492
12490
|
allowClear: true,
|
|
12493
12491
|
showSearch: true,
|
|
12494
12492
|
showArrow: true,
|
|
12493
|
+
maxTagCount: 1,
|
|
12495
12494
|
optionFilterProp: 'children',
|
|
12496
12495
|
filterOption: function filterOption(input, option) {
|
|
12497
12496
|
var _option$value5;
|
|
@@ -19674,7 +19673,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19674
19673
|
setPagePath = _useState0[1];
|
|
19675
19674
|
var _useLocation = useLocation(),
|
|
19676
19675
|
pathname = _useLocation.pathname,
|
|
19677
|
-
_useLocation$state = _useLocation.state
|
|
19676
|
+
_useLocation$state = _useLocation.state,
|
|
19677
|
+
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19678
19678
|
var _useState1 = useState(false),
|
|
19679
19679
|
_useState10 = _slicedToArray(_useState1, 2),
|
|
19680
19680
|
isFullScreen = _useState10[0],
|
|
@@ -20150,16 +20150,17 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20150
20150
|
isFullScreen: isFullScreen
|
|
20151
20151
|
});
|
|
20152
20152
|
useEffect(function () {
|
|
20153
|
-
|
|
20154
|
-
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20158
|
-
|
|
20159
|
-
|
|
20160
|
-
|
|
20161
|
-
|
|
20162
|
-
|
|
20153
|
+
if (!localStorage.getItem('isTabChange') || (state === null || state === void 0 ? void 0 : state.updateCurrentPage)) {
|
|
20154
|
+
if (pagePath === pathname) {
|
|
20155
|
+
var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
|
|
20156
|
+
// @ts-ignore
|
|
20157
|
+
(_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
|
|
20158
|
+
}
|
|
20159
|
+
}
|
|
20160
|
+
setTimeout(function () {
|
|
20161
|
+
// 处理页面刷新两面
|
|
20162
|
+
localStorage.removeItem('isTabChange');
|
|
20163
|
+
}, 0);
|
|
20163
20164
|
}, [pathname]);
|
|
20164
20165
|
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
20165
20166
|
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
package/dist/index.js
CHANGED
|
@@ -12426,7 +12426,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12426
12426
|
}
|
|
12427
12427
|
}
|
|
12428
12428
|
}, {
|
|
12429
|
-
name: 'qp-manageSupervisor-
|
|
12429
|
+
name: 'qp-manageSupervisor-like',
|
|
12430
12430
|
type: 'select',
|
|
12431
12431
|
label: '管理督导',
|
|
12432
12432
|
field: {
|
|
@@ -12434,9 +12434,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12434
12434
|
props: {
|
|
12435
12435
|
notFoundContent: '暂无数据',
|
|
12436
12436
|
allowClear: true,
|
|
12437
|
-
mode: 'multiple',
|
|
12438
12437
|
showSearch: true,
|
|
12439
12438
|
showArrow: true,
|
|
12439
|
+
maxTagCount: 1,
|
|
12440
12440
|
optionFilterProp: 'children',
|
|
12441
12441
|
filterOption: function filterOption(input, option) {
|
|
12442
12442
|
var _option$value;
|
|
@@ -12446,17 +12446,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12446
12446
|
}
|
|
12447
12447
|
}
|
|
12448
12448
|
}, {
|
|
12449
|
-
name: 'qp-directSupervisor-
|
|
12449
|
+
name: 'qp-directSupervisor-like',
|
|
12450
12450
|
type: 'select',
|
|
12451
12451
|
label: '直接督导',
|
|
12452
12452
|
field: {
|
|
12453
12453
|
type: 'select',
|
|
12454
12454
|
props: {
|
|
12455
12455
|
notFoundContent: '暂无数据',
|
|
12456
|
-
mode: 'multiple',
|
|
12457
12456
|
allowClear: true,
|
|
12458
12457
|
showSearch: true,
|
|
12459
12458
|
showArrow: true,
|
|
12459
|
+
maxTagCount: 1,
|
|
12460
12460
|
optionFilterProp: 'children',
|
|
12461
12461
|
filterOption: function filterOption(input, option) {
|
|
12462
12462
|
var _option$value2;
|
|
@@ -12465,17 +12465,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12465
12465
|
}
|
|
12466
12466
|
}
|
|
12467
12467
|
}, {
|
|
12468
|
-
name: 'qp-distributionItem-
|
|
12468
|
+
name: 'qp-distributionItem-like',
|
|
12469
12469
|
type: 'select',
|
|
12470
12470
|
label: '分销商品',
|
|
12471
12471
|
field: {
|
|
12472
12472
|
type: 'select',
|
|
12473
12473
|
props: {
|
|
12474
12474
|
notFoundContent: '暂无数据',
|
|
12475
|
-
mode: 'multiple',
|
|
12476
12475
|
allowClear: true,
|
|
12477
12476
|
showSearch: true,
|
|
12478
12477
|
showArrow: true,
|
|
12478
|
+
maxTagCount: 1,
|
|
12479
12479
|
optionFilterProp: 'children',
|
|
12480
12480
|
filterOption: function filterOption(input, option) {
|
|
12481
12481
|
var _option$value3;
|
|
@@ -12484,14 +12484,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12484
12484
|
}
|
|
12485
12485
|
}
|
|
12486
12486
|
}, {
|
|
12487
|
-
name: 'qp-headItem-
|
|
12487
|
+
name: 'qp-headItem-like',
|
|
12488
12488
|
type: 'select',
|
|
12489
12489
|
label: '总部商品',
|
|
12490
12490
|
field: {
|
|
12491
12491
|
type: 'select',
|
|
12492
12492
|
props: {
|
|
12493
12493
|
notFoundContent: '暂无数据',
|
|
12494
|
-
mode: 'multiple',
|
|
12495
12494
|
allowClear: true,
|
|
12496
12495
|
showSearch: true,
|
|
12497
12496
|
showArrow: true,
|
|
@@ -12504,17 +12503,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12504
12503
|
}
|
|
12505
12504
|
}
|
|
12506
12505
|
}, {
|
|
12507
|
-
name: 'qp-storeChannelName-
|
|
12506
|
+
name: 'qp-storeChannelName-like',
|
|
12508
12507
|
type: 'select',
|
|
12509
12508
|
label: '管理模式',
|
|
12510
12509
|
field: {
|
|
12511
12510
|
type: 'select',
|
|
12512
12511
|
props: {
|
|
12513
12512
|
notFoundContent: '暂无数据',
|
|
12514
|
-
mode: 'multiple',
|
|
12515
12513
|
allowClear: true,
|
|
12516
12514
|
showSearch: true,
|
|
12517
12515
|
showArrow: true,
|
|
12516
|
+
maxTagCount: 1,
|
|
12518
12517
|
optionFilterProp: 'children',
|
|
12519
12518
|
filterOption: function filterOption(input, option) {
|
|
12520
12519
|
var _option$value5;
|
|
@@ -19697,7 +19696,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19697
19696
|
setPagePath = _useState0[1];
|
|
19698
19697
|
var _useLocation = umi.useLocation(),
|
|
19699
19698
|
pathname = _useLocation.pathname,
|
|
19700
|
-
_useLocation$state = _useLocation.state
|
|
19699
|
+
_useLocation$state = _useLocation.state,
|
|
19700
|
+
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19701
19701
|
var _useState1 = React$1.useState(false),
|
|
19702
19702
|
_useState10 = _slicedToArray(_useState1, 2),
|
|
19703
19703
|
isFullScreen = _useState10[0],
|
|
@@ -20173,16 +20173,17 @@ var BsSulaQueryTable = (function (props) {
|
|
|
20173
20173
|
isFullScreen: isFullScreen
|
|
20174
20174
|
});
|
|
20175
20175
|
React$1.useEffect(function () {
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20182
|
-
|
|
20183
|
-
|
|
20184
|
-
|
|
20185
|
-
|
|
20176
|
+
if (!localStorage.getItem('isTabChange') || (state === null || state === void 0 ? void 0 : state.updateCurrentPage)) {
|
|
20177
|
+
if (pagePath === pathname) {
|
|
20178
|
+
var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
|
|
20179
|
+
// @ts-ignore
|
|
20180
|
+
(_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
|
|
20181
|
+
}
|
|
20182
|
+
}
|
|
20183
|
+
setTimeout(function () {
|
|
20184
|
+
// 处理页面刷新两面
|
|
20185
|
+
localStorage.removeItem('isTabChange');
|
|
20186
|
+
}, 0);
|
|
20186
20187
|
}, [pathname]);
|
|
20187
20188
|
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
20188
20189
|
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
package/package.json
CHANGED
|
@@ -852,16 +852,16 @@ export default (props: any) => {
|
|
|
852
852
|
};
|
|
853
853
|
|
|
854
854
|
useEffect(() => {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
855
|
+
if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
856
|
+
if (pagePath === pathname) {
|
|
857
|
+
// @ts-ignore
|
|
858
|
+
config.ref?.current?.tableRef?.current?.refreshTable();
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
setTimeout(() => {
|
|
862
|
+
// 处理页面刷新两面
|
|
863
|
+
localStorage.removeItem('isTabChange');
|
|
864
|
+
}, 0);
|
|
865
865
|
}, [pathname]);
|
|
866
866
|
|
|
867
867
|
const expandedRowKeys = props?.expandable?.expandedRowKeys;
|
|
@@ -6,7 +6,7 @@ import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/componen
|
|
|
6
6
|
import { getSkuImg } from '@/utils/TableUtils';
|
|
7
7
|
import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
|
|
8
8
|
import { Image } from 'antd';
|
|
9
|
-
import { isBoolean,
|
|
9
|
+
import { isBoolean, trim } from 'lodash';
|
|
10
10
|
|
|
11
11
|
const hasDictSharingType = getDictionarySource('UC000013')?.length;
|
|
12
12
|
const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
|
|
@@ -2315,14 +2315,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2315
2315
|
},
|
|
2316
2316
|
},
|
|
2317
2317
|
},
|
|
2318
|
-
{ name: 'qp-manageSupervisor-
|
|
2318
|
+
{ name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
|
|
2319
2319
|
type: 'select',
|
|
2320
2320
|
props: {
|
|
2321
2321
|
notFoundContent: '暂无数据',
|
|
2322
2322
|
allowClear: true,
|
|
2323
|
-
mode: 'multiple',
|
|
2324
2323
|
showSearch: true,
|
|
2325
2324
|
showArrow: true,
|
|
2325
|
+
maxTagCount: 1,
|
|
2326
2326
|
optionFilterProp: 'children',
|
|
2327
2327
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2328
2328
|
{
|
|
@@ -2331,37 +2331,36 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
},
|
|
2333
2333
|
} },
|
|
2334
|
-
{ name: 'qp-directSupervisor-
|
|
2334
|
+
{ name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
|
|
2335
2335
|
type: 'select',
|
|
2336
2336
|
props: {
|
|
2337
2337
|
notFoundContent: '暂无数据',
|
|
2338
|
-
mode: 'multiple',
|
|
2339
2338
|
allowClear: true,
|
|
2340
2339
|
showSearch: true,
|
|
2341
2340
|
showArrow: true,
|
|
2341
|
+
maxTagCount: 1,
|
|
2342
2342
|
optionFilterProp: 'children',
|
|
2343
2343
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2344
2344
|
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2345
2345
|
},
|
|
2346
2346
|
} },
|
|
2347
|
-
{ name: 'qp-distributionItem-
|
|
2347
|
+
{ name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
|
|
2348
2348
|
type: 'select',
|
|
2349
2349
|
props: {
|
|
2350
2350
|
notFoundContent: '暂无数据',
|
|
2351
|
-
mode: 'multiple',
|
|
2352
2351
|
allowClear: true,
|
|
2353
2352
|
showSearch: true,
|
|
2354
2353
|
showArrow: true,
|
|
2354
|
+
maxTagCount: 1,
|
|
2355
2355
|
optionFilterProp: 'children',
|
|
2356
2356
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2357
2357
|
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2358
2358
|
},
|
|
2359
2359
|
} },
|
|
2360
|
-
{ name: 'qp-headItem-
|
|
2360
|
+
{ name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
|
|
2361
2361
|
type: 'select',
|
|
2362
2362
|
props: {
|
|
2363
2363
|
notFoundContent: '暂无数据',
|
|
2364
|
-
mode: 'multiple',
|
|
2365
2364
|
allowClear: true,
|
|
2366
2365
|
showSearch: true,
|
|
2367
2366
|
showArrow: true,
|
|
@@ -2371,14 +2370,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2371
2370
|
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2372
2371
|
},
|
|
2373
2372
|
} },
|
|
2374
|
-
{ name: 'qp-storeChannelName-
|
|
2373
|
+
{ name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
|
|
2375
2374
|
type: 'select',
|
|
2376
2375
|
props: {
|
|
2377
2376
|
notFoundContent: '暂无数据',
|
|
2378
|
-
mode: 'multiple',
|
|
2379
2377
|
allowClear: true,
|
|
2380
2378
|
showSearch: true,
|
|
2381
2379
|
showArrow: true,
|
|
2380
|
+
maxTagCount: 1,
|
|
2382
2381
|
optionFilterProp: 'children',
|
|
2383
2382
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2384
2383
|
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|