Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
new-zhengjiang
zj-manage
Commits
892296bb
Commit
892296bb
authored
Jan 11, 2024
by
swl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: gx
parent
36c685e4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
204 additions
and
110 deletions
+204
-110
.DS_Store
.DS_Store
+0
-0
house.vue
src/views/Policy/house.vue
+14
-9
housemain.vue
src/views/Policy/housemain.vue
+1
-6
index.vue
src/views/Policy/index.vue
+188
-89
talentwindow.vue
src/views/Policy/talentwindow.vue
+1
-6
No files found.
.DS_Store
View file @
892296bb
No preview for this file type
src/views/Policy/house.vue
View file @
892296bb
...
...
@@ -58,20 +58,20 @@
</el-table-column>
<el-table-column
width=
"120"
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
type=
"warning"
v-if=
"scope.row.housingState === 0 && scope.row.state !== 8"
>
待审核
</el-tag
<el-tag
type=
"warning"
v-if=
"scope.row.state === 0"
>
待审核
</el-tag>
<el-tag
type=
"success"
v-if=
"scope.row.state === 8"
>
审核通过
</el-tag
>
<el-tag
<el-tag
type=
"danger"
v-if=
"scope.row.state === 9"
>
已驳回
</el-tag>
<!--
<el-tag
type=
"warning"
v-if=
"scope.row.housingState === 0 && scope.row.state === 8"
>
待复审
</el-tag
>
<el-tag
type=
"success"
v-if=
"scope.row.housingState === 1"
>
初审通过
</el-tag
>
<el-tag
type=
"warning"
v-if=
"scope.row.housingState === 2"
>
-->
<
!--
<
el-tag
type=
"warning"
v-if=
"scope.row.housingState === 2"
>
待终审
</el-tag
>
<el-tag
type=
"success"
v-if=
"scope.row.housingState === 3"
...
...
@@ -88,7 +88,7 @@
>
<el-tag
type=
"success"
v-if=
"scope.row.housingState === 7"
>
发放补贴
</el-tag
>
>
-->
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"380"
align=
"left"
>
...
...
@@ -107,7 +107,12 @@
type=
"danger"
size=
"mini"
round
v-if=
"scope.row.state === 8 || scope.row.state === 9"
v-if=
"
(scope.row.housingState === 4 && scope.row.state === 9) ||
((scope.row.housingState === 0 ||
scope.row.housingState === 1) &&
(scope.row.state === 8 || scope.row.state === 9))
"
@
click=
"revocationHandle(scope.row)"
>
撤回
</el-button
>
...
...
src/views/Policy/housemain.vue
View file @
892296bb
...
...
@@ -87,12 +87,7 @@
type=
"danger"
size=
"mini"
round
v-if=
"
scope.row.state === 6 ||
scope.row.state === 2 ||
scope.row.state === 3 ||
scope.row.state === 4
"
v-if=
"scope.row.state === 6 || scope.row.state === 4"
@
click=
"revocationHandle(scope.row)"
>
撤回
</el-button
>
...
...
src/views/Policy/index.vue
View file @
892296bb
<
template
>
<div
class=
"policy"
>
<div
class=
"search-wrapper"
>
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"search_form"
style=
"text-align: left"
>
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"search_form"
style=
"text-align: left"
>
<el-form-item
label=
"姓名"
>
<el-input
v-model=
"searchForm.name"
placeholder=
"请输入姓名"
@
keyup
.
enter
.
native=
"onSubmit"
></el-input>
<el-input
v-model=
"searchForm.name"
placeholder=
"请输入姓名"
@
keyup
.
enter
.
native=
"onSubmit"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号码"
>
<el-input
v-model=
"searchForm.phone"
placeholder=
"请输入手机号码"
@
keyup
.
enter
.
native=
"onSubmit"
>
<el-input
v-model=
"searchForm.phone"
placeholder=
"请输入手机号码"
@
keyup
.
enter
.
native=
"onSubmit"
>
</el-input>
</el-form-item>
<el-form-item>
...
...
@@ -15,48 +28,108 @@
<br
/>
<el-form-item
label=
"状态"
style=
"margin-top: 10px"
>
<el-radio-group
v-model=
"searchForm.state"
@
change=
"onSubmit"
>
<el-radio
:label=
"item.state"
v-for=
"item in stateList"
:key=
"item.state"
>
{{
item
.
stateName
}}
<el-radio
:label=
"item.state"
v-for=
"item in stateList"
:key=
"item.state"
>
{{
item
.
stateName
}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
</div>
<div
class=
"table-wrapper"
>
<table-template
:tableData=
"tableData"
:tableColumns=
"tableColumns"
:loading=
"loading"
:pagination=
"pagination"
@
Jump=
"jumpPage"
>
<el-table-column
width=
"120"
key=
"stateName"
prop=
"stateName"
label=
"状态"
align=
"center"
>
<table-template
:tableData=
"tableData"
:tableColumns=
"tableColumns"
:loading=
"loading"
:pagination=
"pagination"
@
Jump=
"jumpPage"
>
<el-table-column
width=
"120"
key=
"stateName"
prop=
"stateName"
label=
"状态"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-tag
:type=
"scope.row.type"
>
{{
scope
.
row
.
stateName
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"380"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"view(scope.row)"
>
查看
</el-button>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"record(scope.row)"
>
记录
</el-button>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"view(scope.row)"
>
查看
</el-button
>
<el-button
type=
"primary"
size=
"mini"
round
@
click=
"record(scope.row)"
>
记录
</el-button
>
<!-- 申请的单子有通过拒绝-->
<el-button
v-if=
"scope.row.state === 0 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
初审
</el-button>
<el-button
v-else-if=
"scope.row.state === 1 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
复审
</el-button>
<el-button
v-else-if=
"scope.row.state === 2 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
办结
</el-button>
<el-button
v-if=
"
<el-button
v-if=
"scope.row.state === 0 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
初审
</el-button
>
<el-button
v-else-if=
"scope.row.state === 1 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
复审
</el-button
>
<el-button
v-else-if=
"scope.row.state === 2 && $route.query.areaCode"
type=
"success"
size=
"mini"
round
@
click=
"pass(scope.row)"
>
办结
</el-button
>
<el-button
v-if=
"
(scope.row.state === 0 && $route.query.areaCode) ||
(scope.row.state === 1 && $route.query.areaCode) ||
(scope.row.state === 2 && $route.query.areaCode)
"
type=
"danger"
size=
"mini"
round
@
click=
"deny(scope.row)"
>
拒绝
</el-button>
<el-button
v-if=
"
"
type=
"danger"
size=
"mini"
round
@
click=
"deny(scope.row)"
>
拒绝
</el-button
>
<el-button
v-if=
"
(scope.row.state === 1 && $route.query.areaCode) ||
(scope.row.state === 2 && $route.query.areaCode)
"
type=
"info"
size=
"mini"
round
@
click=
"print(scope.row.talentCode, scope.row)"
>
打印
</el-button>
"
type=
"info"
size=
"mini"
round
@
click=
"print(scope.row.talentCode, scope.row)"
>
打印
</el-button
>
</
template
>
</el-table-column>
</table-template>
</div>
<el-dialog
title=
"申报详情"
:visible
.
sync=
"viewShow"
width=
"800px"
:close-on-press-escape=
"false"
>
<el-dialog
title=
"申报详情"
:visible
.
sync=
"viewShow"
width=
"800px"
:close-on-press-escape=
"false"
>
<div
class=
"content"
>
<div
class=
"cell"
>
<p
class=
"label"
>
事项名称
</p>
...
...
@@ -81,8 +154,12 @@
<div
class=
"cell"
>
<p
class=
"label"
>
父母惠老关怀申请表
</p>
<p
class=
"value"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"viewDetail.registration"
:z-index=
"7777777"
:preview-src-list=
"[viewDetail.registration]"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"viewDetail.registration"
:z-index=
"7777777"
:preview-src-list=
"[viewDetail.registration]"
>
</el-image>
</p>
</div>
...
...
@@ -147,8 +224,11 @@
</div>
</div>
<div
v-if=
"viewDetail.matterType === 4"
>
<div
class=
"my-2 border border-t-2 border-black"
v-for=
"(el, index) in viewDetail.parentList"
:key=
"index"
>
<div
class=
"border border-black border-t-2 my-2"
v-for=
"(el, index) in viewDetail.parentList"
:key=
"index"
>
<div
class=
"cell1"
>
<p
class=
"label"
>
父母姓名
</p>
<p
class=
"value"
>
{{ el.parentName }}
</p>
...
...
@@ -200,16 +280,24 @@
<div
class=
"cell"
>
<p
class=
"label"
>
身份证照片正面
</p>
<p
class=
"value"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"el.idCardPicture"
:z-index=
"7777777"
:preview-src-list=
"[el.idCardPicture]"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"el.idCardPicture"
:z-index=
"7777777"
:preview-src-list=
"[el.idCardPicture]"
>
</el-image>
</p>
</div>
<div
class=
"cell2"
>
<p
class=
"label"
>
身份证照片反面
</p>
<p
class=
"value"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"el.idCardThePicture"
:z-index=
"7777777"
:preview-src-list=
"[el.idCardThePicture]"
>
<el-image
style=
"width: 100px; height: 100px"
:src=
"el.idCardThePicture"
:z-index=
"7777777"
:preview-src-list=
"[el.idCardThePicture]"
>
</el-image>
</p>
</div>
...
...
@@ -224,18 +312,29 @@
>
</el-image>
</p> -->
<el-button
size=
"mini"
type=
"primary"
@
click=
"
<el-button
size=
"mini"
type=
"primary"
@
click=
"
download(
'http://81.69.44.115:9000/img/sportImg/5981d5fd-91dd-43d9-9ec4-6c59206142f7.docx'
)
"
class=
"down-text"
>
下载养老机构签订入驻协议
</el-button>
"
class=
"down-text"
>
下载养老机构签订入驻协议
</el-button
>
</div>
</div>
<!-- TODO -->
</div>
</div>
</el-dialog>
<el-dialog
title=
"操作记录"
:visible
.
sync=
"recordShow"
width=
"800px"
:close-on-press-escape=
"false"
>
<el-dialog
title=
"操作记录"
:visible
.
sync=
"recordShow"
width=
"800px"
:close-on-press-escape=
"false"
>
<div
class=
"content"
>
<div
class=
"cell"
v-for=
"item in recordList"
:key=
"item.createTime"
>
<p
class=
"label"
style=
"margin-right: 20px"
>
...
...
@@ -262,7 +361,7 @@ import {
mattersUpdateState
,
mattersGet
,
mattersGetReason
,
mattersParentList
mattersParentList
,
}
from
"@/api/policy"
;
import
docxtemplater
from
"docxtemplater"
;
import
PizZip
from
"pizzip"
;
...
...
@@ -278,44 +377,44 @@ export default {
name
:
""
,
phone
:
""
,
state
:
""
,
departmentCode
:
""
departmentCode
:
""
,
},
stateList
:
[
{
state
:
""
,
stateName
:
"全部"
,
type
:
""
type
:
""
,
},
{
state
:
0
,
stateName
:
"待审核"
,
type
:
"warning"
type
:
"warning"
,
},
{
state
:
1
,
stateName
:
"待复审"
,
type
:
"warning"
type
:
"warning"
,
},
{
state
:
2
,
stateName
:
"待终审"
,
type
:
"warning"
type
:
"warning"
,
},
{
state
:
3
,
stateName
:
"已完结"
,
type
:
"success"
type
:
"success"
,
},
{
state
:
4
,
stateName
:
"审核拒绝"
,
type
:
"danger"
type
:
"danger"
,
},
{
state
:
5
,
stateName
:
"已撤销"
,
type
:
"info"
}
type
:
"info"
,
},
],
loading
:
false
,
tableData
:
[],
...
...
@@ -323,38 +422,38 @@ export default {
{
key
:
"code"
,
label
:
"申请编号"
,
width
:
200
width
:
200
,
},
{
key
:
"name"
,
label
:
"姓名"
,
width
:
150
width
:
150
,
},
{
key
:
"phone"
,
label
:
"手机号"
,
width
:
150
width
:
150
,
},
{
key
:
"guideName"
,
label
:
"事项名称"
,
width
:
200
width
:
200
,
},
{
key
:
"departmentName"
,
label
:
"实施主体"
,
width
:
200
width
:
200
,
},
{
key
:
"createTime"
,
label
:
"更新时间"
,
width
:
180
}
width
:
180
,
},
],
pagination
:
{
total
:
0
,
pageSize
:
10
,
currentPage
:
1
currentPage
:
1
,
},
viewShow
:
false
,
viewDetail
:
{},
...
...
@@ -363,20 +462,20 @@ export default {
gzdw
:
""
,
rclb
:
""
,
sfzh
:
""
,
dwmc
:
""
dwmc
:
""
,
};
},
watch
:
{
$route
()
{
if
(
this
.
$route
)
{
this
.
userName
=
localStorage
.
getItem
(
'userName'
);
this
.
userName
=
localStorage
.
getItem
(
"userName"
);
// this.searchForm.departmentCode = getQueryString("departmentCode") || "";
// 1114
this
.
searchForm
.
departmentCode
=
this
.
$route
.
query
.
departmentCode
;
this
.
searchForm
.
areaCode
=
this
.
$route
.
query
.
areaCode
;
this
.
init
();
}
}
},
},
methods
:
{
init
()
{
...
...
@@ -389,24 +488,24 @@ export default {
departmentCode
:
this
.
searchForm
.
departmentCode
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
areaCode
:
this
.
searchForm
.
areaCode
areaCode
:
this
.
searchForm
.
areaCode
,
};
mattersParentList
(
parmas
).
then
(
res
=>
{
mattersParentList
(
parmas
).
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
success
)
{
this
.
pagination
.
total
=
res
.
data
.
total
;
if
(
res
.
data
.
total
)
{
this
.
tableData
=
res
.
data
.
list
.
map
(
item
=>
{
this
.
tableData
=
res
.
data
.
list
.
map
((
item
)
=>
{
// console.log("item----", item);
item
.
stateName
=
this
.
getSatusArr
(
item
.
state
).
stateName
;
item
.
type
=
this
.
getSatusArr
(
item
.
state
).
type
;
return
item
;
});
if
(
localStorage
.
getItem
(
'userName'
)
==
'admin'
)
{
this
.
tableData
=
changeList
(
this
.
tableData
)
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
tableData
=
changeList
(
this
.
tableData
);
}
}
else
{
this
.
tableData
=
[]
this
.
tableData
=
[];
}
}
});
...
...
@@ -421,27 +520,27 @@ export default {
view
(
row
)
{
let
params
=
{
code
:
row
.
code
,
matterType
:
row
.
matterType
matterType
:
row
.
matterType
,
};
mattersGet
(
params
).
then
(
res
=>
{
get
({
appId
:
1234
,
talentCode
:
res
.
data
.
talentCode
}).
then
(
res
=>
{
mattersGet
(
params
).
then
((
res
)
=>
{
get
({
appId
:
1234
,
talentCode
:
res
.
data
.
talentCode
}).
then
((
res
)
=>
{
this
.
$set
(
this
.
viewDetail
,
"unitName"
,
res
.
data
.
unitName
);
this
.
$set
(
this
.
viewDetail
,
"category"
,
res
.
data
.
category
);
this
.
$set
(
this
.
viewDetail
,
"contentName"
,
res
.
data
.
contentName
);
});
this
.
viewDetail
=
res
.
data
;
if
(
localStorage
.
getItem
(
'userName'
)
==
'admin'
)
{
this
.
viewDetail
.
name
=
setName
(
this
.
viewDetail
.
name
)
this
.
viewDetail
.
phone
=
setTel
(
this
.
viewDetail
.
phone
)
this
.
viewDetail
.
idCard
=
setCertNo
(
this
.
viewDetail
.
idCard
)
if
(
localStorage
.
getItem
(
"userName"
)
==
"admin"
)
{
this
.
viewDetail
.
name
=
setName
(
this
.
viewDetail
.
name
);
this
.
viewDetail
.
phone
=
setTel
(
this
.
viewDetail
.
phone
);
this
.
viewDetail
.
idCard
=
setCertNo
(
this
.
viewDetail
.
idCard
);
}
this
.
viewShow
=
true
;
});
},
record
(
row
)
{
mattersGetReason
({
code
:
row
.
code
}).
then
(
res
=>
{
mattersGetReason
({
code
:
row
.
code
}).
then
((
res
)
=>
{
// console.log(res);
this
.
recordList
=
res
.
data
.
map
(
item
=>
{
this
.
recordList
=
res
.
data
.
map
((
item
)
=>
{
item
.
stateName
=
this
.
getSatusArr
(
item
.
state
)
?
this
.
getSatusArr
(
item
.
state
).
stateName
:
"未知状态"
;
...
...
@@ -454,10 +553,10 @@ export default {
print
(
talentCode
,
row
)
{
let
params
=
{
code
:
row
.
code
,
matterType
:
row
.
matterType
matterType
:
row
.
matterType
,
};
mattersGet
(
params
).
then
(
ret
=>
{
get
({
appId
:
1234
,
talentCode
:
ret
.
data
.
talentCode
}).
then
(
res
=>
{
mattersGet
(
params
).
then
((
ret
)
=>
{
get
({
appId
:
1234
,
talentCode
:
ret
.
data
.
talentCode
}).
then
((
res
)
=>
{
this
.
$set
(
this
.
viewDetail
,
"unitName"
,
res
.
data
.
unitName
);
this
.
$set
(
this
.
viewDetail
,
"category"
,
res
.
data
.
category
);
this
.
$set
(
this
.
viewDetail
,
"contentName"
,
res
.
data
.
contentName
);
...
...
@@ -620,7 +719,7 @@ export default {
// 设置模板变量的值
// console.log("模板变量值arr---", arr);
doc
.
setData
({
...
arr
// e中的数据可以再模板中直接使用
...
arr
,
// e中的数据可以再模板中直接使用
});
try
{
// 用模板变量的值替换所有模板变量
...
...
@@ -631,11 +730,11 @@ export default {
message
:
error
.
message
,
name
:
error
.
name
,
stack
:
error
.
stack
,
properties
:
error
.
properties
properties
:
error
.
properties
,
};
console
.
log
(
JSON
.
stringify
({
error
:
e
error
:
e
,
})
);
throw
error
;
...
...
@@ -644,7 +743,7 @@ export default {
let
out
=
doc
.
getZip
().
generate
({
type
:
"blob"
,
mimeType
:
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
,
});
// 将目标文件对象保存为目标类型的文件,并命名
saveAs
(
out
,
docxname
);
...
...
@@ -658,13 +757,13 @@ export default {
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputPlaceholder
:
"请输入原因"
,
type
:
"warning"
type
:
"warning"
,
})
.
then
(()
=>
{
let
params
=
{
code
:
row
.
code
,
name
:
this
.
userName
,
state
:
row
.
state
+
1
state
:
row
.
state
+
1
,
};
mattersUpdateState
(
params
).
then
(()
=>
{
this
.
$message
.
success
(
`
${
str
}
通过`
);
...
...
@@ -682,16 +781,16 @@ export default {
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputPlaceholder
:
"请输入原因"
,
inputType
:
"textarea"
inputType
:
"textarea"
,
})
.
then
(({
value
})
=>
{
let
params
=
{
code
:
row
.
code
,
name
:
this
.
userName
,
state
:
4
,
reason
:
value
reason
:
value
,
};
mattersUpdateState
(
params
).
then
(
res
=>
{
mattersUpdateState
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
$message
.
success
(
`
${
str
}
驳回成功`
);
this
.
init
();
...
...
@@ -702,31 +801,31 @@ export default {
});
},
getSatusArr
(
state
)
{
return
this
.
stateList
.
filter
(
item
=>
{
return
this
.
stateList
.
filter
((
item
)
=>
{
return
item
.
state
===
state
;
})[
0
];
},
//下载养老机构签订入驻协议
download
(
url
)
{
// console.log("url--", url);
window
.
location
.
href
=
url
window
.
location
.
href
=
url
;
},
},
created
()
{
this
.
userName
=
localStorage
.
getItem
(
'userName'
);
this
.
userName
=
localStorage
.
getItem
(
"userName"
);
// this.searchForm.departmentCode = getQueryString("departmentCode") || "";
// 1114
this
.
searchForm
.
departmentCode
=
this
.
$route
.
query
.
departmentCode
;
this
.
searchForm
.
areaCode
=
this
.
$route
.
query
.
areaCode
;
this
.
init
();
}
},
};
</
script
>
<
style
lang=
"stylus"
scoped
>
@import
'~@/stylus/common'
;
@import
'~@/stylus/common'
;
.content
{
.content
{
max-height
:
60vh
;
overflow-y
:
auto
;
...
...
@@ -799,5 +898,5 @@ export default {
text-align
:
left
;
}
}
}
}
</
style
>
src/views/Policy/talentwindow.vue
View file @
892296bb
...
...
@@ -83,12 +83,7 @@
type=
"danger"
size=
"mini"
round
v-if=
"
scope.row.state === 6 ||
scope.row.state === 2 ||
scope.row.state === 3 ||
scope.row.state === 4
"
v-if=
"scope.row.state === 2 || scope.row.state === 4"
@
click=
"revocationHandle(scope.row)"
>
撤回
</el-button
>
...
...
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