sdau 销假接口实现:与请假共用 application_submit,靠 requestType 区分

静态分析定位到请假详情页组件链(views/leave/detail/):
ActionPopup-CRBsBafz.js 中 handleType=CANCELAPPLY 的销假申请逻辑,
其提交函数 re 从 fieldsConfig-BzLAymBp.js 导入,即与请假同一个
application_submit 接口。

销假 payload(requestType=CANCELLATION):
  { originalId: <原假单ID>, projectId, requestType:"CANCELLATION",
    fields[], cancellationApplyInArea, inArea, address, longitude, latitude }

改动:
- service:新增 XsgzSubmitCancel / XsgzSubmitApplication(请假/销假/续假共用),
  XsgzSubmitPayload 增加 originalId/inArea/cancellationApplyInArea
- service:XsgzLeaveRecord 增加 projectId 字段;ToLeaveItems 把 projectId
  写入 TypeWid,供前端销假时回传
- handler:新增 executeXsgzLeaveCancel,SSE 事件流 + 落日志
- handler:ExecuteLeaveRequest 增加 projectId
- 前端:ExecuteLeaveParams 增加 projectId;销假提交时回传 typeWid

另:batch-cancel / batch-cancel-list 经确认是辅导员侧接口,学生销假不走它们。
This commit is contained in:
becomer
2026-10-17 17:40:16 +08:00
parent cb3e0f8917
commit 4a064b53cc
4 changed files with 153 additions and 27 deletions
+2
View File
@@ -56,6 +56,8 @@ export interface ExecuteLeaveParams {
imageUrl?: string
/** reportApplyFlow=true 时必填 */
approverWid?: string
/** 销假所属请假类型(三易拓新学工5 必传 UUID) */
projectId?: string
}
/** 销假日志 */
+2
View File
@@ -1153,6 +1153,8 @@ async function submitReport() {
address: form.value.address.trim(),
imageUrl: form.value.imageUrl || undefined,
approverWid: form.value.approverWid || undefined,
// 三易拓新学工5 等系统销假需回传请假类型 UUID
projectId: selectedLeave.value.typeWid || undefined,
},
{
onConnecting: () => {