户编辑前端页面不能输入的问题
Showing
1 changed file
with
42 additions
and
26 deletions
... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> | 22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> |
23 | <td colspan="4" > | 23 | <td colspan="4" > |
24 | <el-input v-model="form.bdcdyh" style="width: 70%" disabled></el-input> | 24 | <el-input v-model="form.bdcdyh" style="width: 70%" disabled></el-input> |
25 | <el-button @click.prevent="" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button> | 25 | <el-button @click.prevent="generatorCode" size="mini" type="primary" style="width:25%;margin-left:3%">生成</el-button> |
26 | </td> | 26 | </td> |
27 | <td colspan="2" align="center" >原不动产单元</td> | 27 | <td colspan="2" align="center" >原不动产单元</td> |
28 | <td colspan="4" > | 28 | <td colspan="4" > |
... | @@ -376,7 +376,8 @@ | ... | @@ -376,7 +376,8 @@ |
376 | <script> | 376 | <script> |
377 | import Qlr from "./../../../../../components/formMenu/qlr"; | 377 | import Qlr from "./../../../../../components/formMenu/qlr"; |
378 | import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; | 378 | import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; |
379 | import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h" | 379 | import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"; |
380 | import {getBdcdyh} from "./../../../../../api/zrz" | ||
380 | export default { | 381 | export default { |
381 | name:'zrz', | 382 | name:'zrz', |
382 | components:{ | 383 | components:{ |
... | @@ -519,32 +520,35 @@ | ... | @@ -519,32 +520,35 @@ |
519 | if(res.code===200){ | 520 | if(res.code===200){ |
520 | this.form = res.result; | 521 | this.form = res.result; |
521 | if(this.form.scyclx==='0'){ | 522 | if(this.form.scyclx==='0'){ |
522 | this.form.ycjzmj = this.form.jzmj; | 523 | this.fuzhi(this.form.ycjzmj,this.form.jzmj); |
523 | this.form.yctnjzmj=this.form.tnjzmj; | 524 | this.fuzhi(this.form.yctnjzmj,this.form.tnjzmj); |
524 | this.form.ycftjzmj=this.form.ftjzmj; | 525 | this.fuzhi(this.form.ycftjzmj,this.form.ftjzmj); |
525 | this.form.ycdxbfjzmj=this.form.dxbfjzmj; | 526 | this.fuzhi(this.form.ycdxbfjzmj,this.form.dxbfjzmj); |
526 | this.form.ycqtjzmj=this.form.qtjzmj; | 527 | this.fuzhi(this.form.ycqtjzmj,this.form.qtjzmj); |
527 | this.form.ycftxs=this.form.ftxs; | 528 | this.fuzhi(this.form.ycftxs,this.form.ftxs); |
528 | this.form.scjzmj = this.form.gljzmj; | 529 | this.fuzhi(this.form.scjzmj,this.form.gljzmj); |
529 | this.form.sctnjzmj=this.form.gltnjzmj; | 530 | this.fuzhi(this.form.sctnjzmj,this.form.gltnjzmj); |
530 | this.form.scftjzmj=this.form.glftjzmj; | 531 | this.fuzhi(this.form.scftjzmj,this.form.glftjzmj); |
531 | this.form.scdxbfjzmj=this.form.gldxbfjzmj; | 532 | this.fuzhi(this.form.scdxbfjzmj,this.form.gldxbfjzmj); |
532 | this.form.scqtjzmj=this.form.glqtjzmj; | 533 | this.fuzhi(this.form.scqtjzmj,this.form.gltjzmj); |
533 | this.form.scftxs=this.form.glftxs; | 534 | this.fuzhi(this.form.scftxs,this.form.glftxs); |
534 | }else if(this.form.scyclx==='1'){ | 535 | }else if(this.form.scyclx==='1'){ |
535 | this.form.scjzmj = this.form.jzmj; | 536 | this.fuzhi(this.form.scjzmj,this.form.jzmj); |
536 | this.form.sctnjzmj=this.form.tnjzmj; | 537 | this.fuzhi(this.form.sctnjzmj,this.form.tnjzmj); |
537 | this.form.scftjzmj=this.form.ftjzmj; | 538 | this.fuzhi(this.form.scftjzmj,this.form.ftjzmj); |
538 | this.form.scdxbfjzmj=this.form.dxbfjzmj; | 539 | this.fuzhi(this.form.scdxbfjzmj,this.form.dxbfjzmj); |
539 | this.form.scqtjzmj=this.form.qtjzmj; | 540 | this.fuzhi(this.form.scqtjzmj,this.form.qtjzmj); |
540 | this.form.scftxs=this.form.ftxs; | 541 | this.fuzhi(this.form.scftxs,this.form.ftxs); |
541 | this.form.ycjzmj = this.form.gljzmj; | 542 | this.fuzhi(this.form.ycjzmj,this.form.gljzmj); |
542 | this.form.yctnjzmj=this.form.gltnjzmj; | 543 | this.fuzhi(this.form.yctnjzmj,this.form.gltnjzmj); |
543 | this.form.ycftjzmj=this.form.glftjzmj; | 544 | this.fuzhi(this.form.ycftjzmj,this.form.glftjzmj); |
544 | this.form.ycdxbfjzmj=this.form.gldxbfjzmj; | 545 | this.fuzhi(this.form.ycdxbfjzmj,this.form.gldxbfjzmj); |
545 | this.form.ycqtjzmj=this.form.glqtjzmj; | 546 | this.fuzhi(this.form.ycqtjzmj,this.form.gltjzmj); |
546 | this.form.ycftxs=this.form.glftxs; | 547 | this.fuzhi(this.form.ycftxs,this.form.glftxs); |
548 | |||
547 | } | 549 | } |
550 | console.log("=============") | ||
551 | console.log(this.form) | ||
548 | if(res.result.fwytList.length===0){ | 552 | if(res.result.fwytList.length===0){ |
549 | this.form.fwytList.push({ | 553 | this.form.fwytList.push({ |
550 | glbsm:'', //关联标识码 | 554 | glbsm:'', //关联标识码 |
... | @@ -649,6 +653,18 @@ | ... | @@ -649,6 +653,18 @@ |
649 | onReset(){ | 653 | onReset(){ |
650 | 654 | ||
651 | }, | 655 | }, |
656 | generatorCode(){ | ||
657 | getBdcdyh(this.form.zrzh,"h") | ||
658 | .then((res)=>{ | ||
659 | this.form.zrzh=res.result.substring(0,24); | ||
660 | this.form.bdcdyh=res.result; | ||
661 | }) | ||
662 | }, | ||
663 | fuzhi(params,result){ | ||
664 | if(params!=null){ | ||
665 | result = params; | ||
666 | } | ||
667 | } | ||
652 | } | 668 | } |
653 | } | 669 | } |
654 | </script> | 670 | </script> | ... | ... |
-
Please register or sign in to post a comment