|
@@ -300,6 +300,7 @@
|
|
|
@close="handleClose('unit', index2, doorData)"
|
|
|
@click="unitIndex = index2"
|
|
|
:class="{ active: unitIndex === index2 }"
|
|
|
+ style="position: relative ; top: 14px;"
|
|
|
>
|
|
|
<span @dblclick="showInput">{{ unit.unitName }}</span>
|
|
|
<el-input
|
|
@@ -315,6 +316,7 @@
|
|
|
class="el-icon-plus button-new-tag"
|
|
|
size="small"
|
|
|
@click="showInput"
|
|
|
+ style="position: relative; top: -17px;"
|
|
|
></el-button>
|
|
|
<el-input
|
|
|
class="input-new-tag"
|
|
@@ -786,7 +788,7 @@ export default {
|
|
|
new Promise((resolve) => {
|
|
|
this.$refs.detailform.validate(resolve);
|
|
|
}).then((v) => {
|
|
|
- debugger;
|
|
|
+
|
|
|
const { buildNumber, unitNumber, floorNumber, doorNumber } = calcDoor(this.doorData, this.initialUnitList.checkedUnit);
|
|
|
const txt = `请检查信息是否填写完整(包含重复名称,名称为空现象)<br>确认提交单元户信息:<br>总楼栋数:${buildNumber}${this.initialUnitList.enableUnit ? `<br>总单元数:${unitNumber}` : ''
|
|
|
}<br>总楼层数:${floorNumber}<br>总单元户数:${doorNumber}`;
|
|
@@ -822,6 +824,7 @@ export default {
|
|
|
|
|
|
getDetailData (id) {
|
|
|
this.$http.get('/czc-community/assets/building/house/find', { id: id }).then(({ status, data, msg }) => {
|
|
|
+
|
|
|
if (0 === status) {
|
|
|
if (data.buildingUnitList.length !== 0) {
|
|
|
this.formdata = data;
|
|
@@ -836,6 +839,8 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
this.doorData = data.buildingUnitList;
|
|
|
+ } else {
|
|
|
+ this.formdata = data;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -843,6 +848,7 @@ export default {
|
|
|
},
|
|
|
mounted () { },
|
|
|
created () {
|
|
|
+
|
|
|
this.copyformdata = this.deepClone(this.formdata);
|
|
|
if (!!this.params.id) {
|
|
|
this.getDetailData(this.params.id);
|