mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化删除费用
This commit is contained in:
parent
55a5f1aec0
commit
5962554627
@ -28,7 +28,8 @@
|
||||
},
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if (res.status == 200) {
|
||||
let _json = JSON.parse(json);
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#deleteFeeModel').modal('hide');
|
||||
vc.emit('listRoomFee', 'notify', {});
|
||||
@ -40,7 +41,7 @@
|
||||
vc.toast("删除费用成功");
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
vc.toast(_json.msg);
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
21
public/pages/property/carStructure/carStructure.html
Normal file
21
public/pages/property/carStructure/carStructure.html
Normal file
@ -0,0 +1,21 @@
|
||||
<div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<vc:create path="property/floorUnitTree" callBackListener="roomStructure"></vc:create>
|
||||
</div>
|
||||
<div class="col-md-10 margin-bottom">
|
||||
<div class="row margin-top-xs bg-white">
|
||||
|
||||
<div class="col-md-1 text-center margin-sm padding-xs" title="双击查看详情" @dblclick="_toSimplifyAcceptance(room)" v-for="(room,index) in roomStructureInfo.rooms" :style="{'background-color': _getBgColor(room)}" style="color: #fff;border-radius: 5px;cursor:pointer">
|
||||
<div>{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}</div>
|
||||
<div>{{room.stateName}}</div>
|
||||
<div>{{room.ownerName?room.ownerName:'无'}}</div>
|
||||
<div>欠费:{{room.oweAmount}}元</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
70
public/pages/property/carStructure/carStructure.js
Normal file
70
public/pages/property/carStructure/carStructure.js
Normal file
@ -0,0 +1,70 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
roomStructureInfo: {
|
||||
rooms: [],
|
||||
|
||||
}
|
||||
},
|
||||
_initMethod: function() {
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
|
||||
vc.on('roomStructure', 'switchUnit', function(_param) {
|
||||
$that._loadRooms(_param.unitId)
|
||||
});
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
_loadRooms: function(_unitId) {
|
||||
let param = {
|
||||
params: {
|
||||
page: 1,
|
||||
row: 100,
|
||||
unitId: _unitId,
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
vc.http.apiGet('/room.listRoomStructure',
|
||||
param,
|
||||
function(json, res) {
|
||||
let listRoomData = JSON.parse(json);
|
||||
$that.roomStructureInfo.rooms = listRoomData.data;
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_getBgColor: function(room) {
|
||||
if (!room.ownerName) {
|
||||
return "#1AB394";
|
||||
}
|
||||
if (room.oweAmount > 0) {
|
||||
return "#DC3545";
|
||||
}
|
||||
return "#1296db"
|
||||
},
|
||||
_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',
|
||||
})
|
||||
|
||||
vc.jumpToPage('/#/pages/property/simplifyAcceptance?tab=业务受理');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user