宗地表单保存前判断宗地代码和不动产单元号前14位是否和底盘代码一致
Showing
1 changed file
with
45 additions
and
35 deletions
| ... | @@ -454,7 +454,7 @@ export default { | ... | @@ -454,7 +454,7 @@ export default { |
| 454 | }) | 454 | }) |
| 455 | } | 455 | } |
| 456 | //权利性质数据传给子组件 | 456 | //权利性质数据传给子组件 |
| 457 | this.$refs.qlxzModule.countList = res.result.list | 457 | this.$refs.qlxzModule.countList = res.result.list; |
| 458 | } | 458 | } |
| 459 | } | 459 | } |
| 460 | }) | 460 | }) |
| ... | @@ -485,7 +485,6 @@ export default { | ... | @@ -485,7 +485,6 @@ export default { |
| 485 | this.dpdm = this.dpdm + item.dm; | 485 | this.dpdm = this.dpdm + item.dm; |
| 486 | } | 486 | } |
| 487 | }); | 487 | }); |
| 488 | console.log(this.dpdm) | ||
| 489 | }, | 488 | }, |
| 490 | 489 | ||
| 491 | //不动产单元号再次生成提示框 | 490 | //不动产单元号再次生成提示框 |
| ... | @@ -540,37 +539,45 @@ export default { | ... | @@ -540,37 +539,45 @@ export default { |
| 540 | this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? this.rjl : this.formData.jyrjl; | 539 | this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? this.rjl : this.formData.jyrjl; |
| 541 | this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? this.jzmd : this.formData.jyjzmd; | 540 | this.formData.jyjzmd = this.isInterval(this.formData.jyjzmd) ? this.jzmd : this.formData.jyjzmd; |
| 542 | this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg; | 541 | this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg; |
| 542 | //判断宗地代码和不动产单元号是否手动修改过(宗地代码和不动产单元号的前14位是否和底盘代码一致) | ||
| 543 | if(this.formData.zddm.substring(0,14) != this.dpdm || this.formData.bdcdyh.substring(0,14) != this.dpdm){ | ||
| 544 | this.$message({ | ||
| 545 | message: '宗地代码或不动产单元号有误,请核对后再试一次', | ||
| 546 | type: "warning", | ||
| 547 | }); | ||
| 548 | }else{ | ||
| 549 | // FIXME:表单验证错误 | ||
| 550 | /* this.$refs['ruleForm'].validate((valid) => { | ||
| 551 | debugger | ||
| 552 | if (valid) { | ||
| 553 | alert('submit!'); | ||
| 543 | 554 | ||
| 555 | } else { | ||
| 556 | alert("error submit") | ||
| 557 | return false; | ||
| 558 | } | ||
| 559 | });*/ | ||
| 560 | updateQjZdjbxx(this.formData) | ||
| 561 | .then((res) => { | ||
| 562 | if (res.code == 200) { | ||
| 563 | console.log(res); | ||
| 564 | this.$message({ | ||
| 565 | message: '保存成功', | ||
| 566 | type: "success", | ||
| 567 | }); | ||
| 568 | // 保存成功再次查询 | ||
| 569 | this.getZdjbxxData(this.$store.state.zdbsm); | ||
| 570 | } else { | ||
| 571 | this.$message({ | ||
| 572 | message: res.message, | ||
| 573 | type: "warning", | ||
| 574 | }); | ||
| 575 | } | ||
| 576 | }) | ||
| 577 | .catch((error) => {}); | ||
| 578 | } | ||
| 544 | 579 | ||
| 545 | // FIXME:表单验证错误 | ||
| 546 | /* this.$refs['ruleForm'].validate((valid) => { | ||
| 547 | debugger | ||
| 548 | if (valid) { | ||
| 549 | alert('submit!'); | ||
| 550 | 580 | ||
| 551 | } else { | ||
| 552 | alert("error submit") | ||
| 553 | return false; | ||
| 554 | } | ||
| 555 | });*/ | ||
| 556 | updateQjZdjbxx(this.formData) | ||
| 557 | .then((res) => { | ||
| 558 | if (res.code == 200) { | ||
| 559 | console.log(res); | ||
| 560 | this.$message({ | ||
| 561 | message: '保存成功', | ||
| 562 | type: "success", | ||
| 563 | }); | ||
| 564 | // 保存成功再次查询 | ||
| 565 | this.getZdjbxxData(this.$store.state.zdbsm); | ||
| 566 | } else { | ||
| 567 | this.$message({ | ||
| 568 | message: res.message, | ||
| 569 | type: "warning", | ||
| 570 | }); | ||
| 571 | } | ||
| 572 | }) | ||
| 573 | .catch((error) => {}); | ||
| 574 | 581 | ||
| 575 | }, | 582 | }, |
| 576 | //提交宗地基本信息 | 583 | //提交宗地基本信息 |
| ... | @@ -629,14 +636,17 @@ export default { | ... | @@ -629,14 +636,17 @@ export default { |
| 629 | this.$store.state.xzqList = res.result; | 636 | this.$store.state.xzqList = res.result; |
| 630 | }) | 637 | }) |
| 631 | .catch((error) => {}); | 638 | .catch((error) => {}); |
| 632 | getListByXzqbsm(xzqdm) | 639 | |
| 633 | .then((res) => { | ||
| 634 | this.$store.state.djqList = res.result; | ||
| 635 | }) | ||
| 636 | .catch((error) => {}); | ||
| 637 | getListByPbsm(djqdm) | 640 | getListByPbsm(djqdm) |
| 638 | .then((res) => { | 641 | .then((res) => { |
| 639 | this.$store.state.djzqList = res.result; | 642 | this.$store.state.djzqList = res.result; |
| 643 | getListByXzqbsm(xzqdm) | ||
| 644 | .then((res) => { | ||
| 645 | this.$store.state.djqList = res.result; | ||
| 646 | //生成底盘代码 | ||
| 647 | this.generatorDpdm(); | ||
| 648 | }) | ||
| 649 | .catch((error) => {}); | ||
| 640 | }) | 650 | }) |
| 641 | .catch((error) => {}); | 651 | .catch((error) => {}); |
| 642 | } | 652 | } | ... | ... |
-
Please register or sign in to post a comment