修改学生资助内容
This commit is contained in:
@@ -582,7 +582,7 @@
|
||||
<el-button type="primary" v-if="this.formData.step == 0 && isShow"
|
||||
@click="onSubmit">提交申请</el-button>
|
||||
<el-button type="success" v-if="(this.formData.step == 0 || this.formData.step == 1) && isShow"
|
||||
@click="onSave">保存</el-button>
|
||||
@click="onSave">保存信息</el-button>
|
||||
<el-button type="primary"
|
||||
v-if="this.formData.step == 1 && isShow && this.formData.step != -1 && this.formData.step != 4"
|
||||
@click="onSubmitFdy">审核通过</el-button>
|
||||
@@ -621,7 +621,7 @@
|
||||
:type='item.type' :timestamp="item.createTime" placement="top">
|
||||
<el-card>
|
||||
<h3 v-if="item.step == -1">撤回提交</h3>
|
||||
<h3 v-if="item.step == 0">保存</h3>
|
||||
<h3 v-if="item.step == 0">保存信息</h3>
|
||||
<h3 v-if="item.step == 1">提交申请</h3>
|
||||
<h3 v-if="item.step == 2">
|
||||
<p>
|
||||
@@ -853,51 +853,72 @@
|
||||
align="center" element-loading-text="数据加载中...">
|
||||
<el-table-column label="姓名" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.xm }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].xm'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.xm" placeholder="请输入姓名"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="年龄" header-align="center" min-width="60">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.nl }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nl'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.nl" placeholder="年龄"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="与本人关系" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.gx }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].gx'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.gx" placeholder="与本人关系"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="学习或工作单位" header-align="center" min-width="210">
|
||||
<template slot-scope="{ row, $index }">
|
||||
|
||||
{{ row.dw }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].dw'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.dw" placeholder="学习或工作单位"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="联系电话" header-align="center" min-width="150">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.lxdh }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].lxdh'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.lxdh" placeholder="联系电话"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="职业" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.zy }}
|
||||
|
||||
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].zy'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.zy" placeholder="职业"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="年收入" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.nsr }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nsr'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.nsr" placeholder="年收入"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="健康状况" header-align="center" min-width="100">
|
||||
<template slot-scope="{ row, $index }">
|
||||
{{ row.jkzk }}
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].jkzk'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.jkzk" placeholder="健康状况"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="!xsEditDisable" label="操作" min-width="80" header-align="center" align="center">
|
||||
<template slot-scope="{ row,$index }">
|
||||
<el-button @click="handleDeleteRow(row,$index)" type="text">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div style="padding:10px;">
|
||||
<el-button v-if="!xsEditDisable" @click="handleAddRow" type="text">新增一行</el-button>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1478,6 +1499,23 @@ export default {
|
||||
doUpdateSignature() {
|
||||
updateSignature(this.user).then(res => { });
|
||||
},
|
||||
//刷新页面数据
|
||||
refreshPageData() {
|
||||
let id = this.$route.query.id;
|
||||
if (id) {
|
||||
// 重新获取申请数据
|
||||
getApply(id).then(response => {
|
||||
this.formData = {
|
||||
...this.formData,
|
||||
...response.data
|
||||
}
|
||||
this.formData.jtcyObj = JSON.parse(response.data.jtcy);
|
||||
this.$forceUpdate(); // 强制更新视图
|
||||
});
|
||||
// 重新获取审核记录
|
||||
this.getRecordList(id);
|
||||
}
|
||||
},
|
||||
//获取签名
|
||||
getUserSignature() {
|
||||
getUserProfile().then(response => {
|
||||
@@ -1595,7 +1633,7 @@ export default {
|
||||
for (let idx = 0; idx < rows.length; idx++) {
|
||||
let row = rows[idx];
|
||||
if (row.step == 0) {
|
||||
row['text'] = "保存";
|
||||
row['text'] = "保存信息";
|
||||
}
|
||||
if (row.step == 1) {
|
||||
row['text'] = "提交申请";
|
||||
@@ -1879,7 +1917,8 @@ export default {
|
||||
}
|
||||
|
||||
this.doUpdateSignature();
|
||||
this.$tab.closePage();
|
||||
// 保存成功后刷新页面数据,不跳转
|
||||
this.refreshPageData();
|
||||
}
|
||||
|
||||
});
|
||||
@@ -1889,7 +1928,8 @@ export default {
|
||||
this.$modal.msgSuccess("保存成功");
|
||||
this.user.signature = this.formData.xsqm;
|
||||
this.doUpdateSignature();
|
||||
this.$tab.closePage();
|
||||
// 保存成功后刷新页面数据,不跳转
|
||||
this.refreshPageData();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1916,7 +1956,11 @@ export default {
|
||||
xm: '',
|
||||
nl: '',
|
||||
gx: '',
|
||||
dw: ''
|
||||
dw: '',
|
||||
lxdh: '',
|
||||
zy: '',
|
||||
nsr: '',
|
||||
jkzk: ''
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -257,39 +257,69 @@
|
||||
<td style="padding:0px;" colspan="6">
|
||||
<el-table :data="formData.jtcyObj" border style="width:100%" :row-class-name="handelIndex">
|
||||
<el-table-column prop="xm" label="姓名" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].xm'" :rules="rules">
|
||||
<el-input v-model="row.xm" placeholder="姓名" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="nl" label="年龄" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nl'" :rules="rules">
|
||||
<el-input v-model="row.nl" placeholder="年龄" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="gx" label="与学生关系" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].gx'" :rules="rules">
|
||||
<el-input v-model="row.gx" placeholder="与学生关系" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dw" label="工作(学习)单位" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].dw'">
|
||||
<el-input v-model="row.dw" placeholder="工作(学习)单位" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="tel" label="联系电话" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].tel'">
|
||||
<el-input v-model="row.tel" placeholder="联系电话" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="zy" label="职业" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].zy'">
|
||||
<el-input v-model="row.zy" placeholder="职业" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="nsr" label="年收入(元)" align="center">
|
||||
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nsr'">
|
||||
<el-input v-model="row.nsr" placeholder="年收入" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="jkzk" label="健康状况" align="center">
|
||||
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="操作" align="center" v-if="formData.step==1 || this.formData.step == 0">
|
||||
<template slot-scope="data">
|
||||
<el-button type="text" @click="handelDel(data.row)">删除</el-button>
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].jkzk'">
|
||||
<el-input v-model="row.jkzk" placeholder="健康状况" :disabled="formData.step > 2"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="120" v-if="formData.step <= 2">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-button type="text" size="small" @click="handelDel($index)" icon="el-icon-delete">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="padding: 5px;" v-if="formData.step==1 || formData.step == 0 || formData.step == 2">
|
||||
<!-- 注意:该部分内容编辑请到个人信息家庭成员处修改<div style="color: blue;" @click="goEditInfo">点击跳转</div> -->
|
||||
<el-button id="editFamily" @click="dialogTableVisible = true" type="text">编辑家庭成员</el-button>
|
||||
<div style="padding: 5px;" v-if="formData.step <= 2">
|
||||
<el-button type="text" @click="addFamilyMember" icon="el-icon-plus">新增家庭成员</el-button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -743,37 +773,79 @@
|
||||
<td colspan="6" class="table-label">家庭成员情况</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:0px;" colspan="6">
|
||||
<el-table :data="formData.jtcyObj" border style="width:100%" :row-class-name="handelIndex" fit="true">
|
||||
<el-table-column prop="xm" label="姓名" align="center">
|
||||
<td colspan="6" style="padding:0px;">
|
||||
<el-table style="width:100%" :data="formData.jtcyObj" width="100%" :border="true"
|
||||
align="center" element-loading-text="数据加载中...">
|
||||
<el-table-column label="姓名" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].xm'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.xm" placeholder="请输入姓名"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="年龄" header-align="center" min-width="60">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nl'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.nl" placeholder="年龄"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="与本人关系" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].gx'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.gx" placeholder="与本人关系"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="学习或工作单位" header-align="center" min-width="210">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].dw'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.dw" placeholder="学习或工作单位"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="联系电话" header-align="center" min-width="150">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].lxdh'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.lxdh" placeholder="联系电话"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="nl" label="年龄" align="center" >
|
||||
<el-table-column label="职业" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].zy'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.zy" placeholder="职业"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="gx" label="与学生关系" align="center" >
|
||||
<el-table-column label="年收入" header-align="center" min-width="120">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nsr'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.nsr" placeholder="年收入"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="健康状况" header-align="center" min-width="100">
|
||||
<template slot-scope="{ row, $index }">
|
||||
<el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].jkzk'" :rules="rules">
|
||||
<el-input :disabled="xsEditDisable" v-model="row.jkzk" placeholder="健康状况"></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="!xsEditDisable" label="操作" min-width="80" header-align="center" align="center">
|
||||
<template slot-scope="{ row,$index }">
|
||||
<el-button @click="handleDeleteRow(row,$index)" type="text">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="dw" label="工作(学习)单位" align="center" min-width="200">
|
||||
</el-table>
|
||||
<div style="padding:10px;">
|
||||
<el-button v-if="!xsEditDisable" @click="handleAddRow" type="text">新增一行</el-button>
|
||||
</div>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="tel" label="联系电话" align="center" min-width="85">
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="zy" label="职业" align="center">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="nsr" label="年收入(元)" align="center">
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column prop="jkzk" label="健康状况" align="center">
|
||||
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- 收入 -->
|
||||
@@ -1038,10 +1110,7 @@
|
||||
</div>
|
||||
注:1.本表供学生根据需要申请家庭经济困难认定用,可复印.2.选择性项目必须填写.3.学校审核意见负责人签章(盖章):高等学校为校学生资助工作领导小组组长或学生资助中心主要负责人签章,加盖资助中心公章;其他学段学校为学校校长签章,加盖学校公章.
|
||||
|
||||
<el-dialog title="编辑家庭成员" width="1600px" top="25vh" :visible.sync="dialogTableVisible" @close="getFamily">
|
||||
<FamilyMemberKnrd :stuNo="formData.xh" v-if="formData.step == 2"></FamilyMemberKnrd>
|
||||
<FamilyMember :stuNo="formData.xh" v-if="formData.step== 1 || formData.step == 0 "></FamilyMember>
|
||||
</el-dialog>
|
||||
<!-- 家庭成员编辑对话框已移除,直接在表格中编辑 -->
|
||||
|
||||
<div class="record">
|
||||
<div class="title">
|
||||
@@ -2215,16 +2284,32 @@ import {mz_list} from "@/api/helpFunc";
|
||||
row.index = rowIndex
|
||||
this.index = rowIndex
|
||||
},
|
||||
handelDel(row) {
|
||||
if (this.formData.step != 1) {
|
||||
handelDel(index) {
|
||||
if (this.formData.step > 2) {
|
||||
return
|
||||
}
|
||||
if (this.formData.jtcyObj.length > 1) {
|
||||
this.formData.jtcyObj.splice(row.index, 1)
|
||||
this.formData.jtcyObj.splice(index, 1)
|
||||
} else {
|
||||
this.$message.error('至少保留一行')
|
||||
}
|
||||
},
|
||||
// 新增家庭成员
|
||||
addFamilyMember() {
|
||||
if (this.formData.step > 2) {
|
||||
return
|
||||
}
|
||||
this.formData.jtcyObj.push({
|
||||
xm: '',
|
||||
nl: '',
|
||||
gx: '',
|
||||
dw: '',
|
||||
tel: '',
|
||||
zy: '',
|
||||
nsr: '',
|
||||
jkzk: ''
|
||||
})
|
||||
},
|
||||
handleSignatureSuccess(response, file, fileList) {
|
||||
this.formData.sqrqm = response.fileName;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user