lion 2 years ago
parent a4de8fd671
commit 6bf2569b46

@ -4,6 +4,9 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= webpackConfig.name %></title>

@ -16,7 +16,8 @@ const getDefaultState = () => {
return {
token: getToken(),
name: '',
avatar: '',
avatar: '',
is_number:false, // 是否可以编辑残疾证信息
roles: []
}
}
@ -38,6 +39,9 @@ const mutations = {
},
SET_ROLES: (state, roles) => {
state.roles = roles
},
SET_ISNUMBER:(state, is_number)=>{
state.is_number = is_number
}
}
@ -79,19 +83,29 @@ const actions = {
if (!response) {
reject('身份验证失败请重新登录')
}
}
if(response["role"]){
for(var k of response["role"]){
if(k.name==='残疾证管理'){
response["is_number"] = true
}
}
}
response["roles"] = ["admin"];
const {
roles,
name,
avatar
avatar,
is_number
} = response
commit('SET_AVATAR', avatar)
commit('SET_ROLES', roles)
commit('SET_NAME', name)
commit('SET_AVATAR', avatar)
commit('SET_AVATAR', avatar)
commit('SET_ISNUMBER', is_number)
resolve(response)
}).catch(error => {
reject(error)

@ -198,7 +198,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>残疾证
</div>
<div class="xy-table-item-content">
<el-input v-model="form.number" placeholder="请输入残疾证" clearable style="width: 300px;"></el-input>
<el-input :disabled='!is_number' v-model="form.number" placeholder="请输入残疾证" clearable style="width: 300px;"></el-input>
</div>
</div>
</template>
@ -208,7 +208,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>残疾类别
</div>
<div class="xy-table-item-content">
<el-select v-model="form.disabilitytype" filterable style="width: 300px;" placeholder="请选择残疾类别">
<el-select :disabled='!is_number' v-model="form.disabilitytype" filterable style="width: 300px;" placeholder="请选择残疾类别">
<el-option v-for="item in lists.disabilitytypeList" :key="item.value" :label="item.value" :value="item.value">
</el-option>
</el-select>
@ -221,7 +221,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>残疾等级
</div>
<div class="xy-table-item-content">
<el-select v-model="form.disabilitylevel" filterable style="width: 300px;" placeholder="请选择残疾等级">
<el-select :disabled='!is_number' v-model="form.disabilitylevel" filterable style="width: 300px;" placeholder="请选择残疾等级">
<el-option v-for="item in lists.disabilitylevelList" :key="item.value" :label="item.value" :value="item.value">
</el-option>
</el-select>
@ -234,7 +234,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>残疾详情
</div>
<div class="xy-table-item-content">
<el-input type="textarea" v-model="form.disabilitydetail" placeholder="请输入残疾详情" clearable
<el-input :disabled='!is_number' type="textarea" v-model="form.disabilitydetail" placeholder="请输入残疾详情" clearable
style="width: 300px;"></el-input>
</div>
</div>
@ -242,10 +242,10 @@
<template v-slot:start_time>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>首次办证日期
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>首次办证日期
</div>
<div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.start_time" type="date" placeholder="选择日期"
<el-date-picker :disabled='!is_number' style="width: 300px;" v-model="form.start_time" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
@ -254,10 +254,10 @@
<template v-slot:validity>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>有效期
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>有效期
</div>
<div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.validity" type="date" placeholder="选择日期"
<el-date-picker :disabled='!is_number' style="width: 300px;" v-model="form.validity" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
@ -266,10 +266,10 @@
<template v-slot:end_time>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>最后审核时间
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>最后审核时间
</div>
<div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.end_time" type="date" placeholder="选择日期"
<el-date-picker :disabled='!is_number' style="width: 300px;" v-model="form.end_time" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
@ -278,10 +278,10 @@
<template v-slot:end_change>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>最后修改日期
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>最后修改日期
</div>
<div class="xy-table-item-content">
<el-date-picker style="width: 300px;" v-model="form.end_change" type="date" placeholder="选择日期"
<el-date-picker :disabled='!is_number' style="width: 300px;" v-model="form.end_change" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
@ -366,7 +366,8 @@
} from "@/api/system/baseForm.js"
import {
Message
} from 'element-ui'
} from 'element-ui'
import state from '@/store/modules/user.js'
export default {
components: {
AvueMap
@ -377,6 +378,7 @@
id: '',
type: 'add',
tableName: 'records',
is_number:false,
//
mapparams: {
zoom: 11,
@ -432,18 +434,23 @@
}
},
created() {
this.getLabel()
this.getLabel()
this.is_number = state.state.is_number
console.log("state",state)
},
watch: {
isShow(newVal) {
if (newVal) {
if (this.type === 'editor') {
this.getDetail()
}else{
this.is_number = true
}
} else {
this.id = ''
this.type = ''
this.mapform = []
this.mapform = []
this.is_number = false
this.$refs['dialog'].reset()
}
},

@ -296,7 +296,8 @@
pageSize: 40,
pageIndex: 1,
keyword: "",
jiedao: '',
jiedao: '',
idcard:'',
disabilityLevel: "",
disabilityType: "",
link_tables: [{

@ -245,12 +245,15 @@
this.mapHeight = winHeight - 50 - 20
},
goUrl(e,table) {
this.tableName = table
for(var k of this.allTable){
if(table==k.table_name){
this.getFormDetail(e,k.id)
if(e){
this.tableName = table
for(var k of this.allTable){
if(table==k.table_name){
this.getFormDetail(e,k.id)
}
}
}
}
},
getPerson() {
if (this.$route.query?.id) {
@ -312,16 +315,19 @@
for(var s in this.tableShow){
if(k.guanlianbiao == s){
workflows += `<div class='workhover' onclick="goUrls(${k.detail.id},'${s}')">`
workflows += `<p>${k.detail.year?k.detail.year:''}/${k.guanlianbiaoming}<p>`
if(Object.keys(this.tableShow[s]).length==0){
// return
}else{
for(var tables in this.tableShow[s]){
workflows += `<p>${this.tableShow[s][tables]}${k.detail[tables]?k.detail[tables]:''}<p>`
if(k.detail){
workflows += `<div class='workhover' onclick="goUrls(${k.detail?(k.detail.id?k.detail.id:''):''},'${s}')">`
workflows += `<p>${k.detail?(k.detail.year?k.detail.year:''):''}/${k.guanlianbiaoming}<p>`
if(Object.keys(this.tableShow[s]).length==0){
// return
}else{
for(var tables in this.tableShow[s]){
workflows += `<p>${this.tableShow[s][tables]}${k.detail?(k.detail[tables]?k.detail[tables]:''):''}<p>`
}
}
}
}
}
workflows += "</div>"
@ -347,7 +353,7 @@
for (var k of res) {
raises += `<p>${k.start_time?.substring(0,10)}/${k.status_text}<p>`
}
console.log("raises",raises)
}else{
raises += `<p>暂无居家托养<p>`
}

@ -8,6 +8,46 @@
访视信息
</div>
</div>
</template>
<template v-slot:name>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>姓名
</div>
<div class="xy-table-item-content">
{{form.name}}
</div>
</div>
</template>
<template v-slot:sex>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>性别
</div>
<div class="xy-table-item-content">
{{form.sex}}
</div>
</div>
</template>
<template v-slot:idcard>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>身份证
</div>
<div class="xy-table-item-content">
{{form.idcard}}
</div>
</div>
</template>
<template v-slot:number>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>残疾证
</div>
<div class="xy-table-item-content">
{{form.number}}
</div>
</div>
</template>
<template v-slot:viewtime>
<div class="xy-table-item">
@ -34,7 +74,7 @@
</div>
</div>
</template>
<template v-slot:viewstatus>
<!-- <template v-slot:viewstatus>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>人员状态
@ -47,6 +87,17 @@
</el-select>
</div>
</div>
</template> -->
<template v-slot:viewremark>
<div class="xy-table-item">
<div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>备注
</div>
<div class="xy-table-item-content">
<el-input type="textarea" v-model="form.viewremark" placeholder="请输入备注" clearable
style="width: 300px;"></el-input>
</div>
</div>
</template>
<template v-slot:uploads>
<div class="xy-table-item">
@ -54,7 +105,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>附件
</div>
<div class="xy-table-item-content">
<el-upload
<!-- <el-upload
class="upload-demo"
style="width: 800px;"
:action="actions"
@ -66,11 +117,25 @@
:on-success="handlesuccess"
:file-list="viewuploadsList">
<el-button size="small" type="primary">点击上传</el-button>
</el-upload> -->
<el-upload
:class="hideUpload?'avatar-uploader hideUpload':'avatar-uploader'"
style="width: 800px;"
list-type="picture-card"
:action="actions"
:data='filedata'
:on-remove="handleRemove"
:before-remove="beforeRemove"
:limit="1"
:on-exceed="handleExceed"
:on-success="handlesuccess"
:file-list="viewuploadsList">
<i class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</div>
</div>
</template>
<template v-slot:infotext>
<!-- <template v-slot:infotext>
<div class="xy-table-item">
<div class="xy-table-item-content" style="width:1600px">
个人信息
@ -250,7 +315,6 @@
</div>
<div class="xy-table-item-content">
<avue-input-map :params="mapparams" style="width: 300px;" placeholder="请选择地图" v-model="mapform"></avue-input-map>
<!-- <el-input v-model="form.reside" placeholder="请输入现居住地" clearable style="width: 300px;"></el-input> -->
</div>
</div>
</template>
@ -418,7 +482,7 @@
style="width: 300px;"></el-input>
</div>
</div>
</template>
</template> -->
</xy-dialog>
</div>
</template>
@ -453,6 +517,7 @@
mapparams: {
zoom: 11,
},
hideUpload:false,
mapform: [],
actions:`${process.env.VUE_APP_UPLOAD_API}`,
filedata: {
@ -460,19 +525,24 @@
},
viewuploadsList:[],
form: {
viewtext: '',
viewtext: '',
name: '',
sex: "",
idcard: "",
number: "",
viewtime: "",
viewscene: "",
viewstatus: '',
viewstatus: '正常',
viewremark:'',
uploads:'',
infotext: '',
jiedao:'',
name: '',
nation: '',
sex: "",
marry: "",
birthday: "",
idcard: "",
mobile: "",
telephone: "",
education: "",
@ -483,7 +553,7 @@
address: "",
reside: "",
disabilitytext: "",
number: "",
disabilitytype: "",
disabilitylevel: "",
disabilitydetail: "",
@ -564,14 +634,17 @@
this.viewuploadsList.splice(i, 1)
}
}
this.hideUpload = false
console.log(this.viewuploadsList,file)
},
handleExceed(files, fileList) {},
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${ file.original_name }`);
console.log("file",file)
return this.$confirm(`确定移除 ${ file.name }`);
},
handlesuccess(response, file, fileList) {
this.viewuploadsList = fileList;
this.hideUpload = true
},
async getRecordDetail() {
const res = await show({
@ -579,19 +652,21 @@
table_name: 'records'
})
this.form = {
viewtext: '',
viewtext: '',
name: res?.name,
sex: res?.sex,
idcard: res?.idcard,
number: res?.number,
viewtime: "",
viewscene: "",
viewstatus: '',
viewstatus: res.viewstatus?res.viewstatus:'正常',
viewremark:'',
uploads:'',
infotext: '',
jiedao:res?.jiedao,
name: res?.name,
nation: res?.nation,
sex: res?.sex,
marry: res?.marry,
birthday: res?.birthday,
idcard: res?.idcard,
mobile: res?.mobile,
telephone: res?.telephone,
education: res?.education,
@ -605,7 +680,6 @@
longitude: res?.longitude,
latitude:res?.latitude,
disabilitytext: '',
number: res?.number,
disabilitytype: res?.disabilitytype,
disabilitylevel: res?.disabilitylevel,
disabilitydetail: res?.disabilitydetail,
@ -677,7 +751,9 @@
res.uploads_uploads_id_relation[m] = res.uploads_uploads_id_relation['original_name']
}
}
this.viewuploadsList.push(res.uploads_uploads_id_relation)
if(res.uploads_uploads_id_relation){
this.viewuploadsList.push(res.uploads_uploads_id_relation)
}
console.log("this.viewuploadsList",this.viewuploadsList,this.form.uploads)
},
@ -734,5 +810,8 @@
}
</script>
<style>
<style scoped>
/deep/ .hideUpload .el-upload{
display: none;
}
</style>

@ -158,18 +158,18 @@
},
submit(val) {
if(this.form.checkstatus=='通过'){
save({
id: this.person_id,
table_name: 'records',
...this.form
}).then(res => {
Message({
type: 'success',
message: '更新成功'
})
this.isShow = false
this.$emit('refresh')
})
// save({
// id: this.person_id,
// table_name: 'records',
// ...this.form
// }).then(res => {
// Message({
// type: 'success',
// message: ''
// })
// this.isShow = false
// this.$emit('refresh')
// })
}
save({
id: this.id,

@ -21,9 +21,9 @@
<xy-table :list="list" :total="total" @pageSizeChange="e => select.pageSize = e" @pageIndexChange="pageChange"
:table-item="table">
<template v-slot:btns>
<el-table-column fixed="right" label="操作" width="260" header-align="center">
<el-table-column fixed="right" label="操作" width="140" header-align="center">
<template slot-scope="scope">
<Button type="primary" v-if="scope.row.checkstatus=='待审核'" size="small" @click="editorRecord(scope.row.id,'editor')"></Button>
<!-- <Button type="primary" v-if="scope.row.checkstatus=='待审核'" size="small" @click="editorRecord(scope.row.id,'editor')"></Button> -->
<Button v-if="scope.row.checkstatus=='待审核'" style="margin-left: 10px;" type="primary" size="small" @click="checkRecord(scope.row.id,scope.row.person_id)"></Button>
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteRecord(scope.row)">
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
@ -88,6 +88,12 @@
type: 'index',
fixed: 'left',
width: 80
},
{
label: "审核状态",
width: 120,
prop: 'checkstatus',
align: 'center'
},
{
label: "访视时间",
@ -105,24 +111,52 @@
prop: 'viewscene',
align: 'center',
},
{
label: "人员状态",
width: 120,
prop: 'viewstatus',
align: 'center'
},
{
label: "审核状态",
width: 120,
prop: 'checkstatus',
align: 'center'
// {
// label: "",
// width: 120,
// prop: 'viewstatus',
// align: 'center'
// },
{
label:'附件',
width:80,
prop:"",
customFn: (row) => {
return ( <div style = {
{
whiteSpace:'normal'
}
}>
{
row.uploads_uploads_id_relation?
<el-image
style={
{
width:'60px',
height:'60px'
}
}
src = {
row.uploads_uploads_id_relation.url?row.uploads_uploads_id_relation.url:''
}
></el-image>:''
}
</div>)
}
},
{
label: "所属街道",
width: 120,
prop: 'jiedao',
align: 'center'
},
label: "备注",
prop: 'viewremark',
align: 'left',
width:200
},
// {
// label: "",
// width: 120,
// prop: 'jiedao',
// align: 'center'
// },
{
label: "姓名",
width: 120,
@ -147,48 +181,48 @@
prop: 'mobile',
align: 'center'
},
{
label: "固话",
width: 120,
prop: 'telephone',
align: 'center'
},
// {
// label: "",
// width: 120,
// prop: 'telephone',
// align: 'center'
// },
{
label: "残疾证号",
width: 180,
prop: 'number',
align: 'center'
},
{
label: "残疾类别",
width: 120,
prop: 'disabilitytype',
align: 'center'
},
{
label: "残疾等级",
width: 120,
prop: 'disabilitylevel',
align: 'center'
},
{
label: "有效期至",
width: 180,
prop: 'validity',
align: 'center'
},
{
label: "户籍地址",
width: 240,
prop: 'address',
align: 'left'
},
{
label: "现居住地",
width: 240,
prop: 'reside',
align: 'left'
}
// {
// label: "",
// width: 120,
// prop: 'disabilitytype',
// align: 'center'
// },
// {
// label: "",
// width: 120,
// prop: 'disabilitylevel',
// align: 'center'
// },
// {
// label: "",
// width: 180,
// prop: 'validity',
// align: 'center'
// },
// {
// label: "",
// width: 240,
// prop: 'address',
// align: 'left'
// },
// {
// label: "",
// width: 240,
// prop: 'reside',
// align: 'left'
// }
]
}
},

Loading…
Cancel
Save