Compare commits
No commits in common. "master" and "v1.0.7" have entirely different histories.
@ -17,5 +17,4 @@
|
|||||||
/package-lock.json
|
/package-lock.json
|
||||||
/package.json
|
/package.json
|
||||||
/tsconfig.json
|
/tsconfig.json
|
||||||
/backend/
|
|
||||||
debug.log
|
debug.log
|
||||||
|
|||||||
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,14 +1,3 @@
|
|||||||
# 1.0.9
|
|
||||||
|
|
||||||
1. 修复全在线客户端无法获取器件数据的问题
|
|
||||||
2. 扩展包不再打包服务端源码
|
|
||||||
3. 更新 README 文档
|
|
||||||
|
|
||||||
# 1.0.8
|
|
||||||
|
|
||||||
1. 修复“允许拉起服务端”配置项无效的问题
|
|
||||||
2. 修复网页端无法获取器件数据的问题
|
|
||||||
|
|
||||||
# 1.0.7
|
# 1.0.7
|
||||||
|
|
||||||
1. 新增“出库自动填充 BOM”选项:开启后,打开出库界面将自动填充 BOM
|
1. 新增“出库自动填充 BOM”选项:开启后,打开出库界面将自动填充 BOM
|
||||||
|
|||||||
21
README.md
21
README.md
@ -10,16 +10,14 @@ LEYE 电子元器件库存管理系统 EDA 联动扩展
|
|||||||
|
|
||||||
本扩展允许用户通过立创商城 C 编号、立创商城订单导入元器件,支持从库存内查询、放置器件,支持通过 BOM 批量出库。
|
本扩展允许用户通过立创商城 C 编号、立创商城订单导入元器件,支持从库存内查询、放置器件,支持通过 BOM 批量出库。
|
||||||
|
|
||||||
使用本扩展需要在本地安装 [LEYE Service 服务端](https://lrurl.top/LeyeService)(目前仅提供 Windows 版,[服务端开源](/backend/server.js)),数据均储存在本地,不会上传。
|
使用本扩展需要在本地安装 [LEYE Service 服务端](https://lrurl.top/LeyeService)(目前仅提供 Windows 版),数据均储存在本地,不会上传。
|
||||||
|
|
||||||
## [介绍视频](https://www.bilibili.com/video/BV1nvcFzpEuP/)
|
## [介绍视频](https://www.bilibili.com/video/BV1nvcFzpEuP/)
|
||||||
|
|
||||||
https://www.bilibili.com/video/BV1nvcFzpEuP/
|
https://www.bilibili.com/video/BV1nvcFzpEuP/
|
||||||
|
|
||||||
## 如何使用
|
## 如何使用
|
||||||
|
|
||||||
安装本扩展后**需要给予扩展外部交互**权限以与服务端交互:
|
安装本扩展后**需要给予扩展外部交互**权限以与服务端交互:
|
||||||
|
|
||||||
- V2.2:设置-扩展-扩展管理器-LEYE-允许外部交互;
|
- V2.2:设置-扩展-扩展管理器-LEYE-允许外部交互;
|
||||||
- V3:高级-扩展管理器-已安装-LEYE-配置-允许外部交互。
|
- V3:高级-扩展管理器-已安装-LEYE-配置-允许外部交互。
|
||||||
|
|
||||||
@ -43,13 +41,13 @@ V2.2 用户菜单栏将直接出现“LEYE”选项;V3 用户若未开启“
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
> **Tip: 扫描立创商城二维码导入器件** _V1.0.5+_
|
> **Tip: 扫描立创商城二维码导入器件** *V1.0.5+*
|
||||||
>
|
>
|
||||||
> 在 V1.0.5 版本以上,可以通过扫描立创商城物料包装上的二维码导入器件,扫描后会自动识别 CID 并导入对应器件。
|
> 在 V1.0.5 版本以上,可以通过扫描立创商城物料包装上的二维码导入器件,扫描后会自动识别 CID 并导入对应器件。
|
||||||
> 
|
> 
|
||||||
|
|
||||||
> **Tip: 使用手机扫码导入器件** _V1.0.6+_
|
> **Tip: 使用手机扫码导入器件** *V1.0.6+*
|
||||||
>
|
>
|
||||||
> 在 V1.0.6 版本以上,可以在扫码界面选择“WebSocket 远程扫码”,点击“打开摄像头”按钮后用手机扫描二维码即可打开远程端。
|
> 在 V1.0.6 版本以上,可以在扫码界面选择“WebSocket 远程扫码”,点击“打开摄像头”按钮后用手机扫描二维码即可打开远程端。
|
||||||
> 远程端同样支持扫描立创商城物料包装上的二维码导入器件,扫描后会自动识别 CID 并导入对应器件。
|
> 远程端同样支持扫描立创商城物料包装上的二维码导入器件,扫描后会自动识别 CID 并导入对应器件。
|
||||||
> 
|
> 
|
||||||
@ -64,10 +62,10 @@ V2.2 用户菜单栏将直接出现“LEYE”选项;V3 用户若未开启“
|
|||||||
|
|
||||||
## 配置项说明
|
## 配置项说明
|
||||||
|
|
||||||
| 配置项 | 说明 | 默认值 |
|
| 配置项 | 说明 | 默认值 |
|
||||||
| :------------- | :----------------------------------------------------------------------- | :----------------------- |
|
|:-------------|:-----------------------------------------------------------|:-------------------------|
|
||||||
| 服务器地址 | LEYE Service 服务器地址 | `http://localhost:21816` |
|
| 服务器地址 | LEYE Service 服务器地址 | `http://localhost:21816` |
|
||||||
| 允许拉起服务端 | 允许通过 [`leye://open`](leye://open) 拉起本地安装的 LEYE Service 服务端 | `true` |
|
| 允许拉起服务端 | 允许通过 [`leye://open`](leye://open) 拉起本地安装的 LEYE Service 服务端 | `true` |
|
||||||
|
|
||||||
## 已知问题
|
## 已知问题
|
||||||
|
|
||||||
@ -76,7 +74,6 @@ V2.2 用户菜单栏将直接出现“LEYE”选项;V3 用户若未开启“
|
|||||||
## 开源许可
|
## 开源许可
|
||||||
|
|
||||||
本扩展使用以下开源软件:
|
本扩展使用以下开源软件:
|
||||||
|
|
||||||
- [SheetJS](https://www.npmjs.com/package/xlsx):Excel 解析库,使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 许可协议授权
|
- [SheetJS](https://www.npmjs.com/package/xlsx):Excel 解析库,使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 许可协议授权
|
||||||
- [jsQR](https://www.npmjs.com/package/jsqr):二维码解析库,使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 许可协议授权
|
- [jsQR](https://www.npmjs.com/package/jsqr):二维码解析库,使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 许可协议授权
|
||||||
- [node-qrcode](https://www.npmjs.com/package/qrcode):二维码生成库,使用 [MIT License](https://choosealicense.com/licenses/mit/) 许可协议授权
|
- [node-qrcode](https://www.npmjs.com/package/qrcode):二维码生成库,使用 [MIT License](https://choosealicense.com/licenses/mit/) 许可协议授权
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"uuid": "944f7c94a8ca485e848f1118effcbb9a",
|
"uuid": "944f7c94a8ca485e848f1118effcbb9a",
|
||||||
"displayName": "LEYE",
|
"displayName": "LEYE",
|
||||||
"description": "LEYE 电子元器件库存管理系统 EDA 联动扩展",
|
"description": "LEYE 电子元器件库存管理系统 EDA 联动扩展",
|
||||||
"version": "1.0.9",
|
"version": "1.0.7",
|
||||||
"publisher": "Mr_Fang",
|
"publisher": "Mr_Fang",
|
||||||
"engines": {
|
"engines": {
|
||||||
"eda": "^3.2.80"
|
"eda": "^3.2.80"
|
||||||
|
|||||||
@ -267,9 +267,7 @@
|
|||||||
let detail = { name: '-', value: '-', footprint: '-', brand: '-', designatorStr: '手动添加', selected: false };
|
let detail = { name: '-', value: '-', footprint: '-', brand: '-', designatorStr: '手动添加', selected: false };
|
||||||
|
|
||||||
if (devs[0]) {
|
if (devs[0]) {
|
||||||
const EDA_HOST =
|
const infoRes = await eda.sys_ClientUrl.request('https://client/api/v2/devices/' + devs[0].uuid, 'GET', null, {
|
||||||
eda.sys_Environment.isClient() && !eda.sys_Environment.isOnlineMode() ? 'https://client' : 'https://pro.lceda.cn';
|
|
||||||
const infoRes = await eda.sys_ClientUrl.request(EDA_HOST + '/api/v2/devices/' + devs[0].uuid, 'GET', null, {
|
|
||||||
headers: { path: '0819f05c4eef4c71ace90d822a990e87' },
|
headers: { path: '0819f05c4eef4c71ace90d822a990e87' },
|
||||||
});
|
});
|
||||||
const info = (await infoRes.json()).result;
|
const info = (await infoRes.json()).result;
|
||||||
@ -297,8 +295,8 @@
|
|||||||
return eda.sys_Message.showToastMessage('请先勾选要出库的器件', ESYS_ToastMessageType.WARNING);
|
return eda.sys_Message.showToastMessage('请先勾选要出库的器件', ESYS_ToastMessageType.WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
const SERVER = (await eda.sys_Storage.getExtensionUserConfig('server-host')) ?? 'http://localhost:21816';
|
const SERVER = (await eda.sys_Storage.getExtensionUserConfig('server-host')) || 'http://localhost:21816';
|
||||||
const AUTO_RUN = (await eda.sys_Storage.getExtensionUserConfig('server-auto-run')) ?? true;
|
const AUTO_RUN = (await eda.sys_Storage.getExtensionUserConfig('server-auto-run')) || true;
|
||||||
let successCount = 0;
|
let successCount = 0;
|
||||||
let failItems = [];
|
let failItems = [];
|
||||||
|
|
||||||
|
|||||||
1087
iframe/import.html
1087
iframe/import.html
File diff suppressed because it is too large
Load Diff
1118
iframe/newLeye.html
1118
iframe/newLeye.html
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user