Commit 0e1d1639 authored by liucheng's avatar liucheng

Merge branch 'master' into 'dev'

# Conflicts:
#   xichongSys/src/utils/global.js
parents 3a0fa14c 4399d297
...@@ -121,21 +121,22 @@ const router = new Router({ ...@@ -121,21 +121,22 @@ const router = new Router({
path:"/payInfo", path:"/payInfo",
name:"缴费记录", name:"缴费记录",
component: PayInfo component: PayInfo
},{
path:"/application",
name:"待遇申请审核",
component: application
}, },
// {
// path:"/application",
// name:"待遇申请审核",
// component: application
// },
{ {
path:"/importByExcel", path:"/importByExcel",
name:"数据导入", name:"数据导入",
component: importByExcel component: importByExcel
}, },
// { {
// path:"/treatmentApplicationAudit", path:"/treatmentApplicationAudit",
// name:"待遇申请审核", name:"待遇申请审核",
// component: treatmentApplicationAudit component: treatmentApplicationAudit
// }, },
{ {
path:"/insuranceCancellationAudit", path:"/insuranceCancellationAudit",
name:"参保注销审核", name:"参保注销审核",
......
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('action.operation')" width="185" fixed="right" v-if="showOperation" header-align="center" align="center"> <el-table-column :label="$t('action.operation')" width="185" fixed="right" v-if="showOperation" header-align="center" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<kt-button icon="fa fa-edit" :label="$t('action.edit')" :perms="permsEdit" :size="size" @click="handleEdit(scope.$index, scope.row)" style="float: left"/> <kt-button v-if="scope.row.name!=='admin'" icon="fa fa-edit" :label="$t('action.edit')" :perms="permsEdit" :size="size" @click="handleEdit(scope.$index, scope.row)" style="float: left"/>
<el-switch <el-switch
v-if="scope.row.name!=='admin'"
class="statusSwitch" class="statusSwitch"
style="display: block;float: left;margin-left: 20px;width: 50px" style="display: block;float: left;margin-left: 20px;width: 50px"
v-model="scope.row.status==0?true:false" v-model="scope.row.status==0?true:false"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div> <div>
<el-table <el-table
v-loading.fullscreen.lock="loading"
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
> >
...@@ -75,7 +76,7 @@ ...@@ -75,7 +76,7 @@
> >
</el-pagination> </el-pagination>
<el-button type="success" @click="toexcel" style="margin:50px">导出</el-button> <el-button type="success" @click="toexcel" style="margin:50px">全部导出</el-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -88,11 +89,13 @@ export default { ...@@ -88,11 +89,13 @@ export default {
return { return {
Page:1, Page:1,
totals:0, totals:0,
tableData: [] tableData: [],
loading: false
} }
}, },
methods:{ methods:{
toPdf(s,d){ toPdf(s,d){
this.loading = true;
console.log(d) console.log(d)
axios.get(baseUrl+'/exportPdf/insuredRegistration?id='+d.eventId,{ axios.get(baseUrl+'/exportPdf/insuredRegistration?id='+d.eventId,{
headers: { headers: {
...@@ -108,11 +111,13 @@ export default { ...@@ -108,11 +111,13 @@ export default {
a.href = URL.createObjectURL(blob); //生成一个url a.href = URL.createObjectURL(blob); //生成一个url
a.download = "西充县城乡居民社会养老保险参保登记表.pdf"; a.download = "西充县城乡居民社会养老保险参保登记表.pdf";
a.click(); a.click();
this.loading = false;
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
}, },
current_change(s){ current_change(s){
...@@ -136,6 +141,7 @@ export default { ...@@ -136,6 +141,7 @@ export default {
}); });
}, },
toexcel(){ toexcel(){
this.loading = true;
axios.get(baseUrl+'/exportExcel/insuredRegistration',{ axios.get(baseUrl+'/exportExcel/insuredRegistration',{
headers: { headers: {
"token":Cookies.get("token") "token":Cookies.get("token")
...@@ -150,11 +156,13 @@ export default { ...@@ -150,11 +156,13 @@ export default {
a.href = URL.createObjectURL(blob); //生成一个url a.href = URL.createObjectURL(blob); //生成一个url
a.download = "居民养老保险表.xlsx"; a.download = "居民养老保险表.xlsx";
a.click(); a.click();
this.loading = false;
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
// this.$api.getlist.dccc().then((res) => { // this.$api.getlist.dccc().then((res) => {
// let loadingInstance = Loading.service(); // let loadingInstance = Loading.service();
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div> <div>
<el-table <el-table
v-loading.fullscreen.lock="loading"
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
> >
...@@ -46,7 +47,7 @@ ...@@ -46,7 +47,7 @@
> >
</el-pagination> </el-pagination>
<el-button type="success" @click="toexcel" style="margin:50px">导出</el-button> <el-button type="success" @click="toexcel" style="margin:50px">全部导出</el-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -60,11 +61,13 @@ ...@@ -60,11 +61,13 @@
return { return {
PageNum: 1, PageNum: 1,
totals: 0, totals: 0,
tableData: [] tableData: [],
loading: false
} }
}, },
methods: { methods: {
toPdf(s, d) { toPdf(s, d) {
this.loading = true;
console.log(d) console.log(d)
axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, { axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, {
headers: { headers: {
...@@ -82,9 +85,11 @@ ...@@ -82,9 +85,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
}, },
current_change(s) { current_change(s) {
...@@ -99,7 +104,7 @@ ...@@ -99,7 +104,7 @@
loadingInstance.close(); loadingInstance.close();
}); });
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.data.result this.tableData = res.data.content
this.totals = res.data.totalSize this.totals = res.data.totalSize
} }
...@@ -108,6 +113,7 @@ ...@@ -108,6 +113,7 @@
}); });
}, },
toexcel() { toexcel() {
this.loading = true;
axios.get(baseUrl + '/exportExcel/modifyPayGrade', { axios.get(baseUrl + '/exportExcel/modifyPayGrade', {
headers: { headers: {
"token": Cookies.get("token") "token": Cookies.get("token")
...@@ -124,9 +130,11 @@ ...@@ -124,9 +130,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
// this.$api.getlist.dccc().then((res) => { // this.$api.getlist.dccc().then((res) => {
// let loadingInstance = Loading.service(); // let loadingInstance = Loading.service();
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div> <div>
<el-table <el-table
v-loading.fullscreen.lock="loading"
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
> >
...@@ -81,11 +82,13 @@ ...@@ -81,11 +82,13 @@
return { return {
PageNum: 1, PageNum: 1,
totals: 0, totals: 0,
tableData: [] tableData: [],
loading: false
} }
}, },
methods: { methods: {
toPdf(s, d) { toPdf(s, d) {
this.loading = true;
console.log(d) console.log(d)
axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, { axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, {
headers: { headers: {
...@@ -103,9 +106,11 @@ ...@@ -103,9 +106,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
}, },
current_change(s) { current_change(s) {
...@@ -129,6 +134,7 @@ ...@@ -129,6 +134,7 @@
}); });
}, },
toexcel() { toexcel() {
this.loading = true;
axios.get(baseUrl + '/exportExcel/updateBaseInfo', { axios.get(baseUrl + '/exportExcel/updateBaseInfo', {
headers: { headers: {
"token": Cookies.get("token") "token": Cookies.get("token")
...@@ -145,9 +151,11 @@ ...@@ -145,9 +151,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
// this.$api.getlist.dccc().then((res) => { // this.$api.getlist.dccc().then((res) => {
// let loadingInstance = Loading.service(); // let loadingInstance = Loading.service();
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<div> <div>
<el-table <el-table
v-loading.fullscreen.lock="loading"
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
> >
...@@ -60,11 +61,13 @@ ...@@ -60,11 +61,13 @@
return { return {
PageNum: 1, PageNum: 1,
totals: 0, totals: 0,
tableData: [] tableData: [],
loading: false
} }
}, },
methods: { methods: {
toPdf(s, d) { toPdf(s, d) {
this.loading = true;
console.log(d) console.log(d)
axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, { axios.get(baseUrl + '/exportPdf/informationChange?id=' + d.eventId, {
headers: { headers: {
...@@ -82,9 +85,11 @@ ...@@ -82,9 +85,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
}, },
current_change(s) { current_change(s) {
...@@ -99,7 +104,7 @@ ...@@ -99,7 +104,7 @@
loadingInstance.close(); loadingInstance.close();
}); });
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.data.result this.tableData = res.data.content
this.totals = res.data.totalSize this.totals = res.data.totalSize
} }
...@@ -108,6 +113,7 @@ ...@@ -108,6 +113,7 @@
}); });
}, },
toexcel() { toexcel() {
this.loading = true;
axios.get(baseUrl + '/exportExcel/updateBankCard', { axios.get(baseUrl + '/exportExcel/updateBankCard', {
headers: { headers: {
"token": Cookies.get("token") "token": Cookies.get("token")
...@@ -124,9 +130,11 @@ ...@@ -124,9 +130,11 @@
a.click(); a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url // let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url // window.location.href = objectUrl; //浏览器打开这个url
this.loading = false;
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
this.loading = false;
}); });
// this.$api.getlist.dccc().then((res) => { // this.$api.getlist.dccc().then((res) => {
// let loadingInstance = Loading.service(); // let loadingInstance = Loading.service();
......
...@@ -262,7 +262,7 @@ this.$api.getlist.selectflowState(data).then((res) => { ...@@ -262,7 +262,7 @@ this.$api.getlist.selectflowState(data).then((res) => {
console.log(d) console.log(d)
if(s==1){ if(s==1){
this.flowTitle="新增流程" this.flowTitle="新增流程"
for(var i =1;i<=7;i++){ for(var i =1;i<=6;i++){
this.titleList.push({ this.titleList.push({
label:this.getType(i), label:this.getType(i),
value:i+","+this.getType(i) value:i+","+this.getType(i)
......
<template> <template>
<div> <div>
<el-tabs type="border-card"> <el-tabs
type="border-card"
:v-loading="loading">
<el-tab-pane label="参保覆盖人员" v-loading="loading"> <el-tab-pane label="参保覆盖人员" v-loading="loading">
<div style="width: 25%;float: left"> <el-alert
align="left"
title="请上传格式完全相同的excel,格式如下:"
type="warning"
show-icon>
</el-alert>
<table style="text-align: center;border-collapse: collapse" cellspacing="0px" cellpadding="0px">
<tr>
<td style="border: 1px solid black">&nbsp;统筹区&nbsp;</td>
<td style="border: 1px solid black">&nbsp;街道或乡镇名称&nbsp;</td>
<td style="border: 1px solid black">&nbsp;社区名称&nbsp;</td>
<td style="border: 1px solid black">&nbsp;所属组&nbsp;</td>
<td style="border: 1px solid black">&nbsp;户口所在地&nbsp;</td>
<td style="border: 1px solid black">&nbsp;户口性质&nbsp;</td>
<td style="border: 1px solid black">&nbsp;个人编号&nbsp;</td>
<td style="border: 1px solid black">&nbsp;证件号码&nbsp;</td>
<td style="border: 1px solid black">&nbsp;姓名&nbsp;</td>
<td style="border: 1px solid black">&nbsp;性别&nbsp;</td>
<td style="border: 1px solid black">&nbsp;民族&nbsp;</td>
<td style="border: 1px solid black">&nbsp;出生日期&nbsp;</td>
<td style="border: 1px solid black">&nbsp;险种类型&nbsp;</td>
<td style="border: 1px solid black">&nbsp;参保状态&nbsp;</td>
<td style="border: 1px solid black">&nbsp;是否老农保&nbsp;</td>
<td style="border: 1px solid black">&nbsp;缴费状态&nbsp;</td>
<td style="border: 1px solid black">&nbsp;缴费档次&nbsp;</td>
<td style="border: 1px solid black">&nbsp;人员类别&nbsp;</td>
<td style="border: 1px solid black">&nbsp;离退休标志&nbsp;</td>
<td style="border: 1px solid black">&nbsp;个人身份&nbsp;</td>
<td style="border: 1px solid black">&nbsp;参保日期&nbsp;</td>
<td style="border: 1px solid black">&nbsp;档案编号&nbsp;</td>
</tr>
</table>
<el-upload <el-upload
style="margin-top: 10px"
class="upload-demo" class="upload-demo"
ref="upload1" ref="upload1"
:action="baseInfoUrl" :action="baseInfoUrl"
...@@ -22,16 +56,6 @@ ...@@ -22,16 +56,6 @@
<div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件,一次最多只能上传5个文件</div> <div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件,一次最多只能上传5个文件</div>
</el-upload> </el-upload>
<el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload1">数据导入</el-button> <el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload1">数据导入</el-button>
</div>
<div style="width: 75%;float: left">
<el-alert
align="left"
title="请上传格式完全相同的excel,格式如下:"
type="warning"
description="统筹区,街道或乡镇名称,社区名称,所属组,户口所在地,户口性质,个人编号,证件号码,姓名,性别,民族,出生日期,险种类型,参保状态,是否老农保,缴费状态,缴费档次,人员类别,离退休标志,个人身份,参保日期,档案编号"
show-icon>
</el-alert>
</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="缴费情况明细"> <el-tab-pane label="缴费情况明细">
<el-upload <el-upload
...@@ -70,6 +94,13 @@ ...@@ -70,6 +94,13 @@
</el-upload> </el-upload>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog
ref="dialog"
:title="dialogTitle"
width="30%"
:visible.sync="dialogVisible">
<span v-text="dialogContent" style="font-size: 16px"></span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -86,7 +117,11 @@ ...@@ -86,7 +117,11 @@
myHeader: { myHeader: {
token: Cookies.get("token") token: Cookies.get("token")
}, },
fileList: [] fileList: [],
dialogTitle: "",
dialogVisible: false,
dialogContent: "",
loading: false
}; };
}, },
methods: { methods: {
...@@ -103,6 +138,7 @@ ...@@ -103,6 +138,7 @@
this.$message.warning("当前限制选择 1 个文件,请删除后继续上传"); this.$message.warning("当前限制选择 1 个文件,请删除后继续上传");
}, },
handleBeforeUpload(file) { handleBeforeUpload(file) {
this.loading = true;
if (!file.name.endsWith(".xls") && !file.name.endsWith(".xlsx")) { if (!file.name.endsWith(".xls") && !file.name.endsWith(".xlsx")) {
this.$message.warning(file.name + "不是excel文件"); this.$message.warning(file.name + "不是excel文件");
return false; return false;
...@@ -114,22 +150,21 @@ ...@@ -114,22 +150,21 @@
// uploadedList.push(file.name); // uploadedList.push(file.name);
}, },
uploadSuccess(response) { uploadSuccess(response) {
console.log(response) this.dialogTitle = "导入结果";
this.$alert(response.data, '导入结果', { this.dialogContent = response.data;
confirmButtonText: '确定', this.dialogVisible = true;
callback: action => { this.loading = false;
// this.$message({ // console.log(response);
// type: 'info', // this.$alert(response.data, '导入结果', {
// message: `action: ${ action }` // confirmButtonText: '确定',
// callback: action => {
// // this.$message({
// // type: 'info',
// // message: `action: ${ action }`
// // });
// }
// }); // });
} }
});
// this.$message.success({
// message: response.data,
// duration: 0,
// showClose: true
// })
}
} }
} }
</script> </script>
......
...@@ -2,100 +2,108 @@ ...@@ -2,100 +2,108 @@
<div> <div>
<h2 class="imtil">基础信息</h2> <h2 class="imtil">基础信息</h2>
<div class="wrap"> <div class="wrap">
<div class="masks"></div> <!-- <div class="masks"></div>-->
<el-form ref="form" :model="form" class="forml" label-width="120px"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="姓名"> <el-form-item label="被终止人姓名姓名">
<el-input v-model="form.name"></el-input> <el-input v-model="form.name"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="性别"> <el-form-item label="出生日期">
<el-input v-model="form.sex"></el-input> <el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item>
<el-form-item label="民族">
<el-input v-model="form.nation"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="缴费标准"> <el-form-item label="人员类型">
<el-input v-model="form.pay_type"></el-input> <el-input v-model="form.per_type"></el-input>
</el-form-item>
<el-form-item label="特殊参保群体">
<el-input v-model="form.special_type"></el-input>
</el-form-item>
<el-form-item label="险种类型">
<el-input v-model="form.other_social"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form ref="form" :model="form" class="formr" label-width="90px"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="身份证号"> <el-form-item label="性别">
<el-input v-model="form.identity_number"></el-input> <el-input v-model="form.sex"></el-input>
</el-form-item>
<el-form-item label="户籍性质">
<el-input v-model="form.nation_type"></el-input>
</el-form-item>
<el-form-item label="户籍所在地">
<el-input v-model="form.townName"></el-input>
</el-form-item>
<el-form-item label="联系电话">
<el-input v-model="form.telphoneValue"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开户银行"> <el-form-item label="身份证号码">
<el-input v-model="form.pay_bank"></el-input> <el-input v-model="form.identity_number"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="缴费账号"> <el-form-item label="户籍地址">
<el-input v-model="form.pay_account"></el-input> <el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<h2 class="imtil">参保注销信息</h2> <h2 class="imtil">参保注销信息</h2>
<div class="wrap"> <div class="wrap">
<div class="masks"></div> <!-- <div class="masks"></div>-->
<el-form ref="form" :model="form" class="forml" label-width="auto"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="终止原因"> <el-form-item label="终止原因">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.cancel_res"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="死亡时间"> <el-form-item label="死亡时间">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.death_day"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="停发时间"> <el-form-item label="停发时间">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.stop_time"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="重复地区及险种"> <el-form-item label="重复地区及险种">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.repet_type"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form ref="form" :model="form" class="formr" label-width="auto"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="户籍迁往地区"> <el-form-item label="户籍迁往地区">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.addres_new"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="丧葬形式"> <el-form-item label="丧葬形式">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.bad_type"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="停发追回金额"> <el-form-item label="停发追回金额">
<el-input v-model="form.reason"></el-input> <el-input v-model="form.reback_money"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="重复追回金额"> <el-form-item label="重复地区及险种的追回金额">
<el-input v-model="form.reason"></el-input> <el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<h2 class="imtil">个人账户终止结算信息</h2> <h2 class="imtil">个人账户终止结算信息</h2>
<div class="wrap"> <div class="wrap">
<div class="masks"></div> <!-- <div class="masks"></div>-->
<el-form ref="form" :model="form" class="forml" label-width="auto"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="个人账户余额"> <el-form-item label="个人账户余额">
<el-input v-model="form.old"></el-input> <el-input v-model="form.account_balance"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="丧葬费"> <el-form-item label="丧葬费">
<el-input v-model="form.old"></el-input> <el-input v-model="form.bad_subsidy"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="应抵扣重复领取其他社会保险待遇"> <el-form-item label="应抵扣重复领取其他社会保险待遇">
<el-input v-model="form.old"></el-input> <el-input v-model="form.other_overApply"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-form ref="form" :model="form" class="formr" label-width="auto"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="一次性抚恤金"> <el-form-item label="一次性抚恤金">
<el-input v-model="form.now"></el-input> <el-input v-model="form.once_pension"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="应抵扣死亡超期领取待遇"> <el-form-item label="应抵扣死亡超期领取待遇">
<el-input v-model="form.old"></el-input> <el-input v-model="form.death_overspend"></el-input>
</el-form-item>
<el-form-item label="合计发放金额">
<el-input v-model="form.account_totle"></el-input>
</el-form-item>
</el-form>
</div>
<h2 class="imtil">指定受益人或法定继承人</h2>
<div class="wrap">
<!-- <div class="masks"></div>-->
<el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="姓名">
<el-input v-model="form.bailor_name"></el-input>
</el-form-item>
<el-form-item label="联系电话">
<el-input v-model="form.bailor_tel"></el-input>
</el-form-item>
<el-form-item label="与终止人关系">
<el-input v-model="form.relation"></el-input>
</el-form-item>
</el-form>
<el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="性别">
<el-input v-model="form.bailor_sex"></el-input>
</el-form-item>
<el-form-item label="身份证号码">
<el-input v-model="form.bailor_idNo"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -133,8 +141,8 @@ ...@@ -133,8 +141,8 @@
</div> </div>
</div> </div>
<div style="text-align:center;margin-bottom:40px" v-show="show"> <div style="text-align:center;margin-bottom:40px" v-show="show">
<el-button type="success" @click="pass"><i class="el-icon-circle-check"></i> 审核通过</el-button> <el-button type="success" @click="pass"><i class="el-icon-circle-check"></i>审核通过</el-button>
<el-button type="danger" @click="nopass"><i class="el-icon-circle-close"></i> 审核不通过</el-button> <el-button type="danger" @click="nopass"><i class="el-icon-circle-close"></i>审核不通过</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -146,37 +154,54 @@ ...@@ -146,37 +154,54 @@
export default { export default {
data() { data() {
return { return {
test: "sadgsdg",
itmebs: "", itmebs: "",
show: '',
bb: false, bb: false,
form: { form: {
"name": "", account_balance: "",
"bank_photo": "", account_totle: "",
"groupName": "", addres_new: "",
"identity_number": "", bad_subsidy: "",
"nation": '', bad_type: "",
"nation_type": "", bailor_idNo: "",
"other_social": "", bailor_idPhoto: "",
"pay_account": "", bailor_name: "",
"pay_bank": "", bailor_sex: "",
"pay_type": '', bailor_tel: "",
"recordType": '', bank_photo: "",
"sex": '', book_photo: "",
"sign_photo": "", cancel_res: "",
"social_time": "", death_day: "",
"special_type": "", death_overspend: "",
"telphoneValue": "", groupName: "",
"townName": "", hospital_photo: "",
"villageName": "", idBackPic: "",
"address": "", idFortPic: "",
"wuserId": '', identity_number: "",
"old": "", name: "",
"now": "" nation: "",
nation_type: "",
once_pension: "",
other_SocialPhoto: "",
other_overApply: "",
per_type: "",
provide_account: "",
reback_money: "",
recordType: "",
relation: "",
relation_photo: "",
repet_type: "",
sex: "",
sign_photo: "",
stop_time: "",
telphoneValue: "",
townName: "",
villageName: "",
wuserId: "",
}, },
urls: [], urls: [],
show: "" show: ""
} }
}, },
methods: { methods: {
//审核通过 //审核通过
...@@ -184,27 +209,27 @@ ...@@ -184,27 +209,27 @@
this.$confirm('是否审核通过?', '提示', { this.$confirm('是否审核通过?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(() => { }).then(() => {
Loading.service(); Loading.service();
var data = { var data = {
recordId: sessionStorage.getItem("recordId"), recordId: sessionStorage.getItem("recordId"),
examineState: 1, examineState: 1,
remark: "", remark: "",
userId: 1 userId: 1,
// InsuredCancelEntity: this.form,
}; };
this.$api.getlist.shenhe(data).then((res) => { this.$api.getlist.shenhe(data).then((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close(); loadingInstance.close();
}); });
if (res.code == 200) { if (res.code === 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: res.data message: res.data
}); });
this.$router.push({ this.$router.push({
name: "信息审核" name: "参保注销审核"
}) })
} else { } else {
this.$message({ this.$message({
...@@ -212,7 +237,6 @@ ...@@ -212,7 +237,6 @@
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -223,7 +247,6 @@ ...@@ -223,7 +247,6 @@
message: '操作失败!' + res message: '操作失败!' + res
}); });
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
...@@ -237,7 +260,6 @@ ...@@ -237,7 +260,6 @@
this.$prompt('请输入原因', '提示', { this.$prompt('请输入原因', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(({value}) => { }).then(({value}) => {
if (value) { if (value) {
Loading.service(); Loading.service();
...@@ -252,7 +274,7 @@ ...@@ -252,7 +274,7 @@
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close(); loadingInstance.close();
}); });
if (res.code == 200) { if (res.code === 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: res.data message: res.data
...@@ -266,7 +288,6 @@ ...@@ -266,7 +288,6 @@
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -277,7 +298,6 @@ ...@@ -277,7 +298,6 @@
message: '操作失败!' + res message: '操作失败!' + res
}); });
}); });
} else { } else {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -291,7 +311,7 @@ ...@@ -291,7 +311,7 @@
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
}, },
...@@ -312,94 +332,40 @@ ...@@ -312,94 +332,40 @@
} }
}, },
created() { created() {
this.show = this.$route.params.show this.show = this.$route.params.show;
this.show = this.$route.params.show
if (this.$route.params.info) {
sessionStorage.setItem("info", this.$route.params.info)
}
if (this.$route.params.info) { if (this.$route.params.info) {
var a = JSON.stringify(this.$route.params) sessionStorage.setItem("info", this.$route.params.info);
sessionStorage.setItem("items", a) sessionStorage.setItem("items", JSON.stringify(this.$route.params));
} }
this.form = JSON.parse(sessionStorage.getItem("info")) this.form = JSON.parse(sessionStorage.getItem("info"));
this.form.special_type = this.form.org_name.org_insuranceType console.log(this.form);
this.form.name = this.decrypt(this.form.name);
this.form.name = this.decrypt(this.form.org_name) this.form.bailor_name = this.decrypt(this.form.bailor_name);
//this.form.name=this.form.org_name this.form.identity_number = this.decrypt(this.form.identity_number);
this.form.identity_number = this.decrypt(this.form.org_idNum) this.form.bailor_idNo = this.decrypt(this.form.bailor_idNo);
this.form.telphoneValue = this.decrypt(this.form.telphoneValue) var obj = JSON.parse(sessionStorage.getItem("items"));
this.form.nation = this.form.nation console.log(obj);
this.form.pay_bank = this.form.org_bankName
this.form.pay_type = this.form.org_pay
this.form.special_type = this.form.org_position
this.form.telphoneValue = this.form.org_telPhone
this.form.address = this.form.org_address
this.form.pay_account = this.form.org_bankNum
//根据type_son判断变更内容
if (this.form.type_son == 1) {
this.form.old = this.form.pay_type,
this.form.now = this.form.change_pay
this.now = "变更后档次"
this.old = "变更前档次"
} else if (this.form.type_son == 2) {
this.bb = true
this.form.old = this.form.org_bankNum,
this.form.now = this.form.change_bankNum
this.now = "变更后银行卡号"
this.old = "变更前银行卡号"
} else if (this.form.type_son == 3) {
this.form.old = this.form.telphoneValue,
this.form.now = this.form.change_tel
this.now = "变更后手机号"
this.old = "变更前手机号"
} else if (this.form.type_son == 4) {
this.form.old = this.form.special_type,
this.form.now = this.form.change_position,
this.now = "变更后参保身份"
this.old = "变更前参保身份"
} else if (this.form.type_son == 5) {
this.form.old = this.form.org_address,
this.form.now = this.form.change_adress,
this.now = "变更后地址"
this.old = "变更前地址"
} else if (this.form.type_son == 6) {
this.form.old = this.form.name,
this.form.now = this.form.change_name,
this.now = "变更后姓名"
this.old = "变更前姓名"
} else if (this.form.type_son == 7) {
this.form.old = this.form.identity_number,
this.form.now = this.decrypt(this.form.change_idNum),
this.now = "变更后身份证"
this.old = "变更前身份证"
}
var obj = JSON.parse(sessionStorage.getItem("items"))
console.log(obj)
if (obj.bankpic) { if (obj.bankpic) {
this.itmebs = "银行卡" this.bb = true;
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bankpic) this.itmebs = "银行卡";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bankpic);
} else if (obj.bookPic) { } else if (obj.bookPic) {
this.bb = true;
this.itmebs = "户口本" this.itmebs = "户口本";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bookPic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bookPic);
} else if (obj.specialPhotoPic) { } else if (obj.specialPhotoPic) {
this.itmebs = "特殊身份证明" this.bb = true;
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.specialPhotoPic) this.itmebs = "特殊身份证明";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.specialPhotoPic);
} else { } else {
this.urls.push(" ") this.itmebs = "";
this.urls.push("");
} }
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.signpic);
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.signpic) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardfrontpic);
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardbackpic);
this.form.sex = this.form.sex === 1 ? "男" : "女";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardfrontpic) this.form.bailor_sex = this.form.bailor_sex === 1 ? "男" : "女";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardbackpic)
this.form.sex = this.form.sex == 1 ? "男" : "女"
} }
} }
</script> </script>
...@@ -418,35 +384,27 @@ ...@@ -418,35 +384,27 @@
z-index: 200 z-index: 200
} }
.forml { .form {
float: left;
width: 45%
}
.formr {
float: left; float: left;
width: 45%; width: 45%;
margin-left: 20px margin-left: 20px;
} }
.imgcon { .imgcon {
margin: 0 auto; margin: 0 auto;
box-shadow: 0 0 15px lightgray; box-shadow: 0 0 15px lightgray;
overflow: hidden; overflow: hidden;
margin-bottom: 40px margin-bottom: 40px;
}
.block {
width: 23%
} }
.block { .block {
width: 23%;
float: left; float: left;
height: 100%; height: 100%;
margin-right: 20px margin-right: 20px;
} }
.imtil { .imtil {
padding: 0 0 20px 0 padding: 0 0 20px 0;
} }
</style> </style>
<template> <template>
<div> <div>
<h2 class="imtil">基础信息</h2> <h2 class="imtil">基础信息</h2>
<div class="wrap"> <div class="wrap">
<div class="masks"></div> <div class="masks"></div>
<el-form ref="form" :model="form" class="formr" label-width="120px"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="姓名"> <el-form-item label="姓名">
<el-input v-model="form.name"></el-input> <el-input v-model="form.name"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="性别">
<el-input v-model="form.sex"></el-input>
</el-form-item>
<el-form-item label="民族">
<el-input v-model="form.nation"></el-input>
</el-form-item>
<el-form-item label="缴费标准">
<el-input v-model="form.pay_type"></el-input>
</el-form-item>
<el-form-item label="特殊参保群体">
<el-input v-model="form.special_type"></el-input>
</el-form-item>
<el-form-item label="险种类型">
<el-input v-model="form.other_social"></el-input>
</el-form-item>
</el-form>
<el-form ref="form" :model="form" class="forml" label-width="90px">
<el-form-item label="身份证号"> <el-form-item label="身份证号">
<el-input v-model="form.identity_number"></el-input> <el-input v-model="form.identity_number"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="户籍性质"> <el-form-item label="领取账号">
<el-input v-model="form.nation_type"></el-input> <el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="户籍所在地"> <el-form-item label="户籍地地址">
<el-input v-model="form.townName"></el-input> <el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item>
</el-form>
<el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item label="性别">
<el-input v-model="form.sex"></el-input>
</el-form-item>
<el-form-item label="缴费年限">
<el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系电话"> <el-form-item label="联系电话">
<el-input v-model="form.telphoneValue"></el-input> <el-input v-model="form.telphoneValue"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="开户银行"> <el-form-item label="领取方式">
<el-input v-model="form.pay_bank"></el-input> <el-input v-model="form.apply_way"></el-input>
</el-form-item>
<el-form-item label="缴费账号">
<el-input v-model="form.pay_account"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<h2 class="imtil">变更信息</h2> <h2 class="imtil">个人账户信息</h2>
<div class="wrap"> <div class="wrap">
<div class="masks"></div> <div class="masks"></div>
<el-form ref="form" :model="form" class="formr" label-width="150px"> <el-form ref="form" :model="form" class="form" label-width="auto">
<el-form-item :label="old"> <el-form-item label="个人缴费">
<el-input v-model="form.old"></el-input> <el-input v-model="form.mon_annuityPre"></el-input>
</el-form-item> </el-form-item>
</el-form> <el-form-item label="财政补贴">
<el-form ref="form" :model="form" class="forml" label-width="150px"> <el-input v-model="form.mon_annuityGov"></el-input>
<el-form-item :label="now">
<el-input v-model="form.now"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="个人账户积累额">
</el-form> <el-input v-model="form.payTotalMoney"></el-input>
</div> </el-form-item>
<h2 class="imtil">附件</h2> </el-form>
<div class="imgcon"> <el-form ref="form" :model="form" class="form" label-width="auto">
<div class="demo-image__placeholder"> <el-form-item label="集体补助">
<el-input placeholder="该框暂无对应字段,请联系开发人员"></el-input>
</el-form-item>
<el-form-item label="利息">
<el-input v-model="form.interest"></el-input>
</el-form-item>
</el-form>
</div>
<h2 class="imtil">附件</h2>
<div class="imgcon">
<div class="demo-image__placeholder">
<div v-show="bb" class="block"> <div v-show="bb" class="block">
<p class="demonstration">{{itmebs}}</p> <p class="demonstration">{{itmebs}}</p>
<el-image :src="urls[0]"></el-image> <el-image :src="urls[0]"></el-image>
...@@ -92,93 +86,89 @@ ...@@ -92,93 +86,89 @@
</div> </div>
</el-image> </el-image>
</div> </div>
</div> </div>
</div> </div>
<div style="text-align:center;margin-bottom:40px" v-show="show"> <div style="text-align:center;margin-bottom:40px" v-show="show">
<el-button type="success" @click="pass"><i class="el-icon-circle-check"></i> 审核通过</el-button> <el-button type="success" @click="pass"><i class="el-icon-circle-check"></i> 审核通过</el-button>
<el-button type="danger" @click="nopass"><i class="el-icon-circle-close"></i> 审核不通过</el-button> <el-button type="danger" @click="nopass"><i class="el-icon-circle-close"></i> 审核不通过</el-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import CryptoJS from 'crypto-js' import CryptoJS from 'crypto-js'
import { Loading } from 'element-ui'; import {Loading} from 'element-ui';
export default { export default {
data(){ data() {
return{ return {
itmebs:"", itmebs: "",
show:'', show: "",
old:"原姓名", bb: false,
now:"变更后姓名", form: {
bb:false, "name": "",
form:{ "bank_photo": "",
"name":"", "groupName": "",
"bank_photo":"", "identity_number": "",
"groupName":"", "nation": '',
"identity_number":"", "nation_type": "",
"nation":'', "other_social": "",
"nation_type":"", "pay_account": "",
"other_social":"", "pay_bank": "",
"pay_account":"", "pay_type": '',
"pay_bank":"", "recordType": '',
"pay_type":'', "sex": '',
"recordType":'', "sign_photo": "",
"sex":'', "social_time": "",
"sign_photo":"", "special_type": "",
"social_time":"", "telphoneValue": "",
"special_type":"", "townName": "",
"telphoneValue":"", "villageName": "",
"townName":"", "address": "",
"villageName":"", "wuserId": '',
"address":"", apply_way: "",
"wuserId":'', mon_annuityPre: "",
"old":"", mon_annuityGov: "",
"now":"" mon_annuity: "",
interest: "",
payTotalMoney: ""
}, },
urls: [ urls: [],
],
show:""
} }
}, },
methods:{ methods: {
//审核通过 //审核通过
pass(){ pass() {
this.$confirm('是否审核通过?', '提示', { this.$confirm('是否审核通过?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(() => { }).then(() => {
Loading.service(); Loading.service();
var data={ var data = {
recordId: sessionStorage.getItem("recordId"), recordId: sessionStorage.getItem("recordId"),
examineState:1, examineState: 1,
remark:"", remark: "",
userId:1 userId: 1
}; };
this.$api.getlist.shenhe(data).then((res) => { this.$api.getlist.shenhe(data).then((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close(); loadingInstance.close();
}); });
if(res.code==200){ if (res.code === 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: res.data message: res.data
}); });
this.$router.push({ this.$router.push({
name:"信息审核" name: "待遇申请审核"
}) })
}else{ } else {
this.$message({ this.$message({
type: 'info', type: 'info',
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -186,10 +176,9 @@ export default { ...@@ -186,10 +176,9 @@ export default {
}); });
this.$message({ this.$message({
type: 'info', type: 'info',
message: '操作失败!'+res message: '操作失败!' + res
}); });
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
...@@ -198,27 +187,26 @@ export default { ...@@ -198,27 +187,26 @@ export default {
}); });
}, },
//审核不通过 //审核不通过
nopass(){ nopass() {
var that=this var that = this
this.$prompt('请输入原因', '提示', { this.$prompt('请输入原因', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(({value}) => {
}).then(({ value }) => { if (value) {
if(value){
Loading.service(); Loading.service();
var data={ var data = {
recordId: sessionStorage.getItem("recordId"), recordId: sessionStorage.getItem("recordId"),
examineState:2, examineState: 2,
remark:value, remark: value,
userId:1 userId: 1
}; };
this.$api.getlist.shenhe(data).then((res) => { this.$api.getlist.shenhe(data).then((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close(); loadingInstance.close();
}); });
if(res.code==200){ if (res.code === 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: res.data message: res.data
...@@ -226,13 +214,12 @@ export default { ...@@ -226,13 +214,12 @@ export default {
// this.$router.push({ // this.$router.push({
// name:"Xxsh" // name:"Xxsh"
// }) // })
}else{ } else {
this.$message({ this.$message({
type: 'info', type: 'info',
message: res.message message: res.message
}); });
} }
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -240,11 +227,10 @@ export default { ...@@ -240,11 +227,10 @@ export default {
}); });
this.$message({ this.$message({
type: 'info', type: 'info',
message: '操作失败!'+res message: '操作失败!' + res
}); });
}); });
} else {
}else{
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 that.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close(); loadingInstance.close();
...@@ -261,9 +247,9 @@ export default { ...@@ -261,9 +247,9 @@ export default {
}); });
}); });
}, },
decrypt(word){ decrypt(word) {
var key = CryptoJS.enc.Utf8.parse("KkweInfo23255625"); var key = CryptoJS.enc.Utf8.parse("KkweInfo23255625");
var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}); var decrypt = CryptoJS.AES.decrypt(word, key, {mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7});
return CryptoJS.enc.Utf8.stringify(decrypt).toString(); return CryptoJS.enc.Utf8.stringify(decrypt).toString();
}, },
decryptByDES(ciphertext) { decryptByDES(ciphertext) {
...@@ -277,138 +263,79 @@ export default { ...@@ -277,138 +263,79 @@ export default {
return decrypted.toString(CryptoJS.enc.Utf8); return decrypted.toString(CryptoJS.enc.Utf8);
} }
}, },
created(){ created() {
this.show=this.$route.params.show this.show = this.$route.params.show;
this.show=this.$route.params.show if (this.$route.params.info) {
if(this.$route.params.info){ sessionStorage.setItem("info", this.$route.params.info);
sessionStorage.setItem("info",this.$route.params.info) var a = JSON.stringify(this.$route.params);
sessionStorage.setItem("items", a);
} }
this.form = JSON.parse(sessionStorage.getItem("info"));
if(this.$route.params.info){ this.form.name = this.decrypt(this.form.name);
var a=JSON.stringify(this.$route.params) this.form.identity_number = this.decrypt(this.form.identity_number);
sessionStorage.setItem("items",a) var obj = JSON.parse(sessionStorage.getItem("items"));
if (obj.bankpic) {
this.bb = true;
this.itmebs = "银行卡";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bankpic);
} else if (obj.bookPic) {
this.bb = true;
this.itmebs = "户口本";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.bookPic);
} else if (obj.specialPhotoPic) {
this.bb = true;
this.itmebs = "特殊身份证明";
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.specialPhotoPic);
} else {
this.itmebs = "";
this.urls.push("");
} }
this.form =JSON.parse(sessionStorage.getItem("info")) this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.signpic);
this.form.special_type=this.form.org_name.org_insuranceType this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardfrontpic);
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/" + obj.idcardbackpic);
this.form.name=this.decrypt(this.form.org_name) this.form.sex = this.form.sex === 1 ? "男" : "女";
//this.form.name=this.form.org_name
this.form.identity_number=this.decrypt(this.form.org_idNum)
this.form.telphoneValue=this.decrypt(this.form.telphoneValue)
this.form.nation=this.form.nation
this.form.pay_bank=this.form.org_bankName
this.form.pay_type=this.form.org_pay
this.form.special_type=this.form.org_position
this.form.telphoneValue=this.form.org_telPhone
this.form.address=this.form.org_address
this.form.pay_account=this.form.org_bankNum
//根据type_son判断变更内容
if(this.form.type_son==1){
this.form.old=this.form.pay_type,
this.form.now=this.form.change_pay
this.now="变更后档次"
this.old="变更前档次"
}else if(this.form.type_son==2){
this.bb=true
this.form.old=this.form.org_bankNum,
this.form.now=this.form.change_bankNum
this.now="变更后银行卡号"
this.old="变更前银行卡号"
}else if(this.form.type_son==3){
this.form.old=this.form.telphoneValue,
this.form.now=this.form.change_tel
this.now="变更后手机号"
this.old="变更前手机号"
}else if(this.form.type_son==4){
this.form.old=this.form.special_type,
this.form.now=this.form.change_position,
this.now="变更后参保身份"
this.old="变更前参保身份"
}else if(this.form.type_son==5){
this.form.old=this.form.org_address,
this.form.now=this.form.change_adress,
this.now="变更后地址"
this.old="变更前地址"
}else if(this.form.type_son==6){
this.form.old=this.form.name,
this.form.now=this.form.change_name,
this.now="变更后姓名"
this.old="变更前姓名"
}else if(this.form.type_son==7){
this.form.old=this.form.identity_number,
this.form.now=this.decrypt(this.form.change_idNum),
this.now="变更后身份证"
this.old="变更前身份证"
} }
var obj=JSON.parse(sessionStorage.getItem("items"))
console.log(obj)
if(obj.bankpic){
this.itmebs="银行卡"
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bankpic)
}else if(obj.bookPic){
this.itmebs="户口本"
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.bookPic)
}else if(obj.specialPhotoPic){
this.itmebs="特殊身份证明"
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.specialPhotoPic)
}else{
this.urls.push(" ")
} }
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.signpic)
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardfrontpic)
this.urls.push("http://socialsecurity.oss-cn-beijing.aliyuncs.com/"+obj.idcardbackpic)
this.form.sex= this.form.sex==1?"男":"女"
}
}
</script> </script>
<style> <style>
.wrap{ .wrap {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
.masks{
.masks {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: 200 z-index: 200
} }
.forml{
float: left; .form {
width: 45%
}
.formr{
float: left; float: left;
width: 40%; width: 45%;
margin-left: 20px margin-left: 20px
} }
.imgcon{
.imgcon {
margin: 0 auto; margin: 0 auto;
box-shadow: 0 0 15px lightgray; box-shadow: 0 0 15px lightgray;
overflow: hidden; overflow: hidden;
margin-bottom: 40px margin-bottom: 40px
} }
.block{
.block {
width: 23% width: 23%
} }
.block{
.block {
float: left; float: left;
height: 100%; height: 100%;
margin-right: 20px margin-right: 20px
} }
.imtil{ .imtil {
padding:0 0 20px 0 padding: 0 0 20px 0
} }
</style> </style>
...@@ -48,12 +48,11 @@ ...@@ -48,12 +48,11 @@
<el-input v-model="dataForm.id" :disabled="true" auto-complete="off"></el-input> <el-input v-model="dataForm.id" :disabled="true" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="用户名" prop="name"> <el-form-item label="用户名" prop="name">
<el-input v-if="!operation" v-model="dataForm.name" auto-complete="off" :disabled="true"></el-input> <el-input v-if="!operation" v-model="dataForm.name" auto-complete="off" readonly="true"></el-input>
<el-input v-if="operation" v-model="dataForm.name" auto-complete="off"></el-input> <el-input v-if="operation" v-model="dataForm.name" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="真实姓名" prop="truename"> <el-form-item label="真实姓名" prop="truename">
<el-input v-if="!operation" v-model="dataForm.truename" auto-complete="off" :disabled="true"></el-input> <el-input v-model="dataForm.truename" auto-complete="off"></el-input>
<el-input v-if="operation" v-model="dataForm.truename" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="密码" prop="password"> <el-form-item label="密码" prop="password">
<el-input v-model="dataForm.password" type="password" auto-complete="off"></el-input> <el-input v-model="dataForm.password" type="password" auto-complete="off"></el-input>
...@@ -91,7 +90,7 @@ ...@@ -91,7 +90,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :size="size" @click.native="dialogVisible = false">{{$t('action.cancel')}}</el-button> <el-button :size="size" @click.native="dialogVisible = false" @click="cancelRules('dataForm')">{{$t('action.cancel')}}</el-button>
<el-button :size="size" type="primary" @click.native="submitForm" :loading="editLoading">{{$t('action.submit')}}</el-button> <el-button :size="size" type="primary" @click.native="submitForm" :loading="editLoading">{{$t('action.submit')}}</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -118,7 +117,6 @@ export default { ...@@ -118,7 +117,6 @@ export default {
size: 'small', size: 'small',
filters: { filters: {
name: '', name: '',
truename: ''
}, },
columns: [], columns: [],
filterColumns: [], filterColumns: [],
...@@ -131,6 +129,9 @@ export default { ...@@ -131,6 +129,9 @@ export default {
dataFormRules: { dataFormRules: {
name: [ name: [
{ required: true, message: '请输入用户名', trigger: 'blur' } { required: true, message: '请输入用户名', trigger: 'blur' }
],
truename: [
{ required: true, message: '请输入真实姓名', trigger: 'blur' }
] ]
}, },
// 新增编辑界面数据 // 新增编辑界面数据
...@@ -296,7 +297,10 @@ export default { ...@@ -296,7 +297,10 @@ export default {
// {prop:"lastUpdateTime", label:"更新时间", minWidth:120, formatter:this.dateFormat} // {prop:"lastUpdateTime", label:"更新时间", minWidth:120, formatter:this.dateFormat}
] ]
this.filterColumns = JSON.parse(JSON.stringify(this.columns)); this.filterColumns = JSON.parse(JSON.stringify(this.columns));
       }        },
cancelRules: function (formName) {
this.$refs[formName].resetFields();
}
}, },
mounted() { mounted() {
this.findDeptTree() this.findDeptTree()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment