宗地不动产单元生成根据行政区,地籍区,地籍子区拿到底盘代码
Showing
1 changed file
with
34 additions
and
3 deletions
| ... | @@ -411,6 +411,8 @@ export default { | ... | @@ -411,6 +411,8 @@ export default { |
| 411 | { label: "-", value: "-" }, | 411 | { label: "-", value: "-" }, |
| 412 | ], | 412 | ], |
| 413 | formData: {}, | 413 | formData: {}, |
| 414 | |||
| 415 | dpdm:'', //宗地底盘代码 | ||
| 414 | }; | 416 | }; |
| 415 | }, | 417 | }, |
| 416 | created() { | 418 | created() { |
| ... | @@ -463,6 +465,34 @@ export default { | ... | @@ -463,6 +465,34 @@ export default { |
| 463 | .catch((error) => {}); | 465 | .catch((error) => {}); |
| 464 | }, | 466 | }, |
| 465 | 467 | ||
| 468 | //构造底盘代码,前6位是xzqbsm,接着3位djqbsm,3位djzqbsm,最后2位是syqlxbsm 860101555888GB | ||
| 469 | generatorDpdm() { | ||
| 470 | this.$store.state.xzqList.forEach((item)=>{ | ||
| 471 | if(item.bsm === this.formData.xzqbsm){ | ||
| 472 | this.dpdm = item.dm; | ||
| 473 | } | ||
| 474 | }); | ||
| 475 | this.$store.state.djqList.forEach((item)=>{ | ||
| 476 | if(item.bsm === this.formData.djqbsm){ | ||
| 477 | this.dpdm = this.dpdm + item.dm; | ||
| 478 | } | ||
| 479 | }); | ||
| 480 | this.$store.state.djzqList.forEach((item)=>{ | ||
| 481 | if(item.bsm === this.formData.djzqbsm){ | ||
| 482 | this.dpdm = this.dpdm + item.dm; | ||
| 483 | } | ||
| 484 | }); | ||
| 485 | |||
| 486 | console.log(this.formData.syqlxbsm); | ||
| 487 | this.dpdm = this.dpdm + this.formData.syqlxbsm; | ||
| 488 | this.$store.state.zdtzmList.forEach((item)=>{ | ||
| 489 | if(item.zdtzmbsm === this.formData.zdtzmbsm){ | ||
| 490 | this.dpdm = this.dpdm + item.dm; | ||
| 491 | } | ||
| 492 | }); | ||
| 493 | console.log(this.dpdm) | ||
| 494 | }, | ||
| 495 | |||
| 466 | //不动产单元号再次生成提示框 | 496 | //不动产单元号再次生成提示框 |
| 467 | open() { | 497 | open() { |
| 468 | this.$confirm('已经存在不动产单元号或者自然幢号, 是否继续?', '提示', { | 498 | this.$confirm('已经存在不动产单元号或者自然幢号, 是否继续?', '提示', { |
| ... | @@ -470,7 +500,8 @@ export default { | ... | @@ -470,7 +500,8 @@ export default { |
| 470 | cancelButtonText: '取消', | 500 | cancelButtonText: '取消', |
| 471 | type: 'warning' | 501 | type: 'warning' |
| 472 | }).then(() => { | 502 | }).then(() => { |
| 473 | getBdcdyh("860101555888GB", "zd") | 503 | this.generatorDpdm(); |
| 504 | getBdcdyh(this.dpdm, "zd") | ||
| 474 | .then((res) => { | 505 | .then((res) => { |
| 475 | console.log(res); | 506 | console.log(res); |
| 476 | this.formData.zddm = res.result.substring(0, 19); | 507 | this.formData.zddm = res.result.substring(0, 19); |
| ... | @@ -496,9 +527,9 @@ export default { | ... | @@ -496,9 +527,9 @@ export default { |
| 496 | this.open(); | 527 | this.open(); |
| 497 | return; | 528 | return; |
| 498 | } | 529 | } |
| 530 | this.generatorDpdm(); | ||
| 499 | 531 | ||
| 500 | //前6位是xzqbsm,接着3位djqbsm,3位djzqbsm,最后2位是syqlxbsm 860101555888GB | 532 | getBdcdyh(this.dpdm, "zd") |
| 501 | getBdcdyh("860101555888GB", "zd") | ||
| 502 | .then((res) => { | 533 | .then((res) => { |
| 503 | console.log(res); | 534 | console.log(res); |
| 504 | this.formData.zddm = res.result.substring(0, 19); | 535 | this.formData.zddm = res.result.substring(0, 19); | ... | ... |
-
Please register or sign in to post a comment