Commit 19f42d79 authored by limeiman's avatar limeiman

添加 升档改办 PDF

parent 0ea7fcf2
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16,6 +16,7 @@
"element-ui": "^2.4.6",
"font-awesome": "^4.7.0",
"js-cookie": "^2.2.0",
"node-sass": "^4.13.0",
"vue": "^2.5.2",
"vue-i18n": "^8.0.0",
"vue-router": "^3.0.1",
......@@ -43,7 +44,6 @@
"html-webpack-plugin": "^2.30.1",
"mockjs": "^1.0.1-beta3",
"node-notifier": "^5.1.2",
"node-sass": "^4.9.3",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
......
......@@ -232,6 +232,15 @@ export const selebjbfdc = (data) => {
data
})
};
//升档改办导出
export const seledrsdgb = (data) => {
return axios({
url: '/baseInfo/getChagePayInfo',
method: 'post',
data
})
};
//柱状图数据查询
export const selectchartInfo = (params) => {
return axios({
......
......@@ -43,6 +43,7 @@ import treatmentApplicationAuditp from "@/views/Myvue/treatmentApplicationAuditp
import drcbzx from "@/views/Myvue/drcbzx";
import drbjbf from "@/views/Myvue/drbjbf";
import drtsyw from "@/views/Myvue/drtsyw";
import drsdgb from "@/views/Myvue/drsdgb";
import authRecordphone from "@/views/Myvue/authRecordphone";
import importBaseInfoByExcel from "@/views/Myvue/importBaseInfoByExcel";
import importPayInfoByExcel from "@/views/Myvue/importPayInfoByExcel";
......@@ -201,6 +202,11 @@ const router = new Router({
name:"补缴保费导出",
component: drbjbf
},
{
path:"/changePay",
name:"升档改办导出",
component: drsdgb
},
{
path:"/speBusExport",
name:"特殊业务导出",
......
......@@ -5,14 +5,14 @@
*/
// 后台管理系统服务器地址
// export const baseUrl2 = 'http://xclc.rensheju.com'
export const baseUrl2 = 'http://172.16.10.18:9001'
//export const baseUrl = 'http://xc.rensheju.com'
// export const baseUrl2 = 'http://xclc.rensheju.com'
// //export const baseUrl = 'http://xc.rensheju.com'
// export const baseUrl = 'http://172.16.10.33:9002'
//export const baseUrl2 = 'http://xclc.rensheju.com'
// export const baseUrl = 'http://xc.rensheju.com'
export const baseUrl = 'http://172.16.10.18:9001'
export const baseUrl = 'http://xc.rensheju.com'
export const baseUrl2 = 'http://xclc.rensheju.com'
// export const baseUrl = 'http://xc.rensheju.com'
// export const baseUrl2 = 'http://xclc.rensheju.com'
export default {
baseUrl,
......
<template>
<div>
<el-table
v-loading.fullscreen.lock="loading"
:data="tableData"
style="width: 100%"
>
<el-table-column
prop="idcard"
label="身份证号码"
min-width="15%">
</el-table-column>
<el-table-column
prop="name"
label="姓名"
min-width="10%">
</el-table-column>
<el-table-column
prop="bankAccount"
label="银行账号"
min-width="15%">
</el-table-column>
<el-table-column
prop="bank"
label="所属银行"
min-width="10%">
</el-table-column>
<el-table-column
prop="old_Grade"
label="老档次"
min-width="15%">
</el-table-column>
<el-table-column
prop="new_Grade"
label="新档次"
min-width="15%">
</el-table-column>
<el-table-column
prop="pay_years"
label="改办年限"
min-width="15%">
</el-table-column>
<el-table-column
prop="payNumTol"
label="金额"
min-width="15%">
</el-table-column>
<el-table-column label="操作"
min-width="20%">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
@click="toPdf(scope.$index, scope.row)">导出pdf
</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
class="pone"
:page-size='10'
layout="total, prev, pager, next, jumper"
:total="totals"
:current-page.sync="PageNum"
@current-change="current_change"
>
</el-pagination>
<!-- <el-button type="success" @click="toexcel" style="margin:50px">全部导出</el-button>-->
</div>
</template>
<script>
import {Loading} from 'element-ui';
import {baseUrl} from "../../utils/global"
import axios from "axios"
import Cookies from "js-cookie";
export default {
data() {
return {
PageNum: 1,
totals: 0,
tableData: [],
loading: false
}
},
methods: {
toPdf(s, d) {
this.loading = true;
console.log(d)
axios.get(baseUrl + '/exportPdf/changePay?id=' + d.eventId, {
headers: {
"token": Cookies.get("token")
},
responseType: 'blob' //告诉服务器我们需要的响应格式
})
.then(res => {
if (res.data === null || res.data.size === 0) {
this.$message({
type: 'success',
message: "该表格没有内容"
});
} else {
let a = document.createElement("a");
let blob = new Blob([res.data], {
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
});
a.href = URL.createObjectURL(blob); //生成一个url
a.download = "西充县城乡居民社会养老保险升档改办申请表" + Date.now() + ".pdf";
a.click();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this.loading = false;
})
.catch(err => {
console.log(err);
this.loading = false;
});
},
current_change(s) {
var data = {
"pageNum": s,
"pageSize": 10
}
Loading.service();
this.$api.getlist.selebjbfdc(data).then((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
if (res.code == 200) {
this.tableData = res.data.content
this.totals = res.data.totalSize
}
}).catch((res) => {
});
},
// toexcel() {
// this.loading = true;
// axios.get(baseUrl + '/exportExcel/updateBankCard', {
// headers: {
// "token": Cookies.get("token")
// },
// responseType: 'blob' //告诉服务器我们需要的响应格式
// })
// .then(res => {
// let a = document.createElement("a");
// let blob = new Blob([res.data], {
// type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
// });
// a.href = URL.createObjectURL(blob); //生成一个url
// a.download = "补缴保费表" + Date.now() + ".xlsx";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// this.loading = false;
// })
// .catch(err => {
// console.log(err);
// this.loading = false;
// });
// // this.$api.getlist.dccc().then((res) => {
// // let loadingInstance = Loading.service();
// // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
// // loadingInstance.close();
// // });
// // if(res.code==200){
// // this.tableData=res.data.result
// // this.totals=res.data.total
// // }
//
// // }).catch((res) => {
//
// // });
// }
},
created() {
var data = {
"pageNum": 1,
"pageSize": 10
}
Loading.service();
this.$api.getlist.seledrsdgb(data).then((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
if (res.code == 200) {
this.tableData = res.data.content
this.totals = res.data.totalSize
}
}).catch((res) => {
});
},
}
</script>
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