mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
加入搜素页面
This commit is contained in:
parent
79ba9c309b
commit
d6beaea6b2
@ -256,6 +256,7 @@
|
||||
if (_catalog.url.startsWith('?')) {
|
||||
let _modelName = _catalog.url.substring(1, _catalog.url.length);
|
||||
$('#' + _modelName).modal('show');
|
||||
vc.emit(_modelName, '_loadData',{})
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -11,87 +11,90 @@
|
||||
</div>
|
||||
<div class="col-sm-1 padding-lr-0 margin-left-xs">
|
||||
<button type="button" class="form-control btn btn-primary" @click="_doSearchCommunityData()">
|
||||
<span>
|
||||
<vc:i18n name="查询" namespace="simplifyAcceptance"></vc:i18n>
|
||||
</span>
|
||||
<vc:i18n name="查询" namespace="simplifyAcceptance"></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-line"></div>
|
||||
<div class="margin-top margin-bottom" style="min-height: 300px;">
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>房屋信息:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">1-1-1001</a>
|
||||
<a target="_blank" href="">1-1-1001</a>
|
||||
<a target="_blank" href="">1-1-1001</a>
|
||||
<a target="_blank" href="">1-1-1001</a>
|
||||
<a target="_blank" href="">1-1-1001</a>
|
||||
<div class="vc-line-primary"></div>
|
||||
<div class="margin-top margin-bottom" style="min-height: 200px;">
|
||||
<div v-if="!searchCommunityDataInfo.noData">
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.rooms && searchCommunityDataInfo.rooms.length > 0">
|
||||
<div class="item-title">房屋信息</div>
|
||||
<div class="item-content">
|
||||
<a href="javascrit:void(0)" @click="_toSimplifyAcceptance(item)"
|
||||
v-for="(item,index) in searchCommunityDataInfo.rooms">{{item.roomName}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.owners && searchCommunityDataInfo.owners.length > 0">
|
||||
<div class="item-title">业主信息</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/owner/ownerDetail?ownerId='+item.ownerId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.owners">{{item.name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.ownerMembers && searchCommunityDataInfo.ownerMembers.length > 0">
|
||||
<div class="item-title">业主成员</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/owner/ownerDetail?ownerId='+item.ownerId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.ownerMembers">{{item.name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.cars && searchCommunityDataInfo.cars.length > 0">
|
||||
<div class="item-title">小区车辆</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/car/carDetail?memberId='+item.carId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.cars">{{item.carNum}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.carMembers && searchCommunityDataInfo.carMembers.length > 0">
|
||||
<div class="item-title">成员车辆</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/car/carDetail?memberId='+item.carId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.carMembers">{{item.carNum}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.contracts && searchCommunityDataInfo.contracts.length > 0">
|
||||
<div class="item-title">合同</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank"
|
||||
:href="'/#/pages/common/contractApplyDetail?contractId='+item.contractId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.contracts">{{item.contractName}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.repairs && searchCommunityDataInfo.repairs.length > 0">
|
||||
<div class="item-title">报修工单</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/property/ownerRepairDetail?repairId='+item.repairId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.repairs">{{item.repairName}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.visits && searchCommunityDataInfo.visits.length > 0">
|
||||
<div class="item-title">访客</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank"
|
||||
:href="'/#/pages/property/visitDetail?vId='+item.vId+'&flowId='+item.flowId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.visits">{{item.vName}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vc-search-community-item"
|
||||
v-if="searchCommunityDataInfo.staffs && searchCommunityDataInfo.staffs.length > 0">
|
||||
<div class="item-title">员工</div>
|
||||
<div class="item-content">
|
||||
<a target="_blank" :href="'/#/pages/staff/staffDetail?staffId='+item.userId"
|
||||
v-for="(item,index) in searchCommunityDataInfo.staffs">{{item.name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>业主信息:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">张三</a>
|
||||
<a target="_blank" href="">李四</a>
|
||||
<a target="_blank" href="">王五</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>业主成员:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">张三</a>
|
||||
<a target="_blank" href="">李四</a>
|
||||
<a target="_blank" href="">王五</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>小区车辆:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>成员车辆:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>合同:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>报修工单:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>访客:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-start margin-top">
|
||||
<div>员工:</div>
|
||||
<div>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
<a target="_blank" href="">青A88488</a>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="text-center" style="font-size: 38px;color: #aaa;margin-top: 100px;">抱歉,没有数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
@ -3,27 +3,91 @@
|
||||
vc.extends({
|
||||
data: {
|
||||
searchCommunityDataInfo: {
|
||||
title: '',
|
||||
searchValue:'',
|
||||
data: {}
|
||||
rooms:[],
|
||||
owners:[],
|
||||
ownerMembers:[],
|
||||
cars:[],
|
||||
carMembers:[],
|
||||
contracts:[],
|
||||
repairs:[],
|
||||
visits:[],
|
||||
staffs:[],
|
||||
noData:true
|
||||
},
|
||||
flagOrgName: false
|
||||
},
|
||||
_initMethod: function() {
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('searchCommunityData', 'openViewDataModal', function(_param) {
|
||||
$that.searchCommunityDataInfo.title = _param.title;
|
||||
$that.searchCommunityDataInfo.data = _param.data;
|
||||
$('#searchCommunityDataModel').modal('show');
|
||||
vc.on('searchCommunityDataModel', '_loadData', function(_param) {
|
||||
$that._clearSearchCommunityData();
|
||||
//$('#searchCommunityDataModel').modal('show');
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_doSearchCommunityData:function(){
|
||||
|
||||
if (!vc.isNotEmpty($that.searchCommunityDataInfo.searchValue)) {
|
||||
vc.toast('请输入查询条件');
|
||||
return;
|
||||
}
|
||||
// 清理信息
|
||||
let _param = {
|
||||
params: {
|
||||
searchValue: $that.searchCommunityDataInfo.searchValue,
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
vc.http.apiGet('/search.searchCommunityData',
|
||||
_param,
|
||||
function (json, res) {
|
||||
let _ownerJson = JSON.parse(json);
|
||||
if (_ownerJson.code != 0) {
|
||||
vc.toast(_ownerJson.msg);
|
||||
return;
|
||||
}
|
||||
$that.searchCommunityDataInfo.noData = false;
|
||||
_ownerJson = _ownerJson.data;
|
||||
$that.searchCommunityDataInfo.rooms = _ownerJson.rooms;
|
||||
$that.searchCommunityDataInfo.owners = _ownerJson.owners;
|
||||
$that.searchCommunityDataInfo.ownerMembers = _ownerJson.ownerMembers;
|
||||
$that.searchCommunityDataInfo.cars = _ownerJson.cars;
|
||||
$that.searchCommunityDataInfo.carMembers = _ownerJson.carMembers;
|
||||
$that.searchCommunityDataInfo.contracts = _ownerJson.contracts;
|
||||
$that.searchCommunityDataInfo.repairs = _ownerJson.repairs;
|
||||
$that.searchCommunityDataInfo.visits = _ownerJson.visitDtos;
|
||||
$that.searchCommunityDataInfo.staffs = _ownerJson.staffs;
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_toSimplifyAcceptance: function (_room) {
|
||||
let _date = new Date();
|
||||
vc.saveData("JAVA110_IS_BACK", _date.getTime());
|
||||
vc.saveData('simplifyAcceptanceSearch', {
|
||||
searchType: '1',
|
||||
searchValue: _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum,
|
||||
searchPlaceholder: '请输入房屋编号 楼栋-单元-房屋 如1-1-1',
|
||||
})
|
||||
window.open('/#/pages/property/simplifyAcceptance?tab=业务受理');
|
||||
},
|
||||
_clearSearchCommunityData:function(){
|
||||
$that.searchCommunityDataInfo ={
|
||||
searchValue:'',
|
||||
noData:true,
|
||||
rooms:[],
|
||||
owners:[],
|
||||
ownerMembers:[],
|
||||
cars:[],
|
||||
carMembers:[],
|
||||
contracts:[],
|
||||
repairs:[],
|
||||
visits:[],
|
||||
staffs:[],
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -1019,3 +1019,17 @@ nav-link nav-link-breadcrumb active:active {
|
||||
text-overflow: ellipsis;
|
||||
white-space: normal;
|
||||
}
|
||||
.vc-search-community-item{
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.vc-search-community-item .item-title{
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.vc-search-community-item .item-content{
|
||||
margin-top:5px;
|
||||
}
|
||||
.vc-search-community-item .item-content a{
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user