退伍复学表单数据显示
This commit is contained in:
@@ -907,6 +907,8 @@ import { getOutsideAccommodationApplyByProcessInstanceId, updateOutsideAccommoda
|
||||
import { listBasic, getBasic, delBasic, addBasic, updateBasic, getStname, getProcessId } from "@/api/routine/basic";
|
||||
import detailApply from "@/views/dormitory/outsideAccommodation/outsideAccommodationApply/components/detailApply" // 外宿申请表详细
|
||||
import { addOrUpdateAccommodationApproval } from "@/api/dormitory/outsideAccommodation/outsideAccommodationApproval";
|
||||
import { listStudent, getClassName } from '@/api/stuCQS/basedata/student'
|
||||
import { listGrade } from '@/api/stuCQS/basedata/grade'
|
||||
|
||||
export default {
|
||||
name: 'Record',
|
||||
@@ -944,6 +946,10 @@ export default {
|
||||
flowRecordList: [], // 流程流转数据
|
||||
formConfCopy: {},
|
||||
src: null,
|
||||
// 班级名称
|
||||
saveClassName:null,
|
||||
// 年级名称
|
||||
saveGradeName:null,
|
||||
rules: {
|
||||
penaltyNumber: [{ required: true, message: '请输入处分文号', trigger: 'blur' }],
|
||||
letterServiceContent: [{ required: true, message: '请输入送达书', trigger: 'blur' }],
|
||||
@@ -1183,8 +1189,50 @@ export default {
|
||||
getStname(newName).then((res) => {
|
||||
// console.log("后端返回原始数据:",res.data);
|
||||
this.form = res.data
|
||||
this.getClassNameList()
|
||||
this.listGrade()
|
||||
});
|
||||
},
|
||||
/** 获取班级名称列表 */
|
||||
getClassNameList() {
|
||||
getClassName().then(res => {
|
||||
this.ClassNameList = res.data
|
||||
// console.log(this.ClassNameList)
|
||||
if (this.ClassNameList != null) {
|
||||
this.ClassNameList.forEach(element => {
|
||||
if (element.value == this.form.maList[0].data1) {
|
||||
// console.log(element.label)
|
||||
element.children.forEach(elementTwo => {
|
||||
if (elementTwo.value == this.form.maList[0].data2) {
|
||||
// console.log(elementTwo.label)
|
||||
elementTwo.children.forEach(elementFree => {
|
||||
this.saveClassName = elementFree.label
|
||||
// console.log(elementFree.label)
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 获取年级列表 */
|
||||
async listGrade() {
|
||||
try {
|
||||
let res = await listGrade()
|
||||
if (res.code == 200) {
|
||||
this.grade_list = [...res.rows]
|
||||
console.log(this.grade_list)
|
||||
this.grade_list.forEach(element => {
|
||||
if(element.gradeId == this.form.maList[0].newgrade){
|
||||
this.saveGradeName = element.gradeName
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取年级列表失败:', error)
|
||||
}
|
||||
},
|
||||
|
||||
getStuInfo(stuNo) {
|
||||
getStuInfo(stuNo).then((res) => {
|
||||
@@ -1368,16 +1416,15 @@ export default {
|
||||
// updateBasic({stuId:this.form.stuId,fdStatus:"1",fdIdea:this.taskForm.comment}).then(response => {})
|
||||
var stNameData = ''
|
||||
let newName = this.startUser.split('-')[0].trim();
|
||||
// console.log(this.taskForm.procInsId)
|
||||
// 异步请求的回调内处理后续逻辑
|
||||
getStname(newName).then(response => {
|
||||
stNameData = response.data;
|
||||
|
||||
// console.log("这个是审批数据:", stNameData)
|
||||
// console.log("stNameData.id:", stNameData.id);
|
||||
// console.log("stNameData.newgrade" + stNameData.maList[0].data1)
|
||||
// console.log("stNameData.newmajor" + stNameData.maList[0].data2)
|
||||
|
||||
|
||||
|
||||
// 招生与就业处
|
||||
if (this.taskName == "招生与就业处") {
|
||||
const currentFlowItem = this.flowRecordList.find(item => item.taskName === this.taskName);
|
||||
@@ -1388,7 +1435,8 @@ export default {
|
||||
// zsIdea: this.taskForm.comment,
|
||||
zsTime: new Date(),
|
||||
// zsIdea:字段缺失改为zsIdea字段
|
||||
zsIdea: assigneeName
|
||||
zsIdea: assigneeName,
|
||||
processId:this.taskForm.procInsId
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess(response.msg)
|
||||
})
|
||||
@@ -1404,7 +1452,8 @@ export default {
|
||||
fdStatus: "1",
|
||||
fdIdea: this.taskForm.comment,
|
||||
fdTime: new Date(),
|
||||
fdQm: assigneeName
|
||||
fdQm: assigneeName,
|
||||
processId:this.taskForm.procInsId
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess(response.msg)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user