This commit is contained in:
yanran200730
2022-04-22 14:13:13 +08:00
7 changed files with 25 additions and 18 deletions

View File

@@ -179,10 +179,11 @@
<template> <template>
<ai-wrapper> <ai-wrapper>
<ai-info-item label="是否户主" :value="dict.getLabel('householdName', baseInfo.householdName)"/> <ai-info-item label="是否户主" :value="dict.getLabel('householdName', baseInfo.householdName)"/>
<ai-info-item label="与户主关系" :value="dict.getLabel('householdName', baseInfo.householdName)" <template v-if="baseInfo.householdName==0">
v-if="baseInfo.householdName==0"/> <ai-info-item label="与户主关系"
<ai-info-item label="户主身份证号" :value="dict.getLabel('householdName', baseInfo.householdName)" :value="dict.getLabel('householdRelation', baseInfo.householdRelation)"/>
v-if="baseInfo.householdName==0"/> <ai-info-item label="户主身份证号" :value="baseInfo.householdIdNumber"/>
</template>
<ai-info-item label="户籍地" isLine <ai-info-item label="户籍地" isLine
:value="[baseInfo.householdAreaName, baseInfo.householdAddress].join('')" isLine/> :value="[baseInfo.householdAreaName, baseInfo.householdAddress].join('')" isLine/>
</ai-wrapper> </ai-wrapper>

View File

@@ -47,7 +47,7 @@ export default {
return [ return [
{ {
label: '与户主关系', prop: 'householdRelation', align: 'center', width: 165, label: '与户主关系', prop: 'householdRelation', align: 'center', width: 165,
render: (h, {row}) => h('p', dict.getLabel('householdRelation', row.householdRelation || "户主")) render: (h, {row}) => h('p', this.dict.getLabel('householdRelation', row.householdRelation || "户主"))
}, },
{label: '类型', prop: 'residentType', align: 'center', dict: "residentType"}, {label: '类型', prop: 'residentType', align: 'center', dict: "residentType"},
{label: '姓名', prop: 'name', align: 'center'}, {label: '姓名', prop: 'name', align: 'center'},

View File

@@ -7,7 +7,8 @@
<template #left> <template #left>
<el-button type="primary" icon="iconfont iconAdd" @click="dialog=true">添加</el-button> <el-button type="primary" icon="iconfont iconAdd" @click="dialog=true">添加</el-button>
<el-date-picker v-model="search.createTime" type="daterange" placeholder="日期" size="small" clearable <el-date-picker v-model="search.createTime" type="daterange" placeholder="日期" size="small" clearable
@change="handleSearchTime" start-placeholder="开始时间" end-placeholder="结束时间"/> @change="handleSearchTime" start-placeholder="开始时间" end-placeholder="结束时间"
value-format="yyyy-MM-dd HH:mm:ss"/>
</template> </template>
<template #right> <template #right>
<el-input size="small" placeholder="搜索党员" v-model="search.partyName" clearable <el-input size="small" placeholder="搜索党员" v-model="search.partyName" clearable
@@ -69,7 +70,7 @@ export default {
{label: "调整说明", prop: "remark", align: "center"}, {label: "调整说明", prop: "remark", align: "center"},
{label: "事件", prop: "createTime"}, {label: "事件", prop: "createTime"},
{label: "类型", prop: "integralType", align: "center", dict: "partyIntegralType"}, {label: "类型", prop: "integralType", align: "center", dict: "partyIntegralType"},
{label: "积分", prop: "integral", align: "center"}, {label: "积分", prop: "residualIntegral", align: "center"},
{slot: "options"} {slot: "options"}
] ]
}, },

View File

