更新术语表

This commit is contained in:
xief 2025-07-04 14:45:57 +08:00
parent 1954f8d612
commit fd68920e01
3 changed files with 29 additions and 2 deletions

View File

@ -1,10 +1,25 @@
## 生产接口协议
本项目使用typescript编写IDE推荐使用vscode。
### 术语表
| 中文 | CAD | MES | IMES | 接口 | 备注 |
| --- | --- | --- | ---| --- | --- |
| 房名 | RoomName | RoomName | roomName |
| 柜名 | CabinetName | BoxName | bodyName |
| 小板名 | BoardName | BlockName | blockName |
| 材质 | Material | Material | material | |
| 大板名 | 无 | BoardName | goodsName | |
| 余料 | 无 | remain/scrap | remain |
| 排单 | 无 | PlanOrder |planOrder |
### 编译与发布
更新 package.json 版本号
```shell
pnpm clean
pnpm build
pnpm release
```
```
### 开发
先继承处理器跟参数类型,功能稳定后把参数提交给接口

View File

@ -1,6 +1,6 @@
{
"name": "cut-abstractions",
"version": "0.1.3",
"version": "0.1.4",
"description": "",
"files": ["dist/**/*"],
"main":"./dist/index.js",

View File

@ -6,6 +6,18 @@ export class ConfigBase {
version:string = '1.0.0';
[key: string]: any;
/**
*
* @param data
*/
load(data:Record<string,unknown>){
for (const key of Object.getOwnPropertyNames(this).filter(i=>i[0]!=='_')) {
if(data[key]!=undefined){
this[key] = data[key];
}
}
}
/**
* json方法
* @returns