diff --git a/src/api/routine/cphMsg.js b/src/api/routine/cphMsg.js new file mode 100644 index 0000000..557d68d --- /dev/null +++ b/src/api/routine/cphMsg.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询消息列表 +export function listCphMsg(query) { + return request({ + url: '/routine/cphMsg/list', + method: 'get', + params: query + }) +} + +// 查询消息详细 +export function getCphMsg(id) { + return request({ + url: '/routine/cphMsg/' + id, + method: 'get' + }) +} + +// 新增消息 +export function addCphMsg(data) { + return request({ + url: '/routine/cphMsg/add', + method: 'post', + data: data + }) +} + +// 修改消息 +export function updateCphMsg(data) { + return request({ + url: '/routine/cphMsg/update', + method: 'post', + data: data + }) +} + +// 删除消息 +export function delCphMsg(id) { + return request({ + url: '/routine/cphMsg/' + id, + method: 'post' + }) +} + +// 根据学号查询用户ID +export function getUserIdByStuNo(stuNo) { + return request({ + url: '/routine/cphMsg/getUserIdByStuNo/' + stuNo, + method: 'get' + }) +} + +// 发送消息 +export function sendMessage(data) { + return request({ + url: '/routine/cphMsg/sendMessage', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/views/poverty/poverty_examine.vue b/src/views/poverty/poverty_examine.vue index 4c5c68f..6c9e416 100644 --- a/src/views/poverty/poverty_examine.vue +++ b/src/views/poverty/poverty_examine.vue @@ -1,396 +1,403 @@ @@ -1123,41 +1116,41 @@ import jsPDF from 'jspdf'; export default { components: { - signature + signature }, - name:"Poverty_Examine", + name: "Poverty_Examine", - data(){ + data() { var sqlyValidate = (rule, value, callback) => { let searchString = /贫困/; let regex = new RegExp(searchString, 'g'); - let result = regex.test(value); - if(result){ + let result = regex.test(value); + if (result) { - callback(new Error('申请理由不能有"贫困"字眼')); - }else{ - callback(); + callback(new Error('申请理由不能有"贫困"字眼')); + } else { + callback(); } }; - return{ - rejectDialogVisible:false, - isDetail:false, - openPrint:false, - printLoading:false, - user:{signature:null}, - accpet:'image/*', - tableLoading:false, - recordLoading:false, - xsEditDisable:true, - knlxEditDisable:true, - fdyEditDisable:true, - ejxyEditDisable:true, - xxEditDisable:true, - recordList:[], + return { + rejectDialogVisible: false, + isDetail: false, + openPrint: false, + printLoading: false, + user: { signature: null }, + accpet: 'image/*', + tableLoading: false, + recordLoading: false, + xsEditDisable: true, + knlxEditDisable: true, + fdyEditDisable: true, + ejxyEditDisable: true, + xxEditDisable: true, + recordList: [], upload: { headers: { Authorization: "Bearer " + getToken() }, @@ -1165,81 +1158,81 @@ export default { url: process.env.VUE_APP_BASE_API + "/common/upload" }, baseurl: process.env.VUE_APP_BASE_API + "/", - disable:false, - isShow:true, - form:{}, - formData:{ - bankAddr:null, - affixId:null, //附件id - step:0,//步骤 - xm:null, - xb:null, - mz:null, - zzmm:null, - sfzhm:null, - zzls:null, - xh:null, - rxsj:null, - csny:null, - dh:null, - nj:null, - xy:null, - zy:null, - bj:null, - kndj:null, - knlx:null, - knlx_2:null, - rkzs:null, - yzsr:null, - rjyr:null, - rjnsr:null, - srly:null, + disable: false, + isShow: true, + form: {}, + formData: { + bankAddr: null, + affixId: null, //附件id + step: 0,//步骤 + xm: null, + xb: null, + mz: null, + zzmm: null, + sfzhm: null, + zzls: null, + xh: null, + rxsj: null, + csny: null, + dh: null, + nj: null, + xy: null, + zy: null, + bj: null, + kndj: null, + knlx: null, + knlx_2: null, + rkzs: null, + yzsr: null, + rjyr: null, + rjnsr: null, + srly: null, - bankCard:null, - jtcyObj:[], - jtcy:[ - { - xm:null, - nl:null, - gx:null, - dw:null, - lxdh:null - }, - ], + bankCard: null, + jtcyObj: [], + jtcy: [ + { + xm: null, + nl: null, + gx: null, + dw: null, + lxdh: null + }, + ], - sqly:null,//申请理由 - fdyqm:null,//辅导签名 - fdyqmrq:null, - ejxyldqm:null, - ejxyldqmrq:null, - xsqm:null, - xsqmrq:null, - zp:null, - csdj:1, - xxyjrq:null, + sqly: null,//申请理由 + fdyqm: null,//辅导签名 + fdyqmrq: null, + ejxyldqm: null, + ejxyldqmrq: null, + xsqm: null, + xsqmrq: null, + zp: null, + csdj: 1, + xxyjrq: null, - dz:null, - yb:null, - bjyj:'1', - ejxyyj:'1', - xxyj:'1' + dz: null, + yb: null, + bjyj: '1', + ejxyyj: '1', + xxyj: '1' }, - selerules: [{ + selerules: [{ required: true, message: '必选一项' - }], - rules:[ - { required: true, message: '此项必填', trigger: 'blur' } - ], - textAreaRules:[ - { required: true, message: '此项必填', trigger: 'blur' }, - {min:50,max:150, trigger: 'blur',message:"申请理由字数限制50-150字" }, - { - validator:sqlyValidate,trigger: 'blur' - } + }], + rules: [ + { required: true, message: '此项必填', trigger: 'blur' } + ], + textAreaRules: [ + { required: true, message: '此项必填', trigger: 'blur' }, + { min: 50, max: 150, trigger: 'blur', message: "申请理由字数限制50-150字" }, + { + validator: sqlyValidate, trigger: 'blur' + } - ], + ], options: [ "汉族", "壮族", @@ -1298,9 +1291,9 @@ export default { "赫哲族", "珞巴族" ], - optionsTemp:[], + optionsTemp: [], //打印 - printobj:{ + printobj: { id: 'print', popTitle: '', // 打印配置页上方标题 extraHead: '', //最上方的头部文字,附加在head标签上的额外标签,使用逗号分隔 @@ -1308,38 +1301,38 @@ export default { previewTitle: '', // 打印预览的标题(开启预览模式后出现), previewPrintBtnLabel: '', // 打印预览的标题的下方按钮文本,点击可进入打印(开启预览模式后出现) zIndex: '', // 预览的窗口的z-index,默认是 20002(此值要高一些,这涉及到预览模式是否显示在最上面) - previewBeforeOpenCallback() {}, //预览窗口打开之前的callback(开启预览模式调用) - previewOpenCallback() {}, // 预览窗口打开之后的callback(开启预览模式调用) + previewBeforeOpenCallback() { }, //预览窗口打开之前的callback(开启预览模式调用) + previewOpenCallback() { }, // 预览窗口打开之后的callback(开启预览模式调用) beforeOpenCallback() { }, // 开启打印前的回调事件 - openCallback() {}, // 调用打印之后的回调事件 - closeCallback() {}, //关闭打印的回调事件(无法确定点击的是确认还是取消) + openCallback() { }, // 调用打印之后的回调事件 + closeCallback() { }, //关闭打印的回调事件(无法确定点击的是确认还是取消) url: '', standard: '', extraCss: '', }, - levelDialog:false + levelDialog: false } }, - created(){ + created() { this.optionsTemp = this.options; let date = new Date(); - let month = date.getMonth()+1 - let id = this.$route.query.id; + let month = date.getMonth() + 1 + let id = this.$route.query.id; let action = this.$route.query.action; //获取路由参数, - if(this.$route.query.id){ - if(action == 2 || !action){ + if (this.$route.query.id) { + if (action == 2 || !action) { //查看 this.isShow = false; } - if(action == 3){ + if (action == 3) { this.isDetail = true; } this.getRecordList(this.$route.query.id); @@ -1351,41 +1344,41 @@ export default { ...response.data } this.formData.jtcyObj = JSON.parse(response.data.jtcy); - if( this.formData.step == 1 && !this.isDetail){ + if (this.formData.step == 1 && !this.isDetail) { this.xsEditDisable = false; this.fdyEditDisable = false; this.knlxEditDisable = false; //查询辅导员签名 this.getUserSignature(); - this.formData.fdyqmrq = date.getFullYear() + "/" +month + "/" + date.getDate() ; + this.formData.fdyqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 2 && !this.isDetail){ + if (this.formData.step == 2 && !this.isDetail) { this.getUserSignature(); this.ejxyEditDisable = false this.knlxEditDisable = false; - this.formData.ejxyldqmrq = date.getFullYear() + "/" + month + "/" + date.getDate() ; + this.formData.ejxyldqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 3 && !this.isDetail){ + if (this.formData.step == 3 && !this.isDetail) { this.getUserSignature(); - this.xxEditDisable = false; - this.knlxEditDisable = false; - this.formData.xxyjrq = date.getFullYear() + "/" + month+ "/" + date.getDate() ; + this.xxEditDisable = false; + this.knlxEditDisable = false; + this.formData.xxyjrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 0 && !this.isDetail){ + if (this.formData.step == 0 && !this.isDetail) { this.xsEditDisable = false; this.knlxEditDisable = true; this.getUserSignature(); - this.formData.xsqmrq = date.getFullYear() + "/" + month+ "/" + date.getDate(); + this.formData.xsqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } }); return; - }else{ + } else { //获取学生信息 - this.getStudent(); + this.getStudent(); //新增 - if( this.formData.step == 0){ - this.formData.xsqmrq = date.getFullYear() + "/" +month + "/" + date.getDate() ; + if (this.formData.step == 0) { + this.formData.xsqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); this.xsEditDisable = false; this.getUserSignature(); @@ -1397,84 +1390,84 @@ export default { }, - methods:{ - saveSuccessHandleXsqm(url){ + methods: { + saveSuccessHandleXsqm(url) { this.formData.xsqm = url; }, - nsrChange(){ - this.formData.rkzs = this.formData.jtcyObj.length + 1; - console.log(this.formData); - let rows = this.formData.jtcyObj; - let total =0; - for(let i = 0;i < rows.length; i++){ - total = parseInt(total) + parseInt(rows[i].nsr); + nsrChange() { + this.formData.rkzs = this.formData.jtcyObj.length + 1; + console.log(this.formData); + let rows = this.formData.jtcyObj; + let total = 0; + for (let i = 0; i < rows.length; i++) { + total = parseInt(total) + parseInt(rows[i].nsr); - } - this.formData.rjnsr = (total / this.formData.rkzs).toFixed(2); - this.$forceUpdate(); + } + this.formData.rjnsr = (total / this.formData.rkzs).toFixed(2); + this.$forceUpdate(); }, exportToPDF() { - const pdfName = this.formData.xm +"(" + this.formData.applyYear+ ')广西水利电力职业技术学院国家助学金申请表.pdf'; // 定义导出的PDF文件名 - const element = document.getElementById('print'); // 获取需要导出的页面元素的id,可以根据需要修改 - html2canvas(element).then(canvas => { - // 将页面转换为canvas - const pdf = new jsPDF('p', 'mm', 'a4'); - const imgData = canvas.toDataURL('image/png'); + const pdfName = this.formData.xm + "(" + this.formData.applyYear + ')广西水利电力职业技术学院国家助学金申请表.pdf'; // 定义导出的PDF文件名 + const element = document.getElementById('print'); // 获取需要导出的页面元素的id,可以根据需要修改 + html2canvas(element).then(canvas => { + // 将页面转换为canvas + const pdf = new jsPDF('p', 'mm', 'a4'); + const imgData = canvas.toDataURL('image/png'); - pdf.addImage(imgData, 'PNG', 0, 0, 210, 297); // 将canvas添加为PDF的一页,可以根据需要修改尺寸 - // pdf.rect(0, 0, 210, 297, 'stroke'); - pdf.save(pdfName); // 下载导出的PDF文件 - }); - }, + pdf.addImage(imgData, 'PNG', 0, 0, 210, 297); // 将canvas添加为PDF的一页,可以根据需要修改尺寸 + // pdf.rect(0, 0, 210, 297, 'stroke'); + pdf.save(pdfName); // 下载导出的PDF文件 + }); + }, //驳回提交 - submitReject(){ - if(!this.form.targetStep){ + submitReject() { + if (!this.form.targetStep) { this.$modal.msgError("请选择驳回目标"); return; } - if(!this.form.remark){ + if (!this.form.remark) { this.$modal.msgError("请输入原因"); return; } - let params = { - "targetStep":this.form.targetStep, - "remark":this.form.remark, - "step":this.formData.step + 1, - "applyId":this.formData.id, - "status":2, + let params = { + "targetStep": this.form.targetStep, + "remark": this.form.remark, + "step": this.formData.step + 1, + "applyId": this.formData.id, + "status": 2, + + } + nopass(params).then(response => { + if (response.code != 500) { + unlock({ id: this.formData.id }); + this.getNextApply(this.formData.step); } - nopass(params).then(response => { - if(response.code !=500){ - unlock({id:this.formData.id}); - this.getNextApply(this.formData.step); - - } - }); - }, + }); + }, //打印 printHtml() { this.openPrint = true; this.printLoading = true; - this.formData.rxsj = this.formData.rxsj.substring(0,7); - this.formData.csny = this.formData.csny.substring(0,7); + this.formData.rxsj = this.formData.rxsj.substring(0, 7); + this.formData.csny = this.formData.csny.substring(0, 7); - listZxjtime({"stuNo":this.formData.xh,stuYearId:this.formData.stuYearId}).then(res=>{ - if(res.rows && res.rows.length > 0){ + listZxjtime({ "stuNo": this.formData.xh, stuYearId: this.formData.stuYearId }).then(res => { + if (res.rows && res.rows.length > 0) { this.formData.stuTime = res.rows[0].stuTime; this.formData.fdyTime = res.rows[0].fdyTime; this.formData.xsjTime = res.rows[0].xsjTime; this.formData.deptTime = res.rows[0].deptTime; } - else{ - this.formData.stuTime = this.formData.xsqmrq; - this.formData.fdyTime = this.formData.fdyqmrq; - this.formData.xsjTime =this.formData.ejxyldqmrq; - this.formData.deptTime =this.formData.xsqmrq; - } + else { + this.formData.stuTime = this.formData.xsqmrq; + this.formData.fdyTime = this.formData.fdyqmrq; + this.formData.xsjTime = this.formData.ejxyldqmrq; + this.formData.deptTime = this.formData.xsqmrq; + } this.printLoading = false; this.$forceUpdate(); @@ -1482,36 +1475,36 @@ export default { }, //更新签名 - doUpdateSignature(){ - updateSignature(this.user).then(res=>{}); + doUpdateSignature() { + updateSignature(this.user).then(res => { }); }, //获取签名 - getUserSignature() { + getUserSignature() { getUserProfile().then(response => { - if(this.formData.step == 3 && !this.formData.xxqm ){ + if (this.formData.step == 3 && !this.formData.xxqm) { this.formData.xxqm = response.data.signature; } - if(this.formData.step == 1&& !this.formData.fdyqm ){ + if (this.formData.step == 1 && !this.formData.fdyqm) { console.log("获取辅导员签名"); this.formData.fdyqm = response.data.signature; } - if(this.formData.step == 2 && !this.formData.ejxyldqm){ - console.log("获取二级学院领导签名"); + if (this.formData.step == 2 && !this.formData.ejxyldqm) { + console.log("获取二级学院领导签名"); this.formData.ejxyldqm = response.data.signature; } - if(this.formData.step == 0 && !this.formData.xsqm){ - console.log("获取学生签名"); - this.formData.xsqm= response.data.signature; + if (this.formData.step == 0 && !this.formData.xsqm) { + console.log("获取学生签名"); + this.formData.xsqm = response.data.signature; } }); }, - //获取学年 - getCurrentYearFun(){ + //获取学年 + getCurrentYearFun() { - let year = JSON.parse(sessionStorage.getItem("zxjSelectedYear")); - this.formData.applyYear = year.stuYearName; - this.formData.stuYearId = year.id; - this.getKnrd(); + let year = JSON.parse(sessionStorage.getItem("zxjSelectedYear")); + this.formData.applyYear = year.stuYearName; + this.formData.stuYearId = year.id; + this.getKnrd(); // getCurrentYear().then(res=>{ // this.formData.applyYear = res.data.stuYearName; // this.formData.stuYearId = res.data.id; @@ -1519,112 +1512,112 @@ export default { // }) }, //获取贫困标签 - getKnrd(){ - findByXhAndApplyYear({xh:this.formData.xh,stuYearId:this.formData.stuYearId}).then(res=>{ - this.formData.rjnsr = res.data.rjnsr; - this.formData.srly = res.data.jtzysr; - this.formData.knlx = res.data.knlx; + getKnrd() { + findByXhAndApplyYear({ xh: this.formData.xh, stuYearId: this.formData.stuYearId }).then(res => { + this.formData.rjnsr = res.data.rjnsr; + this.formData.srly = res.data.jtzysr; + this.formData.knlx = res.data.knlx; }); }, //获取学生信息 - getStuentOwnInfo(){ - getStuOwnInfo().then(res=>{ + getStuentOwnInfo() { + getStuOwnInfo().then(res => { this.formData.bankAddr = res.data.bankAddr; }); }, //银行卡信息 - getOwnInfoV(){ + getOwnInfoV() { getOwnInfoView().then(obj => { this.formData.nj = obj.data.gradeName; - this.formData.bankCard = obj.data.bankCard; - this.formData.sfzhm = obj.data.idCard; + this.formData.bankCard = obj.data.bankCard; + this.formData.sfzhm = obj.data.idCard; }); }, //学生个人信息 getOwnInfo() { getOwnInfo().then(obj => { - let zp = null; - //"dailyPhoto": "/profile/upload/2024/04/21/image-20240312170143660_20240421141241A004.png", - // "whitePhoto": "/profile/upload/2024/04/21/image-20240312165106680_20240421141559A005.png", - // "redPhoto": "/profile/upload/2024/04/21/image-20240312170457935_20240421141602A006.png", - // "bluePhoto": "/profile/upload/2024/04/21/image-20240312170206087_20240421141606A007.png", - if(obj.data.whitePhoto){ - zp = obj.data.whitePhoto; - }else if(obj.data.redPhoto){ - zp = obj.data.redPhoto; - }else if(obj.data.bluePhoto){ - zp = obj.data.bluePhoto; - }else{ - zp = null; - } - this.formData.mz = obj.data.mz; - this.formData.zzmm = obj.data.zzmm; - this.formData.zp = zp; - // this.formData.hjszd = obj.data.hksz1 + obj.data.hksz2 + obj.data.hksz3 - this.formData.dz = obj.data.xxlxdz - this.formData.yb = obj.data.jtyzbm; + let zp = null; + //"dailyPhoto": "/profile/upload/2024/04/21/image-20240312170143660_20240421141241A004.png", + // "whitePhoto": "/profile/upload/2024/04/21/image-20240312165106680_20240421141559A005.png", + // "redPhoto": "/profile/upload/2024/04/21/image-20240312170457935_20240421141602A006.png", + // "bluePhoto": "/profile/upload/2024/04/21/image-20240312170206087_20240421141606A007.png", + if (obj.data.whitePhoto) { + zp = obj.data.whitePhoto; + } else if (obj.data.redPhoto) { + zp = obj.data.redPhoto; + } else if (obj.data.bluePhoto) { + zp = obj.data.bluePhoto; + } else { + zp = null; + } + this.formData.mz = obj.data.mz; + this.formData.zzmm = obj.data.zzmm; + this.formData.zp = zp; + // this.formData.hjszd = obj.data.hksz1 + obj.data.hksz2 + obj.data.hksz3 + this.formData.dz = obj.data.xxlxdz + this.formData.yb = obj.data.jtyzbm; }) }, //学生家庭成员信息 getFamily() { getOwnFamily().then(obj => { - if (obj.code == 200) { - var arr = obj.data - this.formData.jtcyObj = [] - if (arr.length > 0) { - for (var i = 0; i < arr.length; i++) { - var obj = {} - obj.xm = arr[i].familyName - obj.nl = arr[i].age - obj.gx = arr[i].familyRelation - obj.gzdw = arr[i].workPlace - obj.zy = arr[i].job - obj.jkzk = arr[i].health - obj.lxdh= arr[i].phone - obj.nsr = arr[i].yearMoney - obj.dw = arr[i].workPlace - this.formData.jtcyObj.push(obj) - this.formData.rkzs = arr.length + 1 + if (obj.code == 200) { + var arr = obj.data + this.formData.jtcyObj = [] + if (arr.length > 0) { + for (var i = 0; i < arr.length; i++) { + var obj = {} + obj.xm = arr[i].familyName + obj.nl = arr[i].age + obj.gx = arr[i].familyRelation + obj.gzdw = arr[i].workPlace + obj.zy = arr[i].job + obj.jkzk = arr[i].health + obj.lxdh = arr[i].phone + obj.nsr = arr[i].yearMoney + obj.dw = arr[i].workPlace + this.formData.jtcyObj.push(obj) + this.formData.rkzs = arr.length + 1 + } + } } - } - } }); }, //查询审核记录 - getRecordList(id){ - // 查询审批流程 + getRecordList(id) { + // 查询审批流程 this.recordLoading = true; - listRecord({applyId:id}).then(response=>{ - this.recordList = []; + listRecord({ applyId: id }).then(response => { + this.recordList = []; let rows = response.rows; - for(let idx = 0; idx < rows.length; idx++ ){ + for (let idx = 0; idx < rows.length; idx++) { let row = rows[idx]; - if(row.step == 0){ + if (row.step == 0) { row['text'] = "保存"; } - if(row.step == 1){ + if (row.step == 1) { row['text'] = "提交申请"; } - if(row.step == 2){ + if (row.step == 2) { row['text'] = "辅导员审核"; } - if(row.step == 3){ + if (row.step == 3) { row['text'] = "二级学院审核"; } - if(row.step == 4){ + if (row.step == 4) { row['text'] = "学校审核"; } - //el-icon-remove-outline el-icon-circle-check el-icon-circle-close - if(row.status == '0'){ + //el-icon-remove-outline el-icon-circle-check el-icon-circle-close + if (row.status == '0') { //拒绝 row['icon'] = 'el-icon-circle-close'; row['color'] = '#F56C6C' row['type'] = 'danger'; row['result'] = "拒绝"; } - if(row.status == '1'){ + if (row.status == '1') { //通过 row['icon'] = 'el-icon-circle-check'; row['color'] = '#67C23A' @@ -1632,7 +1625,7 @@ export default { row['result'] = "审核通过"; } - if(row.status == '2'){ + if (row.status == '2') { // 驳回 row['icon'] = 'el-icon-remove-outline'; row['color'] = '#E6A23C' @@ -1640,25 +1633,25 @@ export default { row['result'] = "驳回"; } - if(row.status == null ||row.status =='' ){ - row['icon'] = 'el-icon-circle-check'; + if (row.status == null || row.status == '') { + row['icon'] = 'el-icon-circle-check'; row['color'] = '#67C23A' row['type'] = 'success'; } this.recordList.push(row); } - this.recordLoading = false; + this.recordLoading = false; }); }, //获取下一个未审批 - getNextApply(step){ + getNextApply(step) { this.tableLoading = true; let date = new Date(); - let month = date.getMonth()+1 - nextApply({'step':step}).then(res=>{ - if(res.code == 200 && res.data){ + let month = date.getMonth() + 1 + nextApply({ 'step': step }).then(res => { + if (res.code == 200 && res.data) { this.rejectDialogVisible = false; this.formData = { ...this.formData, @@ -1666,31 +1659,31 @@ export default { } this.formData.jtcyObj = JSON.parse(res.data.jtcy); - if( this.formData.step == 1 && !this.isDetail){ + if (this.formData.step == 1 && !this.isDetail) { this.xsEditDisable = false; this.fdyEditDisable = false; this.knlxEditDisable = false; //查询辅导员签名 this.getUserSignature(); - this.formData.fdyqmrq = date.getFullYear() + "/" +month + "/" + date.getDate() ; + this.formData.fdyqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 2 && !this.isDetail){ + if (this.formData.step == 2 && !this.isDetail) { this.getUserSignature(); this.ejxyEditDisable = false; this.knlxEditDisable = false; - this.formData.ejxyldqmrq = date.getFullYear() + "/" + month + "/" + date.getDate() ; + this.formData.ejxyldqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 3 && !this.isDetail){ + if (this.formData.step == 3 && !this.isDetail) { this.getUserSignature(); this.xxEditDisable = false; - this.knlxEditDisable = false; - this.formData.xxyjrq = date.getFullYear() + "/" + month+ "/" + date.getDate() ; + this.knlxEditDisable = false; + this.formData.xxyjrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } - if( this.formData.step == 0 && !this.isDetail){ + if (this.formData.step == 0 && !this.isDetail) { this.xsEditDisable = false; - this.knlxEditDisable = true; + this.knlxEditDisable = true; this.getUserSignature(); - this.formData.xsqmrq = date.getFullYear() + "/" + month+ "/" + date.getDate(); + this.formData.xsqmrq = date.getFullYear() + "/" + month + "/" + date.getDate(); } this.getRecordList(this.formData.id); @@ -1700,117 +1693,125 @@ export default { message: '已自动加载下一个', position: 'bottom-right', type: 'success', - }); + }); this.scrollTop(); } - else{ + else { this.tableLoading = false; - this.$tab.closePage(); + this.$tab.closePage(); } }); }, //获取学生信息,进入到 //附件id - handleAffix(affixId){ + handleAffix(affixId) { this.formData.affixId = affixId; }, //选择头像 - handleAvatarSuccess( response, file, fileList){ + handleAvatarSuccess(response, file, fileList) { - this.formData.zp = response.fileName; + this.formData.zp = response.fileName; }, //选择签名 - handleSignatureSuccess(response, file, fileList){ + handleSignatureSuccess(response, file, fileList) { this.formData.xsqm = response.fileName; }, - handleFdySignatureSuccess(response, file, fileLis){ + handleFdySignatureSuccess(response, file, fileLis) { this.formData.fdyqm = response.fileName; }, - handleEjxyldSignatureSuccess(response, file, fileLis){ + handleEjxyldSignatureSuccess(response, file, fileLis) { this.formData.ejxyldqm = response.fileName; }, - handleXxSignatureSuccess(response, file, fileLis){ + handleXxSignatureSuccess(response, file, fileLis) { this.formData.xxqm = response.fileName; }, - beforeAvatarUpload(){ + beforeAvatarUpload() { console.log(); }, //提交 - onSubmit(){ + onSubmit() { // - if(!this.formData.zp ){ - this.$modal.msgError("请上传照片"); + if (!this.formData.zp) { + this.$modal.msgError("请上传照片"); return; } - if(!this.formData.xsqm ){ - this.$modal.msgError("请上传签名照片"); + if (!this.formData.xsqm) { + this.$modal.msgError("请上传签名照片"); return; } + // 添加提交确认提示 + this.$confirm('即将提交,提交后,将不能修改,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let data = {}; + Object.assign(data, this.formData); + data.step = 1; + this.$refs['formData'].validate((valid) => { + if (valid) { + // let str = this.formData.sqly; + // let searchString = /贫困生/; + // let regex = new RegExp(searchString, 'g'); + // let result = regex.test(str); + // if(result){ - let data = {}; - Object.assign(data,this.formData); - data.step = 1; - this.$refs['formData'].validate((valid) => { - if (valid) { - // let str = this.formData.sqly; - // let searchString = /贫困生/; - // let regex = new RegExp(searchString, 'g'); - // let result = regex.test(str); - // if(result){ - - // var newStr = str.replace(regex, "贫困生"); - // this.$alert("申请理由:"+newStr +'

