fix(xg): 假期留宿申请不再采集原因类型

客户不使用学习研究、实习工作这类原因分类,申请和登记只保留留宿原因。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
“wuzhen”andCursor committed 2026-11-24 12:08:53 +08:00
1 parent 5da7a1ce5a
commit fcb695664b
6 files changed
+5 -102

No files matched your search

@@ -103,11 +103,6 @@
<el-form-item label="留宿原因" prop="stayReason">
<el-input v-model="queryParams.stayReason" placeholder="请输入留宿原因" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="留宿原因类型" prop="stayReasonType">
<el-select v-model="queryParams.stayReasonType" placeholder="请选择留宿原因类型" clearable>
<el-option v-for="dict in xg_stay_reason_type" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
<el-form-item label="学生联系电话" prop="studentPhone">
<el-input v-model="queryParams.studentPhone" placeholder="请输入学生联系电话" clearable @keyup.enter="handleQuery" />
</el-form-item>
@@ -360,7 +355,6 @@
<el-table-column label="留宿原因" align="center" min-width="120">
<template #default="scope">
<div class="reason-cell">
<dict-tag :options="xg_stay_reason_type" :value="scope.row.stayReasonType" />
<div class="reason-text" v-if="scope.row.stayReason" :title="scope.row.stayReason">
{{ scope.row.stayReason.length > 20 ? scope.row.stayReason.substring(0, 20) + '...' : scope.row.stayReason }}
</div>
@@ -441,10 +435,6 @@
<span class="detail-label">假期:</span>
<dict-tag :options="xg_holiday_type" :value="stay.holidayType" />
</div>
<div class="detail-item" v-if="stay.stayReasonType">
<span class="detail-label">原因:</span>
<dict-tag :options="xg_stay_reason_type" :value="stay.stayReasonType" />
</div>
</div>
</div>
<div class="period-actions">
@@ -617,13 +607,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="留宿原因类型" prop="stayReasonType">
<el-select v-model="form.stayReasonType" placeholder="请选择留宿原因类型" style="width: 100%">
<el-option v-for="dict in xg_stay_reason_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
@@ -883,7 +866,7 @@ const initFormData: HolidayStayForm = {
applyStartDate: undefined,
applyEndDate: undefined,
stayReason: undefined,
stayReasonType: 'other', // 默认其他原因
stayReasonType: undefined,
studentPhone: undefined,
emergencyContact: undefined,
emergencyPhone: undefined,
@@ -442,13 +442,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="留宿原因类型" prop="stayReasonType">
<el-select v-model="form.stayReasonType" placeholder="请选择留宿原因类型" style="width: 100%">
<el-option v-for="dict in xg_stay_reason_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
@@ -717,7 +710,7 @@ const initFormData: HolidayStayForm = {
applyStartDate: undefined,
applyEndDate: undefined,
stayReason: undefined,
stayReasonType: 'other', // 默认其他原因
stayReasonType: undefined,
studentPhone: undefined,
emergencyContact: undefined,
emergencyPhone: undefined,