@bit-sun/business-component 2.0.37 → 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 +6 -6
- package/dist/index.esm.js +12 -3
- package/dist/index.js +12 -3
- package/package.json +1 -1
- package/src/components/Functional/BillEntry/index.tsx +9 -3
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
|
}
|
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
|
}
|
package/package.json
CHANGED
|
@@ -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
|
}
|