|
|
@ -44,16 +44,23 @@ |
|
|
<div class="m-table"> |
|
|
<div class="m-table"> |
|
|
<div class="div_btn"> |
|
|
<div class="div_btn"> |
|
|
<div class="div_btn_left"> |
|
|
<div class="div_btn_left"> |
|
|
<el-button v-if="btnAuths.ic_resi_add" |
|
|
<el-button |
|
|
|
|
|
v-if="btnAuths.ic_resi_add" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="handleAdd" |
|
|
@click="handleAdd" |
|
|
class="diy-button--blue" |
|
|
class="diy-button--blue" |
|
|
icon="el-icon-plus"> 新增</el-button> |
|
|
icon="el-icon-plus" |
|
|
<el-button v-if="btnAuths.ic_resi_export" |
|
|
> |
|
|
|
|
|
新增</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
v-if="btnAuths.ic_resi_export" |
|
|
style="margin-left: 10px" |
|
|
style="margin-left: 10px" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="diyExport" |
|
|
@click="diyExport" |
|
|
class="diy-button--white">导出</el-button> |
|
|
class="diy-button--white" |
|
|
|
|
|
>导出</el-button |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<!-- <el-button v-if="btnAuths.ic_resi_import" |
|
|
<!-- <el-button v-if="btnAuths.ic_resi_import" |
|
|
style="margin-left:10px" |
|
|
style="margin-left:10px" |
|
|
@ -80,23 +87,29 @@ |
|
|
:loading="importLoading">{{ importBtnTitle }}</el-button> |
|
|
:loading="importLoading">{{ importBtnTitle }}</el-button> |
|
|
</el-upload> --> |
|
|
</el-upload> --> |
|
|
|
|
|
|
|
|
<el-button v-if="btnAuths.ic_resi_smart_import && displayedBaobiaoBtn" |
|
|
<el-button |
|
|
|
|
|
v-if="btnAuths.ic_resi_smart_import && displayedBaobiaoBtn" |
|
|
style="margin-left: 10px" |
|
|
style="margin-left: 10px" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="reportForm" |
|
|
@click="reportForm" |
|
|
class="diy-button--white">核对</el-button> |
|
|
class="diy-button--white" |
|
|
|
|
|
>核对</el-button |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<el-button style="margin-left:10px" |
|
|
<el-button |
|
|
|
|
|
style="margin-left: 10px" |
|
|
v-if="btnAuths.ic_resi_batch_del" |
|
|
v-if="btnAuths.ic_resi_batch_del" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="deleteBatch" |
|
|
@click="deleteBatch" |
|
|
class="diy-button--white">批量删除</el-button> |
|
|
class="diy-button--white" |
|
|
|
|
|
>批量删除</el-button |
|
|
|
|
|
> |
|
|
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> |
|
|
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-table ref="ref_table" |
|
|
<el-table |
|
|
|
|
|
ref="ref_table" |
|
|
class="m-table-item" |
|
|
class="m-table-item" |
|
|
:data="tableData" |
|
|
:data="tableData" |
|
|
v-loading="tableLoading" |
|
|
v-loading="tableLoading" |
|
|
@ -104,123 +117,153 @@ |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
:height="tableHeight" |
|
|
:height="tableHeight" |
|
|
@select-all="selectAll" |
|
|
@select-all="selectAll" |
|
|
@selection-change="selectionChange"> |
|
|
@selection-change="selectionChange" |
|
|
<el-table-column type="selection" |
|
|
> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
fixed="left" |
|
|
fixed="left" |
|
|
align="left" |
|
|
align="left" |
|
|
:selectable="checkSelect" |
|
|
:selectable="checkSelectable" |
|
|
width="55" /> |
|
|
width="55" |
|
|
<el-table-column label="序号" |
|
|
/> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
label="序号" |
|
|
type="index" |
|
|
type="index" |
|
|
fixed="left" |
|
|
fixed="left" |
|
|
align="left" |
|
|
align="left" |
|
|
width="50"> |
|
|
width="50" |
|
|
|
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-for="item in tableHeader" |
|
|
<el-table-column |
|
|
|
|
|
v-for="item in tableHeader" |
|
|
:key="item.columnName" |
|
|
:key="item.columnName" |
|
|
:prop="item.columnName" |
|
|
:prop="item.columnName" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
align="left" |
|
|
align="left" |
|
|
:show-overflow-tooltip="true" |
|
|
:show-overflow-tooltip="true" |
|
|
:width="item.width || computedWidth(item.label, item.itemType)"> |
|
|
:width="item.width || computedWidth(item.label, item.itemType)" |
|
|
|
|
|
> |
|
|
<!-- :width="item.itemType === 'radio' ? computedWidth(item.label) : 180" --> |
|
|
<!-- :width="item.itemType === 'radio' ? computedWidth(item.label) : 180" --> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<a |
|
|
<a v-if="item.columnName == 'NAME' && btnAuths.ic_resi_view" |
|
|
v-if="item.columnName == 'NAME' && btnAuths.ic_resi_view" |
|
|
class="name-a" |
|
|
class="name-a" |
|
|
> |
|
|
> |
|
|
{{ handleFilterSpan(scope.row, item) }} |
|
|
{{ handleFilterSpan(scope.row, item) }} |
|
|
</a> |
|
|
</a> |
|
|
<div v-else-if="item.columnName == 'gender'"> |
|
|
<div v-else-if="item.columnName == 'gender'"> |
|
|
{{scope.row.gender == 1 ? '男' : '女' }} |
|
|
{{ scope.row.gender == 1 ? "男" : "女" }} |
|
|
</div> |
|
|
</div> |
|
|
<div v-else-if="item.columnName == 'birthday'"> |
|
|
<div v-else-if="item.columnName == 'birthday'"> |
|
|
{{ scope.row.birthday.substr(0, 10) }} |
|
|
{{ scope.row.birthday.substr(0, 10) }} |
|
|
</div> |
|
|
</div> |
|
|
<div v-else-if="item.columnName == 'idNum'"> |
|
|
<div v-else-if="item.columnName == 'idNum'"> |
|
|
{{`${scope.row.idNum.substr(0,11)}`+'******'+`${scope.row.idNum.substr(16,2)}` }} |
|
|
{{ |
|
|
|
|
|
`${scope.row.idNum.substr(0, 11)}` + |
|
|
|
|
|
"******" + |
|
|
|
|
|
`${scope.row.idNum.substr(16, 2)}` |
|
|
|
|
|
}} |
|
|
</div> |
|
|
</div> |
|
|
<div v-else-if="item.columnName == 'mobile'"> |
|
|
<div v-else-if="item.columnName == 'mobile'"> |
|
|
{{`${scope.row.mobile.substr(0,3)}`+'******'+`${scope.row.mobile.substr(7,4)}` }} |
|
|
{{ |
|
|
|
|
|
`${scope.row.mobile.substr(0, 3)}` + |
|
|
|
|
|
"******" + |
|
|
|
|
|
`${scope.row.mobile.substr(7, 4)}` |
|
|
|
|
|
}} |
|
|
</div> |
|
|
</div> |
|
|
<span v-else>{{ handleFilterSpan(scope.row, item) }}</span> |
|
|
<span v-else>{{ handleFilterSpan(scope.row, item) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column fixed="right" |
|
|
<el-table-column fixed="right" label="操作" align="center" width="200"> |
|
|
label="操作" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="260"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- <el-button @click="handleLook(scope.row)" |
|
|
<el-button |
|
|
|
|
|
v-if="btnAuths.ic_resi_view" |
|
|
type="text" |
|
|
type="text" |
|
|
|
|
|
class="div-table-button--blue" |
|
|
size="small" |
|
|
size="small" |
|
|
class="btn-color-look">查看</el-button> --> |
|
|
@click="handleLook(scope.row)" |
|
|
|
|
|
>查看</el-button |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<!-- <el-button v-if="btnAuths.ic_resi_change_rec" |
|
|
<template v-if="filterEdit(scope.row.agencyId)"> |
|
|
@click="handleChangeRecord(scope.row)" |
|
|
<el-button |
|
|
type="text" |
|
|
v-if="btnAuths.ic_resi_update" |
|
|
class="div-table-button--orange" |
|
|
style="margin-right: 10px" |
|
|
size="small">变更记录</el-button> --> |
|
|
|
|
|
<template v-if="filterEdit(scope.row.ORG_ID)"> |
|
|
|
|
|
<el-button v-if="btnAuths.ic_resi_update" |
|
|
|
|
|
@click="handleEdit(scope.row)" |
|
|
@click="handleEdit(scope.row)" |
|
|
class="div-table-button--blue" |
|
|
class="div-table-button--blue" |
|
|
size="small" |
|
|
size="small" |
|
|
type="text" |
|
|
type="text" |
|
|
>编辑</el-button> |
|
|
>编辑</el-button |
|
|
<el-popconfirm v-if="btnAuths.ic_resi_del" |
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-popconfirm |
|
|
|
|
|
v-if="btnAuths.ic_resi_del" |
|
|
title="删除之后无法回复,确认删除?" |
|
|
title="删除之后无法回复,确认删除?" |
|
|
@onConfirm="handleDel(scope.row)"> |
|
|
@onConfirm="handleDel(scope.row)" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
class="div-table-button--blue" |
|
|
|
|
|
size="small" |
|
|
|
|
|
type="text" |
|
|
|
|
|
slot="reference" |
|
|
|
|
|
>删除</el-button |
|
|
|
|
|
> |
|
|
</el-popconfirm> |
|
|
</el-popconfirm> |
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dropdown |
|
|
|
|
|
trigger="click" |
|
|
|
|
|
style="margin-left: 10px" |
|
|
|
|
|
@command="(command) => handelRegister(command, scope.row)" |
|
|
|
|
|
> |
|
|
<el-button |
|
|
<el-button |
|
|
type="text" |
|
|
|
|
|
class="div-table-button--blue" |
|
|
class="div-table-button--blue" |
|
|
size="small" @click="handleLook(scope.row)">查看</el-button> |
|
|
size="small" |
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
type="text" |
|
|
class="div-table-button--blue f-right10" |
|
|
style="font-size: 10px" |
|
|
size="small">编辑</el-button> |
|
|
> |
|
|
<el-dropdown trigger="click" @command="handelRegister"> |
|
|
▪▪▪</el-button |
|
|
<span class=" div-table-button--blue"> |
|
|
> |
|
|
登记<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
|
|
</span> |
|
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
<el-dropdown-item >死亡登记</el-dropdown-item> |
|
|
<el-dropdown-item |
|
|
<el-dropdown-item >迁出登记</el-dropdown-item> |
|
|
v-if="btnAuths.ic_resi_change_rec" |
|
|
|
|
|
command="bgjl" |
|
|
|
|
|
>变更记录</el-dropdown-item |
|
|
|
|
|
> |
|
|
|
|
|
<el-dropdown-item |
|
|
|
|
|
v-if="btnAuths.ic_resi_update" |
|
|
|
|
|
command="swdj" |
|
|
|
|
|
>死亡登记</el-dropdown-item |
|
|
|
|
|
> |
|
|
|
|
|
<el-dropdown-item |
|
|
|
|
|
v-if="btnAuths.ic_resi_update" |
|
|
|
|
|
command="qcdj" |
|
|
|
|
|
>迁出登记</el-dropdown-item |
|
|
|
|
|
> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown-menu> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
<div class="div-flex"> |
|
|
<div class="div-flex"> |
|
|
<div class="div_del"> |
|
|
<div class="m-page"> |
|
|
<!-- <el-checkbox :indeterminate="isIndeterminate" |
|
|
<el-pagination |
|
|
v-model="selAllFlag" |
|
|
@size-change="handleSizeChange" |
|
|
:disabled="selAllFlagDisabled" |
|
|
|
|
|
@change="handleSelectAll">全选</el-checkbox> |
|
|
|
|
|
<el-button v-if="selection.length > 0" |
|
|
|
|
|
style="margin-left:15px" |
|
|
|
|
|
type="danger" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="deleteBatch">删除</el-button> --> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
|
|
|
@current-change="handleCurrentChange" |
|
|
@current-change="handleCurrentChange" |
|
|
:current-page.sync="currentPage" |
|
|
:current-page.sync="currentPage" |
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
:page-size="pageSize" |
|
|
:page-size="pageSize" |
|
|
layout="sizes, prev, pager, next, total" |
|
|
layout="sizes, prev, pager, next, total" |
|
|
:total="total"> |
|
|
:total="total" |
|
|
|
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-dialog :title="formName === '社区居民基本信息录入表'?'新增居民':formName" |
|
|
<el-dialog |
|
|
|
|
|
:title="formName === '社区居民基本信息录入表' ? '新增居民' : formName" |
|
|
:visible.sync="dialogVisible" |
|
|
:visible.sync="dialogVisible" |
|
|
width="986px" |
|
|
width="986px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
@ -228,13 +271,16 @@ |
|
|
append-to-body |
|
|
append-to-body |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:before-close="handlerCancle"> |
|
|
:before-close="handlerCancle" |
|
|
|
|
|
> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<resi-form v-if="dialogVisible" |
|
|
<resi-form |
|
|
|
|
|
v-if="dialogVisible" |
|
|
ref="baseForm" |
|
|
ref="baseForm" |
|
|
:fixed="true" |
|
|
:fixed="true" |
|
|
:form-list="formList" |
|
|
:form-list="formList" |
|
|
@changegroup="handleChangeGroup" /> |
|
|
@changegroup="handleChangeGroup" |
|
|
|
|
|
/> |
|
|
<!-- <div v-if="dialogVisible" |
|
|
<!-- <div v-if="dialogVisible" |
|
|
class="resi-other"> |
|
|
class="resi-other"> |
|
|
<div class="tabs-other-info"> |
|
|
<div class="tabs-other-info"> |
|
|
@ -257,18 +303,28 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="resi-btns"> |
|
|
<div class="resi-btns"> |
|
|
<el-button size="small" |
|
|
<el-button size="small" @click="handlerReset" class="diy-button--common" |
|
|
@click="handlerReset" class="diy-button--common">重置</el-button> |
|
|
>重置</el-button |
|
|
<el-button size="small" |
|
|
> |
|
|
@click="handlerCancle" class="diy-button--common">取消</el-button> |
|
|
<el-button |
|
|
<el-button type="primary" |
|
|
size="small" |
|
|
|
|
|
@click="handlerCancle" |
|
|
|
|
|
class="diy-button--common" |
|
|
|
|
|
>取消</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
size="small" |
|
|
size="small" |
|
|
:loading="btnLoading" |
|
|
:loading="btnLoading" |
|
|
@click="handleSUbmit" class="diy-button--blue">保存</el-button> |
|
|
@click="handleSUbmit" |
|
|
|
|
|
class="diy-button--blue" |
|
|
|
|
|
>保存</el-button |
|
|
|
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog :title="formName" |
|
|
<el-dialog |
|
|
|
|
|
:title="formName" |
|
|
:visible.sync="dialogEditVisible" |
|
|
:visible.sync="dialogEditVisible" |
|
|
width="986px" |
|
|
width="986px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
@ -276,9 +332,11 @@ |
|
|
append-to-body |
|
|
append-to-body |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:before-close="handlerEditCancle"> |
|
|
:before-close="handlerEditCancle" |
|
|
|
|
|
> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<edit-resi v-if="dialogEditVisible" |
|
|
<edit-resi |
|
|
|
|
|
v-if="dialogEditVisible" |
|
|
ref="baseForm" |
|
|
ref="baseForm" |
|
|
:disabled="disabled" |
|
|
:disabled="disabled" |
|
|
:editUserId="editUserId" |
|
|
:editUserId="editUserId" |
|
|
@ -286,18 +344,20 @@ |
|
|
:fixed="true" |
|
|
:fixed="true" |
|
|
:form-list="formList" |
|
|
:form-list="formList" |
|
|
:agency-id="editAgencyId" |
|
|
:agency-id="editAgencyId" |
|
|
@changegroup="handleChangeGroup" /> |
|
|
@changegroup="handleChangeGroup" |
|
|
<div v-if="dialogEditVisible" |
|
|
/> |
|
|
class="resi-other"> |
|
|
<div v-if="dialogEditVisible" class="resi-other"> |
|
|
<div class="resi-other-title">其他</div> |
|
|
<div class="resi-other-title">其他</div> |
|
|
<div class="tabs-other-info"> |
|
|
<div class="tabs-other-info"> |
|
|
<el-tabs v-model="activeName" |
|
|
<el-tabs v-model="activeName" @tab-click="handleClick"> |
|
|
@tab-click="handleClick"> |
|
|
<el-tab-pane |
|
|
<el-tab-pane v-for="item in tabsList" |
|
|
v-for="item in tabsList" |
|
|
:key="item.groupId" |
|
|
:key="item.groupId" |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:name="'group' + item.groupId"> |
|
|
:name="'group' + item.groupId" |
|
|
<edit-resi :ref="'group' + item.groupId" |
|
|
> |
|
|
|
|
|
<edit-resi |
|
|
|
|
|
:ref="'group' + item.groupId" |
|
|
:columns="3" |
|
|
:columns="3" |
|
|
:support-add="item.supportAdd" |
|
|
:support-add="item.supportAdd" |
|
|
:form-id="item.columnName" |
|
|
:form-id="item.columnName" |
|
|
@ -305,40 +365,49 @@ |
|
|
:form-list="item.itemList" |
|
|
:form-list="item.itemList" |
|
|
:disabled="disabled" |
|
|
:disabled="disabled" |
|
|
:label-width="'140px'" |
|
|
:label-width="'140px'" |
|
|
:agency-id="editAgencyId" /> |
|
|
:agency-id="editAgencyId" |
|
|
|
|
|
/> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="resi-btns"> |
|
|
<div class="resi-btns"> |
|
|
<el-button size="small" |
|
|
<el-button size="small" @click="handlerEditCancle">取消</el-button> |
|
|
@click="handlerEditCancle">取消</el-button> |
|
|
<el-button |
|
|
<el-button v-if="!disabled" |
|
|
v-if="!disabled" |
|
|
type="primary" |
|
|
type="primary" |
|
|
size="small" |
|
|
size="small" |
|
|
:loading="btnLoading" |
|
|
:loading="btnLoading" |
|
|
@click="handleEditSUbmit">提交</el-button> |
|
|
@click="handleEditSUbmit" |
|
|
|
|
|
>提交</el-button |
|
|
|
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 变更记录 --> |
|
|
<!-- 变更记录 --> |
|
|
<el-dialog :visible.sync="changeRecordShow" |
|
|
<el-dialog |
|
|
|
|
|
:visible.sync="changeRecordShow" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
:title="'变更记录'" |
|
|
:title="'变更记录'" |
|
|
width="1150px" |
|
|
width="1150px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
@closed="diaClose"> |
|
|
@closed="diaClose" |
|
|
|
|
|
> |
|
|
<resi-change-record ref="ref_changerecord"></resi-change-record> |
|
|
<resi-change-record ref="ref_changerecord"></resi-change-record> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog :visible.sync="diyDialog" |
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
|
:visible.sync="diyDialog" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
width="1150px" |
|
|
width="1150px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
class="dialog-h"> |
|
|
class="dialog-h" |
|
|
<diy-info v-if="diyDialog" |
|
|
> |
|
|
|
|
|
<diy-info |
|
|
|
|
|
v-if="diyDialog" |
|
|
ref="ref_diy" |
|
|
ref="ref_diy" |
|
|
:list="exportList" |
|
|
:list="exportList" |
|
|
:search="{ |
|
|
:search="{ |
|
|
@ -347,40 +416,50 @@ |
|
|
pageSize: pageSize, |
|
|
pageSize: pageSize, |
|
|
conditions: conditions, |
|
|
conditions: conditions, |
|
|
}" |
|
|
}" |
|
|
@close="handleDiyClose"></diy-info> |
|
|
@close="handleDiyClose" |
|
|
|
|
|
></diy-info> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<people-more v-if="showedPeopleMoreInfo && lookInfo.userId" |
|
|
|
|
|
|
|
|
<people-more |
|
|
|
|
|
v-if="showedPeopleMoreInfo && lookInfo.userId" |
|
|
:view_real_data="btnAuths.ic_resi_view_real_data" |
|
|
:view_real_data="btnAuths.ic_resi_view_real_data" |
|
|
:userId="lookInfo.userId" |
|
|
:userId="lookInfo.userId" |
|
|
:gridName="lookInfo.gridName" |
|
|
:gridName="lookInfo.gridName" |
|
|
:detailTitle="'居民详情'" |
|
|
:detailTitle="'居民详情'" |
|
|
@close="handleCancleLook" /> |
|
|
@close="handleCancleLook" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<baobiao ref="baobiao" /> |
|
|
<baobiao ref="baobiao" /> |
|
|
|
|
|
|
|
|
<!-- 迁出登记 --> |
|
|
<!-- 迁出登记 --> |
|
|
<el-dialog :visible.sync="tranferShow" |
|
|
<el-dialog |
|
|
|
|
|
:visible.sync="tranferShow" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
:title="'迁出登记'" |
|
|
:title="'迁出登记'" |
|
|
width="950px" |
|
|
width="620px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
@closed="diaClose"> |
|
|
@closed="diaClose" |
|
|
<resi-change-transfer ref="ref_change_transfer" |
|
|
> |
|
|
@dialogCancle="transferClose"></resi-change-transfer> |
|
|
<resi-change-transfer |
|
|
|
|
|
ref="ref_change_transfer" |
|
|
|
|
|
@dialogCancle="transferClose" |
|
|
|
|
|
></resi-change-transfer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 死亡登记 --> |
|
|
<!-- 死亡登记 --> |
|
|
<el-dialog :visible.sync="deathShow" |
|
|
<el-dialog |
|
|
|
|
|
:visible.sync="deathShow" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
:title="'死亡登记'" |
|
|
:title="'死亡登记'" |
|
|
width="950px" |
|
|
width="620px" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
@closed="diaClose"> |
|
|
@closed="diaClose" |
|
|
<resideath-add ref="ref_death" |
|
|
> |
|
|
:resideathAddObj="resideathAddObj1" |
|
|
<resideath-add ref="ref_death" @dialogCancle="deathClose"></resideath-add> |
|
|
@dialogCancle="deathClose"></resideath-add> |
|
|
|
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
@ -395,7 +474,6 @@ import { mapGetters } from "vuex"; |
|
|
import resiTransfer from "../../components/resiTransfer.vue"; |
|
|
import resiTransfer from "../../components/resiTransfer.vue"; |
|
|
import resiChangeRecord from "../../components/resiChangeRecord.vue"; |
|
|
import resiChangeRecord from "../../components/resiChangeRecord.vue"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import peopleMore from "@/views/modules/shequ/cpts/people-more"; |
|
|
import peopleMore from "@/views/modules/shequ/cpts/people-more"; |
|
|
import baobiao from "@/views/modules/cpts/baobiao"; |
|
|
import baobiao from "@/views/modules/cpts/baobiao"; |
|
|
import diyInfo from "./diyInfo.vue"; |
|
|
import diyInfo from "./diyInfo.vue"; |
|
|
@ -462,7 +540,13 @@ export default { |
|
|
formName: "", |
|
|
formName: "", |
|
|
formList: [], |
|
|
formList: [], |
|
|
tableHeader: [ |
|
|
tableHeader: [ |
|
|
{columnName:'name',label:'姓名'}, {columnName:'birthday',label:'生日'},{columnName:'gender',label:'性别'},{columnName:'gridName',label:'所属网格'},{columnName:'homeName',label:'所属房屋'},{columnName:'idNum',label:'证件号'},{columnName:'mobile',label:'联系电话'} |
|
|
{ columnName: "name", label: "姓名" }, |
|
|
|
|
|
{ columnName: "birthday", label: "生日" }, |
|
|
|
|
|
{ columnName: "gender", label: "性别" }, |
|
|
|
|
|
{ columnName: "gridName", label: "所属网格" }, |
|
|
|
|
|
{ columnName: "homeName", label: "所属房屋" }, |
|
|
|
|
|
{ columnName: "idNum", label: "证件号" }, |
|
|
|
|
|
{ columnName: "mobile", label: "联系电话" }, |
|
|
], |
|
|
], |
|
|
tabsList: [], |
|
|
tabsList: [], |
|
|
selection: [], |
|
|
selection: [], |
|
|
@ -476,25 +560,27 @@ export default { |
|
|
userId: "", |
|
|
userId: "", |
|
|
gridName: "", |
|
|
gridName: "", |
|
|
}, |
|
|
}, |
|
|
editUserId: '', |
|
|
editUserId: "", |
|
|
|
|
|
|
|
|
displayedBaobiaoBtn: false, |
|
|
displayedBaobiaoBtn: false, |
|
|
|
|
|
|
|
|
btnAuths: { |
|
|
btnAuths: { |
|
|
ic_resi_add: false, //新增 |
|
|
ic_resi_add: true, //新增 |
|
|
ic_resi_import: false, //导入 |
|
|
ic_resi_import: true, //导入 |
|
|
ic_resi_export: false, //导出 |
|
|
ic_resi_export: true, //导出 |
|
|
ic_resi_batch_del: false, //批量删除 |
|
|
ic_resi_batch_del: true, //批量删除 |
|
|
ic_resi_smart_import: false, //智能填表 |
|
|
ic_resi_smart_import: true, //智能填表 |
|
|
ic_resi_del: false, //删除 |
|
|
ic_resi_del: true, //删除 |
|
|
ic_resi_view: false, //查看 |
|
|
ic_resi_view: true, //查看 |
|
|
ic_resi_update: false, //修改 |
|
|
ic_resi_update: true, //修改 |
|
|
ic_resi_change_rec: false, //变更记录 |
|
|
ic_resi_change_rec: true, //变更记录 |
|
|
ic_resi_view_real_data: false, //显示脱敏信息 |
|
|
ic_resi_view_real_data: true, //显示脱敏信息 |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
props: {}, |
|
|
props: {}, |
|
|
|
|
|
|
|
|
async activated() { |
|
|
async activated() { |
|
|
console.log("this.$route.query---", this.$route.query); |
|
|
console.log("this.$route.query---", this.$route.query); |
|
|
if (this.$route.query && this.$route.query.columnName) { |
|
|
if (this.$route.query && this.$route.query.columnName) { |
|
|
@ -504,6 +590,7 @@ export default { |
|
|
console.log("defaultCategotyKey----", this.defaultCategotyKey); |
|
|
console.log("defaultCategotyKey----", this.defaultCategotyKey); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters(["clientHeight", "iframeHeight"]), |
|
|
...mapGetters(["clientHeight", "iframeHeight"]), |
|
|
tableHeight() { |
|
|
tableHeight() { |
|
|
@ -512,6 +599,7 @@ export default { |
|
|
return this.$store.state.inIframe ? h : _h; |
|
|
return this.$store.state.inIframe ? h : _h; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async created() { |
|
|
async created() { |
|
|
this.updateBtnAuths(); |
|
|
this.updateBtnAuths(); |
|
|
|
|
|
|
|
|
@ -520,15 +608,14 @@ export default { |
|
|
this.defaultCategotyKey = query.columnName; |
|
|
this.defaultCategotyKey = query.columnName; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// await this.getFormList() |
|
|
// await this.getFormList() |
|
|
|
|
|
|
|
|
// console.log('this.$refs.resiSearch', this) |
|
|
// console.log('this.$refs.resiSearch', this) |
|
|
this.getTableData() |
|
|
this.getTableData(); |
|
|
this.pageLoading = true; |
|
|
this.pageLoading = true; |
|
|
console.log("storeoooo----0000", this.$store); |
|
|
console.log("storeoooo----0000", this.$store); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async mounted() { |
|
|
async mounted() { |
|
|
// this.$nextTick(() => { |
|
|
// this.$nextTick(() => { |
|
|
// this.tableHeight = document.documentElement.clientHeight - this.$refs.resiSearch.$el.offsetHeight - 280 + 'px' |
|
|
// this.tableHeight = document.documentElement.clientHeight - this.$refs.resiSearch.$el.offsetHeight - 280 + 'px' |
|
|
@ -544,6 +631,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 更新按钮权限 |
|
|
// 更新按钮权限 |
|
|
updateBtnAuths() { |
|
|
updateBtnAuths() { |
|
|
@ -554,8 +642,16 @@ export default { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handelRegister(row){ |
|
|
handelRegister(command, row) { |
|
|
|
|
|
console.log(command); |
|
|
console.log(row); |
|
|
console.log(row); |
|
|
|
|
|
if (command == "bgjl") { |
|
|
|
|
|
this.handleChangeRecord(row); |
|
|
|
|
|
} else if (command == "swdj") { |
|
|
|
|
|
this.handleDeath(row); |
|
|
|
|
|
} else if (command == "qcdj") { |
|
|
|
|
|
this.handleChangeTransfer(row); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
reportForm() { |
|
|
reportForm() { |
|
|
this.$refs.baobiao.init({ |
|
|
this.$refs.baobiao.init({ |
|
|
@ -573,22 +669,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
checkSelect (row, index) { |
|
|
|
|
|
return row.isChecked; |
|
|
// 是否可以选中 |
|
|
|
|
|
checkSelectable(row, index) { |
|
|
|
|
|
return this.filterEdit(row.agencyId); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//迁出记录 |
|
|
//迁出记录 |
|
|
async handleChangeTransfer(row) { |
|
|
async handleChangeTransfer(row) { |
|
|
this.tranferShow = true; |
|
|
this.tranferShow = true; |
|
|
await nextTick(200); |
|
|
await nextTick(200); |
|
|
this.$refs.ref_change_transfer.initForm(row) |
|
|
this.$refs.ref_change_transfer.initForm(row); |
|
|
}, |
|
|
}, |
|
|
//迁出记录 |
|
|
//死亡记录 |
|
|
async handleDeath(row) { |
|
|
async handleDeath(row) { |
|
|
|
|
|
console.log("=====", row); |
|
|
this.deathShow = true; |
|
|
this.deathShow = true; |
|
|
await nextTick(200); |
|
|
await nextTick(200); |
|
|
this.$refs.ref_death.initForm(row) |
|
|
this.$refs.ref_death.initForm(row); |
|
|
this.resideathAddObj1 = { name: row.NAME, GRID_ID: row.GRID_ID } |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//变更记录 |
|
|
//变更记录 |
|
|
@ -631,6 +729,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
filterEdit(id) { |
|
|
filterEdit(id) { |
|
|
const { user } = this.$store.state; |
|
|
const { user } = this.$store.state; |
|
|
|
|
|
return true; //临时放开权限,正式需要注释掉 |
|
|
return id === user.agencyId; |
|
|
return id === user.agencyId; |
|
|
}, |
|
|
}, |
|
|
selectionChange(selection) { |
|
|
selectionChange(selection) { |
|
|
@ -715,7 +814,6 @@ export default { |
|
|
return _val || row[item.columnName]; |
|
|
return _val || row[item.columnName]; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetSearchForm(formName) { |
|
|
resetSearchForm(formName) { |
|
|
// for(const n in this.form) { |
|
|
// for(const n in this.form) { |
|
|
// this.form[n] = '' |
|
|
// this.form[n] = '' |
|
|
@ -922,7 +1020,7 @@ export default { |
|
|
console.log(tab, event); |
|
|
console.log(tab, event); |
|
|
}, |
|
|
}, |
|
|
async handleLook(row) { |
|
|
async handleLook(row) { |
|
|
console.log(); |
|
|
console.log(row); |
|
|
this.lookInfo.userId = row.icResiUserId; |
|
|
this.lookInfo.userId = row.icResiUserId; |
|
|
this.lookInfo.gridName = row.GRID_ID; |
|
|
this.lookInfo.gridName = row.GRID_ID; |
|
|
this.showedPeopleMoreInfo = true; |
|
|
this.showedPeopleMoreInfo = true; |
|
|
@ -939,7 +1037,7 @@ export default { |
|
|
async handleEdit(row) { |
|
|
async handleEdit(row) { |
|
|
this.disabled = false; |
|
|
this.disabled = false; |
|
|
this.editAgencyId = row.ORG_ID; |
|
|
this.editAgencyId = row.ORG_ID; |
|
|
this.editUserId = row.icResiUserId |
|
|
this.editUserId = row.icResiUserId; |
|
|
await this.getFormList("edit"); |
|
|
await this.getFormList("edit"); |
|
|
await this.getrowInfo(row.icResiUserId); |
|
|
await this.getrowInfo(row.icResiUserId); |
|
|
}, |
|
|
}, |
|
|
@ -1049,7 +1147,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleSUbmit() { |
|
|
async handleSUbmit() { |
|
|
this.$refs.baseForm.submit_from() |
|
|
this.$refs.baseForm.submit_from(); |
|
|
for (const key of this.$refs.baseForm) { |
|
|
for (const key of this.$refs.baseForm) { |
|
|
if (typeof key == "Object") { |
|
|
if (typeof key == "Object") { |
|
|
console.log(key); |
|
|
console.log(key); |
|
|
@ -1160,23 +1258,29 @@ export default { |
|
|
}); |
|
|
}); |
|
|
this.btnLoading = false; |
|
|
this.btnLoading = false; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
try { |
|
|
|
|
|
let params = { |
|
|
let params = { |
|
|
pageNo: this.currentPage, |
|
|
pageNo: this.currentPage, |
|
|
pageSize: this.pageSize, |
|
|
pageSize: this.pageSize, |
|
|
}; |
|
|
}; |
|
|
// this.tableLoading = true; |
|
|
this.tableLoading = true; |
|
|
const { data } = await this.$http.post("/actual/base/residentBaseInfo/page", params) |
|
|
const { data, code, msg } = await requestPost( |
|
|
this.tableData =data.data.list |
|
|
"/actual/base/residentBaseInfo/page", |
|
|
console.log(this.tableData); |
|
|
params |
|
|
console.log(data,'data'); |
|
|
); |
|
|
} catch (error) { |
|
|
|
|
|
console.log(error); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.tableLoading = false; |
|
|
this.tableLoading = false; |
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.total = data.total; |
|
|
|
|
|
this.tableData = data.list.map((item) => { |
|
|
|
|
|
item.isChecked = false; |
|
|
|
|
|
return item; |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(msg); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getrowInfo(id) { |
|
|
getrowInfo(id) { |
|
|
let params = { |
|
|
let params = { |
|
|
formCode: "resi_base_info", |
|
|
formCode: "resi_base_info", |
|
|
@ -1185,8 +1289,6 @@ export default { |
|
|
this.$http |
|
|
this.$http |
|
|
.post("/epmetuser/icresiuser/detail", params) |
|
|
.post("/epmetuser/icresiuser/detail", params) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg); |
|
|
return this.$message.error(res.msg); |
|
|
} else { |
|
|
} else { |
|
|
@ -1288,6 +1390,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return arr; |
|
|
return arr; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async getFormList(type) { |
|
|
async getFormList(type) { |
|
|
await this.$http |
|
|
await this.$http |
|
|
.post("/oper/customize/icform/getcustomerform", { |
|
|
.post("/oper/customize/icform/getcustomerform", { |
|
|
@ -1298,7 +1401,7 @@ export default { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg); |
|
|
return this.$message.error(res.msg); |
|
|
} else { |
|
|
} else { |
|
|
console.log(res.data, 'res.data'); |
|
|
console.log(res.data, "res.data"); |
|
|
console.log("获取详情成功getFormList"); |
|
|
console.log("获取详情成功getFormList"); |
|
|
let { itemList, groupList, formName } = res.data; |
|
|
let { itemList, groupList, formName } = res.data; |
|
|
this.formName = formName; |
|
|
this.formName = formName; |
|
|
@ -1423,8 +1526,6 @@ export default { |
|
|
margin-right: 0; |
|
|
margin-right: 0; |
|
|
} |
|
|
} |
|
|
.tabs-other-info { |
|
|
.tabs-other-info { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ::v-deep .el-tabs__nav-wrap::after, |
|
|
// ::v-deep .el-tabs__nav-wrap::after, |
|
|
::v-deep .el-tabs__active-bar_active { |
|
|
::v-deep .el-tabs__active-bar_active { |
|
|
background-color: #0055d7; |
|
|
background-color: #0055d7; |
|
|
@ -1439,15 +1540,14 @@ export default { |
|
|
color: #666666; |
|
|
color: #666666; |
|
|
border-radius: 2px; |
|
|
border-radius: 2px; |
|
|
&:hover { |
|
|
&:hover { |
|
|
color: #0056D6; |
|
|
color: #0056d6; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
::v-deep .el-tabs__item.is-active { |
|
|
::v-deep .el-tabs__item.is-active { |
|
|
color: #0056D6; |
|
|
color: #0056d6; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
::v-deep .el-tabs__active-bar { |
|
|
::v-deep .el-tabs__active-bar { |
|
|
background-color: #0056D6; |
|
|
background-color: #0056d6; |
|
|
} |
|
|
} |
|
|
.resi-container .resi-card { |
|
|
.resi-container .resi-card { |
|
|
position: relative; |
|
|
position: relative; |
|
|
@ -1508,9 +1608,7 @@ export default { |
|
|
display: block; |
|
|
display: block; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.resi-card-table { |
|
|
.resi-card-table { |
|
|
margin-top: 20px; |
|
|
margin-top: 20px; |
|
|
} |
|
|
} |
|
|
@ -1568,5 +1666,8 @@ export default { |
|
|
.div_del { |
|
|
.div_del { |
|
|
margin-top: 15px; |
|
|
margin-top: 15px; |
|
|
} |
|
|
} |
|
|
|
|
|
.m-page { |
|
|
|
|
|
margin-left: auto; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|