@bit-sun/business-component 2.3.15 → 2.3.17
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/components/Business/SearchSelect/common.d.ts +5 -1
- package/dist/index.esm.js +31 -8
- package/dist/index.js +31 -8
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.ts +9 -3
- package/src/components/Business/SearchSelect/common.ts +12 -1
- package/src/components/Business/SearchSelect/index.md +3 -0
|
@@ -18,4 +18,8 @@ declare const sharingType: {
|
|
|
18
18
|
text: string;
|
|
19
19
|
value: string;
|
|
20
20
|
}[];
|
|
21
|
-
|
|
21
|
+
declare const employeeType: {
|
|
22
|
+
text: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status, employeeType };
|
package/dist/index.esm.js
CHANGED
|
@@ -6616,6 +6616,13 @@ var sharingType = [{
|
|
|
6616
6616
|
text: "私有",
|
|
6617
6617
|
value: '20'
|
|
6618
6618
|
}];
|
|
6619
|
+
var employeeType = [{
|
|
6620
|
+
text: "外部员工",
|
|
6621
|
+
value: '10'
|
|
6622
|
+
}, {
|
|
6623
|
+
text: "内部员工",
|
|
6624
|
+
value: '20'
|
|
6625
|
+
}];
|
|
6619
6626
|
|
|
6620
6627
|
var getDicData = function getDicData(dicCode) {
|
|
6621
6628
|
var dicData = {};
|
|
@@ -8369,12 +8376,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8369
8376
|
mappingTextField: 'name',
|
|
8370
8377
|
mappingTextShowKeyField: 'username',
|
|
8371
8378
|
mappingValueField: 'id',
|
|
8372
|
-
otherParams: {
|
|
8379
|
+
otherParams: _objectSpread2(_objectSpread2({
|
|
8373
8380
|
'qp-enable-eq': 10,
|
|
8374
|
-
'qp-
|
|
8375
|
-
|
|
8381
|
+
'qp-orgViewIds-like': 'administrative-organization-view'
|
|
8382
|
+
}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? {} : {
|
|
8383
|
+
'qp-employmentType-eq': 20
|
|
8384
|
+
}), {}, {
|
|
8376
8385
|
sorter: 'desc-id'
|
|
8377
|
-
},
|
|
8386
|
+
}),
|
|
8378
8387
|
sourceName: 'employeeNumber'
|
|
8379
8388
|
}, requestConfigProp);
|
|
8380
8389
|
tableSearchForm = [{
|
|
@@ -8413,13 +8422,18 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8413
8422
|
}
|
|
8414
8423
|
}
|
|
8415
8424
|
}
|
|
8416
|
-
}
|
|
8425
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
|
|
8426
|
+
name: 'qp-employmentType-eq',
|
|
8427
|
+
type: 'select',
|
|
8428
|
+
label: '员工类型',
|
|
8429
|
+
initialSource: employeeType
|
|
8430
|
+
}] : []), [{
|
|
8417
8431
|
name: 'qp-email-like',
|
|
8418
8432
|
label: '邮箱'
|
|
8419
8433
|
}, {
|
|
8420
8434
|
name: 'qp-officeTelephone-like',
|
|
8421
8435
|
label: '手机号'
|
|
8422
|
-
}];
|
|
8436
|
+
}]);
|
|
8423
8437
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
8424
8438
|
'orgViewCode': 'administrative-organization-view'
|
|
8425
8439
|
})]).then(function (x) {
|
|
@@ -8449,13 +8463,22 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8449
8463
|
render: function render(text) {
|
|
8450
8464
|
return handleTextOverflow(text);
|
|
8451
8465
|
}
|
|
8452
|
-
}
|
|
8466
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
|
|
8467
|
+
title: '员工类型',
|
|
8468
|
+
dataIndex: 'employmentType',
|
|
8469
|
+
render: function render(text) {
|
|
8470
|
+
var _employeeType$find;
|
|
8471
|
+
return (_employeeType$find = employeeType.find(function (i) {
|
|
8472
|
+
return i.value === text;
|
|
8473
|
+
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
|
|
8474
|
+
}
|
|
8475
|
+
}] : []), [{
|
|
8453
8476
|
title: '邮箱',
|
|
8454
8477
|
dataIndex: 'email'
|
|
8455
8478
|
}, {
|
|
8456
8479
|
title: '手机号',
|
|
8457
8480
|
dataIndex: 'officeTelephone'
|
|
8458
|
-
}]
|
|
8481
|
+
}])
|
|
8459
8482
|
}, modalTableBusProps);
|
|
8460
8483
|
}
|
|
8461
8484
|
// 配送方式选择器
|
package/dist/index.js
CHANGED
|
@@ -6635,6 +6635,13 @@ var sharingType = [{
|
|
|
6635
6635
|
text: "私有",
|
|
6636
6636
|
value: '20'
|
|
6637
6637
|
}];
|
|
6638
|
+
var employeeType = [{
|
|
6639
|
+
text: "外部员工",
|
|
6640
|
+
value: '10'
|
|
6641
|
+
}, {
|
|
6642
|
+
text: "内部员工",
|
|
6643
|
+
value: '20'
|
|
6644
|
+
}];
|
|
6638
6645
|
|
|
6639
6646
|
var getDicData = function getDicData(dicCode) {
|
|
6640
6647
|
var dicData = {};
|
|
@@ -8388,12 +8395,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8388
8395
|
mappingTextField: 'name',
|
|
8389
8396
|
mappingTextShowKeyField: 'username',
|
|
8390
8397
|
mappingValueField: 'id',
|
|
8391
|
-
otherParams: {
|
|
8398
|
+
otherParams: _objectSpread2(_objectSpread2({
|
|
8392
8399
|
'qp-enable-eq': 10,
|
|
8393
|
-
'qp-
|
|
8394
|
-
|
|
8400
|
+
'qp-orgViewIds-like': 'administrative-organization-view'
|
|
8401
|
+
}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? {} : {
|
|
8402
|
+
'qp-employmentType-eq': 20
|
|
8403
|
+
}), {}, {
|
|
8395
8404
|
sorter: 'desc-id'
|
|
8396
|
-
},
|
|
8405
|
+
}),
|
|
8397
8406
|
sourceName: 'employeeNumber'
|
|
8398
8407
|
}, requestConfigProp);
|
|
8399
8408
|
tableSearchForm = [{
|
|
@@ -8432,13 +8441,18 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8432
8441
|
}
|
|
8433
8442
|
}
|
|
8434
8443
|
}
|
|
8435
|
-
}
|
|
8444
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
|
|
8445
|
+
name: 'qp-employmentType-eq',
|
|
8446
|
+
type: 'select',
|
|
8447
|
+
label: '员工类型',
|
|
8448
|
+
initialSource: employeeType
|
|
8449
|
+
}] : []), [{
|
|
8436
8450
|
name: 'qp-email-like',
|
|
8437
8451
|
label: '邮箱'
|
|
8438
8452
|
}, {
|
|
8439
8453
|
name: 'qp-officeTelephone-like',
|
|
8440
8454
|
label: '手机号'
|
|
8441
|
-
}];
|
|
8455
|
+
}]);
|
|
8442
8456
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
8443
8457
|
'orgViewCode': 'administrative-organization-view'
|
|
8444
8458
|
})]).then(function (x) {
|
|
@@ -8468,13 +8482,22 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
8468
8482
|
render: function render(text) {
|
|
8469
8483
|
return handleTextOverflow(text);
|
|
8470
8484
|
}
|
|
8471
|
-
}
|
|
8485
|
+
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needTypeSearch) ? [{
|
|
8486
|
+
title: '员工类型',
|
|
8487
|
+
dataIndex: 'employmentType',
|
|
8488
|
+
render: function render(text) {
|
|
8489
|
+
var _employeeType$find;
|
|
8490
|
+
return (_employeeType$find = employeeType.find(function (i) {
|
|
8491
|
+
return i.value === text;
|
|
8492
|
+
})) === null || _employeeType$find === void 0 ? void 0 : _employeeType$find.text;
|
|
8493
|
+
}
|
|
8494
|
+
}] : []), [{
|
|
8472
8495
|
title: '邮箱',
|
|
8473
8496
|
dataIndex: 'email'
|
|
8474
8497
|
}, {
|
|
8475
8498
|
title: '手机号',
|
|
8476
8499
|
dataIndex: 'officeTelephone'
|
|
8477
|
-
}]
|
|
8500
|
+
}])
|
|
8478
8501
|
}, modalTableBusProps);
|
|
8479
8502
|
}
|
|
8480
8503
|
// 配送方式选择器
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 此文件用于 处理业务组件 所用到的公共方法
|
|
2
2
|
// @ts-nocheck
|
|
3
|
-
import { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status } from './common';
|
|
3
|
+
import { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status, employeeType } from './common';
|
|
4
4
|
import { getDictionarySource, getDictionaryTextByValue, loadSelectSource } from './utils';
|
|
5
5
|
import { handleTextOverflow, tableColumnsImage } from '@/components/Business/BsSulaQueryTable/utils';
|
|
6
6
|
import { getSkuImg } from '@/utils/TableUtils';
|
|
@@ -1519,8 +1519,8 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1519
1519
|
mappingValueField: 'id',
|
|
1520
1520
|
otherParams: {
|
|
1521
1521
|
'qp-enable-eq': 10, // 启用状态 10-启用,20-禁用
|
|
1522
|
-
'qp-
|
|
1523
|
-
'qp-
|
|
1522
|
+
'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
|
|
1523
|
+
...(modalTableBusProps?.needTypeSearch?{}:{'qp-employmentType-eq': 20}), // 10外部员工;20内部员工
|
|
1524
1524
|
sorter: 'desc-id'
|
|
1525
1525
|
}, // 默认参数
|
|
1526
1526
|
sourceName: 'employeeNumber',
|
|
@@ -1550,6 +1550,7 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1550
1550
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
1551
1551
|
},
|
|
1552
1552
|
} },
|
|
1553
|
+
...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
|
|
1553
1554
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
1554
1555
|
{ name: 'qp-officeTelephone-like', label: '手机号' },
|
|
1555
1556
|
]
|
|
@@ -1583,6 +1584,11 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1583
1584
|
dataIndex: 'administrativeNames',
|
|
1584
1585
|
render: (text: any) => handleTextOverflow(text),
|
|
1585
1586
|
},
|
|
1587
|
+
...(modalTableBusProps?.needTypeSearch?[{
|
|
1588
|
+
title: '员工类型',
|
|
1589
|
+
dataIndex: 'employmentType',
|
|
1590
|
+
render: (text: number) => employeeType.find((i: any) => i.value === text)?.text,
|
|
1591
|
+
}]:[]),
|
|
1586
1592
|
{
|
|
1587
1593
|
title: '邮箱',
|
|
1588
1594
|
dataIndex: 'email',
|
|
@@ -61,4 +61,15 @@ const sharingType = [
|
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
const employeeType = [
|
|
65
|
+
{
|
|
66
|
+
text: "外部员工",
|
|
67
|
+
value: '10',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
text: "内部员工",
|
|
71
|
+
value: '20',
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type, shopFile2Status, employeeType }
|
|
@@ -1157,6 +1157,9 @@ export default () => {
|
|
|
1157
1157
|
const props2 = {
|
|
1158
1158
|
...props,
|
|
1159
1159
|
// prefixUrl: { selectPrefix: '/user/api', formSelectFix: '/user/api' },
|
|
1160
|
+
modalTableProps: {
|
|
1161
|
+
needTypeSearch: true
|
|
1162
|
+
},
|
|
1160
1163
|
selectBusinessType: 'employee2',
|
|
1161
1164
|
}
|
|
1162
1165
|
|