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:
parent
3affabc7e7
commit
64060a6e2f
|
|
@ -34,6 +34,15 @@
|
||||||
:readonly="localMode === 'show'"
|
:readonly="localMode === 'show'"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</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-form>
|
||||||
<el-footer>
|
<el-footer>
|
||||||
<el-button type="danger"
|
<el-button type="danger"
|
||||||
|
|
@ -90,6 +99,7 @@ export default {
|
||||||
formData: {
|
formData: {
|
||||||
employee_name: ""
|
employee_name: ""
|
||||||
},
|
},
|
||||||
|
ticket_data: {},
|
||||||
localMode: this.mode,
|
localMode: this.mode,
|
||||||
saveLoading: false
|
saveLoading: false
|
||||||
}
|
}
|
||||||
|
|
@ -106,6 +116,9 @@ export default {
|
||||||
try {
|
try {
|
||||||
let res = await this.$API.hrm.resignation.item.req(this.t_id);
|
let res = await this.$API.hrm.resignation.item.req(this.t_id);
|
||||||
this.formData = res;
|
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) {
|
if (res.ticket_ && res.ticket_.state_.type == 1 && res.create_by == this.$TOOL.data.get("USER_INFO").id) {
|
||||||
this.localMode = "edit";
|
this.localMode = "edit";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue