1c0e7a6f by 杨威
2 parents 8ed191f7 a7bc7b13
......@@ -22,4 +22,15 @@ export function updateQjH(data) {
method: 'put',
data:data
})
}
/**
* 批量修改户的基本信息
*/
export function batchUpdateQjH(data) {
return request({
url: '/system/qjH/batchH',
method: 'post',
data:data
})
}
\ No newline at end of file
......
......@@ -211,6 +211,7 @@
<script>
import Qlxz from "./../../components/formMenu/qlxz_simple";
import {batchUpdateQjH} from "../../api/h";
export default {
name: "plH",
components:{
......@@ -337,9 +338,15 @@
},
save: function () {
this.form['hbsms'] = this.bsms
this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
console.log("批量户信息")
console.log(this.form)
batchUpdateQjH(this.form).then((res)=>{
if(res.code===200){
this.$message.success("保存成功!")
}
})
},
cancel: function () {
this.close()
......
......@@ -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>
......@@ -269,15 +269,15 @@
<tr height="30">
<td colspan="2" align="center" >共有土地面积(㎡)</td>
<td colspan="2" >
<el-input v-model="form.zdmj"></el-input>
<el-input v-model="form.gytdmj"></el-input>
</td>
<td colspan="2" align="center" >分摊土地面积(㎡)</td>
<td colspan="2" >
<el-input v-model="form.fttdsymj"></el-input>
<el-input v-model="form.fttdmj"></el-input>
</td>
<td colspan="2" align="center" >多幢独用土地面积(㎡)</td>
<td colspan="2" >
<el-input v-model="form.dlsytdmj"></el-input>
<el-input v-model="form.dytdmj"></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("保存成功!")
......