Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangdishen
xichonght
Commits
19f42d79
Commit
19f42d79
authored
Apr 15, 2020
by
limeiman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 升档改办 PDF
parent
0ea7fcf2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2811 additions
and
2771 deletions
+2811
-2771
package-lock.json
xichongSys/package-lock.json
+2585
-2764
package.json
xichongSys/package.json
+1
-1
getlist.js
xichongSys/src/http/moudules/getlist.js
+9
-0
index.js
xichongSys/src/router/index.js
+6
-0
global.js
xichongSys/src/utils/global.js
+6
-6
drsdgb.vue
xichongSys/src/views/Myvue/drsdgb.vue
+204
-0
No files found.
xichongSys/package-lock.json
View file @
19f42d79
This source diff could not be displayed because it is too large. You can
view the blob
instead.
xichongSys/package.json
View file @
19f42d79
...
...
@@ -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"
,
...
...
xichongSys/src/http/moudules/getlist.js
View file @
19f42d79
...
...
@@ -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
({
...
...
xichongSys/src/router/index.js
View file @
19f42d79
...
...
@@ -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
:
"特殊业务导出"
,
...
...
xichongSys/src/utils/global.js
View file @
19f42d79
...
...
@@ -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
,
...
...
xichongSys/src/views/Myvue/drsdgb.vue
0 → 100644
View file @
19f42d79
<
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment