|
|
|
|
@ -3,6 +3,10 @@
|
|
|
|
|
<!-- <el-button type="primary" @click="$refs.flow.addNode('测试节点')">添加节点</el-button>
|
|
|
|
|
<el-button type="primary" @click="handleNext">下一个节点</el-button>
|
|
|
|
|
<br /><br /> -->
|
|
|
|
|
<div class="curvedarrow-upleft curvedarrow"></div>
|
|
|
|
|
<div class="curvedarrow-upright curvedarrow"></div>
|
|
|
|
|
<div class="curvedarrow-bottomleft curvedarrow"></div>
|
|
|
|
|
<div class="curvedarrow-bottomright curvedarrow"></div>
|
|
|
|
|
<avue-flow :height="mapHeight" width="100%" ref="flow" :option="option" v-model="form">
|
|
|
|
|
<template slot-scope="scope" slot="header">
|
|
|
|
|
<!-- <i class="el-icon-delete" @click="$refs.flow.deleteNode(scope.node.id)"></i> -->
|
|
|
|
|
@ -15,13 +19,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
show
|
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
|
import {
|
|
|
|
|
getSsttIndex
|
|
|
|
|
} from "@/api/sstt"
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
show
|
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
|
import {
|
|
|
|
|
getSsttIndex
|
|
|
|
|
} from "@/api/sstt"
|
|
|
|
|
import {
|
|
|
|
|
Message
|
|
|
|
|
} from 'element-ui'
|
|
|
|
|
@ -30,23 +34,23 @@
|
|
|
|
|
return {
|
|
|
|
|
count: 0,
|
|
|
|
|
form: '',
|
|
|
|
|
mapHeight: 0,
|
|
|
|
|
idcard:'',
|
|
|
|
|
mapHeight: 0,
|
|
|
|
|
idcard: '',
|
|
|
|
|
option: {
|
|
|
|
|
"name": "视图",
|
|
|
|
|
"nodeList": [{
|
|
|
|
|
"id": "all",
|
|
|
|
|
"name": "人员",
|
|
|
|
|
"left": 550,
|
|
|
|
|
"top": 320,
|
|
|
|
|
"content":''
|
|
|
|
|
"top": 320,
|
|
|
|
|
"content": ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "person",
|
|
|
|
|
"name": "个人信息",
|
|
|
|
|
"left": 200,
|
|
|
|
|
"top": 80,
|
|
|
|
|
"content":''
|
|
|
|
|
"top": 80,
|
|
|
|
|
"content": ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "business",
|
|
|
|
|
@ -58,34 +62,34 @@
|
|
|
|
|
"id": "view",
|
|
|
|
|
"name": "访视信息",
|
|
|
|
|
"left": 900,
|
|
|
|
|
"top": 480,
|
|
|
|
|
"content":''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "raises",
|
|
|
|
|
"name": "居家照护",
|
|
|
|
|
"left": 200,
|
|
|
|
|
"top": 480,
|
|
|
|
|
"content":''
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"lineList": [{
|
|
|
|
|
"from": "all",
|
|
|
|
|
"to": "person"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"from": "all",
|
|
|
|
|
"to": "business"
|
|
|
|
|
"top": 480,
|
|
|
|
|
"content": ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"from": "all",
|
|
|
|
|
"to": "view"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"from": "all",
|
|
|
|
|
"to": "raises"
|
|
|
|
|
"id": "raises",
|
|
|
|
|
"name": "居家照护",
|
|
|
|
|
"left": 200,
|
|
|
|
|
"top": 480,
|
|
|
|
|
"content": ''
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
// "lineList": [{
|
|
|
|
|
// "from": "all",
|
|
|
|
|
// "to": "person"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "from": "all",
|
|
|
|
|
// "to": "business"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "from": "all",
|
|
|
|
|
// "to": "view"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "from": "all",
|
|
|
|
|
// "to": "raises"
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -99,74 +103,76 @@
|
|
|
|
|
let winHeight = document.body.clientHeight
|
|
|
|
|
this.mapHeight = winHeight - 50 - 20
|
|
|
|
|
console.log(winHeight)
|
|
|
|
|
},
|
|
|
|
|
getPerson(){
|
|
|
|
|
if (this.$route.query?.id) {
|
|
|
|
|
let id = this.$route.query.id
|
|
|
|
|
this.showPersonInfo(id)
|
|
|
|
|
}else{
|
|
|
|
|
Message({
|
|
|
|
|
type:'warning',
|
|
|
|
|
message:'请先选择人员档案'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async showPersonInfo(id){
|
|
|
|
|
const res = await show({
|
|
|
|
|
id: id,
|
|
|
|
|
table_name: 'records'
|
|
|
|
|
})
|
|
|
|
|
let names = `<div class="persons">${res.name}</div>`
|
|
|
|
|
let contents = `<p>姓名:${res.name}</p><p>性别:${res.sex}</p><p>残疾类别:${res.disabilitytype}</p><p>残疾等级:${res?.disabilitylevel}</p><p>现居住地:${res.reside}</p>`
|
|
|
|
|
let views = ''
|
|
|
|
|
let workflows = ''
|
|
|
|
|
this.idcard = res.idcard
|
|
|
|
|
if(res.idcard_viewrecords_idcard_relation.length>0){
|
|
|
|
|
for(var k of res.idcard_viewrecords_idcard_relation){
|
|
|
|
|
if(k.checkstatus=='通过'){
|
|
|
|
|
views+=`<p>${k.viewtime?.substring(0,10)}/${k.viewscene}<p>`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(res.idcard_workflows_idcard_relation.length>0){
|
|
|
|
|
for(var k of res.idcard_workflows_idcard_relation){
|
|
|
|
|
|
|
|
|
|
if(k.work_status=='通过'){
|
|
|
|
|
// 辅具适配
|
|
|
|
|
if(k.guanlianbiao=='assists'){
|
|
|
|
|
workflows+=`<p>${k.created_at?.substring(0,10)}/${k.guanlianbiaoming}<p>`
|
|
|
|
|
workflows+=`<p>管理年限:${k.detail.guanlinianxian}<p>`
|
|
|
|
|
workflows+=`<p>辅具类别:${k.detail.sub_type}<p>`
|
|
|
|
|
workflows+=`<p>可申请补贴金额:${k.detail.apply_money}<p>`
|
|
|
|
|
workflows+=`<p>已申请补贴金额:${k.detail.get_money}<p>`
|
|
|
|
|
workflows+=`<p>结余金额:${k.detail.surplus_money}<p>`
|
|
|
|
|
}else{
|
|
|
|
|
workflows+=`<p>${k.created_at?.substring(0,10)}/${k.guanlianbiaoming}<p>`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.option['nodeList'][0]['content'] = names
|
|
|
|
|
this.option['nodeList'][1]['content'] = contents
|
|
|
|
|
this.option['nodeList'][2]['content'] = workflows
|
|
|
|
|
this.option['nodeList'][3]['content'] = views
|
|
|
|
|
this.getSstt()
|
|
|
|
|
},
|
|
|
|
|
getSstt(){
|
|
|
|
|
getSsttIndex({
|
|
|
|
|
idcard:this.idcard,
|
|
|
|
|
start_date:'2020-01-01',
|
|
|
|
|
page:1
|
|
|
|
|
}).then(res=>{
|
|
|
|
|
let raises = ''
|
|
|
|
|
for(var k of res){
|
|
|
|
|
raises+=`<p>${k.start_time?.substring(0,10)}/${k.status_text}<p>`
|
|
|
|
|
}
|
|
|
|
|
this.option['nodeList'][4]['content'] = raises
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getPerson() {
|
|
|
|
|
if (this.$route.query?.id) {
|
|
|
|
|
let id = this.$route.query.id
|
|
|
|
|
this.showPersonInfo(id)
|
|
|
|
|
} else {
|
|
|
|
|
Message({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: '请先选择人员档案'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async showPersonInfo(id) {
|
|
|
|
|
const res = await show({
|
|
|
|
|
id: id,
|
|
|
|
|
table_name: 'records'
|
|
|
|
|
})
|
|
|
|
|
let names = `<div class="persons">${res.name}</div>`
|
|
|
|
|
let contents =
|
|
|
|
|
`<p>姓名:${res.name}</p><p>性别:${res.sex}</p><p>残疾类别:${res.disabilitytype}</p><p>残疾等级:${res?.disabilitylevel}</p><p>现居住地:${res.reside}</p>`
|
|
|
|
|
let views = ''
|
|
|
|
|
let workflows = ''
|
|
|
|
|
this.idcard = res.idcard
|
|
|
|
|
if (res.idcard_viewrecords_idcard_relation.length > 0) {
|
|
|
|
|
for (var k of res.idcard_viewrecords_idcard_relation) {
|
|
|
|
|
if (k.checkstatus == '通过') {
|
|
|
|
|
views += `<p>${k.viewtime?.substring(0,10)}/${k.viewscene}<p>`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (res.idcard_workflows_idcard_relation.length > 0) {
|
|
|
|
|
for (var k of res.idcard_workflows_idcard_relation) {
|
|
|
|
|
|
|
|
|
|
if (k.work_status == '通过') {
|
|
|
|
|
// 辅具适配
|
|
|
|
|
if (k.guanlianbiao == 'assists') {
|
|
|
|
|
workflows += `<p>${k.created_at?.substring(0,10)}/${k.guanlianbiaoming}<p>`
|
|
|
|
|
workflows += `<p>申请年限:${k.detail.shenqingnianxian}<p>`
|
|
|
|
|
workflows += `<p>管理年限:${k.detail.guanlinianxian}<p>`
|
|
|
|
|
workflows += `<p>辅具类别:${k.detail.sub_type}<p>`
|
|
|
|
|
workflows += `<p>可申请补贴金额:${k.detail.apply_money}<p>`
|
|
|
|
|
workflows += `<p>已申请补贴金额:${k.detail.get_money}<p>`
|
|
|
|
|
workflows += `<p>结余金额:${k.detail.surplus_money}<p>`
|
|
|
|
|
} else {
|
|
|
|
|
workflows += `<p>${k.created_at?.substring(0,10)}/${k.guanlianbiaoming}<p>`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.option['nodeList'][0]['content'] = names
|
|
|
|
|
this.option['nodeList'][1]['content'] = contents
|
|
|
|
|
this.option['nodeList'][2]['content'] = workflows
|
|
|
|
|
this.option['nodeList'][3]['content'] = views
|
|
|
|
|
this.getSstt()
|
|
|
|
|
},
|
|
|
|
|
getSstt() {
|
|
|
|
|
getSsttIndex({
|
|
|
|
|
idcard: this.idcard,
|
|
|
|
|
start_date: '2020-01-01',
|
|
|
|
|
page: 1
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let raises = ''
|
|
|
|
|
for (var k of res) {
|
|
|
|
|
raises += `<p>${k.start_time?.substring(0,10)}/${k.status_text}<p>`
|
|
|
|
|
}
|
|
|
|
|
this.option['nodeList'][4]['content'] = raises
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -175,6 +181,67 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.curvedarrow {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 0;
|
|
|
|
|
border-top: 30px solid transparent;
|
|
|
|
|
border-right: 30px solid #147d38;
|
|
|
|
|
}
|
|
|
|
|
.curvedarrow:after{
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
border: 0 solid transparent;
|
|
|
|
|
border-top: 10px solid #147d38;
|
|
|
|
|
border-radius: 100px 0 0 0;
|
|
|
|
|
top: -94px;
|
|
|
|
|
left: -167px;
|
|
|
|
|
width: 182px;
|
|
|
|
|
height: 99px;
|
|
|
|
|
}
|
|
|
|
|
.curvedarrow-upleft {
|
|
|
|
|
position: relative;
|
|
|
|
|
left: 483px;
|
|
|
|
|
top: 210px;
|
|
|
|
|
-webkit-transform: rotate(180deg) translateX(100%);
|
|
|
|
|
transform: rotate(194deg) translateX(100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-upleft:after {
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-upright {
|
|
|
|
|
left: 842px;
|
|
|
|
|
top: 210px;
|
|
|
|
|
transform: rotate(-60deg) translateX(100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-upright:after {
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-bottomleft {
|
|
|
|
|
left: 457px;
|
|
|
|
|
top: 447px;
|
|
|
|
|
transform: rotate(95deg) translateX(100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-bottomleft:after {
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-bottomright {
|
|
|
|
|
left: 880px;
|
|
|
|
|
top: 350px;
|
|
|
|
|
transform: rotate(10deg) translateX(100%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.curvedarrow-bottomright:after {
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
/deep/ .avue-flow{
|
|
|
|
|
margin-top:-120px
|
|
|
|
|
}
|
|
|
|
|
/deep/ .avue-grid {
|
|
|
|
|
background-image: none;
|
|
|
|
|
}
|
|
|
|
|
@ -182,21 +249,24 @@
|
|
|
|
|
/deep/ .avue-flow__node {
|
|
|
|
|
height: 300px;
|
|
|
|
|
width: 250px;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .avue-flow__node-drag{
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .avue-flow__node--active{
|
|
|
|
|
border-color: #147d38;
|
|
|
|
|
|
|
|
|
|
/deep/ .avue-flow__node-drag {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .avue-flow__node--active {
|
|
|
|
|
border-color: #147d38;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .avue-flow__node-header {
|
|
|
|
|
flex: none;
|
|
|
|
|
height: 50px;
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
background-color:#147d38
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
background-color: #147d38
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .avue-flow__node-body {
|
|
|
|
|
@ -204,22 +274,24 @@
|
|
|
|
|
flex: none;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
font-size:15px;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
align-items: normal;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .jtk-droppable{
|
|
|
|
|
height: 300px!important;
|
|
|
|
|
width: 250px!important;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .avue-flow__node-body .persons{
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
height: 150px;
|
|
|
|
|
width: 150px;
|
|
|
|
|
background: #ddd;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
line-height: 150px;
|
|
|
|
|
margin: 35px auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .jtk-droppable {
|
|
|
|
|
height: 300px !important;
|
|
|
|
|
width: 250px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .avue-flow__node-body .persons {
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
height: 150px;
|
|
|
|
|
width: 150px;
|
|
|
|
|
background: #ddd;
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
line-height: 150px;
|
|
|
|
|
margin: 35px auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|