|
@@ -1,5 +1,21 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
|
|
+ <!-- 修改 -->
|
|
|
|
|
+ <u-popup v-model="popupShow" mode="center" width="650" :closeable="true" border-radius="10">
|
|
|
|
|
+ <view style="padding: 60rpx 40rpx 10rpx;">
|
|
|
|
|
+ <u-form label-width="150" :model="form">
|
|
|
|
|
+ <u-form-item label="小区名称" :required="true"><u-input v-model="form.name" /></u-form-item>
|
|
|
|
|
+ <u-form-item label="所属机构" :required="true">
|
|
|
|
|
+ <u-input type="select" disabled @click="operaType=1;agencypopupShow=true" v-model="form.agencyName" />
|
|
|
|
|
+ </u-form-item>
|
|
|
|
|
+ <u-form-item label="负责人" ><u-input v-model="form.personName" /></u-form-item>
|
|
|
|
|
+ <u-form-item label="联系电话" ><u-input v-model="form.personTel" /></u-form-item>
|
|
|
|
|
+ </u-form>
|
|
|
|
|
+ <view @click="submit" class="flex cu-btn bg-blue" style="margin: 60rpx 0 10rpx;padding: 40rpx;">
|
|
|
|
|
+ 提交
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-popup>
|
|
|
<!-- 筛选标签条 -->
|
|
<!-- 筛选标签条 -->
|
|
|
<view class="cu-bar bg-white flex" style="z-index: 100;width: 100%;position: fixed;top: -2rpx;">
|
|
<view class="cu-bar bg-white flex" style="z-index: 100;width: 100%;position: fixed;top: -2rpx;">
|
|
|
<view class="u-line-1" @click="showDown(index)" v-for="(item,index) in filterMenu" :key="index" style="width: 20%;text-align: center;height: 100%;">
|
|
<view class="u-line-1" @click="showDown(index)" v-for="(item,index) in filterMenu" :key="index" style="width: 20%;text-align: center;height: 100%;">
|
|
@@ -15,7 +31,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</mescroll-body>
|
|
</mescroll-body>
|
|
|
<!-- 所属机构 -->
|
|
<!-- 所属机构 -->
|
|
|
- <u-popup border-radius="60" height="60%" mode="bottom" v-model="popupShow">
|
|
|
|
|
|
|
+ <u-popup border-radius="60" height="60%" mode="bottom" v-model="agencypopupShow">
|
|
|
<view class="fixed cu-bar search bg-white">
|
|
<view class="fixed cu-bar search bg-white">
|
|
|
<view class="search-form round">
|
|
<view class="search-form round">
|
|
|
<text class="cuIcon-search"></text>
|
|
<text class="cuIcon-search"></text>
|
|
@@ -30,19 +46,19 @@
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
<u-empty v-else name="search"></u-empty>
|
|
<u-empty v-else name="search"></u-empty>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
|
- <!-- 小区名字筛选 -->
|
|
|
|
|
- <u-popup border-radius="60" height="60%" mode="bottom" v-model="residentailShow">
|
|
|
|
|
|
|
+ <!-- 物业名称筛选 -->
|
|
|
|
|
+ <u-popup border-radius="60" height="60%" mode="bottom" v-model="estateShow">
|
|
|
<view class="fixed cu-bar search bg-white">
|
|
<view class="fixed cu-bar search bg-white">
|
|
|
<view class="search-form round">
|
|
<view class="search-form round">
|
|
|
<text class="cuIcon-search"></text>
|
|
<text class="cuIcon-search"></text>
|
|
|
- <u-input style="width: 90%;" v-model="residentialKeyWord" type="text" :adjust-position="false" placeholder="请输入关键字搜索" confirm-type="search"/>
|
|
|
|
|
|
|
+ <u-input style="width: 90%;" v-model="estateKeyWord" type="text" :adjust-position="false" placeholder="请输入关键字搜索" confirm-type="search"/>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <scroll-view v-if="!$isEmpty(list)" style="padding-top: 110rpx;height: 100%;" :scroll-y="true" >
|
|
|
|
|
- <view @click="buildingConfirm(item)" hover-class="hoverClass" class="text-center padding-30 solid-bottom" v-for="(item,index) in list" :key="index">
|
|
|
|
|
- <text>{{item.name}}</text>
|
|
|
|
|
|
|
+ <scroll-view v-if="!$isEmpty(searchList)" style="padding-top: 110rpx;height: 100%;" :scroll-y="true" >
|
|
|
|
|
+ <view @click="estateComfirm(item)" hover-class="hoverClass" class="text-center padding-30 solid-bottom" v-for="(item,index) in searchList" :key="index">
|
|
|
|
|
+ <text>{{item.label}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <u-divider v-if="list.length>=10" height="80">只显示十条数据</u-divider>
|
|
|
|
|
|
|
+ <u-divider v-if="searchList.length>=10" height="80">只显示十条数据</u-divider>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
<u-empty v-else name="search"></u-empty>
|
|
<u-empty v-else name="search"></u-empty>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
@@ -70,6 +86,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import card from "./card.vue"
|
|
import card from "./card.vue"
|
|
|
import MescrollMixin from "@/components/mescroll-body/mescroll-mixins.js";
|
|
import MescrollMixin from "@/components/mescroll-body/mescroll-mixins.js";
|
|
|
|
|
+ import util from "../../utils/util";
|
|
|
let that;
|
|
let that;
|
|
|
export default {
|
|
export default {
|
|
|
components:{
|
|
components:{
|
|
@@ -78,6 +95,10 @@
|
|
|
mixins:[MescrollMixin],
|
|
mixins:[MescrollMixin],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ //新增修改详情弹窗
|
|
|
|
|
+ agencypopupShow:false,
|
|
|
|
|
+ form:{},
|
|
|
|
|
+ operaType:0,
|
|
|
|
|
|
|
|
//顶部菜单栏
|
|
//顶部菜单栏
|
|
|
filterMenu: ["地区","归属","物业名称","筛选"],
|
|
filterMenu: ["地区","归属","物业名称","筛选"],
|
|
@@ -99,8 +120,8 @@
|
|
|
agencyKeyword:'',
|
|
agencyKeyword:'',
|
|
|
|
|
|
|
|
//小区
|
|
//小区
|
|
|
- residentailShow:false,
|
|
|
|
|
- residentialKeyWord:'',
|
|
|
|
|
|
|
+ estateShow:false,
|
|
|
|
|
+ estateKeyWord:'',
|
|
|
list: [],
|
|
list: [],
|
|
|
downOption: {
|
|
downOption: {
|
|
|
use: true,
|
|
use: true,
|
|
@@ -121,7 +142,7 @@
|
|
|
},
|
|
},
|
|
|
onLoad(){
|
|
onLoad(){
|
|
|
that=this
|
|
that=this
|
|
|
- this.getResidentailList()
|
|
|
|
|
|
|
+ this.getAgencyList()
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
if (this.canReset) {
|
|
if (this.canReset) {
|
|
@@ -146,7 +167,7 @@
|
|
|
this.getAgencyList(params)
|
|
this.getAgencyList(params)
|
|
|
}, 500)
|
|
}, 500)
|
|
|
},
|
|
},
|
|
|
- residentialKeyWord(){
|
|
|
|
|
|
|
+ estateKeyWord(){
|
|
|
let that=this
|
|
let that=this
|
|
|
//节流函数
|
|
//节流函数
|
|
|
if (this.timer){
|
|
if (this.timer){
|
|
@@ -156,7 +177,7 @@
|
|
|
that.residentialList=[]
|
|
that.residentialList=[]
|
|
|
let params={
|
|
let params={
|
|
|
agencyId:that.params.agencyId,
|
|
agencyId:that.params.agencyId,
|
|
|
- name:that.residentialKeyWord
|
|
|
|
|
|
|
+ estatePidName:that.estateKeyWord
|
|
|
}
|
|
}
|
|
|
that.getResidentailList(params)
|
|
that.getResidentailList(params)
|
|
|
}, 500)
|
|
}, 500)
|
|
@@ -204,8 +225,10 @@
|
|
|
this.$api.residential.pageBycondition(params).then(res=>{
|
|
this.$api.residential.pageBycondition(params).then(res=>{
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
let data=res.data.records
|
|
let data=res.data.records
|
|
|
|
|
+ // let data=res.list
|
|
|
let length=data.length
|
|
let length=data.length
|
|
|
let total=res.data.total
|
|
let total=res.data.total
|
|
|
|
|
+ // let total = res.list.length
|
|
|
mescroll.endBySize(length, total);
|
|
mescroll.endBySize(length, total);
|
|
|
if(mescroll.num == 1) this.list = [];
|
|
if(mescroll.num == 1) this.list = [];
|
|
|
this.list=this.list.concat(data);
|
|
this.list=this.list.concat(data);
|
|
@@ -223,8 +246,7 @@
|
|
|
this.areaValue=''
|
|
this.areaValue=''
|
|
|
this.searchList=[]
|
|
this.searchList=[]
|
|
|
this.agencyKeyword=''
|
|
this.agencyKeyword=''
|
|
|
- this.unitList=[]
|
|
|
|
|
- this.residentialKeyWord='',
|
|
|
|
|
|
|
+ this.estateKeyWord='',
|
|
|
this.list=[],
|
|
this.list=[],
|
|
|
this.mescroll.resetUpScroll()
|
|
this.mescroll.resetUpScroll()
|
|
|
},
|
|
},
|
|
@@ -234,9 +256,13 @@
|
|
|
*/
|
|
*/
|
|
|
getResidentailList(params){
|
|
getResidentailList(params){
|
|
|
console.log(params)
|
|
console.log(params)
|
|
|
- this.$api.residential.page(params).then(res=>{
|
|
|
|
|
|
|
+ // this.$api.residential.page(params).then(res=>{
|
|
|
|
|
+ // console.log(122,res)
|
|
|
|
|
+ // this.list = res.list;
|
|
|
|
|
+ // })
|
|
|
|
|
+ this.$api.residential.pageBycondition(params).then(res=>{
|
|
|
console.log(122,res)
|
|
console.log(122,res)
|
|
|
- this.list = res.list;
|
|
|
|
|
|
|
+ this.list = res.data.records;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -251,11 +277,11 @@
|
|
|
}
|
|
}
|
|
|
if(index==1){
|
|
if(index==1){
|
|
|
//归属
|
|
//归属
|
|
|
- this.popupShow = true;
|
|
|
|
|
|
|
+ this.agencypopupShow = true;
|
|
|
return;
|
|
return;
|
|
|
}else if(index==2){
|
|
}else if(index==2){
|
|
|
//物业名称
|
|
//物业名称
|
|
|
- this.residentailShow=true
|
|
|
|
|
|
|
+ this.estateShow=true
|
|
|
}else if (index==3) {
|
|
}else if (index==3) {
|
|
|
//筛选
|
|
//筛选
|
|
|
this.filterShow=true
|
|
this.filterShow=true
|
|
@@ -276,50 +302,79 @@
|
|
|
this.data[0]= object.area.label;
|
|
this.data[0]= object.area.label;
|
|
|
this.areaValue = object.area.value;
|
|
this.areaValue = object.area.value;
|
|
|
let params = {
|
|
let params = {
|
|
|
- isSelect: true,
|
|
|
|
|
regionArea: this.areaValue
|
|
regionArea: this.areaValue
|
|
|
};
|
|
};
|
|
|
- this.getAgencyList(params);
|
|
|
|
|
|
|
+ this.getAgencyList(params)
|
|
|
|
|
+ this.getResidentailList(params)
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
- * 获取机构列表
|
|
|
|
|
|
|
+ * 获取物业列表
|
|
|
* @param {Object} params
|
|
* @param {Object} params
|
|
|
*/
|
|
*/
|
|
|
- // getListByLikeName(params){
|
|
|
|
|
- // let list = [];
|
|
|
|
|
- // this.$api.permissions.orgList(params).then(res=>{
|
|
|
|
|
- // console.log(res)
|
|
|
|
|
- // let list = [];
|
|
|
|
|
- // for(let item of res.data.records){
|
|
|
|
|
- // let element = {
|
|
|
|
|
- // label: item.name,
|
|
|
|
|
- // value: item.id
|
|
|
|
|
- // }
|
|
|
|
|
- // list.splice(list.length,0,element);
|
|
|
|
|
- // // list.push(obj);
|
|
|
|
|
- // }
|
|
|
|
|
- // this.searchList = list;
|
|
|
|
|
- // })
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ getListByLikeName(params){
|
|
|
|
|
+ let list = [];
|
|
|
|
|
+ this.$api.permissions.orgList(params).then(res=>{
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ let list = [];
|
|
|
|
|
+ for(let item of res.data.records){
|
|
|
|
|
+ let element = {
|
|
|
|
|
+ label: item.name,
|
|
|
|
|
+ value: item.id
|
|
|
|
|
+ }
|
|
|
|
|
+ list.splice(list.length,0,element);
|
|
|
|
|
+ // list.push(obj);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.searchList = list;
|
|
|
|
|
+ // this.mescroll.resetUpScroll()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 物业确认
|
|
|
|
|
+ */
|
|
|
|
|
+ estateComfirm(res){
|
|
|
|
|
+ console.log("物业确认:",res)
|
|
|
|
|
+ this.params.estatePid =res.value
|
|
|
|
|
+ this.data[2] = res.label
|
|
|
|
|
+ this.estateShow = false
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ //获取小区
|
|
|
|
|
+ let params={
|
|
|
|
|
+ agencyId:this.params.agencyId,
|
|
|
|
|
+ estatePid:this.params.estatePid
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$api.residential.pageBycondition(params).then(res=>{
|
|
|
|
|
+ console.log(333,res)
|
|
|
|
|
+ this.list = res.data.records;
|
|
|
|
|
+ })
|
|
|
|
|
+ this.mescroll.resetUpScroll()
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
* 获取机构列表
|
|
* 获取机构列表
|
|
|
* @param {Object} params
|
|
* @param {Object} params
|
|
|
*/
|
|
*/
|
|
|
getAgencyList(params){
|
|
getAgencyList(params){
|
|
|
let list = [];
|
|
let list = [];
|
|
|
- this.$api.permissions.orgList(params).then(res=>{
|
|
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+ let param = {
|
|
|
|
|
+ // flag:1,
|
|
|
|
|
+ // orgType:1,
|
|
|
|
|
+ // isSelect:true
|
|
|
|
|
+ current:1,
|
|
|
|
|
+ size:10
|
|
|
|
|
+ }
|
|
|
|
|
+ this.params.regionArea = params.regionArea
|
|
|
|
|
+ this.$api.permissions.orgList(param).then(res=>{
|
|
|
|
|
+ console.log("旧机构列表:",res)
|
|
|
let list = [];
|
|
let list = [];
|
|
|
for(let item of res.data.records){
|
|
for(let item of res.data.records){
|
|
|
let element = {
|
|
let element = {
|
|
|
- label: item.parentName,
|
|
|
|
|
|
|
+ label: item.name,
|
|
|
value: item.id
|
|
value: item.id
|
|
|
}
|
|
}
|
|
|
list.splice(list.length,0,element);
|
|
list.splice(list.length,0,element);
|
|
|
// list.push(obj);
|
|
// list.push(obj);
|
|
|
}
|
|
}
|
|
|
this.searchList = list;
|
|
this.searchList = list;
|
|
|
- this.mescroll.resetUpScroll()
|
|
|
|
|
|
|
+ // this.mescroll.resetUpScroll()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -329,10 +384,11 @@
|
|
|
//筛选标题
|
|
//筛选标题
|
|
|
this.params.agencyId =res.value
|
|
this.params.agencyId =res.value
|
|
|
this.data[1] = res.label
|
|
this.data[1] = res.label
|
|
|
- this.popupShow = false
|
|
|
|
|
|
|
+ this.agencypopupShow = false
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
//获取小区
|
|
//获取小区
|
|
|
let params={
|
|
let params={
|
|
|
|
|
+ regionArea:this.params.regionArea,
|
|
|
agencyId:this.params.agencyId
|
|
agencyId:this.params.agencyId
|
|
|
}
|
|
}
|
|
|
this.$api.residential.pageBycondition(params).then(res=>{
|
|
this.$api.residential.pageBycondition(params).then(res=>{
|