a7bc7b13 by zhaoqian

实测预测数据分开填写

1 parent 8f99da03
......@@ -153,62 +153,62 @@
<td colspan="2" rowspan="6" align="center" >预测</td>
<td colspan="2" align="center" >建筑面积(㎡) </td>
<td colspan="2" align="center" >
<el-input v-model="form.jzmj" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.ycjzmj" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" rowspan="6" align="center" >实测</td>
<td colspan="2" align="center" >建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.jzmj" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.scjzmj" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >套内建筑面积(㎡))</td>
<td colspan="2" align="center" >
<el-input v-model="form.tnjzmj" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.yctnjzmj" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" align="center" >套内建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.tnjzmj" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.sctnjzmj" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >分摊建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.ftjzmj" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.ycftjzmj" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" align="center" >分摊建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.ftjzmj" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.scftjzmj" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >地下部分建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.dxbfjzmj" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.ycdxbfjzmj" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" align="center" >地下部分建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.dxbfjzmj" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.scdxbfjzmj" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >其它建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.qtjzmj" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.ycqtjzmj" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" align="center" >其它建筑面积(㎡)</td>
<td colspan="2" align="center" >
<el-input v-model="form.qtjzmj" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.scqtjzmj" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
<tr height="30">
<td colspan="2" align="center" >分摊系数</td>
<td colspan="2" align="center" >
<el-input v-model="form.ftxs" :disabled="form.scyclx==='1'"></el-input>
<el-input v-model="form.ycftxs" :disabled="form.scyclx==='1'"></el-input>
</td>
<td colspan="2" align="center" >分摊系数</td>
<td colspan="2" align="center" >
<el-input v-model="form.ftxs" :disabled="form.scyclx==='0'"></el-input>
<el-input v-model="form.scftxs" :disabled="form.scyclx==='0'"></el-input>
</td>
</tr>
......@@ -423,12 +423,23 @@
fwcqlybsm:'', //房屋产权来源标识码
myc:'', //名义层
qszt:'', //权属状态
jzmj:'', //建筑面积
tnjzmj:'', //套内建筑面积
ftjzmj:'', //分摊建筑面积
dxbfjzmj:'', //地下部分建筑面积
qtjzmj:'', //其它建筑面积
ftxs:'', //分摊系数
//预测数据
ycjzmj:'', //建筑面积
yctnjzmj:'', //套内建筑面积
ycftjzmj:'', //分摊建筑面积
ycdxbfjzmj:'', //地下部分建筑面积
ycqtjzmj:'', //其它建筑面积
ycftxs:'', //分摊系数
//实测数据
scjzmj:'', //建筑面积
sctnjzmj:'', //套内建筑面积
scftjzmj:'', //分摊建筑面积
scdxbfjzmj:'', //地下部分建筑面积
scqtjzmj:'', //其它建筑面积
scftxs:'', //分摊系数
scyclx:'0', //实预测类型(0:预测,1:实测;),区别户是实测还是预测数据
scycglbsm:'', //实测预测关联标识码
bz:'', //备注
......@@ -507,6 +518,33 @@
getQjHDetailByBsm(hbsm).then((res)=>{
if(res.code===200){
this.form = res.result;
if(this.form.scyclx==='0'){
this.form.ycjzmj = this.form.jzmj;
this.form.yctnjzmj=this.form.tnjzmj;
this.form.ycftjzmj=this.form.ftjzmj;
this.form.ycdxbfjzmj=this.form.dxbfjzmj;
this.form.ycqtjzmj=this.form.qtjzmj;
this.form.ycftxs=this.form.ftxs;
this.form.scjzmj = this.form.gljzmj;
this.form.sctnjzmj=this.form.gltnjzmj;
this.form.scftjzmj=this.form.glftjzmj;
this.form.scdxbfjzmj=this.form.gldxbfjzmj;
this.form.scqtjzmj=this.form.glqtjzmj;
this.form.scftxs=this.form.glftxs;
}else if(this.form.scyclx==='1'){
this.form.scjzmj = this.form.jzmj;
this.form.sctnjzmj=this.form.tnjzmj;
this.form.scftjzmj=this.form.ftjzmj;
this.form.scdxbfjzmj=this.form.dxbfjzmj;
this.form.scqtjzmj=this.form.qtjzmj;
this.form.scftxs=this.form.ftxs;
this.form.ycjzmj = this.form.gljzmj;
this.form.yctnjzmj=this.form.gltnjzmj;
this.form.ycftjzmj=this.form.glftjzmj;
this.form.ycdxbfjzmj=this.form.gldxbfjzmj;
this.form.ycqtjzmj=this.form.glqtjzmj;
this.form.ycftxs=this.form.glftxs;
}
if(res.result.fwytList.length===0){
this.form.fwytList.push({
glbsm:'', //关联标识码
......@@ -587,6 +625,21 @@
console.log(yclx)
this.form.bsm=bsm;
this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
if(this.form.scyclx==='0'){
this.form.jzmj = this.form.ycjzmj;
this.form.tnjzmj=this.form.yctnjzmj;
this.form.ftjzmj=this.form.ycftjzmj;
this.form.dxbfjzmj=this.form.ycdxbfjzmj;
this.form.qtjzmj=this.form.ycqtjzmj;
this.form.ftxs=this.form.ycftxs;
}else if(this.form.scyclx==='1'){
this.form.jzmj = this.form.scjzmj;
this.form.tnjzmj=this.form.sctnjzmj;
this.form.ftjzmj=this.form.scftjzmj;
this.form.dxbfjzmj=this.form.scdxbfjzmj;
this.form.qtjzmj=this.form.scqtjzmj;
this.form.ftxs=this.form.scftxs;
}
updateQjH(this.form).then((res)=>{
if(res.code===200){
this.$message.success("保存成功!")
......