|
@@ -466,7 +466,6 @@ export default {
|
|
|
//查询楼栋下拉列表
|
|
|
buildingNameList () {
|
|
|
this.buildingList = [];
|
|
|
-
|
|
|
this.$http
|
|
|
.post('/czc-community/assets/building/list/building', { communityId: this.ruleForm.communityId })
|
|
|
.then(({ data, status, msg }) => {
|
|
@@ -476,14 +475,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
unitNameList () {
|
|
|
-
|
|
|
this.unitList = [];
|
|
|
this.resunitList = [];
|
|
|
this.$http.get('/czc-community/assets/building/house/find', { id: this.ruleForm.buildingId }).then((res) => {
|
|
|
-
|
|
|
if (res.status == 0) {
|
|
|
if (res.data.buildingUnitList.length != 0) {
|
|
|
-
|
|
|
for (let i = 0; i < res.data.buildingUnitList.length; i++) {
|
|
|
if (res.data.buildingUnitList[i].unitName != null && res.data.buildingUnitList[i].unitName != '') {
|
|
|
this.resunitList.push(res.data.buildingUnitList[i])
|
|
@@ -496,27 +492,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
unitChoice (e) {
|
|
|
-
|
|
|
this.floorNumberList = [];
|
|
|
-
|
|
|
this.unitList.map((item) => {
|
|
|
this.floorNumberList.push(item.unitFloorList[0].floorNumber);
|
|
|
});
|
|
|
-
|
|
|
this.floorNumberList = Array.from(new Set(this.floorNumberList))
|
|
|
},
|
|
|
|
|
|
getDetails (id) {
|
|
|
this.$http.get('/czc-community/assets/house/find/' + id, {}).then((res) => {
|
|
|
if (res.status == 0) {
|
|
|
-
|
|
|
this.ruleForm = res.data;
|
|
|
-
|
|
|
-
|
|
|
// this.ruleForm.buildingId = res.data.buildingId;
|
|
|
console.log('this.ruleForm', this.ruleForm);
|
|
|
if (!!this.ruleForm.housingType) {
|
|
|
-
|
|
|
var housingTypes = this.ruleForm.housingType.split(':');
|
|
|
this.housingType.roomNumber = housingTypes[0];
|
|
|
this.housingType.officeNumber = housingTypes[1];
|
|
@@ -542,7 +531,6 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.housingManagement();
|
|
|
- debugger
|
|
|
if (this.params.row != undefined || !!this.params.row.id) {
|
|
|
this.getDetails(this.params.row.id);
|
|
|
}
|