This commit is contained in:
zhoutianchi
2026-01-14 10:52:06 +08:00
parent 8c1f4ec05e
commit d0c8ea0223
140 changed files with 16969 additions and 11469 deletions

View File

@@ -0,0 +1,370 @@
<template>
<el-dialog
:title="title"
:close-on-click-modal="false"
:visible.sync="visible"
append-to-body
width="90%"
>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
label-width="170px" size="mini">
<el-row>
<el-col :span="24">
<el-form-item label="招生计划" prop="groupId">
<el-select v-model="dataForm.groupId" filterable :disabled="!dataForm.id ? false : true"
placeholder="请选择招生计划" size="small" style="width: 100%">
<el-option
v-for="item in planList"
:key="item.id"
:label="item.groupName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="姓名" prop="name" >
<el-input type="text" v-model="dataForm.name" :disabled="type==1 ? false : true"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="身份证号" prop="idNumber">
<el-input type="text" v-model="dataForm.idNumber" :disabled="type==2 ? false : true"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="成绩折算分" prop="correctedScore">
<el-input-number v-model="dataForm.correctedScore" controls-position="right" :min="0" :max="999" :step-strictly="true"style="width:100%;" ></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="原录取专业" prop="confirmedMajor">
<el-select v-model="dataForm.confirmedMajor" filterable clearable placeholder="" size="small" style="width: 100%" :disabled="type==1 ? false : true" @change="changeM(dataForm.confirmedMajor)">
<el-option
v-for="item in planMajorList"
:key="item.zydm"
:label="item.zymc"
:value="item.zydm">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="新录取专业" prop="newConfirmedMajor">
<el-select v-model="dataForm.newConfirmedMajor" filterable placeholder="" size="small" style="width: 100%" @change="changeCM(dataForm.newConfirmedMajor)">
<el-option
v-for="item in planMajorList"
:key="item.zydm"
:label="item.zymc+' || '+item.xyNum"
:value="item.zydm">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="学费" prop="feeTuition">
<el-input-number v-model="dataForm.feeTuition" controls-position="right" :min="0" :max="999999" :step-strictly="true" style="width:100%;" :disabled="type==2?false:true"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="代办费" prop="feeAgency">
<el-input-number v-model="dataForm.feeAgency" controls-position="right" :min="0" :max="999999" :step-strictly="true" style="width:100%;" :disabled="type==2?false:true"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="总费用" prop="allMoney">
<span style="color: red">{{dataForm.feeTuition+dataForm.feeAgency}}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="审核备注" prop="auditRemarks">
<el-input type="textarea" v-model="dataForm.auditRemarks" placeholder="审核备注" :rows="2" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer" >
<el-button @click="visible = false">取消</el-button>
<el-button type="success" @click="dataFormSubmit()" v-if="canSubmit">确认修改</el-button>
</span>
</el-dialog>
</template>
<script>
import {getObj,changeMajor} from '@/api/recruit/recruitstudentsignup'
import {list} from "@/api/recruit/recruitstudentplangroup";
import {listByEdu} from "@/api/recruit/recruitplanmajor";
import {getDictByType} from "@/api/contract/contract";
import {list as scoreList} from "@/api/recruit/recruitstudentplancorrectscoreconfig";
export default {
data() {
return {
visible: false,
canSubmit: false,
title: "",
eduList: [],
type:null,
dataForm: {
id: "",
groupId: "",
name: "",
oldName: "",
gender: "",
nationality: "",
degreeOfEducation: "",
isLeagueMember: "",
schoolOfGraduation: "",
isAccommodation: "",
examRegistrationNumbers: "",
isMinimumLivingSecurity: "",
score: "",
postcode: "",
residenceType: "",
correctedScore: "",
placeScore: "",
schoolFrom: "",
idNumber: "",
residenceProvince: "",
residenceCity: "",
residenceArea: "",
residenceDetail: "",
homeAddressProvince: "",
homeAddressCity: "",
homeAddressArea: "",
homeAddressDetail: "",
parentName: "",
parentTelOne: "",
parentTelTwo: "",
selfTel: "",
wishMajorOne: "",
wishMajorTwo: "",
wishMajorThree: "",
confirmedMajor: "",
sevenMajor:"",
sixMajor:"",
fiveMajor:"",
fourMajor: "",
threeMajor: "",
twoMajor: "",
feeContribute: 0,
scorePhoto: "",
graPic: "",
yyPic: "",
housePic: "",
sbPic: "",
contactName: "",
oldSerialNumber: "",
colorDiscrimination: "",
nutrition: "",
height: "",
weight: "",
pastMedicalHistory: "",
eyesightLeft: "",
eyesightRight: "",
correctEyesightLeft: "",
correctEyesightRight: "",
remarks: "",
auditRemarks: "",
serialNumber: "",
auditStatus:"",
schoolCode:"",
newConfirmedMajor: "",
householdPic:""
},
disabled: false,
schoolFromList:[{label:"本省外市",value:"1"},{label:"外省外市",value:"2"}],
planList: [],
planMajorList:[],
deptList: [],
dialogImageUrl:"",
dialogUploadVisible:false,
dataRule: {
groupId: [
{required: true, message: '招生计划不能为空', trigger: 'change'}
],
name: [
{required: true, message: '姓名不能为空', trigger: 'change'}
],
idNumber: [
{required: true, message: '身份证不能为空', trigger: 'change'}
],
correctedScore: [
{required: true, message: '成绩折算分不能为空', trigger: 'change'}
],
confirmedMajor:[
{required: true, message: '原录取专业不能为空', trigger: 'change'}
],
newConfirmedMajor:[
{required: true, message: '新录取专业不能为空', trigger: 'change'}
]
}
}
},
created() {
},
methods: {
init(id) {
let _this = this;
this.dataForm.id = id || null;
this.visible = true;
this.canSubmit = true;
this.initData();
this.isShow = true;
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
//获取数据字典代办费
getDictByType("agency_fee").then(res => {
_this.agencyFeeList = res.data.data
//获取数据字典学费
getDictByType("tuition_fee").then(res => {
_this.tuitionFeeList = res.data.data
getObj(this.dataForm.id).then(response => {
this.dataForm = response.data.data
this.title = this.dataForm.serialNumber
//获取文化程度对应的专业
this.planMajorList=[];
this.agencyFeeList.forEach(e=>{
if(this.dataForm.degreeOfEducation == e.label){
this.dataForm.feeAgency = e.value;
}
});
this.tuitionFeeList.forEach(e=>{
if(this.dataForm.degreeOfEducation == e.label && (this.dataForm.degreeOfEducation !=1) ){
this.dataForm.feeTuition = e.value;
}
});
listByEdu({groupId: this.dataForm.groupId,degreeOfEducation:this.dataForm.degreeOfEducation}).then(e=>{
_this.planMajorList = e.data.data;
});
//获取招生计划下的学校和分数线
scoreList({groupId:_this.dataForm.groupId}).then(data =>{
_this.schoolCodeList = data.data.data;
});
if ("1" == this.dataForm.degreeOfEducation) {
this.title = "C" + this.title;
} else if ("2" == this.dataForm.degreeOfEducation) {
this.title = "G" + this.title;
} else if ("3" == this.dataForm.degreeOfEducation) {
this.title = "J" + this.title;
}
if("-20" == this.dataForm.auditStatus){
this.title ="未录取 "+this.title;
}else if("0" == this.dataForm.auditStatus){
this.title ="待审核 "+this.title;
}else if("20" == this.dataForm.auditStatus){
this.title ="已录取 "+this.title;
}
})
})
})
}
})
},
initData() {
let _this = this;
list().then(data => {
_this.planList = data.data.data
});
},
changeCM(id){
if(id){
let _this = this;
let flag = false;
_this.planMajorList.forEach(e=>{
if(_this.dataForm.newConfirmedMajor == e.zydm && e.isZd=="1" &&_this.dataForm.degreeOfEducation==1){
flag = true;
}
});
if(_this.dataForm.degreeOfEducation==1){
_this.dataForm.feeTuition=0;
_this.tuitionFeeList.forEach(e=>{
if(e.label=="0" && flag){
_this.dataForm.feeTuition = e.value;
}
});
}
}
},
changeM(id){
if(id){
let _this = this;
let flag = false;
_this.dataForm.confirmedMajor = id;
//是初中生并且是中德班
_this.planMajorList.forEach(e=>{
if(_this.dataForm.confirmedMajor == e.zydm && e.isZd=="1" &&_this.dataForm.degreeOfEducation==1){
flag = true;
}
});
if(_this.dataForm.degreeOfEducation==1){
_this.dataForm.feeTuition=0;
_this.tuitionFeeList.forEach(e=>{
if(e.label=="0" && flag){
_this.dataForm.feeTuition = e.value;
}
});
}
}
},
// 表单提交
dataFormSubmit() {
let _this = this;
let title = "确认调整录取专业么?";
if(this.dataForm.confirmedMajor == this.dataForm.newConfirmedMajor){
_this.$notify.error('新专业不能和原专业相同');
return
}
this.$confirm(title , '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
_this.$refs['dataForm'].validate((valid) => {
if (valid) {
_this.canSubmit = false;
if (_this.dataForm.id) {
changeMajor(_this.dataForm).then(data => {
_this.$notify.success('操作成功')
_this.visible = false
_this.$emit('refreshDataList')
}).catch(() => {
_this.canSubmit = true;
});
}
}
})
}).then(data => {
}).catch(function(err) { })
}
}
}
</script>