c2bc35e2 by weimo934

fix(hb):合并将宗地.多幢.户数据隔离

1 parent b588a832
......@@ -16,12 +16,12 @@
<td class="qlr">权利人</td>
<td class="zl">坐落</td>
</tr>
<tr v-if="bgqData.length==0">
<tr v-if="zdhbqData.length==0">
<td colspan="7">
<span class="noData">暂无数据</span>
</td>
</tr>
<tr v-else v-for="(item,index) in bgqData" :key="index">
<tr v-else v-for="(item,index) in zdhbqData" :key="index">
<td class="xh">{{index+1}}</td>
<td class="zddm"><input type="text" class="formInput" v-model="item.zddm"
readonly="readonly"/></td>
......@@ -52,7 +52,7 @@
</tr>
<tr>
<td class="xzq">
<el-select v-model="hbhData.xzqbsm" @change="changeXzq(hbhData.xzqbsm)">
<el-select v-model="zdhbhData.xzqbsm" @change="changeXzq(zdhbhData.xzqbsm)">
<el-option
v-for="i in xzq"
:key="i.bsm"
......@@ -62,7 +62,7 @@
</el-select>
</td>
<td class="djq">
<el-select v-model="hbhData.djqbsm" @change="changeDjq(hbhData.djqbsm)">
<el-select v-model="zdhbhData.djqbsm" @change="changeDjq(zdhbhData.djqbsm)">
<el-option
v-for="i in djq"
:key="i.bsm"
......@@ -72,7 +72,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.djzqbsm">
<el-select v-model="zdhbhData.djzqbsm">
<el-option
v-for="i in djzq"
:key="i.bsm"
......@@ -82,7 +82,7 @@
</el-select>
</td>
<td class="tdtzm">
<el-select v-model="hbhData.syqlxbsm">
<el-select v-model="zdhbhData.syqlxbsm">
<el-option
v-for="i in syq"
:key="i.value"
......@@ -92,7 +92,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.zdtzmbsm">
<el-select v-model="zdhbhData.zdtzmbsm">
<el-option
v-for="i in tdtzm"
:key="i.bsm"
......@@ -102,7 +102,7 @@
</el-select>
</td>
<td class="xmmc">
<input type="text" v-model="hbhData.xmmc" class="formInput"/>
<input type="text" v-model="zdhbhData.xmmc" class="formInput"/>
</td>
<td class="zxx">
<span class="xz">选择</span>
......@@ -122,7 +122,7 @@
<div class="hb-tabs">
<el-button type="primary" class="addBtn" @click="newAdd">新增</el-button>
<div class="hbq">
<span class="tips">合并前宗地信息</span>
<span class="tips">合并前多幢信息</span>
<table border="1">
<tr>
<td class="xh">序号</td>
......@@ -133,12 +133,12 @@
<td class="qlr">权利人</td>
<td class="zl">坐落</td>
</tr>
<tr v-if="bgqData.length==0">
<tr v-if="dzhbqData.length==0">
<td colspan="7">
<span class="noData">暂无数据</span>
</td>
</tr>
<tr v-else v-for="(item,index) in bgqData" :key="index">
<tr v-else v-for="(item,index) in dzhbqData" :key="index">
<td class="xh">{{index+1}}</td>
<td class="zddm"><input type="text" class="formInput" v-model="item.zddm"
readonly="readonly"/></td>
......@@ -156,7 +156,7 @@
</table>
</div>
<div class="hbh">
<span class="tips">合并后宗地信息</span>
<span class="tips">合并后多幢信息</span>
<table border="1">
<tr>
<th class="xzq">行政区</th>
......@@ -169,7 +169,7 @@
</tr>
<tr>
<td class="xzq">
<el-select v-model="hbhData.xzqbsm" @change="changeXzq(hbhData.xzqbsm)">
<el-select v-model="dzhbhData.xzqbsm" @change="changeXzq(dzhbhData.xzqbsm)">
<el-option
v-for="i in xzq"
:key="i.bsm"
......@@ -179,7 +179,7 @@
</el-select>
</td>
<td class="djq">
<el-select v-model="hbhData.djqbsm" @change="changeDjq(hbhData.djqbsm)">
<el-select v-model="dzhbhData.djqbsm" @change="changeDjq(dzhbhData.djqbsm)">
<el-option
v-for="i in djq"
:key="i.bsm"
......@@ -189,7 +189,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.djzqbsm">
<el-select v-model="dzhbhData.djzqbsm">
<el-option
v-for="i in djzq"
:key="i.bsm"
......@@ -199,7 +199,7 @@
</el-select>
</td>
<td class="tdtzm">
<el-select v-model="hbhData.syqlxbsm">
<el-select v-model="dzhbhData.syqlxbsm">
<el-option
v-for="i in syq"
:key="i.value"
......@@ -209,7 +209,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.zdtzmbsm">
<el-select v-model="dzhbhData.zdtzmbsm">
<el-option
v-for="i in tdtzm"
:key="i.bsm"
......@@ -219,7 +219,7 @@
</el-select>
</td>
<td class="xmmc">
<input type="text" v-model="hbhData.xmmc" class="formInput"/>
<input type="text" v-model="dzhbhData.xmmc" class="formInput"/>
</td>
<td class="zxx">
<span class="xz">选择</span>
......@@ -238,7 +238,7 @@
<div class="hb-tabs">
<el-button type="primary" class="addBtn" @click="newAdd">新增</el-button>
<div class="hbq">
<span class="tips">合并前宗地信息</span>
<span class="tips">合并前信息</span>
<table border="1">
<tr>
<td class="xh">序号</td>
......@@ -249,12 +249,12 @@
<td class="qlr">权利人</td>
<td class="zl">坐落</td>
</tr>
<tr v-if="bgqData.length==0">
<tr v-if="hhbqData.length==0">
<td colspan="7">
<span class="noData">暂无数据</span>
</td>
</tr>
<tr v-else v-for="(item,index) in bgqData" :key="index">
<tr v-else v-for="(item,index) in hhbqData" :key="index">
<td class="xh">{{index+1}}</td>
<td class="zddm"><input type="text" class="formInput" v-model="item.zddm"
readonly="readonly"/></td>
......@@ -272,7 +272,7 @@
</table>
</div>
<div class="hbh">
<span class="tips">合并后宗地信息</span>
<span class="tips">合并后信息</span>
<table border="1">
<tr>
<th class="xzq">行政区</th>
......@@ -285,7 +285,7 @@
</tr>
<tr>
<td class="xzq">
<el-select v-model="hbhData.xzqbsm" @change="changeXzq(hbhData.xzqbsm)">
<el-select v-model="hhbhData.xzqbsm" @change="changeXzq(hhbhData.xzqbsm)">
<el-option
v-for="i in xzq"
:key="i.bsm"
......@@ -295,7 +295,7 @@
</el-select>
</td>
<td class="djq">
<el-select v-model="hbhData.djqbsm" @change="changeDjq(hbhData.djqbsm)">
<el-select v-model="hhbhData.djqbsm" @change="changeDjq(hhbhData.djqbsm)">
<el-option
v-for="i in djq"
:key="i.bsm"
......@@ -305,7 +305,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.djzqbsm">
<el-select v-model="hhbhData.djzqbsm">
<el-option
v-for="i in djzq"
:key="i.bsm"
......@@ -315,7 +315,7 @@
</el-select>
</td>
<td class="tdtzm">
<el-select v-model="hbhData.syqlxbsm">
<el-select v-model="hhbhData.syqlxbsm">
<el-option
v-for="i in syq"
:key="i.value"
......@@ -325,7 +325,7 @@
</el-select>
</td>
<td class="syqlx">
<el-select v-model="hbhData.zdtzmbsm">
<el-select v-model="hhbhData.zdtzmbsm">
<el-option
v-for="i in tdtzm"
:key="i.bsm"
......@@ -335,7 +335,7 @@
</el-select>
</td>
<td class="xmmc">
<input type="text" v-model="hbhData.xmmc" class="formInput"/>
<input type="text" v-model="hhbhData.xmmc" class="formInput"/>
</td>
<td class="zxx">
<span class="xz">选择</span>
......@@ -372,8 +372,12 @@
return {
tabName: 'zd',
centerDialogVisible: false,
zdFgqData: [],
hbhData: {},
zdhbqData: [], // 宗地合并前数据
dzhbqData: [], // 多幢合并前数据
hhbqData: [], // 户合并前数据
zdhbhData: {}, // 宗地合并后数据
dzhbhData: {}, // 多幢合并后数据
hhbhData: {}, // 户合并后数据
fgBoxWidth: 0,
xzq: [],
djq: [],
......@@ -421,8 +425,22 @@
changeXzq(id) {
this.djq = [];
this.djzq = [];
this.hbhData.djqbsm = ''
this.hbhData.djzqbsm = ''
switch (this.tabName) {
case "zd":
this.zdhbqData.djqbsm = '';
this.zdhbqData.djzqbsm = '';
break
case "dz":
this.dzhbqData.djqbsm = '';
this.dzhbqData.djzqbsm = '';
break
case "h":
this.hhbqData.djqbsm = '';
this.hhbqData.djzqbsm = '';
break
default:
break
}
getListByXzqbsm(id)
.then((res) => {
if (res.result == null) {
......@@ -436,7 +454,19 @@
},
changeDjq(item) {
this.djzq = [];
this.hbhData.djzqbsm = ''
switch (this.tabName) {
case "zd":
this.zdhbqData.djzqbsm = '';
break
case "dz":
this.dzhbqData.djzqbsm = '';
break
case "h":
this.hhbqData.djzqbsm = '';
break
default:
break
}
if (item == null) {
} else {
getListByPbsm(item)
......@@ -460,12 +490,20 @@
newAdd: function () {
this.centerDialogVisible = true;
},
addData: function (val) {
this.centerDialogVisible = false;
this.zdFgqData.push(val)
},
getData: function (data) {
this.zdFgqData.push(data)
switch (this.tabName) {
case "zd":
this.zdhbqData.push(data)
break
case "dz":
this.dzhbqData.push(data)
break
case "h":
this.hhbqData.push(data)
break
default:
break;
}
},
},
computed: {},
......