修改国家励志奖学金打印样式
This commit is contained in:
@@ -276,13 +276,13 @@ import { getTokenKeySessionStorage as getToken } from "@/utils/auth";
|
||||
|
||||
import GlApply from "@/views/comprehensive/knzzGlApply/cpnt/GlApply.vue";
|
||||
import GlLook from "@/views/comprehensive/knzzGlApply/cpnt/GlLook.vue";
|
||||
import {selectTestStu} from "@/api/stuCQS/info-fill/sportTest";
|
||||
import { selectTestStu } from "@/api/stuCQS/info-fill/sportTest";
|
||||
import { getDicts } from "@/api/system/dict/data";
|
||||
import { listDisciplinaryApplication } from "@/api/routine/disciplinaryApplication";
|
||||
import { getOwnStuScoreMajorRank } from "@/api/comprehensive/biyeapply";
|
||||
|
||||
import {
|
||||
listOwnScoreClassRank
|
||||
listOwnScoreClassRank
|
||||
} from "@/api/stuCQS/good/apply";
|
||||
|
||||
import { listStu as listView, doEdit, doCancel, doReApply } from "@/api/comprehensive/knzzGlApply";
|
||||
@@ -307,9 +307,9 @@ export default {
|
||||
|
||||
applyV: false,
|
||||
sportScore: null,
|
||||
getDicts:null,
|
||||
getDicts: [],
|
||||
penaltyStatusValue:null,
|
||||
getDicts: null,
|
||||
getDicts: [],
|
||||
penaltyStatusValue: null,
|
||||
|
||||
lookForm: {},
|
||||
lookV: false,
|
||||
@@ -454,11 +454,11 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
/* applyVClick() {
|
||||
this.fetchcjpm()
|
||||
this.fetchSportScoreData()
|
||||
this.fetchcfwjc()
|
||||
}, */
|
||||
/* applyVClick() {
|
||||
this.fetchcjpm()
|
||||
this.fetchSportScoreData()
|
||||
this.fetchcfwjc()
|
||||
}, */
|
||||
applyVClick() {
|
||||
this.checkAllConditions();
|
||||
},
|
||||
@@ -533,8 +533,8 @@ export default {
|
||||
});
|
||||
loading.close();
|
||||
let data = res.data[0];
|
||||
if (res.code === 200 && data&& data.stuMajorRank != null && data.majorCount != null) {
|
||||
|
||||
if (res.code === 200 && data && data.stuMajorRank != null && data.majorCount != null) {
|
||||
|
||||
let stuRank = Math.round(Math.round(data.stuMajorRank / data.majorCount * 10000) / 100);
|
||||
if (stuRank <= 30) {
|
||||
return true;
|
||||
@@ -546,59 +546,59 @@ export default {
|
||||
this.$message.info("无法获取您的专业排名数据");
|
||||
return false;
|
||||
},
|
||||
/* async fetchSportScoreData() {
|
||||
const res = await listOwnSportScore()
|
||||
if (res.code === 200 && res.data && res.data.length > 1) {
|
||||
const sportScore = res.data[res.data.length - 1].sportScore;
|
||||
if (sportScore >= 60) {
|
||||
/* async fetchSportScoreData() {
|
||||
const res = await listOwnSportScore()
|
||||
if (res.code === 200 && res.data && res.data.length > 1) {
|
||||
const sportScore = res.data[res.data.length - 1].sportScore;
|
||||
if (sportScore >= 60) {
|
||||
this.applyV = true;
|
||||
} else {
|
||||
this.applyV = false;
|
||||
this.$message.info("您的体能成绩不达标");
|
||||
}
|
||||
} else {
|
||||
this.applyV = false;
|
||||
this.$message.info("请先完成体能测试");
|
||||
}
|
||||
},
|
||||
async fetchcfwjc() {
|
||||
const response1 = await getDicts('rt_penalty_status');
|
||||
const response2 = await listDisciplinaryApplication();
|
||||
if (Array.isArray(response2.rows) && response2.rows.length === 1) {
|
||||
this.penaltyStatusValue = response2.rows[0].penaltyStatus;
|
||||
if (response1.data[0].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("处分中");
|
||||
} else if (response1.data[1].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = true;
|
||||
} else if (response1.data[2].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("解除申请中");
|
||||
} else if (response1.data[3].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("处分申请中");
|
||||
} else {
|
||||
this.applyV = false;
|
||||
this.$message.info("您的体能成绩不达标");
|
||||
}
|
||||
} else {
|
||||
this.applyV = false;
|
||||
this.$message.info("请先完成体能测试");
|
||||
this.applyV = true;
|
||||
}
|
||||
},
|
||||
async fetchcfwjc() {
|
||||
const response1 = await getDicts('rt_penalty_status');
|
||||
const response2 = await listDisciplinaryApplication();
|
||||
if (Array.isArray(response2.rows) && response2.rows.length === 1) {
|
||||
this.penaltyStatusValue = response2.rows[0].penaltyStatus;
|
||||
if (response1.data[0].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("处分中");
|
||||
} else if (response1.data[1].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = true;
|
||||
} else if (response1.data[2].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("解除申请中");
|
||||
} else if (response1.data[3].dictSort === this.penaltyStatusValue) {
|
||||
this.applyV = false;
|
||||
this.$message.info("处分申请中");
|
||||
} else {
|
||||
this.applyV = false;
|
||||
}
|
||||
} else {
|
||||
this.applyV = true;
|
||||
}
|
||||
},
|
||||
async fetchcjpm() {
|
||||
let loading = fullLoading(this);
|
||||
let res = await getOwnStuScoreMajorRank();
|
||||
loading.close();
|
||||
if (res.code == 200) {
|
||||
let data = res.data;
|
||||
let stuRank = Math.round(Math.round(data.majorRank / data.majorCount * 10000) / 100);
|
||||
if (stuRank > 30) {
|
||||
this.applyV = false;
|
||||
this.$message.error("您的学业成绩未达到专业前30%");
|
||||
} else {
|
||||
this.applyV = true;
|
||||
}
|
||||
}
|
||||
}, */
|
||||
},
|
||||
async fetchcjpm() {
|
||||
let loading = fullLoading(this);
|
||||
let res = await getOwnStuScoreMajorRank();
|
||||
loading.close();
|
||||
if (res.code == 200) {
|
||||
let data = res.data;
|
||||
let stuRank = Math.round(Math.round(data.majorRank / data.majorCount * 10000) / 100);
|
||||
if (stuRank > 30) {
|
||||
this.applyV = false;
|
||||
this.$message.error("您的学业成绩未达到专业前30%");
|
||||
} else {
|
||||
this.applyV = true;
|
||||
}
|
||||
}
|
||||
}, */
|
||||
lookVClick(row) {
|
||||
this.lookForm = {};
|
||||
this.lookForm = { ...row };
|
||||
|
||||
Reference in New Issue
Block a user