|
@@ -92,20 +92,21 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '费用名称',
|
|
|
- prop: 'chargeType',
|
|
|
- format(val) {
|
|
|
- if (val == '1') {
|
|
|
- return '物业费';
|
|
|
- } else if (val == '2') {
|
|
|
- return '水费';
|
|
|
- } else if (val == '3') {
|
|
|
- return '电费';
|
|
|
- } else if (val == '4') {
|
|
|
- return '车位费';
|
|
|
- } else if (val == '5') {
|
|
|
- return '二次供水费';
|
|
|
- }
|
|
|
- }
|
|
|
+ prop: 'chargeName'
|
|
|
+ // prop: 'chargeType',
|
|
|
+ // format(val) {
|
|
|
+ // if (val == '1') {
|
|
|
+ // return '物业费';
|
|
|
+ // } else if (val == '2') {
|
|
|
+ // return '水费';
|
|
|
+ // } else if (val == '3') {
|
|
|
+ // return '电费';
|
|
|
+ // } else if (val == '4') {
|
|
|
+ // return '车位费';
|
|
|
+ // } else if (val == '5') {
|
|
|
+ // return '二次供水费';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
{
|
|
|
label: '账期',
|
|
@@ -149,20 +150,21 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '费用名称',
|
|
|
- prop: 'chargeType',
|
|
|
- format(val) {
|
|
|
- if (val == '1') {
|
|
|
- return '物业费';
|
|
|
- } else if (val == '2') {
|
|
|
- return '水费';
|
|
|
- } else if (val == '3') {
|
|
|
- return '电费';
|
|
|
- } else if (val == '4') {
|
|
|
- return '车位费';
|
|
|
- } else if (val == '5') {
|
|
|
- return '二次供水费';
|
|
|
- }
|
|
|
- }
|
|
|
+ prop:'chargeName',
|
|
|
+ // prop: 'chargeType',
|
|
|
+ // format(val) {
|
|
|
+ // if (val == '1') {
|
|
|
+ // return '物业费';
|
|
|
+ // } else if (val == '2') {
|
|
|
+ // return '水费';
|
|
|
+ // } else if (val == '3') {
|
|
|
+ // return '电费';
|
|
|
+ // } else if (val == '4') {
|
|
|
+ // return '车位费';
|
|
|
+ // } else if (val == '5') {
|
|
|
+ // return '二次供水费';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
{
|
|
|
label: '账期',
|
|
@@ -300,32 +302,33 @@ export default {
|
|
|
this.mixins_query.unitName = '';
|
|
|
this.mixins_query.houseId = '';
|
|
|
if (newValue.type) {
|
|
|
+ let newValueIds = newValue.id.split('-');
|
|
|
this.chiData.type = newValue.type;
|
|
|
if (newValue.type === 'community') {
|
|
|
- this.mixins_query.communityId = newValue.value;
|
|
|
- this.chiData.value = newValue.value;
|
|
|
- this.chiData.address = newValue.name;
|
|
|
+ this.mixins_query.communityId = newValueIds[0];
|
|
|
+ this.chiData.value = newValueIds[0];
|
|
|
+ this.chiData.address = newValue.communityName;
|
|
|
} else if (newValue.type === 'building') {
|
|
|
- this.mixins_query.communityId = newValue.communityId;
|
|
|
- this.mixins_query.buildingId = newValue.buildingId;
|
|
|
-
|
|
|
- this.chiData.value = newValue.buildingId;
|
|
|
- this.chiData.address = newValue.name;
|
|
|
+ this.mixins_query.communityId = newValueIds[0];
|
|
|
+ this.mixins_query.buildingId = newValueIds[1];
|
|
|
+ this.chiData.value = newValueIds[1];
|
|
|
+ this.chiData.address = newValue.communityName + ' ' + newValue.buildingName;
|
|
|
} else if (newValue.type === 'unit') {
|
|
|
- this.mixins_query.communityId = newValue.communityId;
|
|
|
- this.mixins_query.buildingId = newValue.buildingId;
|
|
|
- this.mixins_query.unitName = newValue.unitId;
|
|
|
+ this.mixins_query.communityId = newValueIds[0];
|
|
|
+ this.mixins_query.buildingId = newValueIds[1];
|
|
|
+ this.mixins_query.unitName = newValueIds[2];
|
|
|
|
|
|
- this.chiData.value = newValue.unitId;
|
|
|
- this.chiData.address = newValue.name;
|
|
|
+ this.chiData.value = newValueIds[1] + ':' + newValueIds[2];
|
|
|
+ this.chiData.address = newValue.communityName + ' ' + newValue.buildingName + ' ' + newValue.unitName;
|
|
|
} else if (newValue.type === 'room') {
|
|
|
- this.mixins_query.communityId = newValue.communityId;
|
|
|
- this.mixins_query.buildingId = newValue.buildingId;
|
|
|
- this.mixins_query.unitName = newValue.unitId;
|
|
|
- this.mixins_query.houseId = newValue.roomId;
|
|
|
+ this.mixins_query.communityId = newValueIds[0];
|
|
|
+ this.mixins_query.buildingId = newValueIds[1];
|
|
|
+ this.mixins_query.unitName = newValueIds[2];
|
|
|
+ this.mixins_query.houseId = newValueIds[3];
|
|
|
|
|
|
- this.chiData.value = newValue.roomId;
|
|
|
- this.chiData.address = newValue.name;
|
|
|
+ this.chiData.value = newValueIds[3];
|
|
|
+ this.chiData.address =
|
|
|
+ newValue.communityName + ' ' + newValue.buildingName + ' ' + newValue.unitName + ' ' + newValue.houseName;
|
|
|
}
|
|
|
}
|
|
|
this.mixins_search();
|
|
@@ -335,7 +338,7 @@ export default {
|
|
|
this.mixins_dataUrl = '/sc-charge/charge/bill/page'; // 分页查询接口
|
|
|
this.mixins_query = {
|
|
|
chargeStatus: this.chargeStatus,
|
|
|
- chargeType:1,
|
|
|
+ chargeType: 1
|
|
|
};
|
|
|
}
|
|
|
};
|