a2fcd57f by xiaomiao

--no commit message

1 parent 7cad9acd
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
107 </el-col> 107 </el-col>
108 <el-col :span="8"> 108 <el-col :span="8">
109 <el-form-item label="坐落:"> 109 <el-form-item label="坐落:">
110 <el-input disabled v-model="ruleForm.sldy.zl"></el-input> 110 <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
111 </el-form-item> 111 </el-form-item>
112 </el-col> 112 </el-col>
113 </el-row> 113 </el-row>
...@@ -189,23 +189,11 @@ ...@@ -189,23 +189,11 @@
189 <el-form-item 189 <el-form-item
190 label="是否被续封:" 190 label="是否被续封:"
191 prop="cfdj.sfbxf" 191 prop="cfdj.sfbxf"
192 <<<<<<< HEAD
193 :rules="rules.sfbxfrules"> 192 :rules="rules.sfbxfrules">
194 <el-select v-model="ruleForm.cfdj.sfbxf" @change="djlxchange"> 193 <el-radio-group v-model="ruleForm.cfdj.sfbxf" @change="djlxchange">
195 <el-option
196 v-for="item in sfbxflist"
197 :key="item.dcode"
198 :label="item.dname"
199 :value="item.dcode"></el-option>
200 </el-select>
201 =======
202 :rules="rules.sfbxfrules"
203 >
204 <el-radio-group v-model="ruleForm.cfdj.sfbxf">
205 <el-radio label="1"></el-radio> 194 <el-radio label="1"></el-radio>
206 <el-radio label="2"></el-radio> 195 <el-radio label="2"></el-radio>
207 </el-radio-group> 196 </el-radio-group>
208 >>>>>>> 1f8b14f926a91690cf660a297aa8a8f4a2658f8b
209 </el-form-item> 197 </el-form-item>
210 </el-col> 198 </el-col>
211 <el-col :span="8"> 199 <el-col :span="8">
...@@ -519,7 +507,6 @@ ...@@ -519,7 +507,6 @@
519 }, 507 },
520 // 弹框事件 508 // 弹框事件
521 ssQlxxchangediolog (val) { 509 ssQlxxchangediolog (val) {
522 console.log("确定了", this.ruleForm);
523 this.$confirm("是否将上手权利信息同步到表单", "提示", { 510 this.$confirm("是否将上手权利信息同步到表单", "提示", {
524 iconClass: "el-icon-question", //自定义图标样式 511 iconClass: "el-icon-question", //自定义图标样式
525 confirmButtonText: "确认", //确认按钮文字更换 512 confirmButtonText: "确认", //确认按钮文字更换
...@@ -530,8 +517,6 @@ ...@@ -530,8 +517,6 @@
530 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => { 517 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
531 if (res.code == 200) { 518 if (res.code == 200) {
532 this.nowlist = res.result; 519 this.nowlist = res.result;
533 console.log("his.nowlist", this.nowlist);
534 console.log("this.ruleForm", this.ruleForm);
535 for (var key in this.ruleForm.cfdj) { 520 for (var key in this.ruleForm.cfdj) {
536 if ( 521 if (
537 this.ruleForm.cfdj[key] == "" || 522 this.ruleForm.cfdj[key] == "" ||
...@@ -545,13 +530,11 @@ ...@@ -545,13 +530,11 @@
545 (this.ruleForm.qlxx[key] == null && key != "ywh") || 530 (this.ruleForm.qlxx[key] == null && key != "ywh") ||
546 this.ruleForm.qlxx[key] == null 531 this.ruleForm.qlxx[key] == null
547 ) { 532 ) {
548 console.log("this.ruleForm.qlxx[key]", key);
549 if (key != "ywh") { 533 if (key != "ywh") {
550 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key]; 534 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
551 } 535 }
552 } 536 }
553 } 537 }
554 console.log("this.ruleForm", this.ruleForm);
555 this.$message({ 538 this.$message({
556 type: "success", 539 type: "success",
557 message: "同步成功!", 540 message: "同步成功!",
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 </el-col> 103 </el-col>
104 <el-col :span="8"> 104 <el-col :span="8">
105 <el-form-item label="坐落:"> 105 <el-form-item label="坐落:">
106 <el-input disabled v-model="ruleForm.sldy.zl"></el-input> 106 <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
107 </el-form-item> 107 </el-form-item>
108 </el-col> 108 </el-col>
109 </el-row> 109 </el-row>
...@@ -479,7 +479,7 @@ ...@@ -479,7 +479,7 @@
479 <el-form-item label="共有方式:"> 479 <el-form-item label="共有方式:">
480 <el-radio-group 480 <el-radio-group
481 :disabled="!ableOperation" 481 :disabled="!ableOperation"
482 v-model="ruleForm.sldy.gyfs"> 482 v-model="ruleForm.qlxx.gyfs">
483 <el-radio label="0">单独所有</el-radio> 483 <el-radio label="0">单独所有</el-radio>
484 <el-radio label="1">共同共有</el-radio> 484 <el-radio label="1">共同共有</el-radio>
485 <el-radio label="2">按份所有</el-radio> 485 <el-radio label="2">按份所有</el-radio>
...@@ -487,10 +487,10 @@ ...@@ -487,10 +487,10 @@
487 </el-radio-group> 487 </el-radio-group>
488 </el-form-item> 488 </el-form-item>
489 </el-col> 489 </el-col>
490 <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'"> 490 <!-- <el-col :span="6" v-show="ruleForm.qlxx.gyfs != '0'">
491 <el-form-item label="是否分别持证:"> 491 <el-form-item label="是否分别持证:">
492 <el-radio-group 492 <el-radio-group
493 v-model="ruleForm.sldy.sqfbcz" 493 v-model="ruleForm.qlxx.sqfbcz"
494 :disabled="!ableOperation"> 494 :disabled="!ableOperation">
495 <el-radio :label="1"></el-radio> 495 <el-radio :label="1"></el-radio>
496 <el-radio :label="0"></el-radio> 496 <el-radio :label="0"></el-radio>
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
499 </el-col> 499 </el-col>
500 <el-col 500 <el-col
501 :span="6" 501 :span="6"
502 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> 502 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs != '0'">
503 <el-form-item label="持证人:"> 503 <el-form-item label="持证人:">
504 <el-select 504 <el-select
505 v-model="ruleForm.czr" 505 v-model="ruleForm.czr"
...@@ -513,7 +513,7 @@ ...@@ -513,7 +513,7 @@
513 </el-option> 513 </el-option>
514 </el-select> 514 </el-select>
515 </el-form-item> 515 </el-form-item>
516 </el-col> 516 </el-col> -->
517 </el-row> 517 </el-row>
518 <qlrCommonTable 518 <qlrCommonTable
519 :tableData="ruleForm.qlrData" 519 :tableData="ruleForm.qlrData"
...@@ -835,7 +835,7 @@ ...@@ -835,7 +835,7 @@
835 }); 835 });
836 return false; 836 return false;
837 } 837 }
838 if (this.ruleForm.sldy.gyfs == "0") { 838 if (this.ruleForm.qlxx.gyfs == "0") {
839 if (this.ruleForm.qlrData.length > 1) { 839 if (this.ruleForm.qlrData.length > 1) {
840 this.$message({ 840 this.$message({
841 showClose: true, 841 showClose: true,
...@@ -846,7 +846,7 @@ ...@@ -846,7 +846,7 @@
846 } 846 }
847 this.ruleForm.qlrData[0].sfczr = "1"; 847 this.ruleForm.qlrData[0].sfczr = "1";
848 } else { 848 } else {
849 if (this.ruleForm.qlrList.length <= 1) { 849 if (this.ruleForm.qlrData.length <= 1) {
850 this.$message({ 850 this.$message({
851 showClose: true, 851 showClose: true,
852 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 852 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
...@@ -854,29 +854,29 @@ ...@@ -854,29 +854,29 @@
854 }); 854 });
855 return false; 855 return false;
856 } 856 }
857 //是否分别持证 857 // //是否分别持证
858 if (this.ruleForm.sldy.sqfbcz == "1") { 858 // if (this.ruleForm.qlxx.sqfbcz == "1") {
859 //是 859 // //是
860 this.ruleForm.qlrList.forEach((item, index) => { 860 // this.ruleForm.qlrData.forEach((item, index) => {
861 item.sfczr = "1"; 861 // item.sfczr = "1";
862 }); 862 // });
863 } else { 863 // } else {
864 if (!that.ruleForm.czr) { 864 // if (!that.ruleForm.czr) {
865 that.$message({ 865 // that.$message({
866 showClose: true, 866 // showClose: true,
867 message: "请选择持证人", 867 // message: "请选择持证人",
868 type: "error", 868 // type: "error",
869 }); 869 // });
870 return false; 870 // return false;
871 } 871 // }
872 this.ruleForm.qlrList.forEach((item, index) => { 872 // this.ruleForm.qlrData.forEach((item, index) => {
873 if (item.zjh == this.ruleForm.czr) { 873 // if (item.zjh == this.ruleForm.czr) {
874 item.sfczr = "1"; 874 // item.sfczr = "1";
875 } else { 875 // } else {
876 item.sfczr = "0"; 876 // item.sfczr = "0";
877 } 877 // }
878 }) 878 // })
879 } 879 // }
880 } 880 }
881 save(this.ruleForm).then((res) => { 881 save(this.ruleForm).then((res) => {
882 if (res.code === 200) { 882 if (res.code === 200) {
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
105 </el-col> 105 </el-col>
106 <el-col :span="8"> 106 <el-col :span="8">
107 <el-form-item label="坐落:"> 107 <el-form-item label="坐落:">
108 <el-input disabled v-model="ruleForm.sldy.zl"></el-input> 108 <el-input disabled v-model="ruleForm.ztQlxx.zl"></el-input>
109 </el-form-item> 109 </el-form-item>
110 </el-col> 110 </el-col>
111 </el-row> 111 </el-row>
...@@ -722,7 +722,7 @@ ...@@ -722,7 +722,7 @@
722 }); 722 });
723 return false; 723 return false;
724 } 724 }
725 if (this.ruleForm.sldy.gyfs == "0") { 725 if (this.ruleForm.qlxx.gyfs == "0") {
726 if (this.ruleForm.qlrData.length > 1) { 726 if (this.ruleForm.qlrData.length > 1) {
727 this.$message({ 727 this.$message({
728 showClose: true, 728 showClose: true,
...@@ -731,7 +731,6 @@ ...@@ -731,7 +731,6 @@
731 }); 731 });
732 return false; 732 return false;
733 } 733 }
734 this.ruleForm.qlrData[0].sfczr = "1";
735 } else { 734 } else {
736 if (this.ruleForm.qlrList.length <= 1) { 735 if (this.ruleForm.qlrList.length <= 1) {
737 this.$message({ 736 this.$message({
...@@ -741,29 +740,7 @@ ...@@ -741,29 +740,7 @@
741 }); 740 });
742 return false; 741 return false;
743 } 742 }
744 //是否分别持证 743
745 if (this.ruleForm.sldy.sqfbcz == "1") {
746 //是
747 this.ruleForm.qlrList.forEach((item, index) => {
748 item.sfczr = "1";
749 });
750 } else {
751 if (!that.ruleForm.czr) {
752 that.$message({
753 showClose: true,
754 message: "请选择持证人",
755 type: "error",
756 });
757 return false;
758 }
759 this.ruleForm.qlrList.forEach((item, index) => {
760 if (item.zjh == this.ruleForm.czr) {
761 item.sfczr = "1";
762 } else {
763 item.sfczr = "0";
764 }
765 });
766 }
767 } 744 }
768 save(this.ruleForm).then((res) => { 745 save(this.ruleForm).then((res) => {
769 if (res.code === 200) { 746 if (res.code === 200) {
......
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
399 <el-form-item label="共有方式:"> 399 <el-form-item label="共有方式:">
400 <el-radio-group 400 <el-radio-group
401 :disabled="!ableOperation" 401 :disabled="!ableOperation"
402 v-model="ruleForm.sldy.gyfs"> 402 v-model="ruleForm.qlxx.gyfs">
403 <el-radio label="0">单独所有</el-radio> 403 <el-radio label="0">单独所有</el-radio>
404 <el-radio label="1">共同共有</el-radio> 404 <el-radio label="1">共同共有</el-radio>
405 <el-radio label="2">按份所有</el-radio> 405 <el-radio label="2">按份所有</el-radio>
...@@ -407,33 +407,6 @@ ...@@ -407,33 +407,6 @@
407 </el-radio-group> 407 </el-radio-group>
408 </el-form-item> 408 </el-form-item>
409 </el-col> 409 </el-col>
410 <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
411 <el-form-item label="是否分别持证:">
412 <el-radio-group
413 v-model="ruleForm.sldy.sqfbcz"
414 :disabled="!ableOperation">
415 <el-radio :label="1"></el-radio>
416 <el-radio :label="0"></el-radio>
417 </el-radio-group>
418 </el-form-item>
419 </el-col>
420 <el-col
421 :span="6"
422 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
423 <el-form-item label="持证人:">
424 <el-select
425 v-model="ruleForm.czr"
426 placeholder="持证人"
427 :disabled="!ableOperation">
428 <el-option
429 v-for="item in czrOptions"
430 :key="item.zjh"
431 :label="item.sqrmc"
432 :value="item.zjh">
433 </el-option>
434 </el-select>
435 </el-form-item>
436 </el-col>
437 </el-row> 410 </el-row>
438 <qlrCommonTable 411 <qlrCommonTable
439 :tableData="ruleForm.qlrData" 412 :tableData="ruleForm.qlrData"
...@@ -762,7 +735,7 @@ djlxchange(val) { ...@@ -762,7 +735,7 @@ djlxchange(val) {
762 return false; 735 return false;
763 } 736 }
764 } 737 }
765 if (this.ruleForm.sldy.gyfs == "0") { 738 if (this.ruleForm.qlxx.gyfs == "0") {
766 if (this.ruleForm.qlrData.length > 1) { 739 if (this.ruleForm.qlrData.length > 1) {
767 this.$message({ 740 this.$message({
768 showClose: true, 741 showClose: true,
...@@ -771,9 +744,8 @@ djlxchange(val) { ...@@ -771,9 +744,8 @@ djlxchange(val) {
771 }); 744 });
772 return false; 745 return false;
773 } 746 }
774 this.ruleForm.qlrData[0].sfczr = "1";
775 } else { 747 } else {
776 if (this.ruleForm.qlrList.length <= 1) { 748 if (this.ruleForm.qlrData.length <= 1) {
777 this.$message({ 749 this.$message({
778 showClose: true, 750 showClose: true,
779 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 751 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
...@@ -781,29 +753,6 @@ djlxchange(val) { ...@@ -781,29 +753,6 @@ djlxchange(val) {
781 }); 753 });
782 return false; 754 return false;
783 } 755 }
784 //是否分别持证
785 if (this.ruleForm.sldy.sqfbcz == "1") {
786 //是
787 this.ruleForm.qlrList.forEach((item, index) => {
788 item.sfczr = "1";
789 });
790 } else {
791 if (!that.ruleForm.czr) {
792 that.$message({
793 showClose: true,
794 message: "请选择持证人",
795 type: "error",
796 });
797 return false;
798 }
799 this.ruleForm.qlrList.forEach((item, index) => {
800 if (item.zjh == this.ruleForm.czr) {
801 item.sfczr = "1";
802 } else {
803 item.sfczr = "0";
804 }
805 });
806 }
807 } 756 }
808 save(this.ruleForm).then((res) => { 757 save(this.ruleForm).then((res) => {
809 if (res.code === 200) { 758 if (res.code === 200) {
......
...@@ -271,33 +271,6 @@ ...@@ -271,33 +271,6 @@
271 </el-radio-group> 271 </el-radio-group>
272 </el-form-item> 272 </el-form-item>
273 </el-col> 273 </el-col>
274 <el-col :span="6" v-show="ruleForm.qlxx.gyfs != '0'">
275 <el-form-item label="是否分别持证:">
276 <el-radio-group
277 v-model="ruleForm.qlxx.sqfbcz"
278 :disabled="!ableOperation">
279 <el-radio :label="1"></el-radio>
280 <el-radio :label="0"></el-radio>
281 </el-radio-group>
282 </el-form-item>
283 </el-col>
284 <el-col
285 :span="6"
286 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs != '0'">
287 <el-form-item label="持证人:">
288 <el-select
289 v-model="ruleForm.czr"
290 placeholder="持证人"
291 :disabled="!ableOperation">
292 <el-option
293 v-for="item in czrOptions"
294 :key="item.zjh"
295 :label="item.sqrmc"
296 :value="item.zjh">
297 </el-option>
298 </el-select>
299 </el-form-item>
300 </el-col>
301 </el-row> 274 </el-row>
302 <qlrCommonTable 275 <qlrCommonTable
303 :tableData="ruleForm.qlrData" 276 :tableData="ruleForm.qlrData"
...@@ -612,9 +585,8 @@ export default { ...@@ -612,9 +585,8 @@ export default {
612 }); 585 });
613 return false; 586 return false;
614 } 587 }
615 this.ruleForm.qlrData[0].sfczr = "1";
616 } else { 588 } else {
617 if (this.ruleForm.qlrList.length <= 1) { 589 if (this.ruleForm.qlrData.length <= 1) {
618 this.$message({ 590 this.$message({
619 showClose: true, 591 showClose: true,
620 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 592 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
...@@ -622,29 +594,6 @@ export default { ...@@ -622,29 +594,6 @@ export default {
622 }); 594 });
623 return false; 595 return false;
624 } 596 }
625 //是否分别持证
626 if (this.ruleForm.qlxx.sqfbcz == "1") {
627 //是
628 this.ruleForm.qlrList.forEach((item, index) => {
629 item.sfczr = "1";
630 });
631 } else {
632 if (!that.ruleForm.czr) {
633 that.$message({
634 showClose: true,
635 message: "请选择持证人",
636 type: "error",
637 });
638 return false;
639 }
640 this.ruleForm.qlrList.forEach((item, index) => {
641 if (item.zjh == this.ruleForm.czr) {
642 item.sfczr = "1";
643 } else {
644 item.sfczr = "0";
645 }
646 });
647 }
648 } 597 }
649 save(this.ruleForm).then((res) => { 598 save(this.ruleForm).then((res) => {
650 if (res.code === 200) { 599 if (res.code === 200) {
......
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
364 </el-radio-group> 364 </el-radio-group>
365 </el-form-item> 365 </el-form-item>
366 </el-col> 366 </el-col>
367 <el-col :span="6" v-show="ruleForm.qlxx.gyfs != '0'"> 367 <!-- <el-col :span="6" v-show="ruleForm.qlxx.gyfs != '0'">
368 <el-form-item label="是否分别持证:"> 368 <el-form-item label="是否分别持证:">
369 <el-radio-group 369 <el-radio-group
370 v-model="ruleForm.qlxx.sqfbcz" 370 v-model="ruleForm.qlxx.sqfbcz"
...@@ -373,8 +373,8 @@ ...@@ -373,8 +373,8 @@
373 <el-radio :label="0"></el-radio> 373 <el-radio :label="0"></el-radio>
374 </el-radio-group> 374 </el-radio-group>
375 </el-form-item> 375 </el-form-item>
376 </el-col> 376 </el-col> -->
377 <el-col 377 <!-- <el-col
378 :span="6" 378 :span="6"
379 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs != '0'"> 379 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs != '0'">
380 <el-form-item label="持证人:"> 380 <el-form-item label="持证人:">
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
390 </el-option> 390 </el-option>
391 </el-select> 391 </el-select>
392 </el-form-item> 392 </el-form-item>
393 </el-col> 393 </el-col> -->
394 </el-row> 394 </el-row>
395 <qlrCommonTable 395 <qlrCommonTable
396 :tableData="ruleForm.qlrData" 396 :tableData="ruleForm.qlrData"
...@@ -691,38 +691,14 @@ export default { ...@@ -691,38 +691,14 @@ export default {
691 }); 691 });
692 return false; 692 return false;
693 } 693 }
694 this.ruleForm.qlrData[0].sfczr = "1";
695 } else { 694 } else {
696 if (this.ruleForm.qlrList.length <= 1) { 695 if (this.ruleForm.qlrData.length <= 1) {
697 this.$message({ 696 this.$message({
698 showClose: true, 697 showClose: true,
699 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 698 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
700 type: "error", 699 type: "error",
701 }); 700 });
702 return false; 701 return false;
703 }
704 //是否分别持证
705 if (this.ruleForm.qlxx.sqfbcz == "1") {
706 //是
707 this.ruleForm.qlrList.forEach((item, index) => {
708 item.sfczr = "1";
709 });
710 } else {
711 if (!that.ruleForm.czr) {
712 that.$message({
713 showClose: true,
714 message: "请选择持证人",
715 type: "error",
716 });
717 return false;
718 }
719 this.ruleForm.qlrList.forEach((item, index) => {
720 if (item.zjh == this.ruleForm.czr) {
721 item.sfczr = "1";
722 } else {
723 item.sfczr = "0";
724 }
725 });
726 } 702 }
727 } 703 }
728 save(this.ruleForm).then((res) => { 704 save(this.ruleForm).then((res) => {
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
105 </el-col> 105 </el-col>
106 <el-col :span="8"> 106 <el-col :span="8">
107 <el-form-item label="坐落:"> 107 <el-form-item label="坐落:">
108 <el-input disabled v-model="ruleForm.sldy.zl"></el-input> 108 <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
109 </el-form-item> 109 </el-form-item>
110 </el-col> 110 </el-col>
111 </el-row> 111 </el-row>
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
452 <el-form-item label="共有方式:"> 452 <el-form-item label="共有方式:">
453 <el-radio-group 453 <el-radio-group
454 :disabled="!ableOperation" 454 :disabled="!ableOperation"
455 v-model="ruleForm.sldy.gyfs"> 455 v-model="ruleForm.qlxx.gyfs">
456 <el-radio label="0">单独所有</el-radio> 456 <el-radio label="0">单独所有</el-radio>
457 <el-radio label="1">共同共有</el-radio> 457 <el-radio label="1">共同共有</el-radio>
458 <el-radio label="2">按份所有</el-radio> 458 <el-radio label="2">按份所有</el-radio>
...@@ -460,33 +460,6 @@ ...@@ -460,33 +460,6 @@
460 </el-radio-group> 460 </el-radio-group>
461 </el-form-item> 461 </el-form-item>
462 </el-col> 462 </el-col>
463 <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'">
464 <el-form-item label="是否分别持证:">
465 <el-radio-group
466 v-model="ruleForm.sldy.sqfbcz"
467 :disabled="!ableOperation">
468 <el-radio :label="1"></el-radio>
469 <el-radio :label="0"></el-radio>
470 </el-radio-group>
471 </el-form-item>
472 </el-col>
473 <el-col
474 :span="6"
475 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
476 <el-form-item label="持证人:">
477 <el-select
478 v-model="ruleForm.czr"
479 placeholder="持证人"
480 :disabled="!ableOperation">
481 <el-option
482 v-for="item in czrOptions"
483 :key="item.zjh"
484 :label="item.sqrmc"
485 :value="item.zjh">
486 </el-option>
487 </el-select>
488 </el-form-item>
489 </el-col>
490 </el-row> 463 </el-row>
491 <qlrCommonTable 464 <qlrCommonTable
492 :tableData="ruleForm.qlrData" 465 :tableData="ruleForm.qlrData"
...@@ -816,9 +789,8 @@ created() { ...@@ -816,9 +789,8 @@ created() {
816 }); 789 });
817 return false; 790 return false;
818 } 791 }
819 this.ruleForm.qlrData[0].sfczr = "1";
820 } else { 792 } else {
821 if (this.ruleForm.qlrList.length <= 1) { 793 if (this.ruleForm.qlrData.length <= 1) {
822 this.$message({ 794 this.$message({
823 showClose: true, 795 showClose: true,
824 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 796 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
...@@ -826,29 +798,6 @@ created() { ...@@ -826,29 +798,6 @@ created() {
826 }); 798 });
827 return false; 799 return false;
828 } 800 }
829 //是否分别持证
830 if (this.ruleForm.sldy.sqfbcz == "1") {
831 //是
832 this.ruleForm.qlrList.forEach((item, index) => {
833 item.sfczr = "1";
834 });
835 } else {
836 if (!that.ruleForm.czr) {
837 that.$message({
838 showClose: true,
839 message: "请选择持证人",
840 type: "error",
841 });
842 return false;
843 }
844 this.ruleForm.qlrList.forEach((item, index) => {
845 if (item.zjh == this.ruleForm.czr) {
846 item.sfczr = "1";
847 } else {
848 item.sfczr = "0";
849 }
850 });
851 }
852 } 801 }
853 save(this.ruleForm).then((res) => { 802 save(this.ruleForm).then((res) => {
854 if (res.code === 200) { 803 if (res.code === 200) {
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
368 <el-form-item label="共有方式:"> 368 <el-form-item label="共有方式:">
369 <el-radio-group 369 <el-radio-group
370 :disabled="!ableOperation" 370 :disabled="!ableOperation"
371 v-model="ruleForm.sldy.gyfs"> 371 v-model="ruleForm.qlxx.gyfs">
372 <el-radio label="0">单独所有</el-radio> 372 <el-radio label="0">单独所有</el-radio>
373 <el-radio label="1">共同共有</el-radio> 373 <el-radio label="1">共同共有</el-radio>
374 <el-radio label="2">按份所有</el-radio> 374 <el-radio label="2">按份所有</el-radio>
...@@ -376,10 +376,10 @@ ...@@ -376,10 +376,10 @@
376 </el-radio-group> 376 </el-radio-group>
377 </el-form-item> 377 </el-form-item>
378 </el-col> 378 </el-col>
379 <el-col :span="6" v-show="ruleForm.sldy.gyfs != '0'"> 379 <!-- <el-col :span="6" v-show="ruleForm.qlxx.gyfs != '0'">
380 <el-form-item label="是否分别持证:"> 380 <el-form-item label="是否分别持证:">
381 <el-radio-group 381 <el-radio-group
382 v-model="ruleForm.sldy.sqfbcz" 382 v-model="ruleForm.qlxx.sqfbcz"
383 :disabled="!ableOperation"> 383 :disabled="!ableOperation">
384 <el-radio :label="1"></el-radio> 384 <el-radio :label="1"></el-radio>
385 <el-radio :label="0"></el-radio> 385 <el-radio :label="0"></el-radio>
...@@ -388,7 +388,7 @@ ...@@ -388,7 +388,7 @@
388 </el-col> 388 </el-col>
389 <el-col 389 <el-col
390 :span="6" 390 :span="6"
391 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> 391 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs != '0'">
392 <el-form-item label="持证人:"> 392 <el-form-item label="持证人:">
393 <el-select 393 <el-select
394 v-model="ruleForm.czr" 394 v-model="ruleForm.czr"
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
402 </el-option> 402 </el-option>
403 </el-select> 403 </el-select>
404 </el-form-item> 404 </el-form-item>
405 </el-col> 405 </el-col> -->
406 </el-row> 406 </el-row>
407 <qlrCommonTable 407 <qlrCommonTable
408 :tableData="ruleForm.qlrData" 408 :tableData="ruleForm.qlrData"
...@@ -712,7 +712,7 @@ created() { ...@@ -712,7 +712,7 @@ created() {
712 }); 712 });
713 return false; 713 return false;
714 } 714 }
715 if (this.ruleForm.sldy.gyfs == "0") { 715 if (this.ruleForm.qlxx.gyfs == "0") {
716 if (this.ruleForm.qlrData.length > 1) { 716 if (this.ruleForm.qlrData.length > 1) {
717 this.$message({ 717 this.$message({
718 showClose: true, 718 showClose: true,
...@@ -721,7 +721,6 @@ created() { ...@@ -721,7 +721,6 @@ created() {
721 }); 721 });
722 return false; 722 return false;
723 } 723 }
724 this.ruleForm.qlrData[0].sfczr = "1";
725 } else { 724 } else {
726 if (this.ruleForm.qlrList.length <= 1) { 725 if (this.ruleForm.qlrList.length <= 1) {
727 this.$message({ 726 this.$message({
...@@ -731,29 +730,6 @@ created() { ...@@ -731,29 +730,6 @@ created() {
731 }); 730 });
732 return false; 731 return false;
733 } 732 }
734 //是否分别持证
735 if (this.ruleForm.sldy.sqfbcz == "1") {
736 //是
737 this.ruleForm.qlrList.forEach((item, index) => {
738 item.sfczr = "1";
739 });
740 } else {
741 if (!that.ruleForm.czr) {
742 that.$message({
743 showClose: true,
744 message: "请选择持证人",
745 type: "error",
746 });
747 return false;
748 }
749 this.ruleForm.qlrList.forEach((item, index) => {
750 if (item.zjh == this.ruleForm.czr) {
751 item.sfczr = "1";
752 } else {
753 item.sfczr = "0";
754 }
755 });
756 }
757 } 733 }
758 save(this.ruleForm).then((res) => { 734 save(this.ruleForm).then((res) => {
759 if (res.code === 200) { 735 if (res.code === 200) {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-02 08:38:11 4 * @LastEditTime: 2023-08-01 18:12:57
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
14 ref="ruleForm" 14 ref="ruleForm"
15 :label-position="flag ? 'top' : ''" 15 :label-position="flag ? 'top' : ''"
16 :inline="flag" 16 :inline="flag"
17 :show-message="false"
18 inline-message 17 inline-message
19 label-width="145px"> 18 :show-message="false"
19 label-width="145px"
20 >
20 <div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''"> 21 <div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''">
21 <div class="slxx_title title-block"> 22 <div class="slxx_title title-block">
22 补录信息 23 补录信息
...@@ -40,26 +41,30 @@ ...@@ -40,26 +41,30 @@
40 </el-col> 41 </el-col>
41 </el-row> 42 </el-row>
42 <div class="slxx_title title-block bdcqk"> 43 <div class="slxx_title title-block bdcqk">
43 房地产权信息 44 异议登记不动产情况
44 <div class="count" v-if="ssqlxxshow"> 45 <div class="count">
45 <el-form-item 46 <el-form-item
46 label="上手权利信息:" 47 label="抵押不动产信息:"
47 prop="ssQlxx.bdcqzh" 48 prop="ztQlxx.bdcqzh"
48 :rules="rules.ssQlxxrules"> 49 :rules="rules.ztQlxxrules"
50 >
49 <select-table 51 <select-table
50 v-model="ruleForm.ssQlxx" 52 v-model="ruleForm.ztQlxx"
51 :table-width="730" 53 :table-width="550"
52 :tableData="ssQlxxList" 54 :tableData="ztQlxxList"
53 :props="props" 55 :props="props"
54 @change="ssQlxxchange"> 56 @change="ztQlxxchange"
57 >
55 <el-table-column 58 <el-table-column
56 prop="qllxmc" 59 prop="qllxmc"
57 width="130" 60 width="130"
58 label="权利类型"></el-table-column> 61 label="权利类型"
62 ></el-table-column>
59 <el-table-column 63 <el-table-column
60 prop="bdcqzh" 64 prop="bdcqzh"
61 width="160" 65 width="160"
62 label="不动产权证书"></el-table-column> 66 label="不动产权证书"
67 ></el-table-column>
63 <el-table-column prop="qlrmc" label="权利人"></el-table-column> 68 <el-table-column prop="qlrmc" label="权利人"></el-table-column>
64 <el-table-column prop="mjmc" label="面积"></el-table-column> 69 <el-table-column prop="mjmc" label="面积"></el-table-column>
65 <el-table-column prop="ytmc" label="用途"></el-table-column> 70 <el-table-column prop="ytmc" label="用途"></el-table-column>
...@@ -69,270 +74,156 @@ ...@@ -69,270 +74,156 @@
69 </div> 74 </div>
70 <div class="triangle"></div> 75 <div class="triangle"></div>
71 </div> 76 </div>
72 <el-row :gutter="10"> 77 <el-row :gutter="10" v-if="ruleForm.ztQlxx != null">
73 <el-col :span="8"> 78 <el-col :span="8">
74 <el-form-item label="不动产单元号:"> 79 <el-form-item label="权利人:">
75 <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input> 80 <el-input disabled v-model="ruleForm.ztQlxx.qlrmc"></el-input>
76 </el-form-item> 81 </el-form-item>
77 </el-col> 82 </el-col>
78 <el-col :span="8"> 83 <el-col :span="8">
79 <el-form-item 84 <el-form-item label="证件种类:">
80 label="业务号:" 85 <el-input disabled v-model="ruleForm.ztQlxx.qlrzjzl"></el-input>
81 prop="qlxx.ywh"
82 :rules="rules.ywhrules">
83 <el-input v-model="ruleForm.qlxx.ywh"></el-input>
84 </el-form-item> 86 </el-form-item>
85 </el-col> 87 </el-col>
86 <el-col :span="8"> 88 <el-col :span="8">
87 <el-form-item label="上手业务号:"> 89 <el-form-item label="证件号:">
88 <el-input disabled v-model="ruleForm.qlxx.ssywh"></el-input> 90 <el-input disabled v-model="ruleForm.ztQlxx.qlrzjhm"></el-input>
89 </el-form-item> 91 </el-form-item>
90 </el-col> 92 </el-col>
91 </el-row> 93 </el-row>
92 <el-row :gutter="10"> 94 <el-row :gutter="10" v-if="ruleForm.ztQlxx != null">
93 <el-col :span="8"> 95 <el-col :span="8">
94 <el-form-item label="权利类型:"> 96 <el-form-item label="权利类型:">
95 <el-input disabled v-model="ruleForm.qlxx.qllxmc"></el-input> 97 <el-input disabled v-model="ruleForm.ztQlxx.qllxmc"></el-input>
96 </el-form-item> 98 </el-form-item>
97 </el-col> 99 </el-col>
98 <el-col :span="8"> 100 <el-col :span="8">
99 <el-form-item 101 <el-form-item label="不动产权证号:">
100 label="登记类型:" 102 <el-input disabled v-model="ruleForm.ztQlxx.bdcqzh"></el-input>
101 prop="qlxx.djlx"
102 :rules="rules.djlxrules">
103 <el-select v-model="ruleForm.qlxx.djlx" @change="djlxchange">
104 <el-option
105 v-for="item in djlxlist"
106 :key="item.dcode"
107 :label="item.dname"
108 :value="item.dcode">
109 </el-option>
110 </el-select>
111 </el-form-item> 103 </el-form-item>
112 </el-col> 104 </el-col>
113 <el-col :span="8"> 105 <el-col :span="8">
114 <el-form-item label="坐落:"> 106 <el-form-item label="坐落:">
115 <el-input disabled v-model="ruleForm.sldy.zl"></el-input> 107 <el-input disabled v-model="ruleForm.ztQlxx.zl"></el-input>
116 </el-form-item>
117 </el-col>
118 <el-col :span="8">
119 <el-form-item label="土地使用权人:">
120 <el-input v-model="ruleForm.fdcq2.tdsyqr"></el-input>
121 </el-form-item> 108 </el-form-item>
122 </el-col> 109 </el-col>
110 </el-row>
111 <el-row :gutter="10" v-if="ruleForm.ztQlxx != null">
123 <el-col :span="8"> 112 <el-col :span="8">
124 <el-form-item label="独用土地面积:"> 113 <el-form-item label="不动产单元号:">
125 <div class="flex"> 114 <el-input disabled v-model="ruleForm.ztQlxx.bdcdyh"></el-input>
126 <el-input
127 v-model="ruleForm.fdcq2.dytdmj"
128 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
129 <el-select disabled v-model="mjdw" style="width: 20%">
130 <el-option
131 v-for="item in dictData['A7']"
132 :key="item.dcode"
133 :label="item.dname"
134 :value="item.dcode">
135 </el-option>
136 </el-select>
137 </div>
138 </el-form-item> 115 </el-form-item>
139 </el-col> 116 </el-col>
140 <el-col :span="8"> 117 <el-col :span="8">
141 <el-form-item label="分摊土地面积:"> 118 <el-form-item label="面积:">
142 <div class="flex"> 119 <el-input disabled v-model="ruleForm.ztQlxx.mjmc"></el-input>
143 <el-input
144 v-model="ruleForm.fdcq2.fttdmj"
145 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
146 <el-select disabled v-model="mjdw" style="width: 20%">
147 <el-option
148 v-for="item in dictData['A7']"
149 :key="item.dcode"
150 :label="item.dname"
151 :value="item.dcode">
152 </el-option>
153 </el-select>
154 </div>
155 </el-form-item> 120 </el-form-item>
156 </el-col> 121 </el-col>
157 <el-col :span="8"> 122 <el-col :span="8">
158 <!-- 下拉框 --> 123 <el-form-item label="用途:">
159 <el-form-item label="土地性质:" style="margin-bottom: 3px"> 124 <el-input disabled v-model="ruleForm.ztQlxx.ytmc"></el-input>
160 <treeselect
161 v-model="ruleForm.fdcq2.tdxz"
162 noOptionsText="暂无数据"
163 placeholder=""
164 :normalizer="normalizer"
165 :show-count="true"
166 :options="dictData['A9']" />
167 </el-form-item> 125 </el-form-item>
168 </el-col> 126 </el-col>
169 <el-col :span="8"> 127 </el-row>
170 <el-form-item label="房地产交易价格:"> 128 <div class="slxx_title title-block bdcqk">
171 <div class="flex"> 129 异议登记信息
172 <el-input 130 <div class="count" v-if="ssqlxxshow">
173 v-model="ruleForm.fdcq2.qjjg" 131 <el-form-item
174 style="width: 500%" 132 label="上手权利信息:"
175 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> 133 prop="ssQlxx.bdcqzh"
176 <el-select v-model="ruleForm.fdcq2.jedw"> 134 :rules="rules.ssQlxxrules"
177 <el-option 135 >
178 v-for="item in dictData['A57']" 136 <select-table
179 :key="item.dcode" 137 v-model="ruleForm.ssQlxx"
180 :label="item.dname" 138 :table-width="550"
181 :value="item.dcode"> 139 :tableData="ssQlxxList"
182 </el-option> 140 :props="props"
183 </el-select> 141 @change="ssQlxxchange"
184 </div> 142 >
143 <el-table-column
144 prop="qllxmc"
145 width="130"
146 label="权利类型"
147 ></el-table-column>
148 <el-table-column
149 prop="bdcqzh"
150 width="160"
151 label="不动产权证书"
152 ></el-table-column>
153 <el-table-column prop="qlrmc" label="权利人"></el-table-column>
154 <el-table-column prop="mjmc" label="面积"></el-table-column>
155 <el-table-column prop="ytmc" label="用途"></el-table-column>
156 <el-table-column prop="zl" label="坐落"></el-table-column>
157 </select-table>
185 </el-form-item> 158 </el-form-item>
186 </el-col> 159 </div>
160 <div class="triangle"></div>
161 </div>
162 <el-row :gutter="10">
187 <el-col :span="8"> 163 <el-col :span="8">
188 <el-form-item label="权属状态:"> 164 <el-form-item label="不动产单元号:">
189 <el-select v-model="ruleForm.qlxx.qszt"> 165 <el-input disabled v-model="ruleForm.qlxx.bdcdyh"></el-input>
190 <el-option
191 v-for="item in qsztlist"
192 :key="item.dcode"
193 :label="item.dname"
194 :value="item.dcode">
195 </el-option>
196 </el-select>
197 </el-form-item> 166 </el-form-item>
198 </el-col> 167 </el-col>
199 <el-col :span="8"> 168 <el-col :span="8">
200 <el-form-item label="规划用途:"> 169 <el-form-item
201 <el-select v-model="ruleForm.fdcq2.ghyt"> 170 label="业务号:"
202 <el-option 171 prop="qlxx.ywh"
203 v-for="item in dictData['A17']" 172 :rules="rules.ywhrules"
204 :key="item.dcode" 173 >
205 :label="item.dname" 174 <el-input v-model="ruleForm.qlxx.ywh"></el-input>
206 :value="item.dcode">
207 </el-option>
208 </el-select>
209 </el-form-item> 175 </el-form-item>
210 </el-col> 176 </el-col>
211 <el-col :span="8"> 177 <el-col :span="8">
212 <el-form-item label="批准用途:"> 178 <el-form-item label="上手业务号:">
213 <el-input v-model="ruleForm.fdcq2.pzyt"></el-input> 179 <el-input disabled v-model="ruleForm.qlxx.ssywh"></el-input>
214 </el-form-item> 180 </el-form-item>
215 </el-col> 181 </el-col>
216 <el-col :span="8"> 182 </el-row>
217 <el-form-item label="实际用途:"> 183 <el-row :gutter="10">
218 <el-input v-model="ruleForm.fdcq2.sjyt"></el-input> 184 <!-- <el-col :span="8">
185 <el-form-item label="权利类型:">
186 <el-input disabled v-model="ruleForm.qlxx.qllxmc"></el-input>
219 </el-form-item> 187 </el-form-item>
220 </el-col> 188 </el-col> -->
221 <el-col :span="8"> 189 <!-- <el-col :span="8">
222 <el-form-item label="房屋性质:"> 190 <el-form-item label="登记原因:">
223 <el-select v-model="ruleForm.fdcq2.fwxz"> 191 <el-input disabled v-model="ruleForm.qlxx.qllxmc"></el-input>
224 <el-option
225 v-for="item in dictData['A19']"
226 :key="item.dcode"
227 :label="item.dname"
228 :value="item.dcode">
229 </el-option>
230 </el-select>
231 </el-form-item> 192 </el-form-item>
232 </el-col> 193 </el-col> -->
233 <el-col :span="8"> 194 <el-col :span="8">
234 <el-form-item 195 <el-form-item
235 label="房屋结构:" 196 label="登记类型:"
236 prop="fdcq2.fwjg" 197 prop="qlxx.djlx"
237 :rules="rules.fwjgrules"> 198 :rules="rules.djlxrules"
238 <el-select v-model="ruleForm.fdcq2.fwjg"> 199 >
200 <el-select v-model="ruleForm.qlxx.djlx" @change="djlxchange">
239 <el-option 201 <el-option
240 v-for="item in dictData['A46']" 202 v-for="item in djlxlist"
241 :key="item.dcode" 203 :key="item.dcode"
242 :label="item.dname" 204 :label="item.dname"
243 :value="item.dcode"> 205 :value="item.dcode"
206 >
244 </el-option> 207 </el-option>
245 </el-select> 208 </el-select>
246 </el-form-item> 209 </el-form-item>
247 </el-col> 210 </el-col>
248 <el-col :span="8"> 211 <!-- <el-col :span="8">
249 <el-form-item label="所在层:"> 212 <el-form-item label="不动产坐落:">
250 <el-input v-model="ruleForm.fdcq2.szc"></el-input> 213 <el-input v-model="ruleForm.qlxx.zl"></el-input>
251 </el-form-item>
252 </el-col>
253 <el-col :span="8">
254 <el-form-item label="总层数:">
255 <el-input v-model="ruleForm.fdcq2.zcs"></el-input>
256 </el-form-item>
257 </el-col>
258 <el-col :span="8">
259 <el-form-item label="建筑面积:">
260 <div class="flex">
261 <el-input
262 v-model="ruleForm.fdcq2.jzmj"
263 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
264 <el-select disabled v-model="mjdw" style="width: 20%">
265 <el-option
266 v-for="item in dictData['A7']"
267 :key="item.dcode"
268 :label="item.dname"
269 :value="item.dcode">
270 </el-option>
271 </el-select>
272 </div>
273 </el-form-item>
274 </el-col>
275 <el-col :span="8">
276 <el-form-item label="专有建筑面积:">
277 <div class="flex">
278 <el-input
279 v-model="ruleForm.fdcq2.zyjzmj"
280 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
281 <el-select disabled v-model="mjdw" style="width: 20%">
282 <el-option
283 v-for="item in dictData['A7']"
284 :key="item.dcode"
285 :label="item.dname"
286 :value="item.dcode">
287 </el-option>
288 </el-select>
289 </div>
290 </el-form-item>
291 </el-col>
292 <el-col :span="8">
293 <el-form-item label="分摊建筑面积:">
294 <div class="flex">
295 <el-input
296 v-model="ruleForm.fdcq2.ftjzmj"
297 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
298 <el-select disabled v-model="mjdw" style="width: 20%">
299 <el-option
300 v-for="item in dictData['A7']"
301 :key="item.dcode"
302 :label="item.dname"
303 :value="item.dcode">
304 </el-option>
305 </el-select>
306 </div>
307 </el-form-item>
308 </el-col>
309 <el-col :span="8">
310 <el-form-item label="竣工时间:">
311 <el-date-picker
312 v-model="ruleForm.fdcq2.jgsj"
313 class="width100"
314 type="date"
315 placeholder="选择日期"
316 value-format="yyyy-MM-dd HH:mm:ss"
317 format="yyyy-MM-dd">
318 </el-date-picker>
319 </el-form-item> 214 </el-form-item>
320 </el-col> 215 </el-col> -->
321
322 <el-col :span="8"> 216 <el-col :span="8">
323 <el-form-item 217 <el-form-item
324 label="不动产权证号:" 218 label="不动产权证号:"
325 prop="qlxx.bdcqzh" 219 prop="qlxx.bdcqzh"
326 :rules="rules.bdcqzhrules"> 220 :rules="rules.bdcqzhrules"
221 >
327 <el-input v-model="ruleForm.qlxx.bdcqzh"></el-input> 222 <el-input v-model="ruleForm.qlxx.bdcqzh"></el-input>
328 </el-form-item> 223 </el-form-item>
329 </el-col> 224 </el-col>
330 <!-- <el-col :span="8"> 225 <!-- <el-col :span="8">
331 <el-form-item 226 <el-form-item label="区县代码:" prop="qlxx.qxdm" :rules="rules.qxdmrules">
332 label="区县代码:"
333 prop="qlxx.qxdm"
334 :rules="rules.qxdmrules"
335 >
336 <el-input v-model="ruleForm.qlxx.qxdm"></el-input> 227 <el-input v-model="ruleForm.qlxx.qxdm"></el-input>
337 </el-form-item> 228 </el-form-item>
338 </el-col> --> 229 </el-col> -->
...@@ -340,7 +231,8 @@ ...@@ -340,7 +231,8 @@
340 <el-form-item 231 <el-form-item
341 label="登记机构:" 232 label="登记机构:"
342 prop="qlxx.djjg" 233 prop="qlxx.djjg"
343 :rules="rules.djjgrules"> 234 :rules="rules.djjgrules"
235 >
344 <el-input v-model="ruleForm.qlxx.djjg"></el-input> 236 <el-input v-model="ruleForm.qlxx.djjg"></el-input>
345 </el-form-item> 237 </el-form-item>
346 </el-col> 238 </el-col>
...@@ -348,7 +240,8 @@ ...@@ -348,7 +240,8 @@
348 <el-form-item 240 <el-form-item
349 label="登簿人:" 241 label="登簿人:"
350 prop="qlxx.dbr" 242 prop="qlxx.dbr"
351 :rules="rules.dbrrules"> 243 :rules="rules.dbrrules"
244 >
352 <el-input v-model="ruleForm.qlxx.dbr"></el-input> 245 <el-input v-model="ruleForm.qlxx.dbr"></el-input>
353 </el-form-item> 246 </el-form-item>
354 </el-col> 247 </el-col>
...@@ -356,41 +249,83 @@ ...@@ -356,41 +249,83 @@
356 <el-form-item 249 <el-form-item
357 label="登记时间:" 250 label="登记时间:"
358 prop="qlxx.djsj" 251 prop="qlxx.djsj"
359 :rules="rules.djsjrules"> 252 :rules="rules.djsjrules"
253 >
360 <el-date-picker 254 <el-date-picker
361 v-model="ruleForm.qlxx.djsj" 255 v-model="ruleForm.qlxx.djsj"
362 type="date"
363 class="width100" 256 class="width100"
257 type="date"
364 placeholder="选择日期" 258 placeholder="选择日期"
365 value-format="yyyy-MM-dd HH:mm:ss" 259 value-format="yyyy-MM-dd HH:mm:ss"
366 format="yyyy-MM-dd"> 260 format="yyyy-MM-dd"
261 >
367 </el-date-picker> 262 </el-date-picker>
368 </el-form-item> 263 </el-form-item>
369 </el-col> 264 </el-col>
370 </el-row> 265 <el-col :span="8">
371 <el-row> 266 <el-form-item label="权属状态:">
372 <el-col :span="24"> 267 <el-select v-model="ruleForm.qlxx.qszt">
373 <el-form-item label="登记原因:"> 268 <el-option
374 <el-input v-model="ruleForm.fdcq2.djyy"></el-input> 269 v-for="item in qsztlist"
270 :key="item.dcode"
271 :label="item.dname"
272 :value="item.dcode"
273 >
274 </el-option>
275 </el-select>
276 </el-form-item>
277 </el-col>
278
279 <el-col :span="8">
280 <el-form-item label="异议事项:">
281 <el-input v-model="ruleForm.yydj.yysx"></el-input>
282 </el-form-item>
283 </el-col>
284 <el-col :span="8">
285 <el-form-item label="不动产登记证明号:">
286 <el-input
287 v-model="ruleForm.yydj.bdcdjzmh"
288 prop="yydj.bdcdjzmh"
289 :rules="rules.bdcdjzmhrules"
290 >></el-input
291 >
375 </el-form-item> 292 </el-form-item>
376 </el-col> 293 </el-col>
377 </el-row>
378 <el-row>
379 <el-col :span="24"> 294 <el-col :span="24">
380 <el-form-item label="附记:"> 295 <el-form-item label="附记:">
381 <el-input v-model="ruleForm.fdcq2.fj"></el-input> 296 <el-input v-model="ruleForm.yydj.fj"></el-input>
297 </el-form-item>
298 </el-col>
299 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
300 <el-form-item label="注销异议业务号:">
301 <el-input v-model="ruleForm.yydj.zxyyywh"></el-input>
302 </el-form-item>
303 </el-col>
304 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
305 <el-form-item label="注销异议原因:">
306 <el-input v-model="ruleForm.yydj.zxyyyy"></el-input>
307 </el-form-item>
308 </el-col>
309 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
310 <el-form-item label="注销异议登簿人:">
311 <el-input v-model="ruleForm.yydj.zxyydbr"></el-input>
312 </el-form-item>
313 </el-col>
314 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
315 <el-form-item label="注销异议登记时间:">
316 <el-date-picker
317 v-model="ruleForm.yydj.zxyydjsj"
318 class="width100"
319 type="date"
320 placeholder="选择日期"
321 value-format="yyyy-MM-dd HH:mm:ss"
322 format="yyyy-MM-dd"
323 >
324 </el-date-picker>
382 </el-form-item> 325 </el-form-item>
383 </el-col> 326 </el-col>
384 </el-row> 327 </el-row>
385 <div class="slxx_title title-block"> 328 <div class="slxx_title title-block">
386 土地用途
387 <div class="triangle"></div>
388 </div>
389 <tdytTable
390 :tableData="ruleForm.tdytqxList"
391 @upDateTdytxxList="upDateTdytxxList"
392 :ableOperation="ableOperation" />
393 <div class="slxx_title title-block">
394 权利人信息 329 权利人信息
395 <div class="triangle"></div> 330 <div class="triangle"></div>
396 </div> 331 </div>
...@@ -399,7 +334,8 @@ ...@@ -399,7 +334,8 @@
399 <el-form-item label="共有方式:"> 334 <el-form-item label="共有方式:">
400 <el-radio-group 335 <el-radio-group
401 :disabled="!ableOperation" 336 :disabled="!ableOperation"
402 v-model="ruleForm.qlxx.gyfs"> 337 v-model="ruleForm.qlxx.gyfs"
338 >
403 <el-radio label="0">单独所有</el-radio> 339 <el-radio label="0">单独所有</el-radio>
404 <el-radio label="1">共同共有</el-radio> 340 <el-radio label="1">共同共有</el-radio>
405 <el-radio label="2">按份所有</el-radio> 341 <el-radio label="2">按份所有</el-radio>
...@@ -411,7 +347,8 @@ ...@@ -411,7 +347,8 @@
411 <el-form-item label="是否分别持证:"> 347 <el-form-item label="是否分别持证:">
412 <el-radio-group 348 <el-radio-group
413 v-model="ruleForm.qlxx.sqfbcz" 349 v-model="ruleForm.qlxx.sqfbcz"
414 :disabled="!ableOperation"> 350 :disabled="!ableOperation"
351 >
415 <el-radio :label="1"></el-radio> 352 <el-radio :label="1"></el-radio>
416 <el-radio :label="0"></el-radio> 353 <el-radio :label="0"></el-radio>
417 </el-radio-group> 354 </el-radio-group>
...@@ -419,17 +356,20 @@ ...@@ -419,17 +356,20 @@
419 </el-col> 356 </el-col>
420 <el-col 357 <el-col
421 :span="6" 358 :span="6"
422 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs == '1'"> 359 v-show="ruleForm.qlxx.sqfbcz == '0' && ruleForm.qlxx.gyfs == '1'"
360 >
423 <el-form-item label="持证人:"> 361 <el-form-item label="持证人:">
424 <el-select 362 <el-select
425 v-model="ruleForm.czr" 363 v-model="ruleForm.czr"
426 placeholder="持证人" 364 placeholder="持证人"
427 :disabled="!ableOperation"> 365 :disabled="!ableOperation"
366 >
428 <el-option 367 <el-option
429 v-for="item in czrOptions" 368 v-for="item in czrOptions"
430 :key="item.zjh" 369 :key="item.zjh"
431 :label="item.sqrmc" 370 :label="item.sqrmc"
432 :value="item.zjh"> 371 :value="item.zjh"
372 >
433 </el-option> 373 </el-option>
434 </el-select> 374 </el-select>
435 </el-form-item> 375 </el-form-item>
...@@ -438,9 +378,23 @@ ...@@ -438,9 +378,23 @@
438 <qlrCommonTable 378 <qlrCommonTable
439 :tableData="ruleForm.qlrData" 379 :tableData="ruleForm.qlrData"
440 @upDateQlrxxList="upDateQlrxxList" 380 @upDateQlrxxList="upDateQlrxxList"
441 :ableOperation="ableOperation"
442 :key="key" 381 :key="key"
443 :gyfs="ruleForm.qlxx.gyfs" /> 382 :ableOperation="ableOperation"
383 :gyfs="ruleForm.qlxx.gyfs"
384 />
385 <div v-if="ruleForm.ywrData">
386 <div class="slxx_title title-block">
387 义务人信息
388 <div class="triangle"></div>
389 </div>
390 <ywrCommonTable
391 v-if="ruleForm.ywrData"
392 :tableData="ruleForm.ywrData"
393 :key="key"
394 :ableOperation="ableOperation"
395 @upDateQlrxxList="upDateYwrxxList"
396 />
397 </div>
444 </div> 398 </div>
445 <el-row class="btn" v-if="ableOperation"> 399 <el-row class="btn" v-if="ableOperation">
446 <el-form-item> 400 <el-form-item>
...@@ -451,167 +405,170 @@ ...@@ -451,167 +405,170 @@
451 </div> 405 </div>
452 </template> 406 </template>
453 <script> 407 <script>
454 import { mapGetters } from "vuex"; 408 import { mapGetters } from "vuex";
455 import ywmix from "@/views/ywbl/mixin/index"; 409 import ywmix from "@/views/ywbl/mixin/index";
456 import { init, getSsQlxx, getQlxxByQlxxBsm, save } from "@/api/djbRepair.js"; 410 import {
457 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 411 init,
458 import selectTable from "@/components/selectTable/index.vue"; 412 getSsQlxx,
459 import tdytTable from "@/views/workflow/components/tdytTable"; 413 getZtQlxx,
460 export default { 414 getQlxxByQlxxBsm,
461 mixins: [ywmix], 415 save,
462 components: { qlrCommonTable, tdytTable, selectTable }, 416 } from "@/api/djbRepair.js";
463 computed: { 417 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
464 ...mapGetters(["dictData", "flag"]), 418 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable";
465 // 根据流程判断表单是否为只读 419 import tdytTable from "@/views/workflow/components/tdytTable";
466 editDisabled () { 420 import selectTable from "@/components/selectTable/index.vue";
467 if (!this.ableOperation) { 421 export default {
468 //只读状态 422 mixins: [ywmix],
469 return true; 423 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable },
470 } 424 computed: {
471 return false; 425 ...mapGetters(["dictData", "flag"]),
472 }, 426 // 根据流程判断表单是否为只读
427 editDisabled() {
428 if (!this.ableOperation) {
429 //只读状态
430 return true;
431 }
432 return false;
473 }, 433 },
474 data () { 434 },
475 return { 435 data() {
476 mjdw: "1", 436 return {
477 ssqlxxshow: true, 437 ssqlxxshow: true,
478 props: { 438 props: {
479 label: "bdcqzh", 439 label: "bdcqzh",
480 value: "bdcdyid", 440 value: "bdcdyid",
441 },
442 //表单是否可操作
443 propsParam: this.$attrs,
444 key: 0,
445 isShow: false,
446 disabled: true,
447 czrOptions: [],
448 ssQlxxList: [],
449 ztQlxxList: [],
450 ruleForm: {},
451 // 登记类型
452 djlxlist: [
453 {
454 dcode: "100",
455 dname: "首次登记",
481 }, 456 },
482 // 键名转换,方法默认是label和children进行树状渲染 457 {
483 normalizer (node) { 458 dcode: "200",
484 //方法 459 dname: "转移登记",
485 if (node.children == null || node.children == "null") { 460 },
486 delete node.children; 461 {
487 } 462 dcode: "300",
488 return { 463 dname: "变更登记",
489 id: node.dcode, 464 },
490 label: node.dname, 465 {
491 }; 466 dcode: "500",
467 dname: "更正登记",
492 }, 468 },
493 469
494 //表单是否可操作 470 {
495 propsParam: this.$attrs, 471 dcode: "901",
496 // 登记类型 472 dname: "补证",
497 djlxlist: [ 473 },
498 { 474 {
499 dcode: "100", 475 dcode: "902",
500 dname: "首次登记", 476 dname: "换证",
501 }, 477 },
502 { 478 ],
503 dcode: "200", 479 // 权属状态
504 dname: "转移登记", 480 qsztlist: [
505 }, 481 {
506 { 482 dcode: "1",
507 dcode: "300", 483 dname: "现势",
508 dname: "变更登记",
509 },
510 {
511 dcode: "500",
512 dname: "更正登记",
513 },
514
515 {
516 dcode: "901",
517 dname: "补证",
518 },
519 {
520 dcode: "902",
521 dname: "换证",
522 },
523 ],
524 // 权属状态
525 qsztlist: [
526 {
527 dcode: "1",
528 dname: "现势",
529 },
530 {
531 dcode: "2",
532 dname: "历史",
533 },
534 ],
535 key: 0,
536 tdxz: null,
537 isShow: false,
538 disabled: true,
539 czrOptions: [],
540 ssQlxxList: [],
541 ruleForm: {
542 fdcq2: {
543 ftjzmj: "",
544 },
545 }, 484 },
546 ableOperation: false, 485 {
547 //传递参数\ 486 dcode: "2",
548 rules: { 487 dname: "历史",
549 ssQlxxrules: [
550 { required: true, message: "上手权利信息", trigger: "blur" },
551 ],
552 bdcqzhrules: [
553 { required: true, message: "不动产权证号:", trigger: "blur" },
554 ],
555 // qxdmrules: [{ required: true, message: "区县代码", trigger: "blur" }],
556 djjgrules: [{ required: true, message: "登记机构", trigger: "blur" }],
557 dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }],
558 djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }],
559 fwjgrules: [{ required: true, message: "房屋结构", trigger: "change" }],
560 djlxrules: [{ required: true, message: "登记类型", trigger: "change" }],
561 ywhrules: [{ required: true, message: "业务号", trigger: "blur" }],
562 }, 488 },
563 }; 489 ],
490 //传递参数\
491 rules: {
492 ssQlxxrules: [
493 { required: true, message: "上手权利信息", trigger: "blur" },
494 ],
495 ztQlxxrules: [
496 { required: true, message: "抵押不动产信息", trigger: "blur" },
497 ],
498 bdcqzhrules: [
499 { required: true, message: "不动产证号 ", trigger: "blur" },
500 ],
501 // qxdmrules: [{ required: true, message: "区县代码", trigger: "blur" }],
502 djjgrules: [{ required: true, message: "登记机构", trigger: "change" }],
503 dbrrules: [{ required: true, message: "登簿人", trigger: "blur" }],
504 djsjrules: [{ required: true, message: "登记时间", trigger: "blur" }],
505 djlxrules: [{ required: true, message: "登记类型", trigger: "change" }],
506 ywhrules: [{ required: true, message: "业务号", trigger: "blur" }],
507 bdcdjzmhrules: [
508 { required: true, message: "不动产登记证明号: ", trigger: "blur" },
509 ],
510 },
511 ableOperation: false,
512 };
513 },
514 created() {
515 this.loadData();
516 },
517 mounted() {
518 this.ableOperation = this.$parent.ableOperation;
519 },
520 methods: {
521 /**
522 * @description: ztQlxxchange
523 * @param {*} val
524 * @author: renchao
525 */
526 ztQlxxchange(val) {
527 this.ruleForm.ztQlxx = val;
564 }, 528 },
565 created () { }, 529 /**
566 mounted () { 530 * @description: ssQlxxchange
567 this.loadData(); 531 * @param {*} val
568 this.ableOperation = this.$parent.ableOperation; 532 * @author: renchao
533 */
534 ssQlxxchange(val) {
535 this.ruleForm.ssQlxx = val;
536 this.ruleForm.qlxx.ssywh = val.ywh;
537 this.ssQlxxchangediolog(val);
569 }, 538 },
570 methods: { 539 // 弹框事件
571 /** 540 ssQlxxchangediolog(val) {
572 * @description: ssQlxxchange 541 this.$confirm("是否将上手权利信息同步到表单", "提示", {
573 * @param {*} val 542 iconClass: "el-icon-question", //自定义图标样式
574 * @author: renchao 543 confirmButtonText: "确认", //确认按钮文字更换
575 */ 544 cancelButtonText: "取消", //取消按钮文字更换
576 ssQlxxchange (val) { 545 showClose: true, //是否显示右上角关闭按钮
577 this.ruleForm.ssQlxx = val; 546 type: "warning",
578 this.ruleForm.qlxx.ssywh = val.ywh; 547 })
579 this.ssQlxxchangediolog(val); 548 .then(() => {
580 },
581 // 弹框事件
582 ssQlxxchangediolog (val) {
583 this.$confirm("是否将上手权利信息同步到表单", "提示", {
584 iconClass: "el-icon-question", //自定义图标样式
585 confirmButtonText: "确认", //确认按钮文字更换
586 cancelButtonText: "取消", //取消按钮文字更换
587 showClose: true, //是否显示右上角关闭按钮
588 type: "warning",
589
590
591 }).then(() => {
592 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => { 549 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
593 if (res.code == 200) { 550 if (res.code == 200) {
594 this.nowlist = res.result; 551 this.nowlist = res.result;
595 for (var key in this.ruleForm.fdcq2) { 552 for (var key in this.ruleForm.yydj) {
596 if ( 553 if (
597 this.ruleForm.fdcq2[key] == "" || 554 this.ruleForm.yydj[key] == "" ||
598 this.ruleForm.fdcq2[key] == null 555 this.ruleForm.yydj[key] == null
599 ) { 556 ) {
600 this.ruleForm.fdcq2[key] = this.nowlist.fdcq2[key]; 557 this.ruleForm.yydj[key] = this.nowlist.yydj[key];
601 } 558 }
602 } 559 }
603 for (var key in this.ruleForm.qlxx) { 560 for (var key in this.ruleForm.qlxx) {
604 if ( 561 if (
605 this.ruleForm.qlxx[key] == "" || 562 this.ruleForm.qlxx[key] == "" ||
606 this.ruleForm.qlxx[key] == null && 563 (this.ruleForm.qlxx[key] == null &&
607 key != "ywh" && 564 key != "ywh" &&
608 key != "dbr" && 565 key != "dbr" &&
609 key != "djsj" && 566 key != "djsj" &&
610 key != "ssywh" && 567 key != "ssywh" &&
611 key != "ssywh" && 568 key != "ssywh" &&
612 key != "bdcqzh") { 569 key != "bdcqzh")
570 ) {
613 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key]; 571 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
614
615 } 572 }
616 } 573 }
617 if (!this.ruleForm.tdytqxList.length) { 574 if (!this.ruleForm.tdytqxList.length) {
...@@ -629,183 +586,172 @@ ...@@ -629,183 +586,172 @@
629 }); 586 });
630 } 587 }
631 }); 588 });
632 }).catch(() => { 589 })
590 .catch(() => {
633 this.$message({ 591 this.$message({
634 type: "info", 592 type: "info",
635 message: "已取消同步", 593 message: "已取消同步",
636 }); 594 });
637 }); 595 });
638 }, 596 },
639 /** 597 /**
640 * @description: djlxchange 598 * @description: djlxchange
641 * @param {*} val 599 * @param {*} val
642 * @author: renchao 600 * @author: renchao
643 */ 601 */
644 djlxchange (val) { 602 djlxchange(val) {
645 if (val == null || val == 100) { 603 if (val == null || val == 100) {
646 this.ssqlxxshow = false; 604 this.ssqlxxshow = false;
647 } else { 605 } else {
648 this.ssqlxxshow = true; 606 this.ssqlxxshow = true;
649 } 607 }
650 }, 608 },
651 /** 609 /**
652 * @description: loadData 610 * @description: loadData
653 * @author: renchao 611 * @author: renchao
654 */ 612 */
655 loadData () { 613 loadData() {
656 this.$startLoading(); 614 this.$startLoading();
657 this.propsParam.isEdit = this.$parent.isEdit; 615 this.propsParam.isEdit = this.$parent.isEdit;
658 init(this.propsParam).then((res) => { 616 init(this.propsParam).then((res) => {
659 if (res.code == 200) { 617 if (res.code == 200) {
660 this.ruleForm = res.result; 618 this.ruleForm = res.result;
661 let djlx = this.ruleForm.qlxx.djlx; 619 let djlx = this.ruleForm.qlxx.djlx;
662 if (djlx == null || djlx == 100) { 620 if (djlx == null || djlx == 100) {
663 this.ssqlxxshow = false; 621 this.ssqlxxshow = false;
622 }
623 this.$endLoading();
624 this.isShow = true;
625 //获取主体信息
626 getSsQlxx({
627 bdcdyid: this.propsParam.bdcdyid,
628 qllx: this.propsParam.qllx,
629 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
630 }).then((res) => {
631 if (res.code == 200) {
632 this.ssQlxxList = res.result;
664 } 633 }
665 this.ruleForm.fdcq2.jedw = "1"; 634 });
666 this.$endLoading(); 635 //获取上手信息
667 if (this.ruleForm.tdytqxList.length > 0) { 636 getZtQlxx({
668 this.tdxz = this.ruleForm.tdytqxList[0].qlxzbm; 637 bdcdyid: this.propsParam.bdcdyid,
669 } else { 638 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
670 this.tdxz = null; 639 }).then((res) => {
640 if (res.code == 200) {
641 this.ztQlxxList = res.result;
671 } 642 }
672 this.isShow = true; 643 });
673 //获取主体信息 644 }
674 getSsQlxx({ 645 });
675 bdcdyid: this.propsParam.bdcdyid, 646 },
676 qllx: this.propsParam.qllx, 647 // 更新土地用途信息
677 bsmQlxx: this.ruleForm.qlxx.bsmQlxx, 648 /**
678 }).then((res) => { 649 * @description: 更新土地用途信息
679 if (res.code == 200) { 650 * @param {*} val
680 this.ssQlxxList = res.result; 651 * @author: renchao
681 } 652 */
653 upDateTdytxxList(val) {
654 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
655 this.key++;
656 },
657 // 更新权利人信息
658 /**
659 * @description: 更新权利人信息
660 * @param {*} val
661 * @author: renchao
662 */
663 upDateQlrxxList(val) {
664 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
665 this.czrOptions = this.ruleForm.qlrData;
666 this.key++;
667 },
668 // 更新义务人信息
669 /**
670 * @description: 更新义务人信息
671 * @param {*} val
672 * @author: renchao
673 */
674 upDateYwrxxList(val) {
675 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
676 this.key++;
677 },
678 /**
679 * @description: onSubmit
680 * @author: renchao
681 */
682 onSubmit() {
683 this.$refs.ruleForm.validate((valid) => {
684 if (valid) {
685 if (this.ruleForm.qlrData.length == 0) {
686 this.$message({
687 showClose: true,
688 message: "请确认权利人信息",
689 type: "error",
682 }); 690 });
691 return false;
683 } 692 }
684 }); 693 if (this.ruleForm.ywrData.length == 0) {
685 }, 694 this.$message({
686 // 更新土地用途信息 695 showClose: true,
687 /** 696 message: "请确认义务人信息",
688 * @description: 更新土地用途信息 697 type: "error",
689 * @param {*} val 698 });
690 * @author: renchao 699 return false;
691 */ 700 }
692 upDateTdytxxList (val) { 701 if (this.ruleForm.qlxx.gyfs == "0") {
693 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); 702 if (this.ruleForm.qlrData.length > 1) {
694 this.key++;
695 },
696 // 更新权利人信息
697 /**
698 * @description: 更新权利人信息
699 * @param {*} val
700 * @author: renchao
701 */
702 upDateQlrxxList (val) {
703 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
704 this.czrOptions = this.ruleForm.qlrData;
705 this.key++;
706 },
707 // 更新义务人信息
708 /**
709 * @description: 更新义务人信息
710 * @param {*} val
711 * @author: renchao
712 */
713 upDateYwrxxList (val) {
714 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
715 this.key++;
716 },
717 /**
718 * @description: onSubmit
719 * @author: renchao
720 */
721 onSubmit () {
722 this.$refs.ruleForm.validate((valid) => {
723 if (valid) {
724 if (this.ruleForm.qlrData.length == 0) {
725 this.$message({ 703 this.$message({
726 showClose: true, 704 showClose: true,
727 message: "请确认权利人信息", 705 message: "共有方式:单独所有,权利人只能是一个人",
728 type: "error", 706 type: "error",
729 }); 707 });
730 return false; 708 return false;
731 } 709 }
732 if (this.ruleForm.ywrData.length == 0) { 710 this.ruleForm.qlrData[0].sfczr = "1";
733 this.$message({ 711 }
734 showClose: true, 712 if (this.ruleForm.qlxx.gyfs == "1") {
735 message: "请确认义务人信息", 713 //是否分别持证
736 type: "error", 714 if (this.ruleForm.qlxx.sqfbcz == "1") {
715 //是
716 this.ruleForm.qlrData.forEach((item, index) => {
717 item.sfczr = "1";
737 }); 718 });
738 return false;
739 }
740 if (this.ruleForm.sldy.gyfs == "0") {
741 if (this.ruleForm.qlrData.length > 1) {
742 this.$message({
743 showClose: true,
744 message: "共有方式:单独所有,权利人只能是一个人",
745 type: "error",
746 });
747 return false;
748 }
749 this.ruleForm.qlrData[0].sfczr = "1";
750 } else { 719 } else {
751 if (this.ruleForm.qlrList.length <= 1) { 720 this.ruleForm.qlrData.forEach((item, index) => {
752 this.$message({ 721 if (item.zjh == this.ruleForm.czr) {
753 showClose: true,
754 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
755 type: "error",
756 });
757 return false;
758 }
759 //是否分别持证
760 if (this.ruleForm.sldy.sqfbcz == "1") {
761 //是
762 this.ruleForm.qlrList.forEach((item, index) => {
763 item.sfczr = "1"; 722 item.sfczr = "1";
764 }); 723 } else {
765 } else { 724 item.sfczr = "0";
766 if (!that.ruleForm.czr) {
767 that.$message({
768 showClose: true,
769 message: "请选择持证人",
770 type: "error",
771 });
772 return false;
773 } 725 }
774 this.ruleForm.qlrList.forEach((item, index) => { 726 });
775 if (item.zjh == this.ruleForm.czr) {
776 item.sfczr = "1";
777 } else {
778 item.sfczr = "0";
779 }
780 });
781 }
782 } 727 }
783 save(this.ruleForm).then((res) => {
784 if (res.code === 200) {
785 this.$message({
786 showClose: true,
787 message: "保存成功!",
788 type: "success",
789 });
790 this.$parent.changeywh();
791 this.$store.dispatch("user/refreshPage", true);
792 } else {
793 this.$message({
794 showClose: true,
795 message: res.message,
796 type: "error",
797 });
798 }
799 });
800 } else {
801 return false;
802 } 728 }
803 }); 729 save(this.ruleForm).then((res) => {
804 }, 730 if (res.code === 200) {
731 this.$message({
732 showClose: true,
733 message: "保存成功!",
734 type: "success",
735 });
736 this.$parent.changeywh();
737 this.$store.dispatch("user/refreshPage", true);
738 } else {
739 this.$message({
740 showClose: true,
741 message: res.message,
742 type: "error",
743 });
744 }
745 });
746 } else {
747 return false;
748 }
749 });
805 }, 750 },
806 }; 751 },
752 };
807 </script> 753 </script>
808 <style scoped lang="scss"> 754 <style scoped lang="scss">
809 @import "~@/styles/public.scss"; 755 @import "~@/styles/public.scss";
810 @import "~@/styles/slxx/slxx.scss"; 756 @import "~@/styles/slxx/slxx.scss";
811 </style> 757 </style>
......