@bit-sun/business-component 2.0.36 → 2.0.38
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/.umirc.ts
CHANGED
|
@@ -46,27 +46,27 @@ export default defineConfig({
|
|
|
46
46
|
// pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
|
|
47
47
|
},
|
|
48
48
|
'/user/': {
|
|
49
|
-
target: 'http://
|
|
49
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
50
50
|
changeOrigin: true,
|
|
51
51
|
},
|
|
52
52
|
'/channel-manage/': {
|
|
53
|
-
target: 'http://
|
|
53
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
54
54
|
changeOrigin: true,
|
|
55
55
|
},
|
|
56
56
|
'/items/': {
|
|
57
|
-
target: 'http://
|
|
57
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
58
58
|
changeOrigin: true,
|
|
59
59
|
},
|
|
60
60
|
'/stock/': {
|
|
61
|
-
target: 'http://
|
|
61
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
62
62
|
changeOrigin: true,
|
|
63
63
|
},
|
|
64
64
|
'/basic/': {
|
|
65
|
-
target: 'http://
|
|
65
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
66
66
|
changeOrigin: true,
|
|
67
67
|
},
|
|
68
68
|
'/srm-ops/': {
|
|
69
|
-
target: 'http://
|
|
69
|
+
target: 'http://bitsun.cb21419868b8b483f9e04b769406afe73.cn-shanghai.alicontainer.com/', // 开发环境
|
|
70
70
|
changeOrigin: true,
|
|
71
71
|
},
|
|
72
72
|
},
|
package/dist/index.esm.js
CHANGED
|
@@ -4348,11 +4348,21 @@ var InputElement = function InputElement(_ref) {
|
|
|
4348
4348
|
|
|
4349
4349
|
if (status === 200) {
|
|
4350
4350
|
if (data.status === '0') {
|
|
4351
|
-
|
|
4351
|
+
var resultData = data.data.items.map(function (item, index) {
|
|
4352
4352
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4353
4353
|
index: index
|
|
4354
4354
|
});
|
|
4355
|
-
})
|
|
4355
|
+
});
|
|
4356
|
+
|
|
4357
|
+
if (resultData.length === 1) {
|
|
4358
|
+
callSelectItem(_objectSpread2(_objectSpread2({}, resultData[0]), {}, {
|
|
4359
|
+
needFocus: true
|
|
4360
|
+
}));
|
|
4361
|
+
setValue(resultData[0][item.dataIndex]);
|
|
4362
|
+
} else {
|
|
4363
|
+
updateHoverVisibled(true);
|
|
4364
|
+
updateSearchData(resultData);
|
|
4365
|
+
}
|
|
4356
4366
|
} else {
|
|
4357
4367
|
updateSearchData([]);
|
|
4358
4368
|
}
|
|
@@ -4621,7 +4631,6 @@ var InputElement = function InputElement(_ref) {
|
|
|
4621
4631
|
if (e.currentTarget.value.length < 2) {
|
|
4622
4632
|
message.warning('至少输入两个字符');
|
|
4623
4633
|
} else {
|
|
4624
|
-
updateHoverVisibled(true);
|
|
4625
4634
|
onSerchdata(e.currentTarget.value);
|
|
4626
4635
|
}
|
|
4627
4636
|
}
|
|
@@ -6708,9 +6717,9 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6708
6717
|
// 版本2
|
|
6709
6718
|
requestConfig = _objectSpread2({
|
|
6710
6719
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
6711
|
-
filter: 'qp-
|
|
6720
|
+
filter: 'qp-username,name-orGroup,like',
|
|
6712
6721
|
mappingTextField: 'name',
|
|
6713
|
-
mappingTextShowKeyField: '
|
|
6722
|
+
mappingTextShowKeyField: 'username',
|
|
6714
6723
|
mappingValueField: 'id',
|
|
6715
6724
|
otherParams: {
|
|
6716
6725
|
'qp-enable-eq': 10,
|
|
@@ -6720,12 +6729,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6720
6729
|
sourceName: 'employeeNumber'
|
|
6721
6730
|
}, requestConfigProp);
|
|
6722
6731
|
tableSearchForm = [{
|
|
6723
|
-
name: 'qp-
|
|
6724
|
-
label: '
|
|
6725
|
-
}, {
|
|
6726
|
-
name: 'qp-employeeNumber-like',
|
|
6727
|
-
label: '员工编码'
|
|
6732
|
+
name: 'qp-username-like',
|
|
6733
|
+
label: '账户名称'
|
|
6728
6734
|
}, {
|
|
6735
|
+
name: 'qp-name-like',
|
|
6736
|
+
label: '显示名称'
|
|
6737
|
+
}, // { name: 'qp-employeeNumber-like', label: '员工编码' },
|
|
6738
|
+
{
|
|
6729
6739
|
name: 'qp-directOrgCode-in',
|
|
6730
6740
|
type: 'select',
|
|
6731
6741
|
label: '所属组织机构',
|
|
@@ -6755,15 +6765,23 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6755
6765
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6756
6766
|
});
|
|
6757
6767
|
modalTableProps = _objectSpread2({
|
|
6758
|
-
modalTableTitle: '
|
|
6768
|
+
modalTableTitle: '添加员工',
|
|
6759
6769
|
tableSearchForm: tableSearchForm,
|
|
6760
6770
|
tableColumns: [{
|
|
6761
|
-
title: '
|
|
6762
|
-
dataIndex: '
|
|
6771
|
+
title: '账户名称',
|
|
6772
|
+
dataIndex: 'username'
|
|
6763
6773
|
}, {
|
|
6764
|
-
title: '
|
|
6774
|
+
title: '显示名称',
|
|
6765
6775
|
dataIndex: 'name'
|
|
6766
|
-
}, {
|
|
6776
|
+
}, // {
|
|
6777
|
+
// title: '员工编码',
|
|
6778
|
+
// dataIndex: 'employeeNumber',
|
|
6779
|
+
// },
|
|
6780
|
+
// {
|
|
6781
|
+
// title: '员工名称',
|
|
6782
|
+
// dataIndex: 'name',
|
|
6783
|
+
// },
|
|
6784
|
+
{
|
|
6767
6785
|
title: '所属组织机构',
|
|
6768
6786
|
dataIndex: 'directOrgName'
|
|
6769
6787
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -4358,11 +4358,21 @@ var InputElement = function InputElement(_ref) {
|
|
|
4358
4358
|
|
|
4359
4359
|
if (status === 200) {
|
|
4360
4360
|
if (data.status === '0') {
|
|
4361
|
-
|
|
4361
|
+
var resultData = data.data.items.map(function (item, index) {
|
|
4362
4362
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4363
4363
|
index: index
|
|
4364
4364
|
});
|
|
4365
|
-
})
|
|
4365
|
+
});
|
|
4366
|
+
|
|
4367
|
+
if (resultData.length === 1) {
|
|
4368
|
+
callSelectItem(_objectSpread2(_objectSpread2({}, resultData[0]), {}, {
|
|
4369
|
+
needFocus: true
|
|
4370
|
+
}));
|
|
4371
|
+
setValue(resultData[0][item.dataIndex]);
|
|
4372
|
+
} else {
|
|
4373
|
+
updateHoverVisibled(true);
|
|
4374
|
+
updateSearchData(resultData);
|
|
4375
|
+
}
|
|
4366
4376
|
} else {
|
|
4367
4377
|
updateSearchData([]);
|
|
4368
4378
|
}
|
|
@@ -4631,7 +4641,6 @@ var InputElement = function InputElement(_ref) {
|
|
|
4631
4641
|
if (e.currentTarget.value.length < 2) {
|
|
4632
4642
|
antd.message.warning('至少输入两个字符');
|
|
4633
4643
|
} else {
|
|
4634
|
-
updateHoverVisibled(true);
|
|
4635
4644
|
onSerchdata(e.currentTarget.value);
|
|
4636
4645
|
}
|
|
4637
4646
|
}
|
|
@@ -6718,9 +6727,9 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6718
6727
|
// 版本2
|
|
6719
6728
|
requestConfig = _objectSpread2({
|
|
6720
6729
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
6721
|
-
filter: 'qp-
|
|
6730
|
+
filter: 'qp-username,name-orGroup,like',
|
|
6722
6731
|
mappingTextField: 'name',
|
|
6723
|
-
mappingTextShowKeyField: '
|
|
6732
|
+
mappingTextShowKeyField: 'username',
|
|
6724
6733
|
mappingValueField: 'id',
|
|
6725
6734
|
otherParams: {
|
|
6726
6735
|
'qp-enable-eq': 10,
|
|
@@ -6730,12 +6739,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6730
6739
|
sourceName: 'employeeNumber'
|
|
6731
6740
|
}, requestConfigProp);
|
|
6732
6741
|
tableSearchForm = [{
|
|
6733
|
-
name: 'qp-
|
|
6734
|
-
label: '
|
|
6735
|
-
}, {
|
|
6736
|
-
name: 'qp-employeeNumber-like',
|
|
6737
|
-
label: '员工编码'
|
|
6742
|
+
name: 'qp-username-like',
|
|
6743
|
+
label: '账户名称'
|
|
6738
6744
|
}, {
|
|
6745
|
+
name: 'qp-name-like',
|
|
6746
|
+
label: '显示名称'
|
|
6747
|
+
}, // { name: 'qp-employeeNumber-like', label: '员工编码' },
|
|
6748
|
+
{
|
|
6739
6749
|
name: 'qp-directOrgCode-in',
|
|
6740
6750
|
type: 'select',
|
|
6741
6751
|
label: '所属组织机构',
|
|
@@ -6765,15 +6775,23 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
6765
6775
|
formatSource(x, 0, 2, tableSearchForm);
|
|
6766
6776
|
});
|
|
6767
6777
|
modalTableProps = _objectSpread2({
|
|
6768
|
-
modalTableTitle: '
|
|
6778
|
+
modalTableTitle: '添加员工',
|
|
6769
6779
|
tableSearchForm: tableSearchForm,
|
|
6770
6780
|
tableColumns: [{
|
|
6771
|
-
title: '
|
|
6772
|
-
dataIndex: '
|
|
6781
|
+
title: '账户名称',
|
|
6782
|
+
dataIndex: 'username'
|
|
6773
6783
|
}, {
|
|
6774
|
-
title: '
|
|
6784
|
+
title: '显示名称',
|
|
6775
6785
|
dataIndex: 'name'
|
|
6776
|
-
}, {
|
|
6786
|
+
}, // {
|
|
6787
|
+
// title: '员工编码',
|
|
6788
|
+
// dataIndex: 'employeeNumber',
|
|
6789
|
+
// },
|
|
6790
|
+
// {
|
|
6791
|
+
// title: '员工名称',
|
|
6792
|
+
// dataIndex: 'name',
|
|
6793
|
+
// },
|
|
6794
|
+
{
|
|
6777
6795
|
title: '所属组织机构',
|
|
6778
6796
|
dataIndex: 'directOrgName'
|
|
6779
6797
|
}, {
|
package/package.json
CHANGED
|
@@ -1277,9 +1277,9 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1277
1277
|
// 版本2
|
|
1278
1278
|
requestConfig = {
|
|
1279
1279
|
url: `${prefixUrl.selectPrefix}/employee/pageList/v2`,
|
|
1280
|
-
filter: 'qp-
|
|
1280
|
+
filter: 'qp-username,name-orGroup,like', // 过滤参数
|
|
1281
1281
|
mappingTextField: 'name',
|
|
1282
|
-
mappingTextShowKeyField: '
|
|
1282
|
+
mappingTextShowKeyField: 'username',
|
|
1283
1283
|
mappingValueField: 'id',
|
|
1284
1284
|
otherParams: {
|
|
1285
1285
|
'qp-enable-eq': 10, // 启用状态 10-启用,20-禁用
|
|
@@ -1290,8 +1290,9 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1290
1290
|
...requestConfigProp,
|
|
1291
1291
|
}
|
|
1292
1292
|
tableSearchForm = [
|
|
1293
|
-
{ name: 'qp-
|
|
1294
|
-
{ name: 'qp-
|
|
1293
|
+
{ name: 'qp-username-like', label: '账户名称' },
|
|
1294
|
+
{ name: 'qp-name-like', label: '显示名称' },
|
|
1295
|
+
// { name: 'qp-employeeNumber-like', label: '员工编码' },
|
|
1295
1296
|
{ name: 'qp-directOrgCode-in', type: 'select', label: '所属组织机构', field: {
|
|
1296
1297
|
type: 'select',
|
|
1297
1298
|
props: {
|
|
@@ -1315,17 +1316,25 @@ export function commonFun (type?: string, prefixUrl: any, requestConfigProp?: an
|
|
|
1315
1316
|
formatSource(x,0, 2, tableSearchForm);
|
|
1316
1317
|
})
|
|
1317
1318
|
modalTableProps = {
|
|
1318
|
-
modalTableTitle: '
|
|
1319
|
+
modalTableTitle: '添加员工',
|
|
1319
1320
|
tableSearchForm,
|
|
1320
1321
|
tableColumns: [
|
|
1321
1322
|
{
|
|
1322
|
-
title: '
|
|
1323
|
-
dataIndex: '
|
|
1323
|
+
title: '账户名称',
|
|
1324
|
+
dataIndex: 'username',
|
|
1324
1325
|
},
|
|
1325
1326
|
{
|
|
1326
|
-
title: '
|
|
1327
|
+
title: '显示名称',
|
|
1327
1328
|
dataIndex: 'name',
|
|
1328
1329
|
},
|
|
1330
|
+
// {
|
|
1331
|
+
// title: '员工编码',
|
|
1332
|
+
// dataIndex: 'employeeNumber',
|
|
1333
|
+
// },
|
|
1334
|
+
// {
|
|
1335
|
+
// title: '员工名称',
|
|
1336
|
+
// dataIndex: 'name',
|
|
1337
|
+
// },
|
|
1329
1338
|
{
|
|
1330
1339
|
title: '所属组织机构',
|
|
1331
1340
|
dataIndex: 'directOrgName',
|
|
@@ -23,10 +23,17 @@ const InputElement = ({
|
|
|
23
23
|
.then(({ data, status }: any) => {
|
|
24
24
|
if (status === 200) {
|
|
25
25
|
if (data.status === '0') {
|
|
26
|
-
|
|
26
|
+
const resultData = data.data.items.map((item: any, index: any) => ({
|
|
27
27
|
...item,
|
|
28
28
|
index
|
|
29
|
-
}))
|
|
29
|
+
}));
|
|
30
|
+
if (resultData.length === 1) {
|
|
31
|
+
callSelectItem({ ...resultData[0], needFocus: true })
|
|
32
|
+
setValue(resultData[0][item.dataIndex])
|
|
33
|
+
} else {
|
|
34
|
+
updateHoverVisibled(true)
|
|
35
|
+
updateSearchData(resultData)
|
|
36
|
+
}
|
|
30
37
|
} else {
|
|
31
38
|
updateSearchData([])
|
|
32
39
|
}
|
|
@@ -248,7 +255,6 @@ const InputElement = ({
|
|
|
248
255
|
if (e.currentTarget.value.length < 2) {
|
|
249
256
|
message.warning('至少输入两个字符');
|
|
250
257
|
} else {
|
|
251
|
-
updateHoverVisibled(true)
|
|
252
258
|
onSerchdata(e.currentTarget.value)
|
|
253
259
|
}
|
|
254
260
|
}
|