申请理由不能包含"贫困生"等信息

', '系统消息', { - // dangerouslyUseHTMLString: true - // }); - // return; - // } + // var newStr = str.replace(regex, "贫困生"); + // this.$alert("申请理由:"+newStr +'

申请理由不能包含"贫困生"等信息

', '系统消息', { + // dangerouslyUseHTMLString: true + // }); + // return; + // } - data.jtcy = JSON.stringify(this.formData.jtcyObj); + data.jtcy = JSON.stringify(this.formData.jtcyObj); - if(this.formData.id){ - updateApply(data).then(response => { - if(response.code !=500){ - this.user.signature = this.formData.xsqm; - this.doUpdateSignature(); - this.$tab.closePage(); - } - }); - }else{ - addApply(data).then(response => { - if(response.code !=500){ + if (this.formData.id) { + updateApply(data).then(response => { + if (response.code != 500) { + this.user.signature = this.formData.xsqm; + this.doUpdateSignature(); + this.$tab.closePage(); + } + }); + } else { + addApply(data).then(response => { + if (response.code != 500) { - this.user.signature = this.formData.xsqm; - this.doUpdateSignature(); - this.$tab.closePage(); - } - }); - } - } else { - this.$confirm('还存在必填项未填或填写错误,请仔细检查!', '提示', { + this.user.signature = this.formData.xsqm; + this.doUpdateSignature(); + this.$tab.closePage(); + } + }); + } + } else { + this.$confirm('还存在必填项未填或填写错误,请仔细检查!', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'error' - }) + }) - return false; - } + return false; + } + }); + }).catch(() => { + // 用户取消操作 }); }, //根据学号查询学生信息 - getStudent(){ - getStudentInfo({"stuNo":this.formData.xh}).then(res=>{ + getStudent() { + getStudentInfo({ "stuNo": this.formData.xh }).then(res => { //精确查找到 - if(res.data){ + if (res.data) { this.formData.xh = res.data.stuNo; this.formData.xm = res.data.name; this.formData.xb = res.data.gender; - this.formData.xy = res.data.dept==null?"":res.data.dept.deptName; + this.formData.xy = res.data.dept == null ? "" : res.data.dept.deptName; this.formData.zy = res.data.srsMajors.majorName; this.formData.bj = res.data.srsClass.className; this.formData.csny = res.data.birthday; @@ -1839,60 +1840,70 @@ export default { } }) }, - getKnlx(){ - queryByStuNo({stuNo: this.formData.xh}).then(res=>{ - if(res.code == 200 ){ - this.formData.knlx =res.data? res.data.knrdType:"无"; + getKnlx() { + queryByStuNo({ stuNo: this.formData.xh }).then(res => { + if (res.code == 200) { + this.formData.knlx = res.data ? res.data.knrdType : "无"; } }) }, //计算月入人均收入,四舍五入 - computedAvg(){ + computedAvg() { let rjyr = Math.round(this.formData.yzsr / this.formData.rkzs); - this.formData.rjyr = !isNaN(rjyr)?rjyr:0; + this.formData.rjyr = !isNaN(rjyr) ? rjyr : 0; }, //保存 - onSave(){ - if(this.formData.xh == null || this.formData.xh == ""){ + onSave() { + if (this.formData.xh == null || this.formData.xh == "") { this.$modal.msgError("请输入学号"); return; } - this.formData.jtcy = JSON.stringify(this.formData.jtcyObj) - if(this.formData.id){ - updateApply(this.formData).then(response => { - if(response.code !=500){ + // 添加保存确认提示 + this.$confirm('保存后,还能继续修改表单信息,是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'info' + }).then(() => { + this.formData.jtcy = JSON.stringify(this.formData.jtcyObj) + + if (this.formData.id) { + updateApply(this.formData).then(response => { + if (response.code != 500) { this.$modal.msgSuccess("保存成功"); - if(this.formData.step == 0){ + if (this.formData.step == 0) { this.user.signature = this.formData.xsqm; - }if(this.formData.step == 1){ - this.user.signature = this.formData.fdyqm; + } if (this.formData.step == 1) { + this.user.signature = this.formData.fdyqm; } this.doUpdateSignature(); - //this.$tab.closePage(); - } + this.$tab.closePage(); + } - }); - }else{ - saveApply(this.formData).then(response => { - if(response.code !=500){ - this.$modal.msgSuccess("保存成功"); - this.user.signature = this.formData.xsqm; - this.doUpdateSignature(); - //this.$tab.closePage(); - } - }); - } + }); + } else { + saveApply(this.formData).then(response => { + if (response.code != 500) { + this.$modal.msgSuccess("保存成功"); + this.user.signature = this.formData.xsqm; + this.doUpdateSignature(); + this.$tab.closePage(); + } + }); + } + }).catch(() => { + // 用户取消操作 + }); }, - handleDeleteRow(row,index) { - if( this.formData.jtcyObj.length == 1){ + handleDeleteRow(row, index) { + if (this.formData.jtcyObj.length == 1) { - let obj = this.formData.jtcyObj[0]; // 定义一个包含属性的对象 + let obj = this.formData.jtcyObj[0]; // 定义一个包含属性的对象 for (let key in obj) { - this.formData.jtcyObj[0][key] =""; // 删除对象的属性 + this.formData.jtcyObj[0][key] = ""; // 删除对象的属性 } this.nsrChange(); return; @@ -1900,148 +1911,148 @@ export default { this.formData.jtcyObj.splice(index, 1); this.nsrChange(); }, - handleAddRow(){ + handleAddRow() { this.formData.jtcyObj.push({ - xm:'', - nl:'', - gx:'', - dw:'' + xm: '', + nl: '', + gx: '', + dw: '' }) }, - onSubmitFdy(){ + onSubmitFdy() { - if(!this.formData.level){ - this.formData.level="国家助学金" - this.levelDialog=true; - return - }else { - this.levelDialog=false; - } - console.log(this.formData,1111) + if (!this.formData.level) { + this.formData.level = "国家助学金" + this.levelDialog = true; + return + } else { + this.levelDialog = false; + } + console.log(this.formData, 1111) let data = {}; - Object.assign(data,this.formData); + Object.assign(data, this.formData); data.step = 2; data.bjyjdj = this.formData.bjyjdj; data.jtcy = JSON.stringify(this.formData.jtcyObj) - if(!this.formData.fdyqm){ - this.$modal.msgError("请上传签名照片"); + if (!this.formData.fdyqm) { + this.$modal.msgError("请上传签名照片"); + return; + } + if (!this.formData.bjyjdj) { + this.$modal.msgError("请选择班级意见等级"); return; } - if(!this.formData.bjyjdj){ - this.$modal.msgError("请选择班级意见等级"); - return; - } data.status1 = "通过" fdysh(data).then(response => { - if(response.code !=500){ + if (response.code != 500) { this.$modal.msgSuccess("操作成功"); this.user.signature = this.formData.fdyqm; this.doUpdateSignature(); this.getNextApply(1); // this.$tab.closePage(); - } + } }); }, - onSubmitEjxy(){ + onSubmitEjxy() { let data = {}; - Object.assign(data,this.formData); + Object.assign(data, this.formData); data.step = 3; - if(!this.formData.ejxyldqm){ + if (!this.formData.ejxyldqm) { this.$modal.msgError("请上传签名照片"); return; } - if(!this.formData.ejxyyjdj){ + if (!this.formData.ejxyyjdj) { this.$modal.msgError("请选择初审核助学金等级"); return; } - let params={ - "id":this.formData.id, - "step":data.step, - "ejxyyj":this.formData.ejxyyj, - "ejxyyjdj":this.formData.ejxyyjdj, - "ejxyldqm":this.formData.ejxyldqm, - "ejxyldqmrq":this.formData.ejxyldqmrq, - "status2":"通过", - "knlx":this.formData.knlx + let params = { + "id": this.formData.id, + "step": data.step, + "ejxyyj": this.formData.ejxyyj, + "ejxyyjdj": this.formData.ejxyyjdj, + "ejxyldqm": this.formData.ejxyldqm, + "ejxyldqmrq": this.formData.ejxyldqmrq, + "status2": "通过", + "knlx": this.formData.knlx } ejxysh(params).then(response => { - if(response.code !=500){ + if (response.code != 500) { this.$modal.msgSuccess("操作成功"); - this.user.signature = this.formData.ejxyldqm; - this.doUpdateSignature(); - this.getNextApply(2); - // this.$tab.closePage(); - } + this.user.signature = this.formData.ejxyldqm; + this.doUpdateSignature(); + this.getNextApply(2); + // this.$tab.closePage(); + } }); }, - onSubmitxxsh(){ + onSubmitxxsh() { let data = {}; - Object.assign(data,this.formData); + Object.assign(data, this.formData); data.step = 4; - if(!this.formData.zzdj){ - this.$modal.msgError("请选择助学金等级"); + if (!this.formData.zzdj) { + this.$modal.msgError("请选择助学金等级"); return; } - let params={ - "id":this.formData.id, - "step":data.step, - "xxyj":this.formData.xxyj, - "xxqm":this.formData.xxqm, - "zzdj":this.formData.zzdj, - "xxyjrq":this.formData.xxyjrq, - "status3":"通过", - "knlx":this.formData.knlx + let params = { + "id": this.formData.id, + "step": data.step, + "xxyj": this.formData.xxyj, + "xxqm": this.formData.xxqm, + "zzdj": this.formData.zzdj, + "xxyjrq": this.formData.xxyjrq, + "status3": "通过", + "knlx": this.formData.knlx } xxyj(params).then(response => { - if(response.code !=500){ + if (response.code != 500) { this.$modal.msgSuccess("操作成功"); //解锁 - unlock({id:this.formData.id}) + unlock({ id: this.formData.id }) this.getNextApply(3); // this.$tab.closePage(); - } + } }); }, //驳回 - open(status){ + open(status) { this.$prompt('请输入原因', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', }).then(({ value }) => { - if(value !=null && value != ""){ + if (value != null && value != "") { - let params = { - "remark":value, - "step":this.formData.step + 1, - "applyId":this.formData.id, - "status":status, + let params = { + "remark": value, + "step": this.formData.step + 1, + "applyId": this.formData.id, + "status": status, } nopass(params).then(response => { - if(response.code !=500){ + if (response.code != 500) { //解锁 - unlock({id:this.formData.id}) + unlock({ id: this.formData.id }) this.getNextApply(this.formData.step); - } + } }); - }else{ - this.$modal.msgError("请输入原因"); + } else { + this.$modal.msgError("请输入原因"); } }); }, - scrollTop(){ + scrollTop() { document.querySelector("#apply").scrollIntoView(); } } @@ -2052,310 +2063,361 @@ export default { diff --git a/src/views/poverty/povertyapply/apply.vue b/src/views/poverty/povertyapply/apply.vue index 07be384..8c47085 100644 --- a/src/views/poverty/povertyapply/apply.vue +++ b/src/views/poverty/povertyapply/apply.vue @@ -35,7 +35,6 @@ - diff --git a/src/views/poverty/povertyapply/jtjjkn.vue b/src/views/poverty/povertyapply/jtjjkn.vue index 878464e..a3a9439 100644 --- a/src/views/poverty/povertyapply/jtjjkn.vue +++ b/src/views/poverty/povertyapply/jtjjkn.vue @@ -4,36 +4,35 @@
-

- {{ "(" + formData.applyYear + ")" }}广西水利电力职业技术学院家庭经济困难学生认定申请表 -

+

+ {{"(" + formData.applyYear+")"}}广西水利电力职业技术学院家庭经济困难学生认定申请表 +

- + - - - - + + + + - - + + - + - + - - + + - - + + - @@ -101,19 +100,18 @@ - - - - - - + + + + @@ -156,14 +154,15 @@ @@ -207,21 +206,21 @@ - @@ -229,8 +228,7 @@ @@ -240,7 +238,7 @@ - + - - + - - + + + + 元 + + + + - - - - - + + + + - - - - + + + + - - + + + - - - - - - - - - + + + + + + + + + - - - - - - + + + + + - + - + - - + + - + - - + + - + - + @@ -577,8 +577,7 @@ @@ -590,106 +589,113 @@ - -
+ +

广西水利电力职业技术学院

-

{{ '(' + formData.applyYear + ')家庭经济困难学生认定申请表' }}

+

{{'(' + formData.applyYear +')家庭经济困难学生认定申请表'}}

*学号 - - - - *姓名 - - - - *学号 + + + + *姓名 + + + + *性别 - - - - *性别 + + + +
*学院*学院 - - + + *年级 *年级 - + *班级 - +
*身份证号 - - - - *身份证号 + + + + *民族 - - - - - - - - *民族 + + + + + + + + *手机号 + - *家庭人口数 + - + *家庭成员在学人数 + - + @@ -121,31 +119,31 @@ - +
- *家庭成员失业人数 - - - - - - *全国学生资助系统、广西学生精准系统困难标签 - + + *家庭成员失业人数 + + + + + + *全国学生资助系统、广西学生精准系统困难标签 + - - - + + + -
*籍贯 - + *户籍所在地 + :disabled="formData.step >2"> - 商品房 - 单位福利住房 - 自建房 - 租房、无房 - 其他 + 商品房 + 单位福利住房 + 自建房 + 租房、无房 + 其他 *家中有汽车情况 + - 自用 - 经营用 - 无汽车 + 自用 + 经营用 + 无汽车 *家长手机号码 - +
- @@ -253,43 +251,43 @@
家庭成员情况家庭成员情况
- + - + - + - + - + - + - + + --> -
+
编辑家庭成员
@@ -298,278 +296,280 @@
*家庭总收入(元) -
+
*家庭总收入(元) +
- - - - 元 -
-
*家庭人均年收入(元) -
- - - - 元 -
-
*家庭人均年收入(元) +
+ + + + 元 +
+
*家庭经济主要收入来源 - - - - - - - - - - - - - - - 其他收入说明 - - - +
*家庭经济主要收入来源 + + + + + + + + + + + + + + + 其他收入说明 + + + -
*学生父母丧失劳动能力或劳动能力弱(单位:人) - - - - +
*学生父母丧失劳动能力或劳动能力弱(单位:人) + + + + - *需赡养丧失劳动能力的共同生活家庭成员(单位:人) - - - - *需赡养丧失劳动能力的共同生活家庭成员(单位:人) + + + + *患病残疾人(单位:人) - - - - -
*突发事件 - - - - - - - - - - - 其他情况 - - *患病残疾人(单位:人) + + + + +
*突发事件 + + + + + + + + + + + 其他情况 + +
*具体时间、内容及涉及金额等情况 - - - -
*具体时间、内容及涉及金额等情况 + + + +
*申请理由 - - - - + + + +
个人承诺 -
本人承诺以上所填资料真实、准确,并同意授权相关部门通过信息核对,对所填资料进行查询、核对.如虚报资料,本人愿意承担相关责任.
- -
- - - 同意 - - - 不同意 - - -
-
-
- * 手写签字: - - - - -
+ + + -
{{ formData.sqrqmrq }}
+
{{formData.sqrqmrq}}
辅导员意见 -
* 经班级评议小组民主评议,认为该生(□符合 - □不符合)家庭经济困难学生认定条件,推荐认定困难类型为: -
- -
- - 特别困难 - - - 比较困难 - - - 一般困难 - - - 不困难 - -
-
-
- * 辅导员签字: - - - - 签名 - - -
-
{{ formData.fdyqmrq }}
-
辅导员意见 +
* 经班级评议小组民主评议,认为该生(□符合 □不符合)家庭经济困难学生认定条件,推荐认定困难类型为:
+ +
+ + 特别困难 + + + 比较困难 + + + 一般困难 + + + 不困难 + +
+
+
+ * 辅导员签字: + + + + 签名 + + +
+
{{formData.fdyqmrq}}
+
二级学院认定意见 -
* 经学院认定工作组审查,认为该生(□符合 - □不符合)家庭经济困难学生认定条件;认定困难类型为:
- -
- - 特别困难 - - - 比较困难 - - - 一般困难 - - - 不困难 - -
-
-
- * 二级学院负责人签字: - - - - 签名 - - -
-
{{ formData.ejxyldqmrq }}
-
(加盖二级学院公章)
-
二级学院认定意见 +
* 经学院认定工作组审查,认为该生(□符合 □不符合)家庭经济困难学生认定条件;认定困难类型为:
+ +
+ + 特别困难 + + + 比较困难 + + + 一般困难 + + + 不困难 + +
+
+
+ * 二级学院负责人签字: + + + + 签名 + + +
+
{{formData.ejxyldqmrq}}
+
(加盖二级学院公章)
+
学校审核意见 -
* 经学校学生资助工作领导小组审查,经5个工作日公示无异议,认定该生(□符合 - □不符合)家庭经济困难学生认定条件,同意认定困难类型为:
+
+
* 经学校学生资助工作领导小组审查,经5个工作日公示无异议,认定该生(□符合 □不符合)家庭经济困难学生认定条件,同意认定困难类型为:
-
+
- 特别困难 + 特别困难 - 比较困难 + 比较困难 - 一般困难 + 一般困难 - 不困难 + 不困难 -
+
- * 学校负责人签字: - - - - 签名 + * 学校负责人签字: + + + + 签名 - +
-
{{ formData.xsqmrq }}
+
{{formData.xsqmrq}}
(加盖学校公章)
-
困难佐证材料 - +
- - - - + + + + - - + + - - + + - - + + - - + + - - + + - - + - - + {{formData.mz}} + + + + - - - - - - + + + + + + - + - - - - + + + + @@ -697,36 +703,36 @@ - - - - + + + + - - + @@ -734,34 +740,34 @@ - + - - - - + + + + - +   - - - - + + - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - - - - - - - - + + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - +
{{formData.deptTime}}
+ + + + +
学号 - {{ formData.xh }} - 姓名 - {{ formData.xm }} - 学号 + {{formData.xh}} + 姓名 + {{formData.xm}} + 性别 - {{ formData.xb }} - 性别 + {{formData.xb}} +
学院 - {{ formData.xy }} - 学院 + {{formData.xy}} + 年级 - {{ formData.nj }} - 年级 + {{formData.nj}} + 班级 - {{ formData.bj }} - 班级 + {{formData.bj}} +
身份证号 - {{ formData.sfzhm }} - 身份证号 + {{formData.sfzhm}} + 民族 - + 民族 + - {{ formData.mz }} - - 手机号 - - {{ formData.phone }} - - 手机号 + + {{formData.phone}} + +
- 家庭人口数 - - {{ formData.rkzs }} - - 家庭成员在学人数 - - {{ formData.jtcyzxrs }} - - 赡养人数 - - {{ formData.syrs }} - + 家庭人口数 + + {{formData.rkzs}} + + 家庭成员在学人数 + + {{formData.jtcyzxrs}} + + 赡养人数 + + {{formData.syrs}} +
- 家庭成员失业人数 - - {{ formData.jtcysyrs }} - - 全国,广西学生精准系统匹配后的困难类别数据 - - {{ formData.knlx }} - + 家庭成员失业人数 + + {{formData.jtcysyrs}} + + 全国,广西学生精准系统匹配后的困难类别数据 + + {{formData.knlx}} +
籍贯 - {{ formData.jg }} - 户籍所在地 - {{ formData.hjszd }} - 籍贯 + {{formData.jg}} + 户籍所在地 + {{formData.hjszd}} +
家庭居住房产(住房)情况 - {{ formData.jtjzfqk }} + {{formData.jtjzfqk}} 家中有汽车情况 - {{ formData.jtqcqk }} + + {{formData.jtqcqk}} 家长手机号码 - {{ formData.parentstel }} + {{formData.parentstel}}
家庭居住现居住地址 - {{ formData.jtxjzdz }} + {{formData.jtxjzdz}}
家庭成员情况家庭成员情况
- + - + - + - + - + - + - + @@ -772,232 +778,230 @@
*家庭总收入(元) -
- {{ income }} - 元 -
-
*家庭人均年收入(元) -
- {{ capita }} - 元 -
-
*家庭总收入(元) +
+ {{income}} + 元 +
+
*家庭人均年收入(元) +
+ {{capita}} + 元 +
+
aaa
aaa
影响家庭经济状况信息
家庭经济主要收入来源 - {{ formData.jtzysrStr }} - - 其他收入说明 + 影响家庭经济状况信息
家庭经济主要收入来源 + {{formData.jtzysrStr}} + + 其他收入说明 - {{ formData.jtzysr2 }} + {{formData.jtzysr2}} -
学生父母丧失劳动能力或劳动能力弱(单位:人) - {{ formData.ssldnl }} - 需赡养丧失劳动能力的共同生活家庭成员(单位:人) - {{ formData.zyssldnl }} +
学生父母丧失劳动能力或劳动能力弱(单位:人) + {{formData.ssldnl}} + 需赡养丧失劳动能力的共同生活家庭成员(单位:人) + {{formData.zyssldnl}} - 患病残疾人(单位:人) - {{ formData.hbcjr }} -
突发事件 - {{ formData.tfsjStr }} - - 其他情况 - {{ formData.tfsj3 }} - 患病残疾人(单位:人) + {{formData.hbcjr}} +
突发事件 + {{formData.tfsjStr}} + + 其他情况 + {{formData.tfsj3}} + 具体时间、内容及涉及金额等情况 + 具体时间、内容及涉及金额等情况 - {{ formData.tfsj2 }} -
申请理由及个人承诺
申请理由 - - {{ - formData.sqly - }} - -
个人承诺 - 本人承诺以上所填资料真实、准确,并同意授权相关部门通过信息核对,对所填资料进行查询、核对. - 如虚报资料,本人愿意承担相关责任. -
个人签名 -
-
- 同意 -
-
- + +
申请理由及个人承诺
申请理由 + + {{ + formData.sqly + }} + +
个人承诺 + 本人承诺以上所填资料真实、准确,并同意授权相关部门通过信息核对,对所填资料进行查询、核对. + 如虚报资料,本人愿意承担相关责任. +
个人签名 +
+
+ 同意 +
+
+ - - 签名 + + 签名 - -
-
- {{ formData.xm }} - -
-
{{ formData.stuTime }}
-
-
+ +
+
+ {{formData.xm}} +
-
班级意见 +
{{formData.stuTime}}
+ + + +
班级意见 -
-
- 经审查,本学年该同学 -
符合家庭经济困难学生认定条件,推荐认定困难类型为: - 特别困难 - 比较困难 - 一般困难 - 不困难 +
+
+ 经审查,本学年该同学 +
符合家庭经济困难学生认定条件,推荐认定困难类型为: + 特别困难 + 比较困难 + 一般困难 + 不困难 -
-
- +
+
+ - - 签名 + + 签名 - -
-
- {{ formData.fdymc }} - -
-
{{ formData.fdyTime }}
-
-
+ +
+
+ {{formData.fdymc}} +
-
二级学院认定意见 -
-
- 经审查,本学年该同学 -
符合家庭经济困难学生认定条件,推荐认定困难类型为: - 特别困难 - 比较困难 - 一般困难 - 不困难 +
{{formData.fdyTime}}
+
+
+ +
二级学院认定意见 +
+
+ 经审查,本学年该同学 +
符合家庭经济困难学生认定条件,推荐认定困难类型为: + 特别困难 + 比较困难 + 一般困难 + 不困难 -
-
- +
+
+ - - 签名 + + 签名 - -
-
- {{ formData.ejxyldmc }} - -
-
{{ formData.xsjTime }}
-
-
+ +
+
+ {{formData.ejxyldmc}} +
-
学校认定意见 -
-
- 经审查,本学年该同学 -
符合家庭经济困难学生认定条件,推荐认定困难类型为: - 特别困难 - 比较困难 - 一般困难 - 不困难 +
{{formData.xsjTime}}
+
+
+ +
学校认定意见 +
+
+ 经审查,本学年该同学 +
符合家庭经济困难学生认定条件,推荐认定困难类型为: + 特别困难 + 比较困难 + 一般困难 + 不困难 -
-
- +
+
+ - - 签名 + + 签名 - -
-
- {{ formData.xsmc }} - -
-
{{ formData.deptTime }}
-
-
+ +
+
+ {{formData.xsmc}} +
-
@@ -1005,40 +1009,38 @@
- + 取 消 - 打印 - + 打印 +
- 保存信息 - 保存信息 - 提交申请 + 保存信息 + 保存信息 + 提交申请 - 打印 + 打印 - 确认提交 - 确认提交 - 确认提交 - 驳回 + 确认提交 + 确认提交 + 确认提交 + 驳回 - 下一个 + 下一个
- 打印 + 打印
注:1.本表供学生根据需要申请家庭经济困难认定用,可复印.2.选择性项目必须填写.3.学校审核意见负责人签章(盖章):高等学校为校学生资助工作领导小组组长或学生资助中心主要负责人签章,加盖资助中心公章;其他学段学校为学校校长签章,加盖学校公章. - +
@@ -1047,69 +1049,69 @@
- -

+

撤回

-

+

保存

-

+

提交申请

-

+

辅导员审核: - 特别困难 - 比较困难 - 一般困难 - 不困难 - 驳回 + 特别困难 + 比较困难 + 一般困难 + 不困难 + 驳回 - - 原因:{{ item.remark }} - + + 原因:{{item.remark}} +

-

+

二级学院审核: - 特别困难 - 比较困难 - 一般困难 - 不困难 - 驳回 - - 原因:{{ item.remark }} - + 特别困难 + 比较困难 + 一般困难 + 不困难 + 驳回 + + 原因:{{item.remark}} +

-

+

学校审核: - 特别困难 - 比较困难 - 一般困难 - 不困难 - 驳回 - - 原因:{{ item.remark }} - + 特别困难 + 比较困难 + 一般困难 + 不困难 + 驳回 + + 原因:{{item.remark}} +

-

操作人:{{ item.approver }}

+

操作人:{{item.approver}}

@@ -1117,52 +1119,57 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ - - - - + + + +
-
- - 取 消 - 确 定 - + + + 取 消 + 确 定 +
diff --git a/src/views/routine/disqualification/detail.vue b/src/views/routine/disqualification/detail.vue index eeeb6ef..6980bf2 100644 --- a/src/views/routine/disqualification/detail.vue +++ b/src/views/routine/disqualification/detail.vue @@ -43,10 +43,15 @@ - - {{ form.jg }} + + {{ form.politicalStatus }} - + + + + {{ Array.isArray(form.jg) ? form.jg.join(' / ') : form.jg }} + + {{ quitSchoolMethodFormat(form) }} diff --git a/src/views/routine/disqualification/index.vue b/src/views/routine/disqualification/index.vue index 434e6fa..112a8cb 100644 --- a/src/views/routine/disqualification/index.vue +++ b/src/views/routine/disqualification/index.vue @@ -113,9 +113,19 @@ + + + + + + + + + + - + @@ -198,6 +208,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, @@ -285,6 +296,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, @@ -340,6 +352,29 @@ export default { const disqualificationId = row.disqualificationId || this.ids getDisqualification(disqualificationId).then((response) => { this.form = response.data + // 兼容籍贯存储为字符串的情况,回显时转为级联选择所需的数组 + if (this.form && this.form.jg != null && this.form.jg !== undefined && this.form.jg !== '') { + if (Array.isArray(this.form.jg)) { + // 已经是数组,无需处理 + } else if (typeof this.form.jg === 'string') { + const jgStr = this.form.jg.trim() + if (jgStr.startsWith('[') && jgStr.endsWith(']')) { + try { + const parsed = JSON.parse(jgStr) + this.form.jg = Array.isArray(parsed) ? parsed : [jgStr] + } catch (e) { + this.form.jg = jgStr.split(',').map(s => s.trim()).filter(Boolean) + } + } else if (jgStr.includes(',')) { + this.form.jg = jgStr.split(',').map(s => s.trim()).filter(Boolean) + } else { + this.form.jg = [jgStr] + } + } else { + // 其他类型,兜底为数组 + this.form.jg = [String(this.form.jg)] + } + } this.open = true this.title = '修改给予学生退学申请' }) @@ -422,6 +457,28 @@ export default { } this.form = res.data; this.form.stuName = res.data.studentName; + // 兼容籍贯为字符串的情况,回显为级联数组 + if (this.form && this.form.jg != null && this.form.jg !== undefined && this.form.jg !== '') { + if (Array.isArray(this.form.jg)) { + // 已经是数组,无需处理 + } else if (typeof this.form.jg === 'string') { + const jgStr = this.form.jg.trim() + if (jgStr.startsWith('[') && jgStr.endsWith(']')) { + try { + const parsed = JSON.parse(jgStr) + this.form.jg = Array.isArray(parsed) ? parsed : [jgStr] + } catch (e) { + this.form.jg = jgStr.split(',').map(s => s.trim()).filter(Boolean) + } + } else if (jgStr.includes(',')) { + this.form.jg = jgStr.split(',').map(s => s.trim()).filter(Boolean) + } else { + this.form.jg = [jgStr] + } + } else { + this.form.jg = [String(this.form.jg)] + } + } }).catch(() => { this.$message.error('请求失败,请重试'); }); diff --git a/src/views/routine/rtStuDropOutSchool/detail.vue b/src/views/routine/rtStuDropOutSchool/detail.vue index 0ab1458..d065a97 100644 --- a/src/views/routine/rtStuDropOutSchool/detail.vue +++ b/src/views/routine/rtStuDropOutSchool/detail.vue @@ -56,6 +56,10 @@ {{ form.mz }} + + + {{ form.politicalStatus }} + diff --git a/src/views/routine/rtStuDropOutSchool/index.vue b/src/views/routine/rtStuDropOutSchool/index.vue index 97c5e01..e5ddb83 100644 --- a/src/views/routine/rtStuDropOutSchool/index.vue +++ b/src/views/routine/rtStuDropOutSchool/index.vue @@ -130,11 +130,23 @@ + + + + + + + + + + + + @@ -256,6 +268,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, @@ -340,6 +353,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, diff --git a/src/views/routine/rtStuQuitSchool/detail.vue b/src/views/routine/rtStuQuitSchool/detail.vue index 270887c..67556f7 100644 --- a/src/views/routine/rtStuQuitSchool/detail.vue +++ b/src/views/routine/rtStuQuitSchool/detail.vue @@ -56,6 +56,10 @@ {{ form.mz }} + + + {{ form.politicalStatus }} + diff --git a/src/views/routine/rtStuQuitSchool/index.vue b/src/views/routine/rtStuQuitSchool/index.vue index df82d4f..00b126c 100644 --- a/src/views/routine/rtStuQuitSchool/index.vue +++ b/src/views/routine/rtStuQuitSchool/index.vue @@ -127,11 +127,23 @@ + + + + + + + + + + + + @@ -250,6 +262,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, @@ -329,6 +342,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, diff --git a/src/views/routine/rtStuReentrySchool/detail.vue b/src/views/routine/rtStuReentrySchool/detail.vue index 95c6516..61ebf2f 100644 --- a/src/views/routine/rtStuReentrySchool/detail.vue +++ b/src/views/routine/rtStuReentrySchool/detail.vue @@ -56,6 +56,10 @@ {{ form.mz }} + + + {{ form.politicalStatus }} + diff --git a/src/views/routine/rtStuReentrySchool/index.vue b/src/views/routine/rtStuReentrySchool/index.vue index 94dee43..44230ca 100644 --- a/src/views/routine/rtStuReentrySchool/index.vue +++ b/src/views/routine/rtStuReentrySchool/index.vue @@ -125,11 +125,23 @@ + + + + + + + + + + + + @@ -254,6 +266,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, @@ -353,6 +366,7 @@ export default { gradeName: null, className: null, mz: null, + politicalStatus: null, birthday: null, parentPhone: null, parentName: null, diff --git a/src/views/stureg/reginfoimport/info-search.vue b/src/views/stureg/reginfoimport/info-search.vue index b7ec51f..f8aec32 100644 --- a/src/views/stureg/reginfoimport/info-search.vue +++ b/src/views/stureg/reginfoimport/info-search.vue @@ -74,8 +74,7 @@ - - +