优化代码

This commit is contained in:
java110 2021-01-15 15:04:57 +08:00
parent 9df6461f03
commit b4282afb7a
5 changed files with 10 additions and 7 deletions

View File

@ -16,7 +16,7 @@
ownerName: '',
roomType: '',
hireOwnerFee: '0',
ownerId: ''
urlOwnerId: ''
}
},
_initMethod: function () {
@ -28,7 +28,7 @@
}
if (vc.notNull(vc.getParam('ownerId'))) {
$that.listRoomCreateFeeInfo.ownerId = vc.getParam("ownerId");
$that.listRoomCreateFeeInfo.urlOwnerId = vc.getParam("ownerId");
}
},
_initEvent: function () {
@ -48,7 +48,7 @@
row: _row,
communityId: vc.getCurrentCommunity().communityId,
payerObjId: vc.component.listRoomCreateFeeInfo.roomId,
ownerId: $that.listRoomCreateFeeInfo.ownerId
ownerId: $that.listRoomCreateFeeInfo.urlOwnerId
}
};
//发送get请求

View File

@ -5,9 +5,9 @@
<div class="ibox-title">
<h5>{{owePayFeeOrderInfo.roomName}}</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_printOwnOrder()" v-if="owePayFeeOrderInfo.oweFees.length > 0">
<!-- <button type="button" class="btn btn-primary btn-sm" v-on:click="_printOwnOrder()" v-if="owePayFeeOrderInfo.oweFees.length > 0">
催缴单
</button>
</button> -->
<button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
返回
</button>

View File

@ -29,7 +29,7 @@
let _payObjType = vc.getParam('payObjType');
if (!vc.notNull(_payObjId)) {
vc.toast('非法操作');
vc.getBack();
vc.getBack();
return;
}
$that.owePayFeeOrderInfo.payObjId = _payObjId;

View File

@ -148,7 +148,7 @@
</div>
<div class="btn-group" v-if="room.state != '2002'">
<button class="btn-white btn btn-xs"
v-on:click="_openTranslateFeeManualCollectionDetailModel(room)">催缴单
v-on:click="_downloadRoomCollectionLetterOrder(room)">催缴单
</button>
</div>
<div class="btn-group">

View File

@ -301,6 +301,9 @@
},
_downloadCollectionLetterOrder:function(){
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId );
},
_downloadRoomCollectionLetterOrder:function(_room){
vc.jumpToPage('/callComponent/feeManualCollection/downloadCollectionLetterOrder?communityId=' + vc.getCurrentCommunity().communityId +"&roomId="+_room.roomId );
}
}
});