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
bfa423bb
Commit
bfa423bb
authored
Jul 31, 2019
by
ytbdmhy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mhy
parent
5baa9d4e
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
3669 additions
and
2466 deletions
+3669
-2466
index.js
xichongSys/config/index.js
+2
-2
package-lock.json
xichongSys/package-lock.json
+2477
-2458
getlist.js
xichongSys/src/http/moudules/getlist.js
+32
-2
index.js
xichongSys/src/router/index.js
+33
-3
global.js
xichongSys/src/utils/global.js
+1
-1
drdcbg.vue
xichongSys/src/views/Myvue/drdcbg.vue
+169
-0
drdysq.vue
xichongSys/src/views/Myvue/drdysq.vue
+163
-0
drxxbg.vue
xichongSys/src/views/Myvue/drxxbg.vue
+190
-0
dryhkbg.vue
xichongSys/src/views/Myvue/dryhkbg.vue
+169
-0
receivePersonnel.vue
xichongSys/src/views/Myvue/receivePersonnel.vue
+433
-0
No files found.
xichongSys/config/index.js
View file @
bfa423bb
...
...
@@ -13,7 +13,7 @@ module.exports = {
proxyTable
:
{},
// Various Dev Server settings
host
:
'
0.0.0.0
'
,
// can be overwritten by process.env.HOST
host
:
'
127.0.0.1
'
,
// can be overwritten by process.env.HOST
port
:
8090
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
...
...
xichongSys/package-lock.json
View file @
bfa423bb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
xichongSys/src/http/moudules/getlist.js
View file @
bfa423bb
...
...
@@ -74,5 +74,35 @@ export const shebao = (params) => {
params
})
}
//信息变更导出
export
const
selexxbgdc
=
(
data
)
=>
{
return
axios
({
url
:
'/baseInfo/getUpdateBase'
,
method
:
'post'
,
data
})
}
//银行卡变更导出
export
const
seleyhkbgdc
=
(
data
)
=>
{
return
axios
({
url
:
'/baseInfo/getUpdateBank'
,
method
:
'post'
,
data
})
}
//银行卡变更导出
export
const
seledcbgdc
=
(
data
)
=>
{
return
axios
({
url
:
'/baseInfo/getUpdateGrade'
,
method
:
'post'
,
data
})
}
//待遇申请导出
export
const
seledysqdc
=
(
data
)
=>
{
return
axios
({
url
:
'/baseInfo/getTreatmentApplication'
,
method
:
'post'
,
data
})
}
xichongSys/src/router/index.js
View file @
bfa423bb
...
...
@@ -17,6 +17,11 @@ import drcbdj from "@/views/Myvue/drcbdj"
import
xxbg
from
"@/views/Myvue/xxbg"
import
Record
from
"@/views/Myvue/rzrecord"
import
Newsupdata
from
"@/views/Myvue/newsupdata"
import
drxxbg
from
"@/views/Myvue/drxxbg"
;
import
drdysq
from
"@/views/Myvue/drdysq"
;
import
dryhkbg
from
"@/views/Myvue/dryhkbg"
;
import
drdcbg
from
"@/views/Myvue/drdcbg"
;
import
receivePersonnel
from
"@/views/Myvue/receivePersonnel"
;
Vue
.
use
(
Router
)
...
...
@@ -56,11 +61,36 @@ const router = new Router({
name
:
"审核记录"
,
component
:
shrecord
},
{
path
:
"/lqperson"
,
name
:
"领取人员"
,
component
:
receivePersonnel
},
{
path
:
"/Output_1"
,
name
:
"参保登记"
,
component
:
drcbdj
},
{
path
:
"/modifyall"
,
name
:
"所有变更"
,
component
:
drxxbg
},
{
path
:
"/modifyidcard"
,
name
:
"银行卡变更"
,
component
:
dryhkbg
},
{
path
:
"/modifygrade"
,
name
:
"档次变更"
,
component
:
drdcbg
},
{
path
:
"/treatmentApplication"
,
name
:
"待遇申请"
,
component
:
drdysq
},
{
path
:
"/xxbg"
,
name
:
"信息变更审核"
,
...
...
xichongSys/src/utils/global.js
View file @
bfa423bb
/**
gi
/**
* 全局常量、方法封装模块
* 通过原型挂载到Vue属性
* 通过 this.Global 调用
...
...
xichongSys/src/views/Myvue/drdcbg.vue
0 → 100644
View file @
bfa423bb
<
template
>
<div>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"documentsType"
label=
"证件类型"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"documentsNumber"
label=
"证件号码"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"grade"
label=
"缴费档次"
min-width=
"20%"
>
</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
:
[]
}
},
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration?id=' + d.eventId, {
// 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 = "西充县城乡居民社会养老保险参保登记表.pdf";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// })
// .catch(err => {
// console.log(err);
// });
},
current_change
(
s
)
{
var
data
=
{
"pageNum"
:
s
,
"pageSize"
:
10
}
Loading
.
service
();
this
.
$api
.
getlist
.
seledcbgdc
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
data
.
result
this
.
totals
=
res
.
data
.
totalSize
}
}).
catch
((
res
)
=>
{
});
},
toexcel
()
{
axios
.
get
(
baseUrl
+
'/exportExcel/modifyPayGrade'
,
{
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
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
// 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
.
seledcbgdc
(
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
>
xichongSys/src/views/Myvue/drdysq.vue
0 → 100644
View file @
bfa423bb
<
template
>
<div>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"idcard"
label=
"身份证号码"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
>
</el-table-column>
<el-table-column
prop=
"socialSecurityNumber"
label=
"领取方式"
>
</el-table-column>
<el-table-column
prop=
"nation"
label=
"缴费年限"
>
</el-table-column>
<el-table-column
label=
"操作"
>
<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
:
[]
}
},
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration?id=' + d.eventId, {
// 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 = "西充县城乡居民社会养老保险待遇领取审核表.pdf";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// })
// .catch(err => {
// console.log(err);
// });
},
current_change
(
s
)
{
var
data
=
{
"pageNum"
:
s
,
"pageSize"
:
10
}
Loading
.
service
();
this
.
$api
.
getlist
.
seledysqdc
(
data
).
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
)
=>
{
});
},
// toexcel() {
// axios.get(baseUrl + '/exportExcel/insuredRegistration', {
// 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 = "居民养老保险表.xlsx";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// })
// .catch(err => {
// console.log(err);
// });
// // 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
.
seledysqdc
(
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
>
xichongSys/src/views/Myvue/drxxbg.vue
0 → 100644
View file @
bfa423bb
<
template
>
<div>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"idcard"
label=
"身份证号码"
min-width=
"10%"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
min-width=
"6%"
>
</el-table-column>
<el-table-column
prop=
"idcard"
label=
"社会保障号码"
min-width=
"10%"
>
</el-table-column>
<el-table-column
prop=
"nation"
label=
"民族"
min-width=
"8%"
>
</el-table-column>
<el-table-column
prop=
"telphone"
label=
"移动电话"
min-width=
"8%"
>
</el-table-column>
<el-table-column
prop=
"adress"
label=
"居住地址"
min-width=
"18%"
>
</el-table-column>
<el-table-column
prop=
"villageId"
label=
"村民小组id"
min-width=
"8%"
>
</el-table-column>
<el-table-column
prop=
"remark"
label=
"备注"
min-width=
"20%"
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"8%"
>
<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
:
[]
}
},
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration?id=' + d.eventId, {
// 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 = "西充县城乡居民社会养老保险参保登记表.pdf";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// })
// .catch(err => {
// console.log(err);
// });
},
current_change
(
s
)
{
var
data
=
{
"pageNum"
:
s
,
"pageSize"
:
10
}
Loading
.
service
();
this
.
$api
.
getlist
.
selexxbgdc
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
data
.
result
this
.
totals
=
res
.
data
.
totalSize
}
}).
catch
((
res
)
=>
{
});
},
toexcel
()
{
axios
.
get
(
baseUrl
+
'/exportExcel/updateBaseInfo'
,
{
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
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
// 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
.
selexxbgdc
(
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
>
xichongSys/src/views/Myvue/dryhkbg.vue
0 → 100644
View file @
bfa423bb
<
template
>
<div>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"idcard"
label=
"身份证号码"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"bankAccount"
label=
"银行账号"
min-width=
"20%"
>
</el-table-column>
<el-table-column
prop=
"bank"
label=
"所属银行"
min-width=
"20%"
>
</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
:
[]
}
},
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration?id=' + d.eventId, {
// 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 = "西充县城乡居民社会养老保险参保登记表.pdf";
// a.click();
// // let objectUrl = URL.createObjectURL(blob); //生成一个url
// // window.location.href = objectUrl; //浏览器打开这个url
// })
// .catch(err => {
// console.log(err);
// });
},
current_change
(
s
)
{
var
data
=
{
"pageNum"
:
s
,
"pageSize"
:
10
}
Loading
.
service
();
this
.
$api
.
getlist
.
seleyhkbgdc
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
data
.
result
this
.
totals
=
res
.
data
.
totalSize
}
}).
catch
((
res
)
=>
{
});
},
toexcel
()
{
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
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
// 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
.
seleyhkbgdc
(
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
>
xichongSys/src/views/Myvue/receivePersonnel.vue
0 → 100644
View file @
bfa423bb
<
template
>
<div>
<div
class=
"op"
>
<div
class=
"nam"
>
<el-input
v-model=
"name"
size=
"mini"
placeholder=
"请输入姓名"
></el-input>
</div>
<div
class=
"idc"
>
<el-input
v-model=
"idcard"
size=
"mini"
placeholder=
"请输入身份证号"
></el-input>
</div>
<div
class=
"ywtyoe"
>
<el-select
v-model=
"ywtype"
placeholder=
"请选择业务类型"
size=
"mini"
>
<el-option
v-for=
"item in options1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<div>
<!--
<el-cascader
size=
"mini"
:options=
"list"
:props=
"
{ checkStrictly: true }"
clearable>
</el-cascader>
-->
</div>
<el-button
type=
"primary"
size=
"mini"
style=
"background:#148A9B;margin-left:10px"
icon=
"el-icon-search"
@
click=
"serch"
>
搜索
</el-button>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
stripe
:row-class-name=
"tableRowClassName"
>
<el-table-column
prop=
"idcard"
label=
"身份证号"
width=
"180"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"recordtype"
width=
"150"
label=
"业务类型"
>
</el-table-column>
<el-table-column
prop=
"createtime"
width=
"200"
label=
"创建时间"
>
</el-table-column>
<el-table-column
prop=
"townname"
width=
"150"
label=
"镇"
>
</el-table-column>
<el-table-column
prop=
"villagename"
label=
"村"
>
</el-table-column>
<el-table-column
prop=
"nowExamine"
label=
"当前状态"
>
</el-table-column>
<el-table-column
width=
"180"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-s-check"
@
click=
"handle(scope.$index, scope.row)"
>
查看
</el-button>
<el-popover
placement=
"right"
width=
"180"
trigger=
"click"
>
<el-timeline>
<el-timeline-item
v-for=
"(activity, index) in activities"
:key=
"index"
:icon=
"activity.icon"
:type=
"activity.type"
:color=
"activity.color"
:size=
"activity.size"
:timestamp=
"activity.timestamp"
:timestamp2=
"123"
>
{{
activity
.
content
}}
<p
style=
"font-size:13px;color:#909399"
v-show=
"activity.timestamp"
>
审核人:
{{
activity
.
name
}}
</p>
<p
style=
"font-size:13px;color:#909399"
v-show=
"activity.examineRemark"
>
原因:
{{
activity
.
examineRemark
}}
</p>
</el-timeline-item>
</el-timeline>
<el-button
@
click=
"progress(scope.$index, scope.row)"
size=
"mini"
slot=
"reference"
type=
"success"
>
流程
</el-button>
</el-popover>
</
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>
</div>
</template>
<
style
>
.op
{
display
:
flex
;
align-items
:
center
;
}
.idc
{
width
:
200px
}
.nam
{
margin-right
:
20px
}
.ywtyoe
{
width
:
200px
;
margin-left
:
20px
}
.el-table
.warning-row
{
background
:
oldlace
;
}
.el-table
.success-row
{
background
:
#f0f9eb
;
}
.pone
{
margin-top
:
40px
}
.el-timeline
{
padding-left
:
20px
}
</
style
>
<
script
>
import
CryptoJS
from
'crypto-js'
import
{
Loading
}
from
'element-ui'
;
import
{
listtown
}
from
'../../utils/address'
// import baseUrl from "../../globe/globeUrl"
export
default
{
data
()
{
return
{
list
:
[],
name
:
""
,
activities
:
[],
options1
:
[{
value
:
'1'
,
label
:
'参保登记'
},
{
value
:
'2'
,
label
:
'信息变更'
},
{
value
:
'3'
,
label
:
'待遇申请'
}],
PageNum
:
1
,
totals
:
0
,
idcard
:
""
,
ywtype
:
""
,
info
:
''
,
tableData
:
[]
}
},
methods
:
{
//搜索
serch
()
{
var
data
=
{
idcard
:
this
.
idcard
?
this
.
Encrypt
(
this
.
idcard
)
:
""
,
recordType
:
this
.
ywtype
?
parseInt
(
this
.
ywtype
)
:
""
,
townName
:
''
,
villageName
:
''
}
this
.
$api
.
getlist
.
record
(
data
).
then
((
res
)
=>
{
for
(
var
i
in
res
.
data
.
list
)
{
res
.
data
.
list
[
i
].
idcard
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
idcard
)
res
.
data
.
list
[
i
].
name
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
name
)
var
d
=
new
Date
(
res
.
data
.
list
[
i
].
createtime
)
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
res
.
data
.
list
[
i
].
createtime
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
+
" "
+
d
.
getHours
()
+
':'
+
d
.
getMinutes
()
+
':'
+
d
.
getSeconds
();
res
.
data
.
list
[
i
].
recordtype
=
res
.
data
.
list
[
i
].
recordtype
==
1
?
"参保登记"
:
res
.
data
.
list
[
i
].
recordtype
==
2
?
"信息变更"
:
''
}
this
.
tableData
=
res
.
data
.
list
this
.
totals
=
res
.
data
.
total
this
.
page
=
res
.
data
.
total
.
pageNum
}).
catch
((
res
)
=>
{
});
},
//流程
progress
(
d
,
s
)
{
console
.
log
(
s
)
this
.
activities
=
[]
var
data
=
{
recordId
:
s
.
id
,
type
:
s
.
recordtype
==
"参保登记"
?
1
:
s
.
recordtype
==
"信息变更"
?
2
:
''
}
this
.
$api
.
getlist
.
progress
(
data
).
then
((
res
)
=>
{
for
(
var
i
in
res
.
data
)
{
if
(
res
.
data
[
i
].
examineState
==
"进行中"
)
{
this
.
activities
.
push
({
content
:
res
.
data
[
i
].
role
,
//timestamp:res.data[i].examinePerson+"审核于"+res.data[i].examineTime,
color
:
'#0bbd87'
,
size
:
'large'
})
}
else
{
if
(
res
.
data
[
i
].
examineState
==
"审核失败"
)
{
this
.
activities
.
push
({
content
:
res
.
data
[
i
].
role
+
":"
+
"审核失败"
,
timestamp
:
res
.
data
[
i
].
examinePerson
?
res
.
data
[
i
].
examineTime
:
""
,
name
:
res
.
data
[
i
].
examinePerson
?
res
.
data
[
i
].
examinePerson
:
""
,
examineRemark
:
res
.
data
[
i
].
examineRemark
?
res
.
data
[
i
].
examineRemark
:
''
,
color
:
'black'
})
return
}
else
{
this
.
activities
.
push
({
content
:
res
.
data
[
i
].
role
,
timestamp
:
res
.
data
[
i
].
examinePerson
?
res
.
data
[
i
].
examineTime
:
""
,
name
:
res
.
data
[
i
].
examinePerson
?
res
.
data
[
i
].
examinePerson
:
""
,
examineRemark
:
res
.
data
[
i
].
examineRemark
?
res
.
data
[
i
].
examineRemark
:
''
,
color
:
res
.
data
[
i
].
nowNode
?
"#97E5CE"
:
"lightgray"
})
}
}
}
}).
catch
((
res
)
=>
{
})
},
tableRowClassName
({
row
,
rowIndex
})
{
// console.log(row)
// if (row.recordtype ==="参保登记") {
// return 'warning-row';
// } else if (row.recordtype === "信息变更") {
// return 'success-row';
// }
// return '';
},
current_change
(
ss
)
{
var
data
=
{
pageNum
:
ss
,
pageSize
:
10
,
idcard
:
this
.
idcard
,
type
:
this
.
ywtype
}
Loading
.
service
();
this
.
$api
.
getlist
.
record
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
for
(
var
i
in
res
.
data
.
list
)
{
res
.
data
.
list
[
i
].
idcard
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
idcard
)
res
.
data
.
list
[
i
].
name
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
name
)
var
d
=
new
Date
(
res
.
data
.
list
[
i
].
createtime
)
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
res
.
data
.
list
[
i
].
createtime
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
+
" "
+
d
.
getHours
()
+
':'
+
d
.
getMinutes
()
+
':'
+
d
.
getSeconds
();
res
.
data
.
list
[
i
].
recordtype
=
res
.
data
.
list
[
i
].
recordtype
==
1
?
"参保登记"
:
res
.
data
.
list
[
i
].
recordtype
==
2
?
"信息变更"
:
''
}
this
.
tableData
=
res
.
data
.
list
this
.
totals
=
res
.
data
.
total
this
.
page
=
res
.
data
.
total
.
pageNum
}).
catch
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
});
},
//查看
handle
(
s
,
d
)
{
if
(
d
.
recordtype
==
"参保登记"
)
{
sessionStorage
.
setItem
(
"recordId"
,
this
.
tableData
[
s
].
recordId
)
this
.
$router
.
push
({
name
:
"参保登记审核"
,
params
:
{
info
:
this
.
tableData
[
s
].
info
,
bankpic
:
this
.
tableData
[
s
].
bankpic
,
idcardbackpic
:
this
.
tableData
[
s
].
idcardbackpic
,
idcardfrontpic
:
this
.
tableData
[
s
].
idcardfrontpic
,
signpic
:
this
.
tableData
[
s
].
signpic
,
show
:
false
}
})
}
else
if
(
d
.
recordtype
==
"信息变更"
)
{
sessionStorage
.
setItem
(
"recordId"
,
this
.
tableData
[
s
].
recordId
)
this
.
$router
.
push
({
name
:
"信息变更审核"
,
params
:
{
info
:
this
.
tableData
[
s
].
info
,
bankpic
:
this
.
tableData
[
s
].
bankpic
,
idcardbackpic
:
this
.
tableData
[
s
].
idcardbackpic
,
idcardfrontpic
:
this
.
tableData
[
s
].
idcardfrontpic
,
signpic
:
this
.
tableData
[
s
].
signpic
,
specialPhotoPic
:
this
.
tableData
[
s
].
specialPhotoPic
,
bookPic
:
this
.
tableData
[
s
].
bookPic
,
show
:
false
}
})
}
},
handleDelete
(
g
,
h
)
{
console
.
log
(
g
)
console
.
log
(
h
)
},
Encrypt
(
word
)
{
//aes加密
var
key
=
CryptoJS
.
enc
.
Utf8
.
parse
(
"KkweInfo23255625"
);
let
srcs
=
CryptoJS
.
enc
.
Utf8
.
parse
(
word
);
let
encrypted
=
CryptoJS
.
AES
.
encrypt
(
srcs
,
key
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
});
return
encrypted
.
toString
();
},
decrypt
(
word
)
{
var
key
=
CryptoJS
.
enc
.
Utf8
.
parse
(
"KkweInfo23255625"
);
var
decrypt
=
CryptoJS
.
AES
.
decrypt
(
word
,
key
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
});
return
CryptoJS
.
enc
.
Utf8
.
stringify
(
decrypt
).
toString
();
},
decryptByDES
(
ciphertext
)
{
var
keyHex
=
CryptoJS
.
enc
.
Utf8
.
parse
(
"KkweFace95271124"
);
var
decrypted
=
CryptoJS
.
DES
.
decrypt
({
ciphertext
:
CryptoJS
.
enc
.
Base64
.
parse
(
ciphertext
)
},
keyHex
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
});
return
decrypted
.
toString
(
CryptoJS
.
enc
.
Utf8
);
}
},
created
()
{
for
(
var
i
in
listtown
)
{
this
.
list
.
push
({
value
:
listtown
[
i
].
town_name
,
label
:
listtown
[
i
].
town_name
,
children
:
[]
})
for
(
var
j
in
listtown
[
i
].
chirld
)
{
this
.
list
[
i
].
children
.
push
({
value
:
listtown
[
i
].
chirld
[
j
].
village_name
,
label
:
listtown
[
i
].
chirld
[
j
].
village_name
})
}
}
console
.
log
(
this
.
list
)
Loading
.
service
();
var
data
=
{
idcard
:
''
,
recordType
:
'3'
}
this
.
$api
.
getlist
.
record
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
for
(
var
i
in
res
.
data
.
list
)
{
res
.
data
.
list
[
i
].
idcard
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
idcard
)
res
.
data
.
list
[
i
].
name
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
name
)
var
d
=
new
Date
(
res
.
data
.
list
[
i
].
createtime
)
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
res
.
data
.
list
[
i
].
createtime
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
+
" "
+
d
.
getHours
()
+
':'
+
d
.
getMinutes
()
+
':'
+
d
.
getSeconds
();
res
.
data
.
list
[
i
].
recordtype
=
res
.
data
.
list
[
i
].
recordtype
==
1
?
"参保登记"
:
res
.
data
.
list
[
i
].
recordtype
==
2
?
"信息变更"
:
''
}
this
.
tableData
=
res
.
data
.
list
this
.
totals
=
res
.
data
.
total
this
.
page
=
res
.
data
.
total
.
pageNum
}).
catch
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
});
// var that=this
// baseUrl.setToken()
// $.ajax({
// url:baseUrl.baseUrl+"examine/listExamining",
// type:'post',
// data:{
// userId:1
// },
// success(res){
// for(var i in res.data.list){
// res.data.list[i].idcard=that.decrypt(res.data.list[i].idcard)
// res.data.list[i].name=that.decrypt(res.data.list[i].name)
// res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":""
// }
// that.tableData=res.data.list
// that.totals=res.data.total
// that.page=res.data.total.pageNum
// }
// })
}
}
</
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