weaver-work-cli 0.1.56 → 0.1.57
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/chunks/{invoice-V6KD4TZE.js → invoice-7JGSEWT5.js} +18 -6
- package/dist/index.js +1 -1
- package/dist/shortcuts/invoice/manifest.js +8 -3
- package/dist/shortcuts/invoice/operations/reim.js +10 -3
- package/docs/invoice.md +1 -1
- package/package.json +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
- package/skills/weaver-e10-yepiaotong.zip +0 -0
|
@@ -1297,15 +1297,20 @@ var invoiceOperations = [
|
|
|
1297
1297
|
}
|
|
1298
1298
|
},
|
|
1299
1299
|
outputSchema: objectSchema({
|
|
1300
|
-
result:
|
|
1301
|
-
|
|
1300
|
+
result: objectSchema({
|
|
1301
|
+
code: { type: "integer" },
|
|
1302
|
+
msg: { type: "string" },
|
|
1303
|
+
status: { type: "boolean" },
|
|
1304
|
+
data: requestListDataSchema,
|
|
1305
|
+
fail: { type: "boolean" }
|
|
1306
|
+
}, ["data"]),
|
|
1302
1307
|
workflow: workflowSchema,
|
|
1303
1308
|
query: objectSchema({
|
|
1304
1309
|
cusCreateDateStart: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u4F7F\u7528\u7684\u53D1\u8D77\u65E5\u671F\u5F00\u59CB" },
|
|
1305
1310
|
cusCreateDateEnd: { type: "string", description: "\u672C\u6B21\u7684\u4E1A\u52A1\u7ED3\u675F\u65E5\uFF08\u53D1\u7ED9\u63A5\u53E3\u65F6\u5DF2\u518D + 1 \u5929\uFF09" },
|
|
1306
1311
|
widened: { type: "boolean", description: "\u662F\u5426\u56E0 7 \u5929\u5185\u67E5\u4E0D\u5230\u800C\u653E\u5BBD\u5230 1 \u4E2A\u6708" }
|
|
1307
1312
|
}, ["cusCreateDateStart", "cusCreateDateEnd", "widened"])
|
|
1308
|
-
}, ["result", "
|
|
1313
|
+
}, ["result", "workflow", "query"])
|
|
1309
1314
|
},
|
|
1310
1315
|
{
|
|
1311
1316
|
name: "invoice.reim.workflow.resolve",
|
|
@@ -3464,9 +3469,16 @@ var InvoiceReimRequestsListOperation = class {
|
|
|
3464
3469
|
widened = true;
|
|
3465
3470
|
result = await query(start);
|
|
3466
3471
|
}
|
|
3467
|
-
const
|
|
3468
|
-
|
|
3469
|
-
return
|
|
3472
|
+
const projected = projectRequestListResult(result);
|
|
3473
|
+
assertBusinessSuccess(projected, `${this.name}_failed`, "\u63A5\u53E3\u8FD4\u56DE\u4E1A\u52A1\u5931\u8D25");
|
|
3474
|
+
return {
|
|
3475
|
+
status: "COMPLETE",
|
|
3476
|
+
data: {
|
|
3477
|
+
result: projected,
|
|
3478
|
+
workflow: workflow(this.name, "COMPLETE"),
|
|
3479
|
+
query: { cusCreateDateStart: start, cusCreateDateEnd: endDate, widened }
|
|
3480
|
+
}
|
|
3481
|
+
};
|
|
3470
3482
|
}
|
|
3471
3483
|
};
|
|
3472
3484
|
var InvoiceReimWorkflowResolveOperation = class {
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var builtinShortcuts = [
|
|
|
41
41
|
lazyShortcut({
|
|
42
42
|
name: "invoice",
|
|
43
43
|
description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
|
|
44
|
-
load: async () => (await import("./chunks/invoice-
|
|
44
|
+
load: async () => (await import("./chunks/invoice-7JGSEWT5.js")).invoiceShortcut
|
|
45
45
|
}),
|
|
46
46
|
lazyShortcut({
|
|
47
47
|
name: "ehr",
|
|
@@ -916,15 +916,20 @@ export const invoiceOperations = [
|
|
|
916
916
|
},
|
|
917
917
|
},
|
|
918
918
|
outputSchema: objectSchema({
|
|
919
|
-
result:
|
|
920
|
-
|
|
919
|
+
result: objectSchema({
|
|
920
|
+
code: { type: 'integer' },
|
|
921
|
+
msg: { type: 'string' },
|
|
922
|
+
status: { type: 'boolean' },
|
|
923
|
+
data: requestListDataSchema,
|
|
924
|
+
fail: { type: 'boolean' },
|
|
925
|
+
}, ['data']),
|
|
921
926
|
workflow: workflowSchema,
|
|
922
927
|
query: objectSchema({
|
|
923
928
|
cusCreateDateStart: { type: 'string', description: '本次实际使用的发起日期开始' },
|
|
924
929
|
cusCreateDateEnd: { type: 'string', description: '本次的业务结束日(发给接口时已再 + 1 天)' },
|
|
925
930
|
widened: { type: 'boolean', description: '是否因 7 天内查不到而放宽到 1 个月' },
|
|
926
931
|
}, ['cusCreateDateStart', 'cusCreateDateEnd', 'widened']),
|
|
927
|
-
}, ['result', '
|
|
932
|
+
}, ['result', 'workflow', 'query']),
|
|
928
933
|
},
|
|
929
934
|
{
|
|
930
935
|
name: 'invoice.reim.workflow.resolve',
|
|
@@ -204,9 +204,16 @@ export class InvoiceReimRequestsListOperation {
|
|
|
204
204
|
widened = true;
|
|
205
205
|
result = await query(start);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
return
|
|
207
|
+
const projected = projectRequestListResult(result);
|
|
208
|
+
assertBusinessSuccess(projected, `${this.name}_failed`, '接口返回业务失败');
|
|
209
|
+
return {
|
|
210
|
+
status: 'COMPLETE',
|
|
211
|
+
data: {
|
|
212
|
+
result: projected,
|
|
213
|
+
workflow: workflow(this.name, 'COMPLETE'),
|
|
214
|
+
query: { cusCreateDateStart: start, cusCreateDateEnd: endDate, widened },
|
|
215
|
+
},
|
|
216
|
+
};
|
|
210
217
|
}
|
|
211
218
|
}
|
|
212
219
|
export class InvoiceReimWorkflowResolveOperation {
|
package/docs/invoice.md
CHANGED
|
@@ -71,7 +71,7 @@ weaver-work-cli --json invoice list --fields number,detailUrl
|
|
|
71
71
|
| `invoice.delete.prepare/apply` | 高风险写 | 固定软删除 `flag=0`,确认后执行并回查 |
|
|
72
72
|
| `invoice.browse-field.data` | 只读 | 基于详情接口生成流程表单发票浏览按钮 JSON |
|
|
73
73
|
| `invoice.reim.file-ocr.preview` | 文件识别预览 | 对 E10 fileId 调用报销场景的发票识别接口,只保留成功项 |
|
|
74
|
-
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90
|
|
74
|
+
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90 天且不放宽;列表在 `data.result.data`,另有 `data.query`(实际 `cusCreateDateStart`、业务结束日 `cusCreateDateEnd`、`widened`);每条只输出 `requestid` / `workflowid` / `requestname` / `flowStatus` / `creatorId` / `creatorName` / `createTime` |
|
|
75
75
|
| `invoice.reim.workflow.resolve` | 只读 | 根据事前申请 ID 获取报销工作流;无事前申请时传空数组 |
|
|
76
76
|
| `invoice.reim.candidates.list` | 只读 | 按日期自动翻页拉取未报销发票,分成 `available`(可报)/ `assigned`(已挂单)两组并给出金额合计 |
|
|
77
77
|
| `invoice.reim.employee-superiors` | 只读 | 获取当前人员和上级信息 |
|
package/package.json
CHANGED
|
@@ -329,6 +329,7 @@ weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pa
|
|
|
329
329
|
| 传了 `scene="phone"`(本技能不再使用) | 结束日前 90 天,不再放宽 | 同上 |
|
|
330
330
|
| 用户指定了开始日 | 用户指定的日期,不再放宽 | 同上 |
|
|
331
331
|
|
|
332
|
+
- 事前申请列表只在 `data.result.data`(不再另给一层与 `result.data` 重复的 `data.data`)。
|
|
332
333
|
- 返回的 `data.query` 写明本次实际用的窗口:`cusCreateDateStart`、`cusCreateDateEnd`(业务结束日,未加 1 天)、`widened`(是否放宽到 1 个月)。
|
|
333
334
|
- 翻页(`pageNo` ≥ 2)时把第 1 页 `data.query.cusCreateDateStart` 原样传回,保证各页窗口一致。
|
|
334
335
|
- 放宽后仍为空:告诉用户「最近一个月没有查到事前申请」,请用户给出发起时间范围后按指定日期再查。
|
|
@@ -193,22 +193,32 @@ macOS/Linux(bash/zsh):
|
|
|
193
193
|
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":100}'
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
**返回:**
|
|
196
|
+
**返回:** 读 `data.result.data`(列表只在这一层)。
|
|
197
197
|
|
|
198
198
|
```json
|
|
199
199
|
{
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
200
|
+
"result": {
|
|
201
|
+
"code": 200,
|
|
202
|
+
"msg": "接口返回成功",
|
|
203
|
+
"status": true,
|
|
204
|
+
"data": [
|
|
205
|
+
{
|
|
206
|
+
"requestid": "1298294241967177729",
|
|
207
|
+
"workflowid": "1181057526276915214",
|
|
208
|
+
"requestname": "交通费报销-后端开发111-2026-07-25",
|
|
209
|
+
"flowStatus": 6,
|
|
210
|
+
"creatorId": "1201729946891231232",
|
|
211
|
+
"creatorName": "后端开发111",
|
|
212
|
+
"createTime": "2026-07-25 10:30:00"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"fail": false
|
|
216
|
+
},
|
|
217
|
+
"query": {
|
|
218
|
+
"cusCreateDateStart": "2026-07-18",
|
|
219
|
+
"cusCreateDateEnd": "2026-07-25",
|
|
220
|
+
"widened": false
|
|
221
|
+
}
|
|
212
222
|
}
|
|
213
223
|
```
|
|
214
224
|
|
|
Binary file
|