@peninsula-med/beisen-ehr-plugin 1.0.1 → 1.0.2
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/README.md +62 -30
- package/openclaw.plugin.json +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,28 +3,42 @@
|
|
|
3
3
|
北森 EHR 系统的 OpenClaw 插件,支持加班申请、考勤查询、假期余额等功能。
|
|
4
4
|
|
|
5
5
|
> **开发:** 龙二 (Long Er) 🐉
|
|
6
|
-
> **版本:** 1.0.
|
|
6
|
+
> **版本:** 1.0.1
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## 快速安装
|
|
11
11
|
|
|
12
|
+
### 1️⃣ 安装插件
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
openclaw plugins install @peninsula-med/beisen-ehr-plugin
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 2️⃣ 配置凭证(3 种方式)
|
|
19
|
+
|
|
20
|
+
**方式 A:使用配置向导(推荐 ⭐)**
|
|
21
|
+
|
|
12
22
|
```bash
|
|
13
|
-
|
|
23
|
+
npx @peninsula-med/beisen-ehr-configure
|
|
14
24
|
```
|
|
15
25
|
|
|
16
|
-
|
|
26
|
+
按提示输入北森凭证即可,自动完成配置!
|
|
27
|
+
|
|
28
|
+
**方式 B:运行配置脚本**
|
|
17
29
|
|
|
18
30
|
```bash
|
|
19
|
-
|
|
31
|
+
node node_modules/@peninsula-med/beisen-ehr-plugin/scripts/configure.js
|
|
20
32
|
```
|
|
21
33
|
|
|
22
|
-
|
|
34
|
+
**方式 C:手动编辑配置文件**
|
|
35
|
+
|
|
36
|
+
编辑 `~/.openclaw/config.json`:
|
|
23
37
|
|
|
24
38
|
```json
|
|
25
39
|
{
|
|
26
40
|
"plugins": {
|
|
27
|
-
"beisen-ehr-plugin": {
|
|
41
|
+
"@peninsula-med/beisen-ehr-plugin": {
|
|
28
42
|
"enabled": true,
|
|
29
43
|
"config": {
|
|
30
44
|
"apiUrl": "https://openapi.italent.cn",
|
|
@@ -39,10 +53,16 @@ openclaw plugins config beisen-ehr-plugin
|
|
|
39
53
|
}
|
|
40
54
|
```
|
|
41
55
|
|
|
42
|
-
重启 OpenClaw
|
|
56
|
+
### 3️⃣ 重启 OpenClaw
|
|
43
57
|
|
|
44
58
|
```bash
|
|
45
|
-
openclaw
|
|
59
|
+
openclaw restart
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 4️⃣ 测试
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
帮我提交一个加班申请
|
|
46
66
|
```
|
|
47
67
|
|
|
48
68
|
---
|
|
@@ -108,31 +128,21 @@ openclaw gateway restart
|
|
|
108
128
|
|
|
109
129
|
---
|
|
110
130
|
|
|
111
|
-
##
|
|
112
|
-
|
|
113
|
-
### 安装依赖
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
npm install
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### 开发模式
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
npm run dev
|
|
123
|
-
```
|
|
131
|
+
## 配置向导
|
|
124
132
|
|
|
125
|
-
|
|
133
|
+
运行配置向导,按提示输入凭证:
|
|
126
134
|
|
|
127
135
|
```bash
|
|
128
|
-
|
|
136
|
+
npx @peninsula-med/beisen-ehr-configure
|
|
129
137
|
```
|
|
130
138
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
向导会:
|
|
140
|
+
1. ✅ 提示输入必要凭证
|
|
141
|
+
2. ✅ 自动验证格式
|
|
142
|
+
3. ✅ 备份现有配置
|
|
143
|
+
4. ✅ 写入配置文件
|
|
144
|
+
5. ✅ 显示配置摘要
|
|
145
|
+
6. ✅ 提供下一步指引
|
|
136
146
|
|
|
137
147
|
---
|
|
138
148
|
|
|
@@ -142,13 +152,14 @@ npm run publish:release
|
|
|
142
152
|
|
|
143
153
|
```bash
|
|
144
154
|
openclaw plugins list
|
|
145
|
-
openclaw plugins info beisen-ehr-plugin
|
|
155
|
+
openclaw plugins info @peninsula-med/beisen-ehr-plugin
|
|
146
156
|
```
|
|
147
157
|
|
|
148
158
|
### 配置错误
|
|
149
159
|
|
|
160
|
+
重新运行配置向导:
|
|
150
161
|
```bash
|
|
151
|
-
|
|
162
|
+
npx @peninsula-med/beisen-ehr-configure
|
|
152
163
|
```
|
|
153
164
|
|
|
154
165
|
### 查看日志
|
|
@@ -157,6 +168,27 @@ openclaw plugins config beisen-ehr-plugin
|
|
|
157
168
|
openclaw gateway logs | grep beisen
|
|
158
169
|
```
|
|
159
170
|
|
|
171
|
+
### 卸载
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
openclaw plugins uninstall @peninsula-med/beisen-ehr-plugin
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 更新日志
|
|
180
|
+
|
|
181
|
+
### v1.0.1 (2026-03-11)
|
|
182
|
+
- ✅ 添加配置向导脚本
|
|
183
|
+
- ✅ 支持 npx 一键配置
|
|
184
|
+
|
|
185
|
+
### v1.0.0 (2026-03-11)
|
|
186
|
+
- ✅ 初始版本
|
|
187
|
+
- ✅ 提交加班申请
|
|
188
|
+
- ✅ 查询考勤记录
|
|
189
|
+
- ✅ 查询审批状态
|
|
190
|
+
- ✅ 查询假期余额
|
|
191
|
+
|
|
160
192
|
---
|
|
161
193
|
|
|
162
194
|
## License
|
package/openclaw.plugin.json
CHANGED
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
"format": "email",
|
|
35
35
|
"description": "企业邮箱"
|
|
36
36
|
}
|
|
37
|
-
}
|
|
38
|
-
"required": ["appKey", "appSecret", "staffId", "tenantId", "email"]
|
|
37
|
+
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
],
|
|
@@ -63,7 +62,6 @@
|
|
|
63
62
|
"type": "string",
|
|
64
63
|
"format": "email"
|
|
65
64
|
}
|
|
66
|
-
}
|
|
67
|
-
"required": ["appKey", "appSecret", "staffId", "tenantId", "email"]
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
67
|
}
|