287cb903 by zhaoqian

户编辑前端页面不能输入的问题

1 parent 950a2ebc
......@@ -22,7 +22,7 @@
<!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号-->
<td colspan="4" >
<el-input v-model="form.bdcdyh" style="width: 70%" disabled></el-input>
<el-button @click.prevent="" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button>
<el-button @click.prevent="generatorCode" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button>
</td>
<td colspan="2" align="center" >原不动产单元</td>
<td colspan="4" >
......@@ -376,7 +376,8 @@
<script>
import Qlr from "./../../../../../components/formMenu/qlr";
import Qlxz from "./../../../../../components/formMenu/qlxz_simple";
import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"
import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h";
import {getBdcdyh} from "./../../../../../api/zrz"
export default {
name:'zrz',
components:{
......@@ -519,32 +520,35 @@
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;
this.fuzhi(this.form.ycjzmj,this.form.jzmj);
this.fuzhi(this.form.yctnjzmj,this.form.tnjzmj);
this.fuzhi(this.form.ycftjzmj,this.form.ftjzmj);
this.fuzhi(this.form.ycdxbfjzmj,this.form.dxbfjzmj);
this.fuzhi(this.form.ycqtjzmj,this.form.qtjzmj);
this.fuzhi(this.form.ycftxs,this.form.ftxs);
this.fuzhi(this.form.scjzmj,this.form.gljzmj);
this.fuzhi(this.form.sctnjzmj,this.form.gltnjzmj);
this.fuzhi(this.form.scftjzmj,this.form.glftjzmj);
this.fuzhi(this.form.scdxbfjzmj,this.form.gldxbfjzmj);
this.fuzhi(this.form.scqtjzmj,this.form.gltjzmj);
this.fuzhi(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;
this.fuzhi(this.form.scjzmj,this.form.jzmj);
this.fuzhi(this.form.sctnjzmj,this.form.tnjzmj);
this.fuzhi(this.form.scftjzmj,this.form.ftjzmj);
this.fuzhi(this.form.scdxbfjzmj,this.form.dxbfjzmj);
this.fuzhi(this.form.scqtjzmj,this.form.qtjzmj);
this.fuzhi(this.form.scftxs,this.form.ftxs);
this.fuzhi(this.form.ycjzmj,this.form.gljzmj);
this.fuzhi(this.form.yctnjzmj,this.form.gltnjzmj);
this.fuzhi(this.form.ycftjzmj,this.form.glftjzmj);
this.fuzhi(this.form.ycdxbfjzmj,this.form.gldxbfjzmj);
this.fuzhi(this.form.ycqtjzmj,this.form.gltjzmj);
this.fuzhi(this.form.ycftxs,this.form.glftxs);
}
console.log("=============")
console.log(this.form)
if(res.result.fwytList.length===0){
this.form.fwytList.push({
glbsm:'', //关联标识码
......@@ -649,6 +653,18 @@
onReset(){
},
generatorCode(){
getBdcdyh(this.form.zrzh,"h")
.then((res)=>{
this.form.zrzh=res.result.substring(0,24);
this.form.bdcdyh=res.result;
})
},
fuzhi(params,result){
if(params!=null){
result = params;
}
}
}
}
</script>
......