@@ -25,7 +25,7 @@
</ai-table> </ai-table>
</template> </template>
</ai-list> </ai-list>
<ai-dialog title="添加户主" :visible.sync="dialog" @closed="form={residentList: []},residents=[]" @onConfirm="submit" <ai-dialog title="添加户主" :visible.sync="dialog" @closed="clearDialog" @onConfirm="submit"
width="1200px"> width="1200px">
<ai-area-get v-model="form.areaId" :instance="instance" :root="user.info.areaId" @change="getResident"/> <ai-area-get v-model="form.areaId" :instance="instance" :root="user.info.areaId" @change="getResident"/>
<el-row type="flex" class="mar-t16"> <el-row type="flex" class="mar-t16">
@@ -160,6 +160,11 @@ export default {
}, },
findResident(id) { findResident(id) {
return this.form.residentList?.findIndex(e => e.residentId == id) return this.form.residentList?.findIndex(e => e.residentId == id)
},
clearDialog() {
this.form = {residentList: []}
this.residents = []
this.list = {current: 1, size: 10, total: 0}
} }
}, },
created() { created() {

View File

@@ -4,7 +4,7 @@
<ai-title slot="title" title="四邻联动"/> <ai-title slot="title" title="四邻联动"/>
<template #tabs> <template #tabs>
<el-tabs> <el-tabs>
<el-tab-pane label="四联动记录"> <el-tab-pane label="四联动记录">
<hbn-list v-bind="$props"/> <hbn-list v-bind="$props"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="联动记录审批" lazy> <el-tab-pane label="联动记录审批" lazy>

View File

@@ -4,12 +4,12 @@
<template #content> <template #content>
<ai-search-bar class="mar-t8"> <ai-search-bar class="mar-t8">
<template #left> <template #left>
<el-date-picker v-model="search.createTime" type="date" placeholder="日期" size="small" clearable <el-date-picker v-model="search.linksageDate" type="date" placeholder="日期" size="small" clearable
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()" class="w-300" value-format="yyyy-MM-dd"/>
</template> </template>
<template #right> <template #right>
<el-input size="small" placeholder="搜索党员/四邻信息" v-model="search.name" clearable <el-input size="small" placeholder="搜索党员/四邻信息" v-model="search.residentName" clearable
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/>
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -25,7 +25,7 @@
<ai-dialog title="联动记录审核" :visible.sync="dialog" @closed="form={}" @onConfirm="submit" width="600px"> <ai-dialog title="联动记录审核" :visible.sync="dialog" @closed="form={}" @onConfirm="submit" width="600px">
<el-form :model="form" size="small" ref="DialogForm" :rules="rules" label-width="120px"> <el-form :model="form" size="small" ref="DialogForm" :rules="rules" label-width="120px">
<el-form-item label="是否通过审核" prop="status"> <el-form-item label="是否通过审核" prop="status">
<ai-select v-model="form.status" placeholder="请选择党员" :selectList="dict.getDict('yesOrNo')"/> <ai-select v-model="form.status" :selectList="dict.getDict('yesOrNo')"/>
</el-form-item> </el-form-item>
<el-form-item label="审批意见" prop="remark" v-if="form.status==0"> <el-form-item label="审批意见" prop="remark" v-if="form.status==0">
<el-input type="textarea" v-model="form.remark" placeholder="请输入审批意见" maxlength="200" show-word-limit <el-input type="textarea" v-model="form.remark" placeholder="请输入审批意见" maxlength="200" show-word-limit
@@ -61,7 +61,7 @@ export default {
}, },
data() { data() {
return { return {
search: {name: ""}, search: {residentName: ""},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
dialog: false, dialog: false,

View File

@@ -10,11 +10,11 @@
<el-button icon="iconfont iconDelete" :disabled="!search.ids" @click="handleDelete(search.ids)">删除 <el-button icon="iconfont iconDelete" :disabled="!search.ids" @click="handleDelete(search.ids)">删除
</el-button> </el-button>
<el-date-picker class="w-300" v-model="search.linksageDate" type="date" placeholder="日期" size="small" <el-date-picker class="w-300" v-model="search.linksageDate" type="date" placeholder="日期" size="small"
clearable @change="page.current=1,getTableData()"/> clearable @change="page.current=1,getTableData()" value-format="yyyy-MM-dd"/>
</template> </template>
<template #right> <template #right>
<el-input size="small" placeholder="搜索党员/四邻信息" v-model="search.residentName" clearable <el-input size="small" placeholder="搜索党员/四邻信息" v-model="search.residentName" clearable
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/>
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -75,7 +75,7 @@ export default {
}, },
data() { data() {
return { return {
search: {name: "", ids: ""}, search: {residentName: "", ids: ""},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
dialog: false, dialog: false,