mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
优化车位抄表
This commit is contained in:
parent
2b3a0c3be6
commit
50c3e98705
@ -52,7 +52,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-show="addMeterWaterInfo.hasRoom == true">
|
||||
<label class="col-sm-2 col-form-label">房屋</label>
|
||||
<label class="col-sm-2 col-form-label">收费对象</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addMeterWaterInfo.ownerName" type="text" disabled="disabled" placeholder="必填,请填写房屋"
|
||||
class="form-control ">
|
||||
|
||||
@ -22,7 +22,8 @@
|
||||
configId: '',
|
||||
objType: '1001',
|
||||
hasRoom: false,
|
||||
ownerName: ''
|
||||
ownerName: '',
|
||||
objType:'3333'
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
@ -30,6 +31,9 @@
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('addMeterWater', 'openAddMeterWaterModal', function (_param) {
|
||||
if(_param.hasOwnProperty("objType")){
|
||||
$that.addMeterWaterInfo.objType = _param.objType;
|
||||
}
|
||||
if (_param.hasOwnProperty('roomId')) {
|
||||
$that.addMeterWaterInfo.hasRoom =true;
|
||||
$that.addMeterWaterInfo.roomId = _param.roomId;
|
||||
@ -38,6 +42,8 @@
|
||||
$that.addMeterWaterInfo.ownerName =_param.roomName +'('+_param.ownerName+')';
|
||||
$that._queryPreMeterWater(_param.roomId);
|
||||
}
|
||||
|
||||
|
||||
$('#addMeterWaterModel').modal('show');
|
||||
});
|
||||
|
||||
@ -200,6 +206,8 @@
|
||||
vc.component.clearAddMeterWaterInfo();
|
||||
vc.emit('meterWaterManage', 'listMeterWater', {});
|
||||
vc.emit('listRoomFee','notify', {});
|
||||
vc.emit('listParkingSpaceFee', 'notify', {});
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
@ -241,7 +249,7 @@
|
||||
params: {
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
objId: _roomId,
|
||||
objType: '1001'
|
||||
objType: $that.addMeterWaterInfo.objType
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
@ -277,7 +285,8 @@
|
||||
configId: '',
|
||||
objType: '1001',
|
||||
hasRoom: false,
|
||||
ownerName:''
|
||||
ownerName:'',
|
||||
objType:'3333'
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@ -110,6 +110,7 @@
|
||||
var _json = JSON.parse(json);
|
||||
$('#carCreateFeeAddModel').modal('hide');
|
||||
vc.component.clearAddFeeConfigInfo();
|
||||
vc.emit('listParkingSpaceFee', 'notify',{});
|
||||
vc.toast("创建收费成功,总共["+_json.totalCar+"]车位,成功["+_json.successCar+"],失败["+_json.errorCar+"]",8000);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -81,6 +81,29 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-for="(item,index) in mainFeeInfo.feeAttrs">
|
||||
|
||||
<div class="row" v-if="index % 3 == 0">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">{{item.specCdName}}:</label>
|
||||
<label class="">{{item.value}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" v-if="index < mainFeeInfo.feeAttrs.length-1">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">{{mainFeeInfo.feeAttrs[index+1].specCdName}}:</label>
|
||||
<label class="">{{mainFeeInfo.feeAttrs[index+1].value}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" v-if="index < mainFeeInfo.feeAttrs.length-2">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">{{mainFeeInfo.feeAttrs[index+2].specCdName}}:</label>
|
||||
<label class="">{{mainFeeInfo.feeAttrs[index+2].value}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" v-if = "mainFeeInfo.payerObjType == '3333'">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
|
||||
@ -32,8 +32,8 @@
|
||||
squarePrice:0,
|
||||
builtUpArea:'',
|
||||
deadlineTime:'',
|
||||
payerObjType:''
|
||||
|
||||
payerObjType:'',
|
||||
feeAttrs:[],
|
||||
}
|
||||
},
|
||||
_initMethod:function(){
|
||||
@ -93,6 +93,7 @@
|
||||
function(json,res){
|
||||
var _fee =JSON.parse(json).fees[0];
|
||||
vc.copyObject(_fee,vc.component.mainFeeInfo);
|
||||
$that.mainFeeInfo.feeAttrs = _fee.feeAttrs;
|
||||
vc.emit('propertyFee','listFeeDetail',{
|
||||
feeId:_fee.feeId
|
||||
});
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group input-group">
|
||||
<input type="text" placeholder="请填写车位编码" class="form-control form-control-sm"
|
||||
<input type="text" placeholder="请填写车位编码" class="form-control "
|
||||
v-model="carCreateFeeInfo.conditions.num">
|
||||
</div>
|
||||
|
||||
@ -23,14 +23,14 @@
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写车牌号" class="form-control form-control-sm"
|
||||
<input type="text" placeholder="请填写车牌号" class="form-control "
|
||||
v-model="carCreateFeeInfo.conditions.carNum">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写车位ID" class="form-control form-control-sm"
|
||||
<input type="text" placeholder="请填写车位ID" class="form-control "
|
||||
v-model="carCreateFeeInfo.conditions.psId">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
},
|
||||
_openViewParkingSpaceCreateFee: function (_car) {
|
||||
|
||||
vc.jumpToPage("/admin.html#/pages/property/listCarFee?carId=" + _car.carId + "&carNum=" + _car.carNum);
|
||||
vc.jumpToPage("/admin.html#/pages/property/listCarFee?carId=" + _car.carId + "&carNum=" + _car.carNum+"&areaNum="+_car.areaNum+"&num="+_car.num);
|
||||
},
|
||||
_queryParkingSpaceMethod: function () {
|
||||
vc.component.listCars(DEFAULT_PAGE, DEFAULT_ROW);
|
||||
|
||||
@ -5,6 +5,14 @@
|
||||
<div class="ibox-title">
|
||||
<h5>{{listCarFeeInfo.carNum}}费用</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_openAddMeterWaterModal()">
|
||||
水电抄表
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_openCarCreateFeeAddModal()">
|
||||
创建费用
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" style="margin-left:10px"
|
||||
v-on:click="_goBack()">
|
||||
返回
|
||||
@ -21,11 +29,11 @@
|
||||
<th class="text-center">费用项目</th>
|
||||
<th class="text-center">费用标识</th>
|
||||
<th class="text-center">费用类型</th>
|
||||
<th class="text-center">固定费</th>
|
||||
<th class="text-center">应收金额</th>
|
||||
<th class="text-center">建账时间</th>
|
||||
<th class="text-center">计费起始时间</th>
|
||||
<th class="text-center">计费结束时间</th>
|
||||
<th class="text-center">说明</th>
|
||||
<th class="text-center">状态</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
@ -35,11 +43,24 @@
|
||||
<td class="text-center">{{fee.feeName}}</td>
|
||||
<td class="text-center">{{fee.feeFlagName}}</td>
|
||||
<td class="text-center">{{fee.feeTypeCdName}}</td>
|
||||
<td class="text-center">{{fee.additionalAmount}}</td>
|
||||
<td class="text-center">{{fee.amountOwed}}</td>
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{fee.endTime}}</td>
|
||||
<td class="text-center">{{fee.deadlineTime}}</td>
|
||||
<td class="text-center" v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' ">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}} </div>
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
|
||||
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else>
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div >固定费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center">{{fee.stateName}}</td>
|
||||
<td class="text-right">
|
||||
<button class="btn btn-link btn-xs" v-if="fee.state != '2009001' && vc.hasPrivilege('502020090482580004')"
|
||||
@ -66,4 +87,9 @@
|
||||
</div>
|
||||
<vc:create path="property/deleteFee"></vc:create>
|
||||
<vc:create path="property/editFee"></vc:create>
|
||||
<vc:create path="property/carCreateFeeAdd"
|
||||
></vc:create>
|
||||
|
||||
|
||||
<vc:create path="property/addMeterWater" callBackListener="" callBackFunction=""></vc:create>
|
||||
</div>
|
||||
@ -1,88 +1,106 @@
|
||||
(function(vc){
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data:{
|
||||
listCarFeeInfo:{
|
||||
fees:[],
|
||||
carNum:'',
|
||||
carId:'',
|
||||
data: {
|
||||
listCarFeeInfo: {
|
||||
fees: [],
|
||||
carNum: '',
|
||||
carId: '',
|
||||
total: 0,
|
||||
records: 1,
|
||||
areaNum: '',
|
||||
num: ''
|
||||
}
|
||||
},
|
||||
_initMethod:function(){
|
||||
if(vc.notNull(vc.getParam("carNum"))){
|
||||
vc.component.listCarFeeInfo.carNum = vc.getParam('carNum');
|
||||
vc.component.listCarFeeInfo.carId = vc.getParam('carId');
|
||||
_initMethod: function () {
|
||||
if (vc.notNull(vc.getParam("carNum"))) {
|
||||
vc.component.listCarFeeInfo.carNum = vc.getParam('carNum');
|
||||
vc.component.listCarFeeInfo.carId = vc.getParam('carId');
|
||||
vc.component.listCarFeeInfo.areaNum = vc.getParam('areaNum');
|
||||
vc.component.listCarFeeInfo.num = vc.getParam('num');
|
||||
};
|
||||
vc.component._loadlistCarFeeInfo(1,10);
|
||||
vc.component._loadlistCarFeeInfo(1, 10);
|
||||
},
|
||||
_initEvent:function(){
|
||||
vc.on('listParkingSpaceFee','notify',function(_param){
|
||||
_initEvent: function () {
|
||||
vc.on('listParkingSpaceFee', 'notify', function (_param) {
|
||||
vc.component._loadlistCarFeeInfo(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event',
|
||||
function(_currentPage) {
|
||||
function (_currentPage) {
|
||||
vc.component._loadlistCarFeeInfo(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
_loadlistCarFeeInfo:function(_page,_row){
|
||||
methods: {
|
||||
_loadlistCarFeeInfo: function (_page, _row) {
|
||||
var param = {
|
||||
params:{
|
||||
page:_page,
|
||||
row:_row,
|
||||
communityId:vc.getCurrentCommunity().communityId,
|
||||
payerObjId:vc.component.listCarFeeInfo.carId
|
||||
params: {
|
||||
page: _page,
|
||||
row: _row,
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
payerObjId: vc.component.listCarFeeInfo.carId
|
||||
}
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.get('listParkingSpaceFee',
|
||||
'list',
|
||||
param,
|
||||
function(json){
|
||||
var _feeConfigInfo = JSON.parse(json);
|
||||
vc.component.listCarFeeInfo.total = _feeConfigInfo.total;
|
||||
vc.component.listCarFeeInfo.records = _feeConfigInfo.records;
|
||||
vc.component.listCarFeeInfo.fees = _feeConfigInfo.fees;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: _feeConfigInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
},function(){
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
vc.http.get('listParkingSpaceFee',
|
||||
'list',
|
||||
param,
|
||||
function (json) {
|
||||
var _feeConfigInfo = JSON.parse(json);
|
||||
vc.component.listCarFeeInfo.total = _feeConfigInfo.total;
|
||||
vc.component.listCarFeeInfo.records = _feeConfigInfo.records;
|
||||
vc.component.listCarFeeInfo.fees = _feeConfigInfo.fees;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: _feeConfigInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_payFee:function(_fee){
|
||||
vc.jumpToPage('/admin.html#/pages/property/payFeeOrder?'+vc.objToGetParam(_fee));
|
||||
_payFee: function (_fee) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/payFeeOrder?' + vc.objToGetParam(_fee));
|
||||
},
|
||||
_payFeeHis:function(_fee){
|
||||
vc.jumpToPage('/admin.html#/pages/property/propertyFee?'+vc.objToGetParam(_fee));
|
||||
_payFeeHis: function (_fee) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/propertyFee?' + vc.objToGetParam(_fee));
|
||||
},
|
||||
_editFee:function(_fee){
|
||||
vc.emit('editFee', 'openEditFeeModal',_fee);
|
||||
_editFee: function (_fee) {
|
||||
vc.emit('editFee', 'openEditFeeModal', _fee);
|
||||
},
|
||||
_deleteFee:function(_fee){
|
||||
_deleteFee: function (_fee) {
|
||||
|
||||
var dateA = new Date(_fee.startTime);
|
||||
var dateB = new Date();
|
||||
if(dateA.setHours(0, 0, 0, 0) != dateB.setHours(0, 0, 0, 0)){
|
||||
vc.toast("只能取消当天添加的费用");
|
||||
return;
|
||||
}
|
||||
// var dateA = new Date(_fee.startTime);
|
||||
// var dateB = new Date();
|
||||
// if(dateA.setHours(0, 0, 0, 0) != dateB.setHours(0, 0, 0, 0)){
|
||||
// vc.toast("只能取消当天添加的费用");
|
||||
// return;
|
||||
// }
|
||||
|
||||
vc.emit('deleteFee','openDeleteFeeModal',{
|
||||
communityId:vc.getCurrentCommunity().communityId,
|
||||
feeId:_fee.feeId
|
||||
vc.emit('deleteFee', 'openDeleteFeeModal', {
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
feeId: _fee.feeId
|
||||
});
|
||||
},
|
||||
_refreshlistCarFeeInfo:function(){
|
||||
_refreshlistCarFeeInfo: function () {
|
||||
vc.component.listCarFeeInfo._currentFeeConfigName = "";
|
||||
},
|
||||
_goBack:function(){
|
||||
_openCarCreateFeeAddModal: function () {
|
||||
vc.emit('carCreateFeeAdd', 'openCarCreateFeeAddModal', {
|
||||
isMore: false,
|
||||
car: $that.listCarFeeInfo
|
||||
});
|
||||
},
|
||||
_openAddMeterWaterModal: function () {
|
||||
vc.emit('addMeterWater', 'openAddMeterWaterModal', {
|
||||
roomId: $that.listCarFeeInfo.carId,
|
||||
roomName: $that.listCarFeeInfo.carNum,
|
||||
ownerName: $that.listCarFeeInfo.areaNum + "停车场" + $that.listCarFeeInfo.num + "车位",
|
||||
objType: '6666'
|
||||
});
|
||||
},
|
||||
_goBack: function () {
|
||||
vc.goBack();
|
||||
}
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
<div>算法:{{_getAttrValue(fee.feeAttrs,'390005')}}</div>
|
||||
<div>用量:{{_getAttrValue(fee.feeAttrs,'390003')}}</div>
|
||||
</td>
|
||||
|
||||
@ -12,6 +12,28 @@
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写楼栋-单元-房屋 如:1-1-1123" class="form-control "
|
||||
v-model="roomCreateFeeInfo.conditions.allNum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" placeholder="请填写业主名称" class="form-control "
|
||||
v-model="roomCreateFeeInfo.conditions.ownerName">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" placeholder="请填写业主身份证号" class="form-control "
|
||||
v-model="roomCreateFeeInfo.conditions.idCard">
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryRoomMethod()"><i
|
||||
class="fa fa-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" v-if="roomCreateFeeInfo.moreCondition == true">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group input-group">
|
||||
<input type="text" placeholder="请选择楼栋" v-model="roomCreateFeeInfo.conditions.floorName"
|
||||
@ -26,7 +48,7 @@
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<select class="form-control-sm form-control input-s-sm inline"
|
||||
<select class=" form-control input-s-sm inline"
|
||||
v-model="roomCreateFeeInfo.conditions.unitId">
|
||||
<option selected value="">请选择单元</option>
|
||||
<option v-for="(unit,index) in roomUnits" :key="index" v-bind:value="unit.unitId">
|
||||
@ -37,32 +59,11 @@
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋编号" class="form-control form-control-sm"
|
||||
<input type="text" placeholder="请填写房屋编号" class="form-control "
|
||||
v-model="roomCreateFeeInfo.conditions.roomNum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryRoomMethod()"><i
|
||||
class="fa fa-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" v-if="roomCreateFeeInfo.moreCondition == true">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请填写房屋ID" class="form-control form-control-sm"
|
||||
v-model="roomCreateFeeInfo.conditions.roomId">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" placeholder="请填写业主名称" class="form-control form-control-sm"
|
||||
v-model="roomCreateFeeInfo.conditions.ownerName">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" placeholder="请填写业主身份证号" class="form-control form-control-sm"
|
||||
v-model="roomCreateFeeInfo.conditions.idCard">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -1,177 +1,186 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function(vc){
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROW = 10;
|
||||
vc.extends({
|
||||
data:{
|
||||
roomUnits:[],
|
||||
roomCreateFeeInfo:{
|
||||
rooms:[],
|
||||
total:0,
|
||||
records:1,
|
||||
floorId:'',
|
||||
unitId:'',
|
||||
state:'',
|
||||
roomNum:'',
|
||||
moreCondition:false,
|
||||
conditions:{
|
||||
floorId:'',
|
||||
floorName:'',
|
||||
unitId:'',
|
||||
roomNum:'',
|
||||
roomId:'',
|
||||
state:'',
|
||||
section:''
|
||||
data: {
|
||||
roomUnits: [],
|
||||
roomCreateFeeInfo: {
|
||||
rooms: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
floorId: '',
|
||||
unitId: '',
|
||||
state: '',
|
||||
roomNum: '',
|
||||
moreCondition: false,
|
||||
conditions: {
|
||||
floorId: '',
|
||||
floorName: '',
|
||||
unitId: '',
|
||||
roomNum: '',
|
||||
roomId: '',
|
||||
state: '',
|
||||
section: '',
|
||||
allNum: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod:function(){
|
||||
_initMethod: function () {
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId = vc.getParam("floorId");
|
||||
vc.component.roomCreateFeeInfo.conditions.floorName = vc.getParam("floorName");
|
||||
vc.component.listRoom(DEFAULT_PAGE,DEFAULT_ROW);
|
||||
vc.component.listRoom(DEFAULT_PAGE, DEFAULT_ROW);
|
||||
},
|
||||
_initEvent:function(){
|
||||
vc.on('room','chooseFloor',function(_param){
|
||||
_initEvent: function () {
|
||||
vc.on('room', 'chooseFloor', function (_param) {
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId = _param.floorId;
|
||||
vc.component.roomCreateFeeInfo.conditions.floorName = _param.floorName;
|
||||
vc.component.loadUnits(_param.floorId);
|
||||
|
||||
});
|
||||
vc.on('pagination','page_event',function(_currentPage){
|
||||
vc.component.listRoom(_currentPage,DEFAULT_ROW);
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component.listRoom(_currentPage, DEFAULT_ROW);
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
methods: {
|
||||
|
||||
listRoom:function(_page,_row){
|
||||
if(vc.component.roomCreateFeeInfo.conditions.floorName==''||vc.component.roomCreateFeeInfo.conditions.floorName==null){
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId=''
|
||||
listRoom: function (_page, _row) {
|
||||
if (vc.component.roomCreateFeeInfo.conditions.floorName == '' || vc.component.roomCreateFeeInfo.conditions.floorName == null) {
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId = ''
|
||||
}
|
||||
vc.component.roomCreateFeeInfo.conditions.page=_page;
|
||||
vc.component.roomCreateFeeInfo.conditions.row=_row;
|
||||
vc.component.roomCreateFeeInfo.conditions.page = _page;
|
||||
vc.component.roomCreateFeeInfo.conditions.row = _row;
|
||||
vc.component.roomCreateFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
var param = {
|
||||
params:vc.component.roomCreateFeeInfo.conditions
|
||||
let _allNum = $that.roomCreateFeeInfo.conditions.allNum;
|
||||
let _conditions = JSON.parse(JSON.stringify(vc.component.roomCreateFeeInfo.conditions));
|
||||
let param = {
|
||||
params: _conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.get('roomCreateFee',
|
||||
'listRoom',
|
||||
param,
|
||||
function(json,res){
|
||||
var listRoomData =JSON.parse(json);
|
||||
if (_allNum.split('-').length == 3) {
|
||||
let _allNums = _allNum.split('-')
|
||||
param.params.floorNum = _allNums[0];
|
||||
param.params.unitNum = _allNums[1];
|
||||
param.params.roomNum = _allNums[2];
|
||||
}
|
||||
|
||||
vc.component.roomCreateFeeInfo.total = listRoomData.total;
|
||||
vc.component.roomCreateFeeInfo.records = listRoomData.records;
|
||||
vc.component.roomCreateFeeInfo.rooms = listRoomData.rooms;
|
||||
//发送get请求
|
||||
vc.http.get('roomCreateFee',
|
||||
'listRoom',
|
||||
param,
|
||||
function (json, res) {
|
||||
var listRoomData = JSON.parse(json);
|
||||
|
||||
vc.emit('pagination','init',{
|
||||
total:vc.component.roomCreateFeeInfo.records,
|
||||
dataCount: vc.component.roomCreateFeeInfo.total,
|
||||
currentPage:_page
|
||||
});
|
||||
},function(errInfo,error){
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
vc.component.roomCreateFeeInfo.total = listRoomData.total;
|
||||
vc.component.roomCreateFeeInfo.records = listRoomData.records;
|
||||
vc.component.roomCreateFeeInfo.rooms = listRoomData.rooms;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.roomCreateFeeInfo.records,
|
||||
dataCount: vc.component.roomCreateFeeInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openRoomCreateFeeAddModal:function(_room,_isMore){
|
||||
vc.emit('roomCreateFeeAdd', 'openRoomCreateFeeAddModal',{
|
||||
isMore:_isMore,
|
||||
room:_room
|
||||
_openRoomCreateFeeAddModal: function (_room, _isMore) {
|
||||
vc.emit('roomCreateFeeAdd', 'openRoomCreateFeeAddModal', {
|
||||
isMore: _isMore,
|
||||
room: _room
|
||||
});
|
||||
},
|
||||
_openViewRoomCreateFee:function(_room){
|
||||
vc.jumpToPage("/admin.html#/pages/property/listRoomFee?"+vc.objToGetParam(_room));
|
||||
_openViewRoomCreateFee: function (_room) {
|
||||
vc.jumpToPage("/admin.html#/pages/property/listRoomFee?" + vc.objToGetParam(_room));
|
||||
},
|
||||
/**
|
||||
根据楼ID加载房屋
|
||||
**/
|
||||
loadUnits:function(_floorId){
|
||||
loadUnits: function (_floorId) {
|
||||
vc.component.addRoomUnits = [];
|
||||
var param = {
|
||||
params:{
|
||||
floorId:_floorId,
|
||||
communityId:vc.getCurrentCommunity().communityId
|
||||
params: {
|
||||
floorId: _floorId,
|
||||
communityId: vc.getCurrentCommunity().communityId
|
||||
}
|
||||
}
|
||||
vc.http.get(
|
||||
'roomCreateFee',
|
||||
'loadUnits',
|
||||
param,
|
||||
function(json,res){
|
||||
param,
|
||||
function (json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if(res.status == 200){
|
||||
if (res.status == 200) {
|
||||
var tmpUnits = JSON.parse(json);
|
||||
vc.component.roomUnits = tmpUnits;
|
||||
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
},
|
||||
function(errInfo,error){
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
});
|
||||
},
|
||||
_queryRoomMethod:function(){
|
||||
vc.component.listRoom(DEFAULT_PAGE,DEFAULT_ROW);
|
||||
_queryRoomMethod: function () {
|
||||
vc.component.listRoom(DEFAULT_PAGE, DEFAULT_ROW);
|
||||
},
|
||||
_loadDataByParam: function(){
|
||||
_loadDataByParam: function () {
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId = vc.getParam("floorId");
|
||||
vc.component.roomCreateFeeInfo.conditions.floorId = vc.getParam("floorName");
|
||||
//如果 floodId 没有传 则,直接结束
|
||||
/* if(!vc.notNull(vc.component.roomCreateFeeInfo.conditions.floorId)){
|
||||
return ;
|
||||
}*/
|
||||
/* if(!vc.notNull(vc.component.roomCreateFeeInfo.conditions.floorId)){
|
||||
return ;
|
||||
}*/
|
||||
|
||||
var param = {
|
||||
params:{
|
||||
communityId:vc.getCurrentCommunity().communityId,
|
||||
floorId:vc.component.roomCreateFeeInfo.conditions.floorId
|
||||
params: {
|
||||
communityId: vc.getCurrentCommunity().communityId,
|
||||
floorId: vc.component.roomCreateFeeInfo.conditions.floorId
|
||||
}
|
||||
}
|
||||
|
||||
vc.http.get(
|
||||
'roomCreateFee',
|
||||
'loadFloor',
|
||||
param,
|
||||
function(json,res){
|
||||
if(res.status == 200){
|
||||
param,
|
||||
function (json, res) {
|
||||
if (res.status == 200) {
|
||||
var _floorInfo = JSON.parse(json);
|
||||
var _tmpFloor = _floorInfo.apiFloorDataVoList[0];
|
||||
/*vc.emit('roomSelectFloor','chooseFloor', _tmpFloor);
|
||||
*/
|
||||
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
},
|
||||
function(errInfo,error){
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
_moreCondition:function(){
|
||||
if(vc.component.roomCreateFeeInfo.moreCondition){
|
||||
_moreCondition: function () {
|
||||
if (vc.component.roomCreateFeeInfo.moreCondition) {
|
||||
vc.component.roomCreateFeeInfo.moreCondition = false;
|
||||
}else{
|
||||
} else {
|
||||
vc.component.roomCreateFeeInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
_openChooseFloorMethod:function(){
|
||||
vc.emit('searchFloor','openSearchFloorModel',{});
|
||||
_openChooseFloorMethod: function () {
|
||||
vc.emit('searchFloor', 'openSearchFloorModel', {});
|
||||
},
|
||||
_toOwnerPayFee:function(_room){
|
||||
let roomName = _room.floorNum + "栋"+_room.unitNum+"单元"+_room.roomNum+"室"
|
||||
vc.jumpToPage('/admin.html#/pages/property/owePayFeeOrder?payObjId='+_room.roomId+"&payObjType=3333&roomName="+roomName);
|
||||
_toOwnerPayFee: function (_room) {
|
||||
let roomName = _room.floorNum + "栋" + _room.unitNum + "单元" + _room.roomNum + "室"
|
||||
vc.jumpToPage('/admin.html#/pages/property/owePayFeeOrder?payObjId=' + _room.roomId + "&payObjType=3333&roomName=" + roomName);
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user