@peninsula-med/beisen-ehr-plugin 1.1.8 → 1.1.9
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/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3461,7 +3461,7 @@ const Type = TypeBuilder;
|
|
|
3461
3461
|
*/
|
|
3462
3462
|
// 插件元数据
|
|
3463
3463
|
const pluginId = 'beisen-ehr-plugin';
|
|
3464
|
-
const pluginVersion = '1.1.
|
|
3464
|
+
const pluginVersion = '1.1.9';
|
|
3465
3465
|
/**
|
|
3466
3466
|
* 默认配置
|
|
3467
3467
|
*/
|
|
@@ -3639,7 +3639,9 @@ async function register(api) {
|
|
|
3639
3639
|
properties: Type.Optional(Type.String({ description: '自定义字段 JSON 字符串' })),
|
|
3640
3640
|
}),
|
|
3641
3641
|
async execute(_id, params) {
|
|
3642
|
+
console.error('🔨 工具调用:beisen_submit_overtime', JSON.stringify(params));
|
|
3642
3643
|
try {
|
|
3644
|
+
console.error('📡 正在提交加班申请...');
|
|
3643
3645
|
const result = await client.submitOvertime({
|
|
3644
3646
|
staffId: config.staffId,
|
|
3645
3647
|
email: config.email,
|
|
@@ -3648,6 +3650,7 @@ async function register(api) {
|
|
|
3648
3650
|
compensationType: params.compensationType,
|
|
3649
3651
|
properties: params.properties,
|
|
3650
3652
|
});
|
|
3653
|
+
console.error('✅ 加班申请提交成功:', result);
|
|
3651
3654
|
if (result.code === "200" || result.code === 200) {
|
|
3652
3655
|
const compTypeText = params.compensationType === 1 ? "加班费" : "调休假";
|
|
3653
3656
|
return {
|
|
@@ -3759,6 +3762,14 @@ async function register(api) {
|
|
|
3759
3762
|
},
|
|
3760
3763
|
});
|
|
3761
3764
|
console.error('✅ 已注册 4 个工具:beisen_submit_overtime, beisen_get_leave_balance, beisen_query_attendance, beisen_get_approval_status');
|
|
3765
|
+
// 调试:列出所有已注册的工具
|
|
3766
|
+
console.error('🔍 工具注册完成,插件 ID:', pluginId);
|
|
3767
|
+
console.error('🔍 配置:', JSON.stringify({
|
|
3768
|
+
apiUrl: config.apiUrl,
|
|
3769
|
+
staffId: config.staffId,
|
|
3770
|
+
tenantId: config.tenantId,
|
|
3771
|
+
email: config.email,
|
|
3772
|
+
}, null, 2));
|
|
3762
3773
|
}
|
|
3763
3774
|
/**
|
|
3764
3775
|
* 插件停用函数
|