Commit d5e1c8fb authored by miaohaoyun's avatar miaohaoyun

Merge branch 'mhy2' into 'master'

Mhy2

See merge request !25
parents 1b22e458 8533a855
This diff is collapsed.
...@@ -15,7 +15,7 @@ export const save = (data) => { ...@@ -15,7 +15,7 @@ export const save = (data) => {
// 删除 // 删除
export const batchDelete = (data) => { export const batchDelete = (data) => {
return axios({ return axios({
url: '/user/forbiddenUser', url: '/user/updateUserStatus',
method: 'post', method: 'post',
data data
}) })
......
...@@ -17,7 +17,7 @@ export function save() { ...@@ -17,7 +17,7 @@ export function save() {
// 批量删除 // 批量删除
export function batchDelete() { export function batchDelete() {
return { return {
url: '/user/forbiddenUser', url: '/user/updateUserStatus',
type: 'post', type: 'post',
data: { data: {
"code": 200, "code": 200,
......
...@@ -25,6 +25,10 @@ import receivePersonnel from "@/views/Myvue/receivePersonnel"; ...@@ -25,6 +25,10 @@ import receivePersonnel from "@/views/Myvue/receivePersonnel";
import AllbaseInfo from "@/views/Myvue/allbaseInfo" import AllbaseInfo from "@/views/Myvue/allbaseInfo"
import PayInfo from "@/views/Myvue/payInfo" import PayInfo from "@/views/Myvue/payInfo"
import application from "@/views/Myvue/application" import application from "@/views/Myvue/application"
import importByExcel from "@/views/Myvue/importByExcel"
import treatmentApplicationAudit from "@/views/Myvue/treatmentApplicationAudit"
import insuranceCancellationAudit from "@/views/Myvue/insuranceCancellationAudit"
Vue.use(Router) Vue.use(Router)
const router = new Router({ const router = new Router({
...@@ -121,7 +125,23 @@ const router = new Router({ ...@@ -121,7 +125,23 @@ const router = new Router({
path:"/application", path:"/application",
name:"待遇申请审核", name:"待遇申请审核",
component: application component: application
},
{
path:"/importByExcel",
name:"数据导入",
component: importByExcel
},
// {
// path:"/treatmentApplicationAudit",
// name:"待遇申请审核",
// component: treatmentApplicationAudit
// },
{
path:"/insuranceCancellationAudit",
name:"参保注销审核",
component: insuranceCancellationAudit
} }
] ]
}, },
{ {
......
...@@ -12,8 +12,13 @@ ...@@ -12,8 +12,13 @@
</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)" /> <kt-button icon="fa fa-edit" :label="$t('action.edit')" :perms="permsEdit" :size="size" @click="handleEdit(scope.$index, scope.row)" style="float: left"/>
<div v-if="scope.row.status == 1">
<kt-button icon="fa fa-trash" label="禁用" :perms="permsDelete" :size="size" type="danger" @click="handleDelete(scope.$index, scope.row)" /> <kt-button icon="fa fa-trash" label="禁用" :perms="permsDelete" :size="size" type="danger" @click="handleDelete(scope.$index, scope.row)" />
</div>
<div v-else>
<kt-button icon="fa fa-check-circle" label="启用" :perms="permsDelete" :size="size" type="success" @click="handleDelete(scope.$index, scope.row)" />
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -130,7 +135,7 @@ export default { ...@@ -130,7 +135,7 @@ export default {
}, },
// 删除操作 // 删除操作
delete: function (ids) { delete: function (ids) {
this.$confirm('确认禁用选中记录吗?', '提示', { this.$confirm('确认操作选中记录吗?', '提示', {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let params = [] let params = []
......
...@@ -60,26 +60,27 @@ ...@@ -60,26 +60,27 @@
methods: { methods: {
toPdf(s, d) { toPdf(s, d) {
console.log(d) console.log(d)
// axios.get(baseUrl + '/exportPdf/insuredRegistration?id=' + d.eventId, { axios.get(baseUrl + '/exportPdf/specialAudit?id=' + d.eventId, {
// headers: { headers: {
// "token": Cookies.get("token") "token": Cookies.get("token")
// }, },
// responseType: 'blob' //告诉服务器我们需要的响应格式 responseType: 'blob' //告诉服务器我们需要的响应格式
// }) })
// .then(res => { .then(res => {
// let a = document.createElement("a"); let a = document.createElement("a");
// let blob = new Blob([res.data], { let blob = new Blob([res.data], {
// type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型 type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
// }); });
// a.href = URL.createObjectURL(blob); //生成一个url a.href = URL.createObjectURL(blob); //生成一个url
// a.download = "西充县城乡居民社会养老保险待遇领取审核表.pdf"; a.download = "西充县城乡居民社会养老保险待遇领取审核表.pdf";
// 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
// }) })
// .catch(err => { .catch(err => {
// console.log(err); console.log(err);
// }); });
}, },
current_change(s) { current_change(s) {
var data = { var data = {
...@@ -93,8 +94,10 @@ ...@@ -93,8 +94,10 @@
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.total this.totals = res.data.totalSize
this.pageNum = res.data.pageNum
} }
}).catch((res) => { }).catch((res) => {
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,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>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,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
} }
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,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>
......
<template>
<div>
<el-tabs type="border-card">
<el-tab-pane label="参保覆盖人员" v-loading="loading">
<div style="width: 25%;float: left">
<el-upload
class="upload-demo"
ref="upload1"
:action="baseInfoUrl"
multiple
drag
accept=".xls,.xlsx"
:limit="5"
:headers="myHeader"
:before-upload="handleBeforeUpload"
:file-list="fileList"
:on-exceed="handleExceed"
:on-success="uploadSuccess"
:auto-upload="false">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件,一次最多只能上传5个文件</div>
</el-upload>
<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 label="缴费情况明细">
<el-upload
class="upload-demo"
ref="upload2"
action="/"
multiple
accept=".xls,.xlsx"
:limit="5"
:headers="myHeader"
:before-upload="handleBeforeUpload"
:file-list="fileList"
:on-exceed="handleExceed"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload2">数据导入</el-button>
<div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件,一次最多只能上传5个文件</div>
</el-upload>
</el-tab-pane>
<el-tab-pane label="领取人员">
<el-upload
class="upload-demo"
ref="upload3"
action="/"
multiple
accept=".xls,.xlsx"
:limit="5"
:headers="myHeader"
:before-upload="handleBeforeUpload"
:file-list="fileList"
:on-exceed="handleExceed"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload3">数据导入</el-button>
<div slot="tip" class="el-upload__tip">只能上传xls/xlsx文件,一次最多只能上传5个文件</div>
</el-upload>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import {baseUrl} from "../../utils/global";
import Cookies from "js-cookie";
let uploadedList = [];
export default {
name: "importByExcel",
data() {
return {
baseInfoUrl: baseUrl + "/baseInfo/importFromNewExcel",
myHeader: {
token: Cookies.get("token")
},
fileList: []
};
},
methods: {
submitUpload1() {
this.$refs.upload1.submit();
},
submitUpload2() {
this.$refs.upload2.submit();
},
submitUpload3() {
this.$refs.upload3.submit();
},
handleExceed() {
this.$message.warning("当前限制选择 1 个文件,请删除后继续上传");
},
handleBeforeUpload(file) {
if (!file.name.endsWith(".xls") && !file.name.endsWith(".xlsx")) {
this.$message.warning(file.name + "不是excel文件");
return false;
}
// if (uploadedList.includes(file.name)) {
// this.$message.warning(file.name + "已被选中过,请勿重复选择");
// return false;
// }
// uploadedList.push(file.name);
},
uploadSuccess(response) {
console.log(response)
this.$alert(response.data, '导入结果', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
// type: 'info',
// message: `action: ${ action }`
// });
}
});
// this.$message.success({
// message: response.data,
// duration: 0,
// showClose: true
// })
}
}
}
</script>
<style scoped>
</style>
This diff is collapsed.
...@@ -24,8 +24,7 @@ ...@@ -24,8 +24,7 @@
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
stripe stripe>
:row-class-name="tableRowClassName">
<el-table-column <el-table-column
prop="idcard" prop="idcard"
label="身份证号" label="身份证号"
......
This diff is collapsed.
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