优化 费用项功能

This commit is contained in:
java110 2022-03-21 17:52:49 +08:00
parent f6cc48983f
commit 494f66686b
3 changed files with 9 additions and 15 deletions

View File

@ -49,15 +49,7 @@
<div class="form-group input-group"> <div class="form-group input-group">
<select class="form-control-md form-control input-s-sm inline" v-model="listOweFeeInfo.conditions.roomSubType"> <select class="form-control-md form-control input-s-sm inline" v-model="listOweFeeInfo.conditions.roomSubType">
<option selected value="">请选择房屋类型</option> <option selected value="">请选择房屋类型</option>
<option value="110"> <option :value="item.statusCd" v-for="(item,index) in listOweFeeInfo.roomSubTypes">{{item.name}}</option>
住宅
</option>
<option value="120">
办公室
</option>
<option value="119">
宿舍
</option>
</select> </select>
</div> </div>
</div> </div>

View File

@ -28,7 +28,8 @@
feeConfigs: [], feeConfigs: [],
feeConfigNames: [], feeConfigNames: [],
floorId: '', floorId: '',
unitId: '' unitId: '',
roomSubTypes: []
} }
}, },
watch: { watch: {
@ -46,6 +47,10 @@
vc.getDict('report_owe_fee', "payer_obj_type", function(_data) { vc.getDict('report_owe_fee', "payer_obj_type", function(_data) {
vc.component.listOweFeeInfo.payObjTypes = _data; vc.component.listOweFeeInfo.payObjTypes = _data;
}); });
//与字典表关联
vc.getDict('building_room', "room_sub_type", function(_data) {
vc.component.listOweFeeInfo.roomSubTypes = _data;
});
vc.component._loadListOweFeeInfo(1, 10); vc.component._loadListOweFeeInfo(1, 10);
$that._listFeeConfigs(); $that._listFeeConfigs();
}, },

View File

@ -161,11 +161,8 @@
_loadDataByParam: function() { _loadDataByParam: function() {
vc.component.roomInfo.conditions.floorId = vc.getParam("floorId"); vc.component.roomInfo.conditions.floorId = vc.getParam("floorId");
vc.component.roomInfo.conditions.floorId = vc.getParam("floorName"); vc.component.roomInfo.conditions.floorId = vc.getParam("floorName");
//如果 floodId 没有传 则,直接结束
/* if(!vc.notNull(vc.component.roomInfo.conditions.floorId)){ let param = {
return ;
}*/
var param = {
params: { params: {
communityId: vc.getCurrentCommunity().communityId, communityId: vc.getCurrentCommunity().communityId,
floorId: vc.component.roomInfo.conditions.floorId floorId: vc.component.roomInfo.conditions.floorId