Browse Source

五大图层

shibei_master
mk 2 years ago
parent
commit
d877da3a9d
  1. 3
      src/views/modules/communityParty/communityFrameWork/index.vue
  2. 5
      src/views/modules/communityParty/gridFrameWork/index.vue
  3. 412
      src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
  4. 360
      src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
  5. 142
      src/views/modules/shequzhili/tuceng/anquan/xuncharecord/icenterprisechangerecord-add-or-update.vue
  6. 358
      src/views/modules/shequzhili/tuceng/anquan/xuncharecord/icenterprisechangerecord.vue
  7. 699
      src/views/modules/shequzhili/tuceng/zhonghe/base.vue

3
src/views/modules/communityParty/communityFrameWork/index.vue

@ -128,8 +128,6 @@ export default {
tableData: [],
searchH: 0,
unloadPencent: 0,
addLevel: '1',
addType: 'add',
value: '',
optionsG: [],
optionsEditC: [],
@ -142,7 +140,6 @@ export default {
value: 2
}
],
demandOptions: [],
tableHeader: [
{
label: '组织名称',

5
src/views/modules/communityParty/gridFrameWork/index.vue

@ -133,8 +133,6 @@ export default {
tableData: [],
searchH: 0,
unloadPencent: 0,
addLevel: '1',
addType: 'add',
value: '',
optionsEditG: [],
optionsC: [],
@ -148,7 +146,6 @@ export default {
value: 2
}
],
demandOptions: [],
tableHeader: [
{
label: '组织名称',
@ -199,7 +196,6 @@ export default {
children: 'subAgencyList',
checkStrictly: true
},
formType: ''
}
},
computed: {
@ -459,7 +455,6 @@ export default {
async handleEdit(row, addType) {
// this.form = { ...row }
await this.getDetail(row.id)
this.formType = addType
// this.dialogVisible = true
},
async addNew() {

412
src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue

@ -0,0 +1,412 @@
<template>
<div class="div_main">
<div class="div_search">
<el-form
:inline="true"
:model="formData"
ref="ref_searchform"
:label-width="'100px'"
>
<div>
<el-form-item label="所属组织" prop="orgId" >
<el-cascader
class="item_width_2"
ref="myCascaderm"
filterable
size="small"
v-model="agencyIdArray"
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"
></el-cascader>
</el-form-item>
<el-form-item label="房主姓名" prop="ownerName">
<el-input
class="item_width_2"
size="small"
v-model="formData.ownerName"
clearable
placeholder="请输入"
>
</el-input>
</el-form-item>
<el-form-item label="联系方式" prop="ownerPhone">
<el-input
class="item_width_2"
size="small"
v-model="formData.ownerPhone"
clearable
placeholder="请输入"
>
</el-input>
</el-form-item>
<el-form-item label="房屋用途" prop="purpose">
<el-select v-model="formData.purpose"
placeholder="请选择"
size="small"
class="item_width_2"
clearable
style="width: 240px"
:multiple="false">
<el-option v-for="item in housePurposeOption"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
class="item_width_2"
size="small"
v-model="formData.remark"
clearable
placeholder="请输入"
>
</el-input>
</el-form-item>
<el-button
style="margin-left: 30px"
size="small"
class="diy-button--search"
@click="handleSearch"
>查询</el-button
>
<el-button
style="margin-left: 10px"
size="small"
class="diy-button--reset"
@click="resetSearch"
>重置</el-button
>
</div>
</el-form>
</div>
<div class="div_table">
<el-table
border
:header-cell-style="{ background: '#2195FE', color: '#FFFFFF' }"
class="table"
:data="tableData"
style="width: 100%"
:height="maxTableHeight"
>
<el-table-column
label="序号"
fixed="left"
type="index"
align="center"
width="50"
/>
<el-table-column
prop="gridName"
align="center"
min-width="190"
label="所属组织"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<span>{{scope.row.agencyName }}-{{ scope.row.gridName}}</span>
</template>
</el-table-column>
<el-table-column
prop="houseName"
align="center"
min-width="180"
label="房屋名称"
:show-overflow-tooltip="true"
>
</el-table-column>
<el-table-column
prop="houseType"
label="类型"
min-width="150"
align="center"
:show-overflow-tooltip="true"
>
</el-table-column>
<el-table-column
prop="purpose"
align="center"
min-width="150"
label="用途"
:show-overflow-tooltip="true"
>
</el-table-column>
<el-table-column
prop="rentFlag"
align="center"
width="150"
:show-overflow-tooltip="true"
label="房屋状态"
>
</el-table-column>
<el-table-column
prop="ownerName"
align="center"
width="150"
:show-overflow-tooltip="true"
label="房主姓名"
>
</el-table-column>
<el-table-column
prop="ownerPhone"
align="center"
width="150"
:show-overflow-tooltip="true"
label="联系方式"
>
</el-table-column>
<el-table-column
prop="ownerIdCard"
align="center"
width="150"
:show-overflow-tooltip="true"
label="身份证"
>
</el-table-column>
<el-table-column
prop="remark"
align="center"
width="150"
:show-overflow-tooltip="true"
label="备注"
>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="100">
<template slot-scope="scope">
<!-- <el-button v-if="scope.row.issueStatus==='voting'&& agencyId===scope.row.orgId"
@click="handleDispose(scope.row)"
type="text" size="small"
class="div-table-button--edit">处理</el-button> -->
<el-button @click="handleWatch(scope.row)" type="text" size="small"
>查看</el-button
>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next, total"
:total="total"
>
</el-pagination>
</div>
</div>
<el-dialog
title="房屋详情"
:visible.sync="showhtglDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="950px"
v-if="showhtglDialog"
@close="detailFormCancle"
>
<qzf-info
ref="qzf_info"
@diaDetailClose="detailFormCancle"
>
</qzf-info>
</el-dialog>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { requestPost } from "@/js/dai/request";
import qzfInfo from "./qzfInfo.vue"
import axios from "axios";
export default {
data() {
let orgOptionProps = {
multiple: false,
value: 'agencyId',
label: 'agencyName',
children: 'subAgencyList',
checkStrictly: true
}
return {
orgOptions: [],
orgOptionProps,
housePurposeOption:[
{ value: '1', label: '住宅' },
{ value: '2', label: '商业' },
{ value: '3', label: '办公' },
{ value: '4', label: '工业' },
{ value: '5', label: '仓储' },
{ value: '6', label: '商住混用' },
{ value: '7', label: '其他' }
],
formData: {
ownerName: '',
ownerPhone: '',
startDate: '',
endDate: '',
purpose:'',
remark:'',
orgId:''
},
showhtglDialog:false,
topicId:'',
tableData:[],
dialogVisible:false,
agencyIdArray: [],
pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20,
total: 1,
};
},
created() {
this.getTableData()
},
mounted() {
this.getOrgTreeList();
},
methods: {
async getOrgTreeList() {
const url = "/gov/org/customeragency/agencygridtree";
let params = {
agencyId: this.agencyId,
purpose: "query",
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.orgOptions = [];
this.orgOptions.push(data);
} else {
this.$message.error(msg);
}
},
handleChangeAgency (val) {
let obj = this.$refs["myCascaderm"].getCheckedNodes()[0].data
console.log(obj);
if (obj) {
if (obj.level === 'grid') {
this.formData.orgId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
} else {
this.formData.orgId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
}
} else {
this.formData.orgId = ''
}
},
handleSizeChange (val) {
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
handleCurrentChange (val) {
this.pageNo = val;
this.getTableData();
},
handleSearch (val) {
this.pageNo = 1;
this.getTableData();
console.log(this.agencyIdArray);
},
resetSearch () {
this.agencyIdArray = []
this.formData = {
ownerName: '',
ownerPhone: '',
startDate: '',
endDate: '',
}
this.pageNo = 1
},
async getTableData () {
const url = "/gov/org/house/group-rent-house-list";
let { pageSize, pageNo, formData } = this;
// if(this.agencyIdArray.length ==1){
// orgId = JSONparse(JSON.stringify(this.agencyIdArray[0])).join()
// }else if(this.agencyIdArray.length ==2){
// orgId = JSONparse(JSON.stringify(this.agencyIdArray[1])).splice(1).join()
// }else if(this.agencyIdArray.length ==3){
// orgId = JSONparse(JSON.stringify(this.agencyIdArray[0])).splice(2).join()
// }else if(this.agencyIdArray.length ==4){
// orgId = JSONparse(JSON.stringify(this.agencyIdArray[0])).splice(3).join()
// }else{
// this.agencyIdArray = []
// }
console.log( this.agencyIdArray);
const { data, code, msg } = await requestPost(url, {
pageSize,
pageNo,
// orgId,
orgType: "agency",
...formData,
});
if (code === 0) {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
return item;
})
: [];
} else {
this.$message.error(msg);
}
},
detailFormCancle () {
this.showhtglDialog = false
},
async handleWatch (row) {
console.log(row,'see');
this.showhtglDialog = true
this.$nextTick(() => {
this.$refs.qzf_info.initForm(row)
})
},
},
components: {
qzfInfo
},
computed: {
maxTableHeight () {
return this.$store.state.inIframe
? this.clientHeight - 240 + this.iframeHeigh
: this.clientHeight - 240;
},
...mapGetters(["clientHeight", "iframeHeight"]),
},
watch: {},
};
</script>
<style lang="scss" scoped>
@import "@/assets/scss/buttonstyle.scss";
@import "@/assets/scss/modules/management/list-main.scss";
@import "@/assets/scss/modules/shequzhili/event-info.scss";
::v-deep .el-row{
margin:20px 0px 10px;
font-size: 15px;
}
</style>

360
src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue

@ -0,0 +1,360 @@
<template>
<div>
<div class="dialog-h-content scroll-h">
<div class="div_tuomin">
<el-button
size="mini"
class="diy-button--search"
@click="handleTuomin">显示脱敏信息</el-button>
</div>
<div v-if="initLoading"
class="m-row">
<div class="m-info">
<div class="info-prop">
<span class="info-title-2">所属楼栋</span>
<span>{{ dataForm.neighborHoodName }}-{{dataForm.buildingName}}</span>
</div>
<div class="info-prop">
<span class="info-title-2">单元号</span>
<span>{{ dataForm.unitName?dataForm.unitName:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">门牌号</span>
<span>{{ dataForm.doorName}}</span>
</div>
<div class="info-prop">
<span class="info-title-2">房屋编码</span>
<span>{{ dataForm.coding?dataForm.coding:'--'}}</span>
</div>
<div v-if="dataForm.houseQrcodeUrl"
style="display: flex;flex-direction: column;">
<img style="margin-left: 70px;width: 200px;"
:src="dataForm.houseQrcodeUrl">
<a style="margin-left: 80px"
:href="dataForm.houseQrcodeUrl"
target="_blank">下载</a>
</div>
<div class="info-prop">
<span class="info-title-2">房屋类型</span>
<span>{{dataForm.houseTypeName?dataForm.houseTypeName:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">房屋用途</span>
<span>{{dataForm.purposeName?dataForm.purposeName:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">房屋状态</span>
<span>{{dataForm.rentName?dataForm.rentName:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">房主姓名</span>
<span>{{dataForm.ownerName?dataForm.ownerName:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">联系方式</span>
<span>{{dataForm.showOwnerPhone?dataForm.showOwnerPhone:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">房主身份证</span>
<span>{{dataForm.showOwnerIdCard?dataForm.showOwnerIdCard:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">备注</span>
<span>{{dataForm.remark?dataForm.remark:'--' }}</span>
</div>
<div class="leftPostion_box">
<span class="">居住成员信息</span>
<span v-if="quanzufangResiList.length==0">--</span>
</div>
<section>
<el-row >
<el-col :span="3"> 姓名</el-col>
<el-col :span="7">联系方式</el-col>
<el-col :span="9">房主身份证</el-col>
</el-row>
<el-row type="flex" v-for="(item,index) in quanzufangResiList" :key="index">
<el-col :span="3"> {{item.name}}</el-col>
<el-col :span="7"> {{item.mobile?item.mobile:"--"}}</el-col>
<el-col :span="9"> {{item.idCard?item.idCard:"--"}}</el-col>
</el-row>
</section>
</div>
</div>
</div>
<div class="div-btn">
<el-button size="small"
@click="handleCancle"> </el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { Loading } from 'element-ui' // Loading
import { requestPost, requestGet } from '@/js/dai/request'
let loading //
export default {
data () {
return {
formType: 'add', // addeditdetail
btnDisable: false,
initLoading: false,
unitList: [],
houseId: '', //ID
houseType: '1',
purpose: '1',
rentFlag: 0,
dataForm: {
neighborHoodId: '', // ID
buildingId: '',//ID
buildingUnitId: '',//ID
doorName: '',//
houseType: '',//
purpose: '',//
rentFlag: 0,//10 12 0
ownerPhone: '', //
ownerName: '', //
ownerIdCard: '', //
remark: '',
quanzufangResiList:[],//
// realPerson: 0,
coding: '',
sysCoding: ''
},
keyWords: '',
agencyObj: {},
}
},
components: {},
mounted () {
},
methods: {
handleCancle () {
// this.diaDestroy()
this.$emit('diaDetailClose')
},
diaDestroy () {
},
async initForm (row, agencyObj) {
// this.dataForm = JSON.parse(JSON.stringify(row))
this.agencyObj = agencyObj
this.houseId = row.houseId
await this.loadHouseInfo()
await this.loadQunzufangInfo()
this.initLoading = true
// this.$refs.ref_form.resetFields();
// this.agencyObj = agencyObj
// this.formType = type
// console.log('agencyObj-----', agencyObj)
// if (row) {
// this.houseId = row.houseId
// await this.loadHouseInfo()
// } else {
// this.dataForm.neighborHoodId = this.agencyObj.neighborHoodId
// this.dataForm.buildingId = this.agencyObj.id
// }
// await this.loadUnitList()
},
async handleTuomin () {
const url = "/data/aggregator/epmetuser/detailByType";
const { data, code, msg } = await requestPost(url, {
id:this.houseId,
type: "checkHouse",
});
for(let i in this.quanzufangResiList){
await this.getResiTuomin( this.quanzufangResiList[i].id)
}
if (code === 0) {
this.$set(this.dataForm, 'showOwnerPhone', data.mobile)
this.$set(this.dataForm, 'showOwnerIdCard', data.idCard)
} else {
this.$message.error(msg);
}
},
async getResiTuomin(id){
const url = "/data/aggregator/epmetuser/detailByType";
const { data, code, msg } = await requestPost(url, {
id:id,
type: "checkIcResiUser",
});
if(code == 0){
for(let i in this.quanzufangResiList){
// console.log(this.quanzufangResiList[i].mobile.split(7,11));
// console.log(data.mobile.split(7,11));
if(this.quanzufangResiList[i].mobile.substr(7,4) == data.mobile.substr(7,4)){
this.$set(this.quanzufangResiList[i],'mobile',data.mobile)
this.$set(this.quanzufangResiList[i],'idCard',data.idCard)
}
}
}else {
this.$message.error(msg)
}
},
async loadHouseInfo () {
const url = "/gov/org/ichouse/" + this.houseId
const { data, code, msg } = await requestGet(url)
if (code === 0) {
// debugger
this.dataForm = { ...data }
this.houseType = this.dataForm.houseType
this.purpose = this.dataForm.purpose
this.rentFlag = parseInt(this.dataForm.rentFlag)
} else {
this.$message.error(msg)
}
},
async loadQunzufangInfo () {
const url = "/epmetuser/icresiuser/listhomeuserbrief-encrypt/" + this.houseId
const { data, code, msg } = await requestPost(url)
if (code === 0) {
// debugger
// this.dataForm = { ...data }
// this.houseType = this.dataForm.houseType
// this.purpose = this.dataForm.purpose
// this.rentFlag = parseInt(this.dataForm.rentFlag)
this.quanzufangResiList = data
console.log(data);
} else {
this.$message.error(msg)
}
},
resetData () {
this.houseId = '' //ID
this.houseType = '1'
this.purpose = '1'
this.rentFlag = 0
this.dataForm = {
neighborHoodId: '', // ID
buildingId: '',//ID
buildingUnitId: '',//ID
doorName: '',//
houseType: '1',//
purpose: '1',//
rentFlag: 0,//10
ownerPhone: '', //
ownerName: '', //
ownerIdCard: '', //
remark: '', //
coding: '',
sysCoding: ''
}
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
})
},
//
endLoading () {
// clearTimeout(timer);
if (loading) {
loading.close()
}
}
},
computed: {
dataRule () {
return {
buildingUnitId: [
{ required: true, message: '所属单元不能为空', trigger: 'blur' },
],
doorName: [
{ required: true, message: '门牌号不能为空', trigger: 'blur' }
],
coding: [
{ required: true, message: '房屋编码不能为空', trigger: 'blur' }
],
houseType: [
{ required: true, message: '房屋类型不能为空', trigger: 'blur' }
],
purpose: [
{ required: true, message: '房屋用途不能为空', trigger: 'blur' }
],
rentFlag: [
{ required: true, message: '是否出租不能为空', trigger: 'blur' }
],
ownerPhone: [
{ required: false }
],
ownerName: [
{ required: false }
],
ownerIdCard: [
{ required: false }
],
remark: [
{ required: false }
],
}
},
},
props: {
view_real_data: {//
type: Boolean,
default: false,
}
}
}
</script>
<style lang="scss" scoped >
// @import "@/assets/scss/modules/management/detail-main.scss";
.div_tuomin {
position: absolute;
top: 52px;
right: 40px;
z-index: 1000;
}
.leftPostion_box{
position: relative;
left: -80px;
font-size: 18px;
}
</style>

142
src/views/modules/shequzhili/tuceng/anquan/xuncharecord/icenterprisechangerecord-add-or-update.vue

@ -0,0 +1,142 @@
<template>
<el-dialog :visible.sync="visible" title="操作记录" :close-on-click-modal="false" :close-on-press-escape="false">
<el-table :cell-style="cellStyle" v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%">
<el-table-column show-overflow-tooltip width="200" prop="placeOrgName" label="场所名称" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="200" prop="address" label="场所地址" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="200" prop="placeType" label="场所类型" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="150" prop="scale" label="规模" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="150" prop="personInCharge" label="负责人" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="250" prop="mobile" label="联系电话" header-align="center" align="center"></el-table-column>
<el-table-column show-overflow-tooltip width="200" prop="createdTime" label="操作日期" header-align="center" align="center"></el-table-column>
</el-table>
<el-pagination
:current-page="page"
:page-sizes="[10, 20, 50, 100]"
:page-size="limit"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle">
</el-pagination>
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
</template>
</el-dialog>
</template>
<script>
import mixinViewModule from '@/mixins/view-module'
import debounce from 'lodash/debounce'
export default {
mixins: [mixinViewModule],
data () {
return {
mixinViewModuleOptions: {
getDataListURL: '/gov/org/enterprise/history/0',
getDataListIsPage: true,
createdIsNeed: false,
},
visible: false,
historyList:[],
dataForm: {
id: '',
customerId: '',
gridId: '',
agencyId: '',
agencyPids: '',
placeType: '',
placeOrgName: '',
address: '',
longitude: '',
latitude: '',
scale: '',
personInCharge: '',
mobile: '',
sourceType: '',
latestResult: '',
latestPatrolTime: '',
delFlag: '',
revision: '',
createdBy: '',
createdTime: '',
updatedBy: '',
updatedTime: ''
}
}
},
computed: {
dataRule () {
return {
}
}
},
methods: {
init () {
this.visible = true
this.$nextTick(() => {
if (this.dataForm.id) {
this.getInfo()
}
})
},
cellStyle({row, column, rowIndex, columnIndex}) {
let mark = 'background:red;font-weight:bold;color:#303133;'
if(row.placeOrgName.includes('->') && columnIndex === 0){
return mark
}
if(row.address.includes('->') && columnIndex === 1){
return mark
}
if(row.placeType.includes('->') && columnIndex === 2){
return mark
}
if(row.scale.includes('->') && columnIndex === 3){
return mark
}
if(row.personInCharge.includes('->') && columnIndex === 4){
return mark
}
if(row.mobile.includes('->') && columnIndex === 5){
return mark
}
},
//
getInfo () {
this.mixinViewModuleOptions.getDataListURL = `/gov/org/icEnterpriseChangeRecord/history/${this.dataForm.id}`
this.getDataList()
// this.$http.get(`/gov/org/icEnterpriseChangeRecord/history/${this.dataForm.id}`).then(({ data: res }) => {
// if (res.code !== 0) {
// this.historyList = []
// this.total = 0
// return this.$message.error(res.msg)
// }
// this.historyList = res.data.list
// this.total = res.data.total
//
// }).catch(() => {})
},
//
dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
}
this.$http[!this.dataForm.id ? 'post' : 'put']('/gov/org/icEnterpriseChangeRecord/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => {})
})
}, 1000, { 'leading': true, 'trailing': false })
}
}
</script>

358
src/views/modules/shequzhili/tuceng/anquan/xuncharecord/icenterprisechangerecord.vue

@ -0,0 +1,358 @@
<template>
<div class="mod-__icEnterpriseChangeRecord} resi-container">
<el-card ref="searchCard" class="search-card">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()" label-width="100px">
<el-form-item label="场所名称"
prop="placeOrgName">
<el-input v-model="dataForm.placeOrgName"
size="small"
style="width: 240px"
clearable
placeholder="请输入场所名称">
</el-input>
</el-form-item>
<el-form-item label="联系电话"
prop="createdUser">
<el-input v-model="dataForm.mobile"
size="small"
style="width: 240px"
clearable
placeholder="请输入联系电话">
</el-input>
</el-form-item>
<el-form-item label="场所区域"
prop="gridId">
<el-select
v-model.trim="dataForm.gridId"
placeholder="请选择"
style="width: 240px"
clearable
>
<el-option
v-for="item in optionsG"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="场所类型"
prop="placeType">
<el-select v-model="dataForm.placeType"
placeholder="请选择"
size="small"
style="width: 240px"
clearable>
<el-option v-for="item in placeTypeArr"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="规模"
prop="placeType">
<el-select v-model="dataForm.scale"
placeholder="请选择"
size="small"
style="width: 240px"
clearable>
<el-option v-for="item in scaleArr"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" size="small" class="diy-button--search" @click="getDataList()">{{ $t('query') }}</el-button>
<el-button style="margin-left:10px"
size="small"
type="primary"
class="diy-button--reset"
@click="resetSearch">重置</el-button>
</el-form-item>
<!-- <el-button style="margin-left:10px"
size="small"
type="primary"
class="diy-button--reset"
@click="resetSearch">重置</el-button> -->
<!-- <el-form-item>-->
<!-- <el-button type="primary" size="small" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>-->
<!-- </el-form-item>-->
<!-- <el-form-item>
<el-button size="small" style="margin-left:10px" type="danger" @click="deleteHandle()">{{ $t('deleteBatch') }}</el-button>
</el-form-item> -->
</el-form>
</el-card>
<el-card class="resi-card-table">
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%">
<el-table-column label="序号" type="index" align="center" width="50" />
<el-table-column prop="placeOrgName" label="场所名称" header-align="center" align="center"></el-table-column>
<el-table-column prop="address" label="场所地址" header-align="center" align="center"></el-table-column>
<el-table-column prop="placeType" label="场所类型" :formatter="placeTypeFormatter" header-align="center" align="center"></el-table-column>
<el-table-column prop="scale" label="规模" :formatter="scaleFormatter" header-align="center" align="center"></el-table-column>
<el-table-column prop="personInCharge" label="负责人" header-align="center" align="center"></el-table-column>
<el-table-column prop="mobile" label="联系电话" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.enterpriseId)">{{ '操作记录' }}</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:current-page="page"
:page-sizes="[10, 20, 50, 100]"
:page-size="limit"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle">
</el-pagination>
</el-card>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
</div>
</template>
<script>
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './icenterprisechangerecord-add-or-update'
import { requestPost } from "@/js/dai/request";
export default {
mixins: [mixinViewModule],
data () {
return {
mixinViewModuleOptions: {
getDataListURL: '/gov/org/enterprise/page',
getDataListIsPage: true,
deleteURL: '/gov/org/icEnterpriseChangeRecord',
deleteIsBatch: true
},
scaleArr: [],
resultArr: [{
value: '0',
label: '合格'
},{
value: '1',
label: '不合格'
}],
placeTypeArr: [],
agencyIdArray: [],
optionsG: [],
orgOptions: [],
orgOptionProps:{
multiple: false,
value: 'value',
label: 'label',
children: 'children',
checkStrictly: true
},
dataForm: {
id: ''
}
}
},
components: {
AddOrUpdate
},
created () {
this.getGridList()
this.getPlaceTypeList()
this.getScaleList()
},
methods: {
placeTypeFormatter (row) {
let re = ''
this.placeTypeArr.forEach((item) => {
if (item.value === row.placeType) {
re = item.label
}
})
return re
},
scaleFormatter (row) {
let re = ''
this.scaleArr.forEach((item) => {
if (item.value === row.scale) {
re = item.label
}
})
return re
},
resultFormatter (row) {
let re = ''
this.resultArr.forEach((item) => {
if (item.value === row.latestResult) {
re = item.label
}
})
return re
},
getPlaceTypeList() {
const { user } = this.$store.state
this.$http
.post('/gov/org/coverage/dict-select-list/enterprise_patrol', {})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
this.placeTypeArr = res.data
}
})
.catch(() => {
return this.$message.error('网络错误')
})
},
getGridList() {
const { user } = this.$store.state
this.$http
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' })
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
this.optionsG = res.data
}
})
.catch(() => {
return this.$message.error('网络错误')
})
},
exportHandle () {
const url = this.mixinViewModuleOptions.exportURL
this.$http({
method: 'GET',
url,
responseType: 'blob',
params: this.dataForm
}).then(res => {
// this.download(res.data, title + '.xls')
if (res.headers["content-disposition"]) {
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
console.log('filename', fileName)
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
var url = window.URL.createObjectURL(blob)
var aLink = document.createElement('a')
aLink.style.display = 'none'
aLink.href = url
aLink.setAttribute('download', fileName)
document.body.appendChild(aLink)
aLink.click()
document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob
} else this.$message.error('下载失败')
}).catch(err => {
console.log('err', err)
return this.$message.error('网络错误')
})
},
//
resetSearch () {
this.agencyIdArray = []
this.dataForm = {
agencyId: '',
gridId: '',
logType: '',
createdUser: '',
startTime: '',
endTime: '',
mobile: ''
}
this.getDataList()
},
//
async getScaleList () {
console.log(localStorage.getItem('token'))
const url = "/sys/dict/data/dictlist"
let params = {
dictType: 'scale'
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.scaleArr = data
} else {
this.$message.error(msg)
}
}
}
}
</script>
<style lang="scss" scoped>
@import "@/assets/scss/buttonstyle.scss";
.resi-container .resi-card-table {
::v-deep .el-table th {
color: #fff;
background-color: rgba(33, 149, 254, 1);
// border-right: 1px solid rgba(33, 149, 254, 1);
}
}
.resi-table {
::v-deep .el-button--text {
text-decoration: underline;
}
::v-deep .btn-color-del {
margin-left: 10px;
color: rgba(213, 16, 16, 1);
}
::v-deep .btn-color-edit {
color: rgba(0, 167, 169, 1);
}
}
.resi-row-btn {
margin-bottom: 13px;
.upload-btn {
display: inline-block;
margin: 0 10px;
}
}
.form-wr {
.input-width {
width: 260px;
}
.input-width-textarea {
width: 500px;
}
.imsg-list {
display: flex;
align-items: center;
.imgs-item {
position: relative;
margin-right: 10px;
.el-icon-delete {
position: absolute;
top: 0;
right: 0;
font-size: 18px;
color: red;
z-index: 3;
cursor: pointer;
}
}
}
}
.div-content {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
<style>
.el-table .warning-row {
background: #ffe168;
}
</style>

699
src/views/modules/shequzhili/tuceng/zhonghe/base.vue

@ -1,24 +1,45 @@
<template>
<div class="resi-container">
<el-card ref="searchCard" class="search-card">
<el-form
ref="searchForm"
:inline="true"
:model="fmData"
:label-width="'100px'"
class="demo-form-inline"
>
<el-card ref="searchCard"
class="search-card">
<el-form ref="searchForm"
:inline="true"
:model="fmData"
:label-width="'100px'"
class="demo-form-inline">
<div>
<el-form-item prop="gridId" label="所属组织">
<el-form-item prop="category"
label="居民类别">
<div class="resi-cell-value">
<el-form-item prop="category">
<el-select v-model="fmData.category"
placeholder="请选择居民类别"
size="small"
clearable
class="resi-cell-select">
<el-option v-for="(item,index) in jmlbOptions"
@click.native="handleChangeJmlb(index)"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</div>
</el-form-item>
<el-form-item prop="gridId"
label="所属组织">
<div class="resi-cell-value">
<el-cascader class="customer_cascader"
ref="myCascader"
clearable
v-model="agencyIdArray"
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"></el-cascader>
ref="myCascader"
size="small"
filterable
clearable
v-model="agencyIdArray"
:options="orgOptions"
:props="orgOptionProps"
:show-all-levels="false"
@change="handleChangeAgency"></el-cascader>
</div>
</el-form-item>
<!-- <el-form-item prop="gridId" label="所属网格">
@ -46,76 +67,60 @@
<div class="resi-cell-value">
<div class="resi-cell-col">
<el-form-item prop="villageId">
<el-select
v-model.trim="fmData.villageId"
placeholder="请选择小区"
size="small"
clearable
class="resi-cell-select"
@change="handleChangeV"
>
<el-option
v-for="item in optionsV"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model.trim="fmData.villageId"
placeholder="请选择小区"
size="small"
clearable
class="resi-cell-select"
@change="handleChangeV">
<el-option v-for="item in optionsV"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="buildId">
<el-select
v-model.trim="fmData.buildId"
placeholder="楼号"
size="small"
clearable
:disabled="changeVDisabled"
class="resi-cell-select resi-cell-select-middle"
@change="handleChangeB"
>
<el-option
v-for="item in optionsB"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model.trim="fmData.buildId"
placeholder="楼号"
size="small"
clearable
:disabled="changeVDisabled"
class="resi-cell-select resi-cell-select-middle"
@change="handleChangeB">
<el-option v-for="item in optionsB"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="unitId">
<el-select
v-model.trim="fmData.unitId"
placeholder="单元"
size="small"
clearable
:disabled="changeBDisabled"
class="resi-cell-select resi-cell-select-middle"
@change="handleChangeD"
>
<el-option
v-for="item in optionsD"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model.trim="fmData.unitId"
placeholder="单元"
size="small"
clearable
:disabled="changeBDisabled"
class="resi-cell-select resi-cell-select-middle"
@change="handleChangeD">
<el-option v-for="item in optionsD"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="homeId">
<el-select
v-model.trim="fmData.homeId"
placeholder="房号"
size="small"
clearable
:disabled="changeDDisabled"
class="resi-cell-select resi-cell-select-middle"
>
<el-option
v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model.trim="fmData.homeId"
placeholder="房号"
size="small"
clearable
:disabled="changeDDisabled"
class="resi-cell-select resi-cell-select-middle">
<el-option v-for="item in optionsH"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
@ -125,187 +130,160 @@
</div>
<div>
<el-form-item label="姓名" prop="name">
<el-input
v-model="fmData.name"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入"
>
<el-form-item label="姓名"
prop="name">
<el-input v-model="fmData.name"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入">
</el-input>
</el-form-item>
<el-form-item label="手机号" prop="mobile">
<el-input
v-model="fmData.mobile"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入"
>
<el-form-item label="手机号"
prop="mobile">
<el-input v-model="fmData.mobile"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入">
</el-input>
</el-form-item>
<el-form-item label="身份证号" prop="idCard">
<el-input
v-model="fmData.idCard"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入"
>
<el-form-item label="身份证号"
prop="idCard">
<el-input v-model="fmData.idCard"
class="resi-cell-input"
size="small"
clearable
placeholder="请输入">
</el-input>
</el-form-item>
<el-form-item>
<el-button
class="diy-button--search"
size="small"
@click="handleSearch"
>查询</el-button
>
<el-button
class="diy-button--reset"
size="small"
@click="resetForm('searchForm')"
>重置</el-button
>
<el-button class="diy-button--search"
size="small"
@click="handleSearch">查询</el-button>
<el-button class="diy-button--reset"
size="small"
@click="resetForm('searchForm')">重置</el-button>
</el-form-item>
</div>
</el-form>
</el-card>
<el-card class="resi-card-table">
<div class="resi-row-btn">
<el-button @click="handleChu" class="diy-button--reset" size="small"
>导出</el-button
>
<el-button @click="handleChu"
class="diy-button--reset"
size="small">导出</el-button>
</div>
<el-table
:data="tableData"
border
style="width: 100%"
class="resi-table"
:height="tableHeight"
>
<el-table-column
label="序号"
fixed="left"
type="index"
align="center"
width="50"
/>
<el-table-column
prop="GRID_ID"
align="center"
label="所属网格"
min-width="160"
:show-overflow-tooltip="true"
>
<el-table :data="tableData"
border
style="width: 100%"
class="resi-table"
:height="tableHeight">
<el-table-column label="序号"
fixed="left"
type="index"
align="center"
width="50" />
<el-table-column prop="GRID_ID"
align="center"
label="所属网格"
min-width="160"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
prop="HOME_ID"
label="所属房屋"
align="center"
min-width="160"
:show-overflow-tooltip="true"
/>
<el-table-column
prop="NAME"
align="center"
label="姓名"
:show-overflow-tooltip="true"
>
<el-table-column prop="HOME_ID"
label="所属房屋"
align="center"
min-width="160"
:show-overflow-tooltip="true" />
<el-table-column prop="NAME"
align="center"
label="姓名"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
prop="MOBILE"
width="140"
align="center"
label="手机"
:show-overflow-tooltip="true"
>
<el-table-column prop="MOBILE"
width="140"
align="center"
label="手机"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="GENDER" align="center" width="60" label="性别">
<el-table-column prop="GENDER"
align="center"
width="60"
label="性别">
</el-table-column>
<el-table-column
prop="ID_CARD"
align="center"
min-width="160"
label="身份证号"
:show-overflow-tooltip="true"
>
<el-table-column prop="ID_CARD"
align="center"
min-width="160"
label="身份证号"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
prop="BIRTHDAY"
align="center"
label="出生日期"
:show-overflow-tooltip="true"
>
<el-table-column prop="BIRTHDAY"
align="center"
label="出生日期"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column
prop="REMARKS"
align="center"
label="备注"
:show-overflow-tooltip="true"
>
<el-table-column prop="zhzlCategoryName"
align="center"
label="类别"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="REMARKS"
align="center"
label="备注"
:show-overflow-tooltip="true">
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120">
<el-table-column fixed="right"
label="操作"
align="center"
width="120">
<template slot-scope="scope">
<el-button
@click="handleWatch(scope.$index)"
type="text"
size="small"
>查看</el-button
>
<el-button @click="handleWatch(scope.$index)"
type="text"
size="small">查看</el-button>
</template>
</el-table-column>
</el-table>
<div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next, total"
:total="total"
>
<el-pagination @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next, total"
:total="total">
</el-pagination>
</div>
</el-card>
<people-more
v-if="showedPeopleMoreInfo && currentPepeleId"
:userId="currentPepeleId"
:gridName="currentPepeleGridName"
@close="showedPeopleMoreInfo = false"
/>
<el-dialog
:visible.sync="diyDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="1150px"
top="5vh"
class="dialog-h"
>
<diy-info
v-if="diyDialog"
ref="ref_diy"
:list="exportList"
:search="computeQueryParams()"
@close="diyDialog = false"
></diy-info>
<people-more v-if="showedPeopleMoreInfo && currentPepeleId"
:userId="currentPepeleId"
:gridName="currentPepeleGridName"
@close="showedPeopleMoreInfo = false" />
<el-dialog :visible.sync="diyDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="1150px"
top="5vh"
class="dialog-h">
<diy-info v-if="diyDialog"
ref="ref_diy"
:list="exportList"
:search="computeQueryParams()"
@close="diyDialog = false"></diy-info>
</el-dialog>
</div>
</template>
@ -319,14 +297,11 @@ import diyInfo from "@/views/modules/base/diyInfo.vue";
export default {
props: {
elseParams: {
type: Array,
default: () => [],
},
},
components: { peopleMore, diyInfo },
data() {
data () {
return {
openSearch: false,
@ -345,14 +320,15 @@ export default {
optionsD: [],
optionsG: [],
orgOptions: [],
orgOptionProps:{
jmlbOptions: [],
orgOptionProps: {
multiple: false,
value: 'agencyId',
label: 'agencyName',
children: 'subAgencyList',
checkStrictly: true
},
agencyIdArray:[],
},
agencyIdArray: [],
optionsWelfare: [
{
@ -366,7 +342,7 @@ export default {
],
fmData: {
agencyId:"",
agencyId: "",
gridId: "",
villageId: "",
buildId: "",
@ -375,6 +351,7 @@ export default {
name: "",
mobile: "",
idCard: "",
category: "",
},
rangeTime: [],
@ -389,11 +366,13 @@ export default {
diyDialog: false,
exportList: [],
elseParams: [],
};
},
computed: {
...mapGetters(["clientHeight", "iframeHeight"]),
maxTableHeight() {
maxTableHeight () {
console.log("computed-searchH---", this.searchH);
const h = this.clientHeight - this.searchH + this.iframeHeight;
const _h = this.clientHeight - this.searchH;
@ -401,13 +380,13 @@ export default {
return this.$store.state.inIframe ? h : _h;
},
changeVDisabled() {
changeVDisabled () {
return !this.fmData.villageId;
},
changeBDisabled() {
changeBDisabled () {
return !this.fmData.buildId;
},
changeDDisabled() {
changeDDisabled () {
return !this.fmData.unitId;
},
},
@ -422,7 +401,7 @@ export default {
this.fmData.endTime = "";
}
},
searchH() {
searchH () {
const h = this.clientHeight - this.searchH + this.iframeHeight;
const _h = this.clientHeight - this.searchH;
console.log("computed-searchH---_h", _h);
@ -432,7 +411,8 @@ export default {
});
},
},
mounted() {
async mounted () {
await this.getJmlb();
this.getOrgTreeList();
this.getGridList();
this.getValiheList();
@ -441,7 +421,7 @@ export default {
console.log("searchH----", this.$refs.searchCard.$el.offsetHeight);
},
methods: {
async handleWatch(rowIndex) {
async handleWatch (rowIndex) {
let item = this.tableData[rowIndex];
this.currentPepeleId = item.icResiUserId;
this.currentPepeleGridName = item.GRID_ID;
@ -449,20 +429,20 @@ export default {
this.showedPeopleMoreInfo = true;
},
handleClearVillage() {
handleClearVillage () {
this.fmData.buildId = "";
this.fmData.homeId = "";
},
handleClearBuild() {
handleClearBuild () {
this.fmData.buildId = "";
this.fmData.unitId = "";
this.fmData.homeId = "";
},
handleClearDan() {
handleClearDan () {
this.fmData.unitId = "";
this.fmData.homeId = "";
},
handleChangeGrid(val) {
handleChangeGrid (val) {
console.log("val", val);
this.fmData.villageId = "";
this.fmData.buildId = "";
@ -470,44 +450,94 @@ export default {
this.fmData.homeId = "";
this.getValiheList();
},
handleChangeV(val) {
handleChangeV (val) {
console.log("val", val);
this.fmData.buildId = "";
this.fmData.unitId = "";
this.fmData.homeId = "";
this.getBuildList();
},
handleChangeB(val) {
handleChangeB (val) {
console.log("val", val);
this.fmData.unitId = "";
this.fmData.homeId = "";
this.getUniList();
},
handleChangeD(val) {
handleChangeD (val) {
console.log("val", val);
this.fmData.homeId = "";
this.getHouseList();
},
handleChangeJmlb (index) {
// debugger
let selItem = this.jmlbOptions[index]
this.elseParams = []
let temp = {
queryType: selItem.queryType,
tableName: selItem.tableName,
columnName: selItem.columnName,
columnValue: [selItem.columnValue],
}
this.elseParams.push(temp)
},
async getJmlb () {
const url = '/data/aggregator/coverage/zhzl-category-option'
let params = {}
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.jmlbOptions = []
this.jmlbOptions = data
if (this.jmlbOptions.length > 0) {
this.fmData.category = 'anzhibangjiao'
// let temp = {
// queryType: this.jmlbOptions[0].queryType,
// tableName: this.jmlbOptions[0].tableName,
// columnName: this.jmlbOptions[0].columnName,
// columnValue: [this.jmlbOptions[0].columnValue],
// }
let temp = {
queryType: 'list_equal',
tableName: 'ic_special',
columnName: 'SPECIAL_RQLB',
columnValue: ["anzhibangjiao"],
}
this.elseParams.push(temp)
}
} else {
this.$message.error(msg)
}
},
getOrgTreeList () {
getOrgTreeList() {
const { user } = this.$store.state
this.$http
.post('/gov/org/customeragency/agencygridtree', {})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取组织树成功', res.data)
this.orgOptions=[]
this.orgOptions .push( res.data)
}
})
.catch(() => {
return this.$message.error('网络错误')
})
.post('/gov/org/customeragency/agencygridtree', {})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取组织树成功', res.data)
this.orgOptions = []
this.orgOptions.push(res.data)
}
})
.catch(() => {
return this.$message.error('网络错误')
})
},
getGridList() {
getGridList () {
const { user } = this.$store.state;
this.$http
.post("/gov/org/customergrid/gridoption", {
@ -526,7 +556,7 @@ export default {
return this.$message.error("网络错误");
});
},
getValiheList() {
getValiheList () {
const { user } = this.$store.state;
this.$http
.post("/gov/org/icneighborhood/neighborhoodoption", {
@ -546,7 +576,7 @@ export default {
return this.$message.error("网络错误");
});
},
getBuildList() {
getBuildList () {
this.$http
.post("/gov/org/icbuilding/buildingoption", {
neighborHoodId: this.fmData.villageId,
@ -563,7 +593,7 @@ export default {
return this.$message.error("网络错误");
});
},
getUniList() {
getUniList () {
this.$http
.post("/gov/org/icbuildingunit/unitoption", {
buildingId: this.fmData.buildId,
@ -580,7 +610,7 @@ export default {
return this.$message.error("网络错误");
});
},
getHouseList() {
getHouseList () {
this.$http
.post("/gov/org/ichouse/houseoption", { unitId: this.fmData.unitId })
.then(({ data: res }) => {
@ -596,46 +626,71 @@ export default {
});
},
handleSizeChange(val) {
handleSizeChange (val) {
console.log(`每页 ${val}`);
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
handleCurrentChange(val) {
handleCurrentChange (val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.getTableData();
},
handleClose() {
handleClose () {
this.formShow = false;
},
handleSearch(val) {
handleSearch (val) {
console.log(this.fmData);
this.pageNo = 1;
this.getTableData();
},
resetForm(formName) {
this.$refs[formName].resetFields();
resetForm (formName) {
// this.$refs[formName].resetFields();
this.agencyIdArray = []
this.fmData = {
agencyId: "",
gridId: "",
villageId: "",
buildId: "",
unitId: "",
homeId: "",
name: "",
mobile: "",
idCard: "",
}
this.elseParams = []
if (this.jmlbOptions.length > 0) {
this.fmData.category = this.jmlbOptions[0].value
let temp = {
queryType: this.jmlbOptions[0].queryType,
tableName: this.jmlbOptions[0].tableName,
columnName: this.jmlbOptions[0].columnName,
columnValue: [this.jmlbOptions[0].columnValue],
}
this.elseParams.push(temp)
}
this.handleSearch();
},
handleChangeAgency(val) {
handleChangeAgency (val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) {
if(obj.level === 'grid'){
this.fmData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.fmData.agencyId=''
}else{
if (obj.level === 'grid') {
this.fmData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.fmData.agencyId = ''
} else {
this.fmData.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.fmData.gridId = ''
}
}else{
this.fmData.agencyId=''
this.fmData.gridId = ''
} else {
this.fmData.agencyId = ''
this.fmData.gridId = ''
}
@ -646,19 +701,19 @@ export default {
this.getValiheList()
},
computeQueryParams() {
computeQueryParams () {
const { pageSize, pageNo, elseParams, fmData } = this;
let conditions=[]
if(fmData.agencyId){
let conditions = []
if (fmData.agencyId) {
conditions.push({
queryType: "like",
tableName: "ic_resi_user",
columnName: "AGENCY_ID",
columnValue: [fmData.agencyId],
},)
queryType: "like",
tableName: "ic_resi_user",
columnName: "AGENCY_ID",
columnValue: [fmData.agencyId],
})
}
if(fmData.gridId){
if (fmData.gridId) {
conditions.push(
{
queryType: "equal",
@ -669,7 +724,7 @@ export default {
)
}
if(fmData.villageId){
if (fmData.villageId) {
conditions.push(
{
queryType: "equal",
@ -680,56 +735,56 @@ export default {
)
}
if(fmData.buildId){
if (fmData.buildId) {
conditions.push({
queryType: "equal",
tableName: "ic_resi_user",
columnName: "BUILD_ID",
columnValue: [fmData.buildId],
})
queryType: "equal",
tableName: "ic_resi_user",
columnName: "BUILD_ID",
columnValue: [fmData.buildId],
})
}
if(fmData.unitId){
if (fmData.unitId) {
conditions.push({
queryType: "equal",
tableName: "ic_resi_user",
columnName: "UNIT_ID",
columnValue: [fmData.unitId],
})
queryType: "equal",
tableName: "ic_resi_user",
columnName: "UNIT_ID",
columnValue: [fmData.unitId],
})
}
if(fmData.homeId){
if (fmData.homeId) {
conditions.push({
queryType: "equal",
tableName: "ic_resi_user",
columnName: "HOME_ID",
columnValue: [fmData.homeId],
})
queryType: "equal",
tableName: "ic_resi_user",
columnName: "HOME_ID",
columnValue: [fmData.homeId],
})
}
if(fmData.name){
if (fmData.name) {
conditions.push({
queryType: "like",
tableName: "ic_resi_user",
columnName: "NAME",
columnValue: [fmData.name],
})
queryType: "like",
tableName: "ic_resi_user",
columnName: "NAME",
columnValue: [fmData.name],
})
}
if(fmData.mobile){
if (fmData.mobile) {
conditions.push({
queryType: "like",
tableName: "ic_resi_user",
columnName: "MOBILE",
columnValue: [fmData.mobile],
})
queryType: "like",
tableName: "ic_resi_user",
columnName: "MOBILE",
columnValue: [fmData.mobile],
})
}
if(fmData.idCard){
if (fmData.idCard) {
conditions.push({
queryType: "like",
tableName: "ic_resi_user",
columnName: "ID_CARD",
columnValue: [fmData.idCard],
})
queryType: "like",
tableName: "ic_resi_user",
columnName: "ID_CARD",
columnValue: [fmData.idCard],
})
}
return {
@ -745,11 +800,11 @@ export default {
};
},
async handleChu() {
async handleChu () {
this.getExportList();
},
async getExportList() {
async getExportList () {
const url = "/oper/customize//icformitemgroup/list";
let params = {
formCode: "resi_base_info",
@ -774,8 +829,8 @@ export default {
}
},
async getTableData() {
const url = "/epmetuser/icresiuser/listresi";
async getTableData () {
const url = "/epmetuser/icresiuser/listresi-zhzl";
const { data, code, msg } = await requestPost(url, {
...this.computeQueryParams(),
});
@ -784,8 +839,8 @@ export default {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
return item;
})
return item;
})
: [];
} else {
}

Loading…
Cancel
Save