fix(hrm): 补全离职申请交接日期字段

修复发起离职审批时报"请填写办理离职的交接日期"的问题:
- 表单缺少 ticket_data 状态对象,导致工单流转时 handle_date 始终为空
- 审批阶段新增交接日期日期选择器,绑定到 ticket_data.handle_date
- 查看详情时从后端响应回填 handle_date 实现回显

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
TianyangZhang 2026-05-15 13:37:34 +08:00
parent 3affabc7e7
commit 64060a6e2f
1 changed files with 13 additions and 0 deletions

View File

@ -34,6 +34,15 @@
:readonly="localMode === 'show'"
></el-input>
</el-form-item>
<el-form-item label="交接日期" v-if="localMode === 'show'" required>
<el-date-picker
v-model="ticket_data.handle_date"
type="date"
placeholder="请选择办理离职的交接日期"
style="width: 100%;"
value-format="YYYY-MM-DD"
></el-date-picker>
</el-form-item>
</el-form>
<el-footer>
<el-button type="danger"
@ -90,6 +99,7 @@ export default {
formData: {
employee_name: ""
},
ticket_data: {},
localMode: this.mode,
saveLoading: false
}
@ -106,6 +116,9 @@ export default {
try {
let res = await this.$API.hrm.resignation.item.req(this.t_id);
this.formData = res;
if (res.handle_date) {
this.ticket_data.handle_date = res.handle_date;
}
if (res.ticket_ && res.ticket_.state_.type == 1 && res.create_by == this.$TOOL.data.get("USER_INFO").id) {
this.localMode = "edit";
}