应征入伍保留学籍工作流

This commit is contained in:
2025-11-10 17:41:47 +08:00
parent 99d20e69dc
commit c65915df8c

View File

@@ -265,7 +265,8 @@
<!-- 操作按钮 -->
<div class="form-btn-group">
<el-button type="primary" @click="submitForm">提交申请</el-button>
<el-button type="primary" @click="submitForm(0)">保存</el-button>
<el-button type="primary" @click="submitForm(1)">提交申请</el-button>
<el-button @click="resetForm">重置表单</el-button>
<el-button type="text" @click="printForm">打印表单</el-button>
</div>
@@ -274,7 +275,7 @@
</template>
<script>
import { listEnlistmentReserve, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve";
import { getStudent, getEnlistmentReserve, delEnlistmentReserve, addEnlistmentReserve, updateEnlistmentReserve } from "@/api/routine/enlistmentReserve/enlistmentReserve";
import { getUserProfile } from '@/api/system/user' // 获取当前登录用户
export default {
name: 'EnlistmentReserveForm',
@@ -435,10 +436,11 @@ export default {
this.formData.studentName = this.user.nickName
this.formData.gender = this.user.sex
this.formData.studentId = this.user.userId
this.formData.studentNo = this.user.userName
}
})
},
submitForm() {
submitForm(applyStatus) {
this.$refs.formRef.validate((valid) => {
if (valid) {
if (!this.formData.applyNo) {
@@ -446,7 +448,7 @@ export default {
const randomNo = Math.floor(Math.random() * 1000000).toString().padStart(6, '0');
this.formData.applyNo = `RY${year}${randomNo}`;
}
this.formData.applyStatus = 1;
this.formData.applyStatus = applyStatus;
this.formData.updateTime = new Date().toISOString().split('T')[0];
const submitData = {