fix(leave): 修复请假流程 waiting 与业务 draft 不同步导致无审批按钮
申请人提交后业务表可能仍停在 draft,办理页不显示审批按钮;在请假模块内补齐任务创建时状态对齐,禁止 waiting 被回写为 draft,并仅在暂存时写 draft。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
65abe022c7
commit
a6a5b88f47
3 files changed
+50
-17
No files matched your search
@@ -2999,10 +2999,12 @@ export default {
|
||||
this.form.attachmentOssIds = attachmentOssIds;
|
||||
console.log('提交的附件ossIds:', attachmentOssIds);
|
||||
|
||||
// 保存数据
|
||||
// 保存数据:仅暂存时写入草稿;提交时不强制 draft,避免覆盖流程已同步的 waiting
|
||||
const saveData = { ...this.form };
|
||||
saveData.status = status;
|
||||
saveData.approvalStatus = 'draft';
|
||||
if (status === 'draft') {
|
||||
saveData.approvalStatus = 'draft';
|
||||
}
|
||||
|
||||
let response;
|
||||
if (saveData.id) {
|
||||
|
||||
Reference in new issue
Block a user