f5d75d31 by xiaomiao

--no commit message

1 parent aa4bc992
1 export function deleteCollectBiz (bsmSqyw) { 1
2 return request({ 2 import {
3 url: SERVER.SERVERAPI + '/rest/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw, 3 init,
4 method: 'post' 4 getSsQlxx,
5 }) 5 getZtQlxx,
6 } 6 getQlxxByQlxxBsm,
7 save,
8 } from "@/api/djbRepair.js";
9 import { log } from "bpmn-js-token-simulation";
10 import { mapGetters } from "vuex";
11 export default {
12 computed: {
13 ...mapGetters(["dictData", "flag"]),
14 // 根据流程判断表单是否为只读
15 editDisabled () {
16 if (!this.ableOperation) {
17 //只读状态
18 return true;
19 }
20 return false;
21 },
22 },
23 data() {
24 return {
25 ssqlxxshow: true,
26 //表单是否可操作
27 propsParam: this.$attrs,
28 key: 0,
29 isShow: false,
30 disabled: true,
31 czrOptions: [],
32 ssQlxxList: [],
33 ztQlxxList: [],
34 ruleForm: {},
35 props: {
36 label: "bdcqzh",
37 value: "bdcdyid",
38 },
39 djlxlist: [
40 {
41 dcode: "100",
42 dname: "首次登记",
43 },
44 {
45 dcode: "200",
46 dname: "转移登记",
47 },
48 {
49 dcode: "300",
50 dname: "变更登记",
51 },
52 {
53 dcode: "500",
54 dname: "更正登记",
55 },
56
57 {
58 dcode: "901",
59 dname: "补证",
60 },
61 {
62 dcode: "902",
63 dname: "换证",
64 },
65 ],
66 // 权属状态
67 qsztlist: [
68 {
69 dcode: "1",
70 dname: "现势",
71 },
72 {
73 dcode: "2",
74 dname: "历史",
75 },
76 ],
77 ableOperation: false,
78
79 };
80 },
81 created() {
82 this.loadData();
83 },
84 mounted() {
85 this.ableOperation = this.$parent.ableOperation;
86 },
87 methods: {
88 /**
89 * @description: ztQlxxchange
90 * @param {*} val
91 * @author: renchao
92 */
93 ztQlxxchange(val) {
94 this.ruleForm.ztQlxx = val;
95 },
96 /**
97 * @description: ssQlxxchange
98 * @param {*} val
99 * @author: renchao
100 */
101 ssQlxxchange(val) {
102 this.ruleForm.ssQlxx = val;
103 this.ruleForm.qlxx.ssywh = val.ywh;
104 this.ssQlxxchangediolog(val);
105 },
106 // 弹框事件
107 ssQlxxchangediolog(val) {
108 this.$confirm("是否将上手权利信息同步到表单", "提示", {
109 iconClass: "el-icon-question", //自定义图标样式
110 confirmButtonText: "确认", //确认按钮文字更换
111 cancelButtonText: "取消", //取消按钮文字更换
112 showClose: true, //是否显示右上角关闭按钮
113 type: "warning",
114 })
115 .then(() => {
116 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
117 if (res.code == 200) {
118 this.nowlist = res.result;
119 for (var key in this.ruleForm.yydj) {
120 if (
121 this.ruleForm.yydj[key] == "" ||
122 this.ruleForm.yydj[key] == null
123 ) {
124 this.ruleForm.yydj[key] = this.nowlist.yydj[key];
125 }
126 }
127 for (var key in this.ruleForm.qlxx) {
128 if (
129 this.ruleForm.qlxx[key] == "" ||
130 (this.ruleForm.qlxx[key] == null &&
131 key != "ywh" &&
132 key != "dbr" &&
133 key != "djsj" &&
134 key != "ssywh" &&
135 key != "ssywh" &&
136 key != "bdcqzh")
137 ) {
138 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
139 }
140 }
141 if (!this.ruleForm.tdytqxList.length) {
142 this.ruleForm.tdytqxList = this.nowlist.tdytqxList;
143 }
144 if (!this.ruleForm.qlrData.length) {
145 this.ruleForm.qlrData = this.nowlist.qlrData;
146 }
147 if (!this.ruleForm.ywrData.length) {
148 this.ruleForm.ywrData = this.nowlist.ywrData;
149 }
150 this.$message({
151 type: "success",
152 message: "同步成功!",
153 });
154 }
155 });
156 })
157 .catch(() => {
158 this.$message({
159 type: "info",
160 message: "已取消同步",
161 });
162 });
163 },
164 /**
165 * @description: djlxchange
166 * @param {*} val
167 * @author: renchao
168 */
169 djlxchange(val) {
170 if (val == null || val == 100) {
171 this.ssqlxxshow = false;
172 } else {
173 this.ssqlxxshow = true;
174 }
175 },
176 /**
177 * @description: loadData
178 * @author: renchao
179 */
180 loadData() {
181 this.$startLoading();
182 this.propsParam.isEdit = this.$parent.isEdit;
183 init(this.propsParam).then((res) => {
184 if (res.code == 200) {
185 this.ruleForm = res.result;
186 if(this.ruleForm.diyaq){
187 this.ruleForm.diyaq.dyfs="1"
188 }
189 if(this.ruleForm.ygdj){
190 this.ruleForm.ygdj.jedw="1"
191 this.ruleForm.ygdj.mjdw="1"
192 }
193 if(this.ruleForm.diyaq){
194 this.ruleForm.diyaq.mjdw="1"
195 }
196 let djlx = this.ruleForm.qlxx.djlx;
197 if (djlx == null || djlx == 100) {
198 this.ssqlxxshow = false;
199 }
200 this.$endLoading();
201 this.isShow = true;
202 //获取主体信息
203 getSsQlxx({
204 bdcdyid: this.propsParam.bdcdyid,
205 qllx: this.propsParam.qllx,
206 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
207 }).then((res) => {
208 if (res.code == 200) {
209 this.ssQlxxList = res.result;
210 }
211 });
212 //获取上手信息
213 getZtQlxx({
214 bdcdyid: this.propsParam.bdcdyid,
215 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
216 }).then((res) => {
217 if (res.code == 200) {
218 this.ztQlxxList = res.result;
219 }
220 });
221 }
222 });
223 },
224 // 更新土地用途信息
225 /**
226 * @description: 更新土地用途信息
227 * @param {*} val
228 * @author: renchao
229 */
230 upDateTdytxxList(val) {
231 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
232 this.key++;
233 },
234 // 更新权利人信息
235 /**
236 * @description: 更新权利人信息
237 * @param {*} val
238 * @author: renchao
239 */
240 upDateQlrxxList(val) {
241 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
242 this.czrOptions = this.ruleForm.qlrData;
243 this.key++;
244 },
245 // 更新义务人信息
246 /**
247 * @description: 更新义务人信息
248 * @param {*} val
249 * @author: renchao
250 */
251 upDateYwrxxList(val) {
252 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
253 this.key++;
254 },
255 /**
256 * @description: onSubmit
257 * @author: renchao
258 */
259 onSubmit() {
260 this.$refs.ruleForm.validate((valid) => {
261 if (valid) {
262 if (this.ruleForm.qlrData.length == 0) {
263 this.$message({
264 showClose: true,
265 message: "请确认权利人信息",
266 type: "error",
267 });
268 return false;
269 }
270 if (this.ruleForm.ywrData.length == 0) {
271 this.$message({
272 showClose: true,
273 message: "请确认义务人信息",
274 type: "error",
275 });
276 return false;
277 }
278 if (this.ruleForm.qlxx.gyfs == "0") {
279 if (this.ruleForm.qlrData.length > 1) {
280 this.$message({
281 showClose: true,
282 message: "共有方式:单独所有,权利人只能是一个人",
283 type: "error",
284 });
285 return false;
286 }
287 this.ruleForm.qlrData[0].sfczr = "1";
288 } else {
289 if (this.ruleForm.qlrData.length <= 1) {
290 this.$message({
291 showClose: true,
292 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
293 type: "error",
294 });
295 return false;
296 }
297 }
298
299 save(this.ruleForm).then((res) => {
300 if (res.code === 200) {
301 this.$message({
302 showClose: true,
303 message: "保存成功!",
304 type: "success",
305 });
306 this.$parent.changeywh();
307 this.$store.dispatch("user/refreshPage", true);
308 } else {
309 this.$message({
310 showClose: true,
311 message: res.message,
312 type: "error",
313 });
314 }
315 });
316 } else {
317 return false;
318 }
319 });
320 },
321 },
322 };
......
...@@ -441,9 +441,7 @@ ...@@ -441,9 +441,7 @@
441 </div> 441 </div>
442 </template> 442 </template>
443 <script> 443 <script>
444 import { mapGetters } from "vuex"; 444 import ywmix from "./dataprocessing";
445 import ywmix from "@/views/ywbl/mixin/index"
446 import { init, getSsQlxx, getZtQlxx, getQlxxByQlxxBsm,save } from "@/api/djbRepair.js";
447 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 445 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
448 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; 446 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable";
449 import tdytTable from "@/views/workflow/components/tdytTable"; 447 import tdytTable from "@/views/workflow/components/tdytTable";
...@@ -451,73 +449,8 @@ ...@@ -451,73 +449,8 @@
451 export default { 449 export default {
452 mixins: [ywmix], 450 mixins: [ywmix],
453 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable }, 451 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable },
454 computed: {
455 ...mapGetters(["dictData", "flag"]),
456 // 根据流程判断表单是否为只读
457 editDisabled () {
458 if (!this.ableOperation) {
459 //只读状态
460 return true;
461 }
462 return false;
463 },
464 },
465 data () { 452 data () {
466 return { 453 return {
467 ssqlxxshow: true,
468 props: {
469 label: "bdcqzh",
470 value: "bdcdyid",
471 },
472 //表单是否可操作
473 propsParam: this.$attrs,
474 key: 0,
475 isShow: false,
476 disabled: true,
477 czrOptions: [],
478 ssQlxxList: [],
479 ztQlxxList: [],
480 ruleForm: {},
481 // 登记类型
482 djlxlist: [
483 {
484 dcode: "100",
485 dname: "首次登记",
486 },
487 {
488 dcode: "200",
489 dname: "转移登记",
490 },
491 {
492 dcode: "300",
493 dname: "变更登记",
494 },
495 {
496 dcode: "500",
497 dname: "更正登记",
498 },
499
500 {
501 dcode: "901",
502 dname: "补证",
503 },
504 {
505 dcode: "902",
506 dname: "换证",
507 },
508 ],
509 // 权属状态
510 qsztlist: [
511 {
512 dcode: "1",
513 dname: "现势",
514 },
515 {
516 dcode: "2",
517 dname: "历史",
518 },
519 ],
520 ableOperation: false,
521 //传递参数\ 454 //传递参数\
522 rules: { 455 rules: {
523 ssQlxxrules: [ 456 ssQlxxrules: [
...@@ -537,235 +470,7 @@ ...@@ -537,235 +470,7 @@
537 }, 470 },
538 }; 471 };
539 }, 472 },
540 created () { }, 473 }
541 mounted () {
542 this.loadData();
543 this.ableOperation = this.$parent.ableOperation;
544 },
545 methods: {
546 /**
547 * @description: ztQlxxchange
548 * @param {*} val
549 * @author: renchao
550 */
551 ztQlxxchange (val) {
552 this.ruleForm.ztQlxx = val;
553 },
554 /**
555 * @description: ssQlxxchange
556 * @param {*} val
557 * @author: renchao
558 */
559 ssQlxxchange (val) {
560 this.ruleForm.ssQlxx = val;
561 this.ruleForm.qlxx.ssywh = val.ywh;
562 this.ssQlxxchangediolog (val)
563 },
564 // 弹框事件
565 ssQlxxchangediolog (val) {
566 this.$confirm("是否将上手权利信息同步到表单", "提示", {
567 iconClass: "el-icon-question", //自定义图标样式
568 confirmButtonText: "确认", //确认按钮文字更换
569 cancelButtonText: "取消", //取消按钮文字更换
570 showClose: true, //是否显示右上角关闭按钮
571 type: "warning",
572 }).then(() => {
573 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
574 if (res.code == 200) {
575 this.nowlist = res.result;
576 for (var key in this.ruleForm.dyiq) {
577 if (
578 this.ruleForm.dyiq[key] == "" ||
579 this.ruleForm.dyiq[key] == null
580 ) {
581 this.ruleForm.dyiq[key] = this.nowlist.dyiq[key];
582 }
583 }
584 for (var key in this.ruleForm.qlxx) {
585 if (
586 this.ruleForm.qlxx[key] == ""||
587 this.ruleForm.qlxx[key] == null &&
588 key != "ywh" &&
589 key != "dbr" &&
590 key != "djsj" &&
591 key != "ssywh" &&
592 key != "ssywh" &&
593 key != "bdcqzh") {
594 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
595
596 }
597 }
598 if (!this.ruleForm.tdytqxList.length) {
599 this.ruleForm.tdytqxList = this.nowlist.tdytqxList;
600 }
601 if (!this.ruleForm.qlrData.length) {
602 this.ruleForm.qlrData = this.nowlist.qlrData;
603 }
604 if (!this.ruleForm.ywrData.length) {
605 this.ruleForm.ywrData = this.nowlist.ywrData;
606 }
607 this.$message({
608 type: "success",
609 message: "同步成功!",
610 });
611 }
612 });
613 }).catch(() => {
614 this.$message({
615 type: "info",
616 message: "已取消同步",
617 });
618 });
619 },
620 /**
621 * @description: djlxchange
622 * @param {*} val
623 * @author: renchao
624 */
625 djlxchange (val) {
626 if (val == null || val == 100) {
627 this.ssqlxxshow = false;
628 } else {
629 this.ssqlxxshow = true;
630 }
631 },
632 /**
633 * @description: loadData
634 * @author: renchao
635 */
636 loadData () {
637 this.$startLoading();
638 this.propsParam.isEdit = this.$parent.isEdit;
639 init(this.propsParam).then((res) => {
640 if (res.code == 200) {
641 this.ruleForm = res.result;
642 let djlx = this.ruleForm.qlxx.djlx;
643 if (djlx == null || djlx == 100) {
644 this.ssqlxxshow = false;
645 }
646 this.$endLoading();
647 this.isShow = true;
648
649 //获取主体信息
650 getSsQlxx({
651 bdcdyid: this.propsParam.bdcdyid,
652 qllx: this.propsParam.qllx,
653 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
654 }).then((res) => {
655 if (res.code == 200) {
656 this.ssQlxxList = res.result;
657 }
658 });
659 //获取上手信息
660 getZtQlxx({
661 bdcdyid: this.propsParam.bdcdyid,
662 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
663 }).then((res) => {
664 if (res.code == 200) {
665 this.ztQlxxList = res.result;
666 }
667 });
668 }
669 });
670 },
671 // 更新土地用途信息
672 /**
673 * @description: 更新土地用途信息
674 * @param {*} val
675 * @author: renchao
676 */
677 upDateTdytxxList (val) {
678 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
679 this.key++;
680 },
681 // 更新权利人信息
682 /**
683 * @description: 更新权利人信息
684 * @param {*} val
685 * @author: renchao
686 */
687 upDateQlrxxList (val) {
688 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
689 this.czrOptions = this.ruleForm.qlrData;
690 this.key++;
691 },
692 // 更新义务人信息
693 /**
694 * @description: 更新义务人信息
695 * @param {*} val
696 * @author: renchao
697 */
698 upDateYwrxxList (val) {
699 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
700 this.key++;
701 },
702 /**
703 * @description: onSubmit
704 * @author: renchao
705 */
706 onSubmit () {
707 this.$refs.ruleForm.validate((valid) => {
708 if (valid) {
709 if (this.ruleForm.qlrData.length == 0) {
710 this.$message({
711 showClose: true,
712 message: "请确认权利人信息",
713 type: "error",
714 });
715 return false;
716 }
717 if (this.ruleForm.ywrData.length == 0) {
718 this.$message({
719 showClose: true,
720 message: "请确认义务人信息",
721 type: "error",
722 });
723 return false;
724 }
725 if (this.ruleForm.qlxx.gyfs == "0") {
726 if (this.ruleForm.qlrData.length > 1) {
727 this.$message({
728 showClose: true,
729 message: "共有方式:单独所有,权利人只能是一个人",
730 type: "error",
731 });
732 return false;
733 }
734 } else {
735 if (this.ruleForm.qlrList.length <= 1) {
736 this.$message({
737 showClose: true,
738 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
739 type: "error",
740 });
741 return false;
742 }
743
744 }
745 save(this.ruleForm).then((res) => {
746 if (res.code === 200) {
747 this.$message({
748 showClose: true,
749 message: "保存成功!",
750 type: "success",
751 });
752 this.$parent.changeywh()
753 this.$store.dispatch("user/refreshPage", true);
754 } else {
755 this.$message({
756 showClose: true,
757 message: res.message,
758 type: "error",
759 });
760 }
761 });
762 } else {
763 return false;
764 }
765 });
766 },
767 },
768 };
769 </script> 474 </script>
770 <style scoped lang="scss"> 475 <style scoped lang="scss">
771 @import "~@/styles/public.scss"; 476 @import "~@/styles/public.scss";
......
...@@ -424,8 +424,7 @@ ...@@ -424,8 +424,7 @@
424 </div> 424 </div>
425 </template> 425 </template>
426 <script> 426 <script>
427 import { mapGetters } from "vuex"; 427 import ywmix from "./dataprocessing";
428 import ywmix from "@/views/ywbl/mixin/index";
429 import { init, getSsQlxx, getQlxxByQlxxBsm, save } from "@/api/djbRepair.js"; 428 import { init, getSsQlxx, getQlxxByQlxxBsm, save } from "@/api/djbRepair.js";
430 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 429 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
431 import selectTable from "@/components/selectTable/index.vue"; 430 import selectTable from "@/components/selectTable/index.vue";
...@@ -433,25 +432,9 @@ ...@@ -433,25 +432,9 @@
433 export default { 432 export default {
434 mixins: [ywmix], 433 mixins: [ywmix],
435 components: { qlrCommonTable, tdytTable, selectTable }, 434 components: { qlrCommonTable, tdytTable, selectTable },
436 computed: {
437 ...mapGetters(["dictData", "flag"]),
438 // 根据流程判断表单是否为只读
439 editDisabled () {
440 if (!this.ableOperation) {
441 //只读状态
442 return true;
443 }
444 return false;
445 },
446 },
447 data () { 435 data () {
448 return { 436 return {
449 mjdw: "1", 437 mjdw: "1",
450 ssqlxxshow: true,
451 props: {
452 label: "bdcqzh",
453 value: "bdcdyid",
454 },
455 // 键名转换,方法默认是label和children进行树状渲染 438 // 键名转换,方法默认是label和children进行树状渲染
456 normalizer (node) { 439 normalizer (node) {
457 //方法 440 //方法
...@@ -463,59 +446,13 @@ ...@@ -463,59 +446,13 @@
463 label: node.dname, 446 label: node.dname,
464 }; 447 };
465 }, 448 },
466
467 //表单是否可操作
468 propsParam: this.$attrs,
469 // 登记类型
470 djlxlist: [
471 {
472 dcode: "100",
473 dname: "首次登记",
474 },
475 {
476 dcode: "200",
477 dname: "转移登记",
478 },
479 {
480 dcode: "300",
481 dname: "变更登记",
482 },
483 {
484 dcode: "500",
485 dname: "更正登记",
486 },
487
488 {
489 dcode: "901",
490 dname: "补证",
491 },
492 {
493 dcode: "902",
494 dname: "换证",
495 },
496 ],
497 // 权属状态
498 qsztlist: [
499 {
500 dcode: "1",
501 dname: "现势",
502 },
503 {
504 dcode: "2",
505 dname: "历史",
506 },
507 ],
508 key: 0, 449 key: 0,
509 tdxz: null, 450 tdxz: null,
510 isShow: false, 451 isShow: false,
511 disabled: true, 452 disabled: true,
512 czrOptions: [], 453 czrOptions: [],
513 ssQlxxList: [], 454 ssQlxxList: [],
514 ruleForm: { 455 ruleForm: {},
515 fdcq2: {
516 ftjzmj: "",
517 },
518 },
519 ableOperation: false, 456 ableOperation: false,
520 //传递参数\ 457 //传递参数\
521 rules: { 458 rules: {
...@@ -637,11 +574,6 @@ djlxchange(val) { ...@@ -637,11 +574,6 @@ djlxchange(val) {
637 } 574 }
638 this.ruleForm.fdcq2.jedw = "1"; 575 this.ruleForm.fdcq2.jedw = "1";
639 this.$endLoading(); 576 this.$endLoading();
640 if (this.ruleForm.tdytqxList.length > 0) {
641 this.tdxz = this.ruleForm.tdytqxList[0].qlxzbm;
642 } else {
643 this.tdxz = null;
644 }
645 this.isShow = true; 577 this.isShow = true;
646 //获取主体信息 578 //获取主体信息
647 getSsQlxx({ 579 getSsQlxx({
...@@ -702,7 +634,7 @@ djlxchange(val) { ...@@ -702,7 +634,7 @@ djlxchange(val) {
702 }); 634 });
703 return false; 635 return false;
704 } 636 }
705 if (this.ruleForm.tdytqxList.length == 0 && !this.tdxz) { 637 if (this.ruleForm.tdytqxList.length == 0) {
706 this.$message({ 638 this.$message({
707 showClose: true, 639 showClose: true,
708 message: "请补充土地用途信息", 640 message: "请补充土地用途信息",
...@@ -726,14 +658,6 @@ djlxchange(val) { ...@@ -726,14 +658,6 @@ djlxchange(val) {
726 }); 658 });
727 return false; 659 return false;
728 } 660 }
729 if (this.ruleForm.tdytqxList.length == 0 && !this.tdxz) {
730 this.$message({
731 showClose: true,
732 message: "请补充土地用途信息",
733 type: "error",
734 });
735 return false;
736 }
737 } 661 }
738 if (this.ruleForm.qlxx.gyfs == "0") { 662 if (this.ruleForm.qlxx.gyfs == "0") {
739 if (this.ruleForm.qlrData.length > 1) { 663 if (this.ruleForm.qlrData.length > 1) {
......
...@@ -568,14 +568,6 @@ export default { ...@@ -568,14 +568,6 @@ export default {
568 }); 568 });
569 return false; 569 return false;
570 } 570 }
571 if (this.ruleForm.qlrData.length != 0 && this.ruleForm.qlxx.sqfbcz == 0 && this.ruleForm.czr == '') {
572 this.$message({
573 showClose: true,
574 message: "请选择持证人信息",
575 type: "error",
576 });
577 return false;
578 }
579 if (this.ruleForm.qlxx.gyfs == "0") { 571 if (this.ruleForm.qlxx.gyfs == "0") {
580 if (this.ruleForm.qlrData.length > 1) { 572 if (this.ruleForm.qlrData.length > 1) {
581 this.$message({ 573 this.$message({
......
...@@ -618,6 +618,8 @@ export default { ...@@ -618,6 +618,8 @@ export default {
618 init(this.propsParam).then((res) => { 618 init(this.propsParam).then((res) => {
619 if (res.code == 200) { 619 if (res.code == 200) {
620 this.ruleForm = res.result; 620 this.ruleForm = res.result;
621 this.ruleForm.tdsyq.mjdw="1"
622
621 let djlx = this.ruleForm.qlxx.djlx; 623 let djlx = this.ruleForm.qlxx.djlx;
622 if (djlx == null || djlx == 100) { 624 if (djlx == null || djlx == 100) {
623 this.ssqlxxshow = false; 625 this.ssqlxxshow = false;
......
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
351 v-model="ruleForm.ygdj.jzmj" 351 v-model="ruleForm.ygdj.jzmj"
352 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> 352 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
353 <el-select 353 <el-select
354 v-model="mjdw" 354 v-model="ruleForm.ygdj.mjdw"
355 :disabled="!ableOperation" 355 :disabled="!ableOperation"
356 style="width: 20%"> 356 style="width: 20%">
357 <el-option 357 <el-option
...@@ -490,9 +490,7 @@ ...@@ -490,9 +490,7 @@
490 </div> 490 </div>
491 </template> 491 </template>
492 <script> 492 <script>
493 import { mapGetters } from "vuex"; 493 import ywmix from "./dataprocessing";
494 import ywmix from "@/views/ywbl/mixin/index";
495 import { init, getSsQlxx, getZtQlxx, getQlxxByQlxxBsm, save } from "@/api/djbRepair.js";
496 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 494 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
497 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; 495 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable";
498 import tdytTable from "@/views/workflow/components/tdytTable"; 496 import tdytTable from "@/views/workflow/components/tdytTable";
...@@ -500,73 +498,8 @@ ...@@ -500,73 +498,8 @@
500 export default { 498 export default {
501 mixins: [ywmix], 499 mixins: [ywmix],
502 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable }, 500 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable },
503 computed: {
504 ...mapGetters(["dictData", "flag"]),
505 // 根据流程判断表单是否为只读
506 editDisabled () {
507 if (!this.ableOperation) {
508 //只读状态
509 return true;
510 }
511 return false;
512 },
513 },
514 data () { 501 data () {
515 return { 502 return {
516 ssqlxxshow: true,
517 props: {
518 label: "bdcqzh",
519 value: "bdcdyid",
520 },
521 mjdw: "1",
522 //表单是否可操作
523 propsParam: this.$attrs,
524 key: 0,
525 isShow: false,
526 disabled: true,
527 czrOptions: [],
528 ssQlxxList: [],
529 ztQlxxList: [],
530 ruleForm: {},
531 // 登记类型
532 djlxlist: [
533 {
534 dcode: "100",
535 dname: "首次登记",
536 },
537 {
538 dcode: "200",
539 dname: "转移登记",
540 },
541 {
542 dcode: "300",
543 dname: "变更登记",
544 },
545 {
546 dcode: "500",
547 dname: "更正登记",
548 },
549
550 {
551 dcode: "901",
552 dname: "补证",
553 },
554 {
555 dcode: "902",
556 dname: "换证",
557 },
558 ],
559 // 权属状态
560 qsztlist: [
561 {
562 dcode: "1",
563 dname: "现势",
564 },
565 {
566 dcode: "2",
567 dname: "历史",
568 },
569 ],
570 //传递参数\ 503 //传递参数\
571 rules: { 504 rules: {
572 ztQlxxrules: [ 505 ztQlxxrules: [
...@@ -591,237 +524,6 @@ ...@@ -591,237 +524,6 @@
591 ableOperation: false, 524 ableOperation: false,
592 }; 525 };
593 }, 526 },
594 created() {
595 this.loadData();
596 },
597 mounted() {
598 this.ableOperation = this.$parent.ableOperation;
599 },
600 methods: {
601 /**
602 * @description: ztQlxxchange
603 * @param {*} val
604 * @author: renchao
605 */
606 ztQlxxchange(val) {
607 this.ruleForm.ztQlxx = val;
608 },
609 /**
610 * @description: ssQlxxchange
611 * @param {*} val
612 * @author: renchao
613 */
614 ssQlxxchange(val) {
615 this.ruleForm.ssQlxx = val;
616 this.ruleForm.qlxx.ssywh = val.ywh;
617 this.ssQlxxchangediolog(val);
618 },
619 // 弹框事件
620 ssQlxxchangediolog(val) {
621 this.$confirm("是否将上手权利信息同步到表单", "提示", {
622 iconClass: "el-icon-question", //自定义图标样式
623 confirmButtonText: "确认", //确认按钮文字更换
624 cancelButtonText: "取消", //取消按钮文字更换
625 showClose: true, //是否显示右上角关闭按钮
626 type: "warning",
627 })
628 .then(() => {
629 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
630 if (res.code == 200) {
631 this.nowlist = res.result;
632 for (var key in this.ruleForm.ygdj) {
633 if (
634 this.ruleForm.ygdj[key] == "" ||
635 this.ruleForm.ygdj[key] == null
636 ) {
637 this.ruleForm.ygdj[key] = this.nowlist.ygdj[key];
638 }
639 }
640 for (var key in this.ruleForm.qlxx) {
641 if (
642 this.ruleForm.qlxx[key] == ""||
643 this.ruleForm.qlxx[key] == null &&
644 key != "ywh" &&
645 key != "dbr" &&
646 key != "djsj" &&
647 key != "ssywh" &&
648 key != "ssywh" &&
649 key != "bdcqzh") {
650 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
651
652 }
653 }
654 if (!this.ruleForm.tdytqxList.length) {
655 this.ruleForm.tdytqxList = this.nowlist.tdytqxList;
656 }
657 if (!this.ruleForm.qlrData.length) {
658 this.ruleForm.qlrData = this.nowlist.qlrData;
659 }
660 if (!this.ruleForm.ywrData.length) {
661 this.ruleForm.ywrData = this.nowlist.ywrData;
662 }
663 this.$message({
664 type: "success",
665 message: "同步成功!",
666 });
667 }
668 });
669 })
670 .catch(() => {
671 this.$message({
672 type: "info",
673 message: "已取消同步",
674 });
675 });
676 },
677
678 /**
679 * @description: djlxchange
680 * @param {*} val
681 * @author: renchao
682 */
683 djlxchange (val) {
684 if (val == null || val == 100) {
685 this.ssqlxxshow = false;
686 } else {
687 this.ssqlxxshow = true;
688 }
689 },
690 /**
691 * @description: loadData
692 * @author: renchao
693 */
694 loadData () {
695 this.$startLoading();
696 this.propsParam.isEdit = this.$parent.isEdit;
697 init(this.propsParam).then((res) => {
698 if (res.code == 200) {
699 this.ruleForm = res.result;
700 let djlx = this.ruleForm.qlxx.djlx;
701 if (djlx == null || djlx == 100) {
702 this.ssqlxxshow = false;
703 }
704 this.ruleForm.ygdj.jedw = "1";
705 this.$endLoading();
706 this.isShow = true;
707 //获取主体信息
708 getSsQlxx({
709 bdcdyid: this.propsParam.bdcdyid,
710 qllx: this.propsParam.qllx,
711 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
712 }).then((res) => {
713 if (res.code == 200) {
714 this.ssQlxxList = res.result;
715 }
716 });
717 //获取上手信息
718 getZtQlxx({
719 bdcdyid: this.propsParam.bdcdyid,
720 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
721 }).then((res) => {
722 if (res.code == 200) {
723 this.ztQlxxList = res.result;
724 }
725 });
726 }
727 });
728 },
729 // 更新土地用途信息
730 /**
731 * @description: 更新土地用途信息
732 * @param {*} val
733 * @author: renchao
734 */
735 upDateTdytxxList (val) {
736 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
737 this.key++;
738 },
739 // 更新权利人信息
740 /**
741 * @description: 更新权利人信息
742 * @param {*} val
743 * @author: renchao
744 */
745 upDateQlrxxList (val) {
746 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
747 this.czrOptions = this.ruleForm.qlrData;
748 this.key++;
749 },
750 // 更新义务人信息
751 /**
752 * @description: 更新义务人信息
753 * @param {*} val
754 * @author: renchao
755 */
756 upDateYwrxxList (val) {
757 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
758 this.key++;
759 },
760 /**
761 * @description: onSubmit
762 * @author: renchao
763 */
764 onSubmit () {
765 this.$refs.ruleForm.validate((valid) => {
766 if (valid) {
767 if (this.ruleForm.qlrData.length == 0) {
768 this.$message({
769 showClose: true,
770 message: "请确认权利人信息",
771 type: "error",
772 });
773 return false;
774 }
775 if (this.ruleForm.ywrData.length == 0) {
776 this.$message({
777 showClose: true,
778 message: "请确认义务人信息",
779 type: "error",
780 });
781 return false;
782 }
783 if (this.ruleForm.qlxx.gyfs == "0") {
784 if (this.ruleForm.qlrData.length > 1) {
785 this.$message({
786 showClose: true,
787 message: "共有方式:单独所有,权利人只能是一个人",
788 type: "error",
789 });
790 return false;
791 }
792 } else {
793 if (this.ruleForm.qlrData.length <= 1) {
794 this.$message({
795 showClose: true,
796 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
797 type: "error",
798 });
799 return false;
800 }
801 }
802 save(this.ruleForm).then((res) => {
803 if (res.code === 200) {
804 this.$message({
805 showClose: true,
806 message: "保存成功!",
807 type: "success",
808 });
809 this.$parent.changeywh();
810 this.$store.dispatch("user/refreshPage", true);
811 } else {
812 this.$message({
813 showClose: true,
814 message: res.message,
815 type: "error",
816 });
817 }
818 });
819 } else {
820 return false;
821 }
822 });
823 },
824 },
825 }; 527 };
826 </script> 528 </script>
827 <style scoped lang="scss"> 529 <style scoped lang="scss">
......
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
259 v-model="ruleForm.ygdj.jzmj" 259 v-model="ruleForm.ygdj.jzmj"
260 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> 260 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
261 <el-select 261 <el-select
262 v-model="mjdw" 262 v-model="ruleForm.ygdj.mjdw"
263 :disabled="!ableOperation" 263 :disabled="!ableOperation"
264 style="width: 20%"> 264 style="width: 20%">
265 <el-option 265 <el-option
...@@ -433,9 +433,7 @@ ...@@ -433,9 +433,7 @@
433 </div> 433 </div>
434 </template> 434 </template>
435 <script> 435 <script>
436 import { mapGetters } from "vuex"; 436 import ywmix from "./dataprocessing";
437 import ywmix from "@/views/ywbl/mixin/index";
438 import { init, getSsQlxx, getQlxxByQlxxBsm, save } from "@/api/djbRepair.js";
439 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 437 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
440 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; 438 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable";
441 import tdytTable from "@/views/workflow/components/tdytTable"; 439 import tdytTable from "@/views/workflow/components/tdytTable";
...@@ -443,72 +441,8 @@ ...@@ -443,72 +441,8 @@
443 export default { 441 export default {
444 mixins: [ywmix], 442 mixins: [ywmix],
445 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable }, 443 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable },
446 computed: {
447 ...mapGetters(["dictData", "flag"]),
448 // 根据流程判断表单是否为只读
449 editDisabled () {
450 if (!this.ableOperation) {
451 //只读状态
452 return true;
453 }
454 return false;
455 },
456 },
457 data () { 444 data () {
458 return { 445 return {
459 ssqlxxshow: true,
460 props: {
461 label: "bdcqzh",
462 value: "bdcdyid",
463 },
464 mjdw: "1",
465 //表单是否可操作
466 propsParam: this.$attrs,
467 key: 0,
468 isShow: false,
469 disabled: true,
470 czrOptions: [],
471 ssQlxxList: [],
472 ruleForm: {},
473 // 登记类型
474 djlxlist: [
475 {
476 dcode: "100",
477 dname: "首次登记",
478 },
479 {
480 dcode: "200",
481 dname: "转移登记",
482 },
483 {
484 dcode: "300",
485 dname: "变更登记",
486 },
487 {
488 dcode: "500",
489 dname: "更正登记",
490 },
491
492 {
493 dcode: "901",
494 dname: "补证",
495 },
496 {
497 dcode: "902",
498 dname: "换证",
499 },
500 ],
501 // 权属状态
502 qsztlist: [
503 {
504 dcode: "1",
505 dname: "现势",
506 },
507 {
508 dcode: "2",
509 dname: "历史",
510 },
511 ],
512 //传递参数\ 446 //传递参数\
513 rules: { 447 rules: {
514 ztQlxxrules: [ 448 ztQlxxrules: [
...@@ -530,230 +464,9 @@ ...@@ -530,230 +464,9 @@
530 { required: true, message: "上手权利信息", trigger: "blur" }, 464 { required: true, message: "上手权利信息", trigger: "blur" },
531 ], 465 ],
532 }, 466 },
533 ableOperation: false,
534 }; 467 };
535 }, 468 },
536 created() {
537 this.loadData();
538 },
539 mounted() {
540 this.ableOperation = this.$parent.ableOperation;
541 },
542 methods: {
543 /**
544 * @description: ztQlxxchange
545 * @param {*} val
546 * @author: renchao
547 */
548 ztQlxxchange(val) {
549 this.ruleForm.ztQlxx = val;
550 },
551 /**
552 * @description: ssQlxxchange
553 * @param {*} val
554 * @author: renchao
555 */
556 ssQlxxchange(val) {
557 this.ruleForm.ssQlxx = val;
558 this.ruleForm.qlxx.ssywh = val.ywh;
559 this.ssQlxxchangediolog(val);
560 },
561 // 弹框事件
562 ssQlxxchangediolog(val) {
563 this.$confirm("是否将上手权利信息同步到表单", "提示", {
564 iconClass: "el-icon-question", //自定义图标样式
565 confirmButtonText: "确认", //确认按钮文字更换
566 cancelButtonText: "取消", //取消按钮文字更换
567 showClose: true, //是否显示右上角关闭按钮
568 type: "warning",
569 })
570 .then(() => {
571 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
572 if (res.code == 200) {
573 this.nowlist = res.result;
574 for (var key in this.ruleForm.ygdj) {
575 if (
576 this.ruleForm.ygdj[key] == "" ||
577 this.ruleForm.ygdj[key] == null
578 ) {
579 this.ruleForm.ygdj[key] = this.nowlist.ygdj[key];
580 }
581 }
582 for (var key in this.ruleForm.qlxx) {
583 if (
584 this.ruleForm.qlxx[key] == ""||
585 this.ruleForm.qlxx[key] == null &&
586 key != "ywh" &&
587 key != "dbr" &&
588 key != "djsj" &&
589 key != "ssywh" &&
590 key != "ssywh" &&
591 key != "bdcqzh") {
592 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
593 469
594 }
595 }
596 if (!this.ruleForm.tdytqxList.length) {
597 this.ruleForm.tdytqxList = this.nowlist.tdytqxList;
598 }
599 if (!this.ruleForm.qlrData.length) {
600 this.ruleForm.qlrData = this.nowlist.qlrData;
601 }
602 if (!this.ruleForm.ywrData.length) {
603 this.ruleForm.ywrData = this.nowlist.ywrData;
604 }
605 this.$message({
606 type: "success",
607 message: "同步成功!",
608 });
609 }
610 });
611 })
612 .catch(() => {
613 this.$message({
614 type: "info",
615 message: "已取消同步",
616 });
617 });
618 },
619 /**
620 * @description: djlxchange
621 * @param {*} val
622 * @author: renchao
623 */
624 djlxchange (val) {
625 if (val == null || val == 100) {
626 this.ssqlxxshow = false;
627 } else {
628 this.ssqlxxshow = true;
629 }
630 },
631 /**
632 * @description: loadData
633 * @author: renchao
634 */
635 loadData () {
636 this.$startLoading();
637 this.propsParam.isEdit = this.$parent.isEdit;
638 init(this.propsParam).then((res) => {
639 if (res.code == 200) {
640 this.ruleForm = res.result;
641 let djlx = this.ruleForm.qlxx.djlx;
642 if (djlx == null || djlx == 100) {
643 this.ssqlxxshow = false;
644 }
645 this.ruleForm.ygdj.jedw = "1";
646 this.$endLoading();
647 this.isShow = true;
648 //获取主体信息
649 getSsQlxx({
650 bdcdyid: this.propsParam.bdcdyid,
651 qllx: this.propsParam.qllx,
652 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
653 }).then((res) => {
654 if (res.code == 200) {
655 this.ssQlxxList = res.result;
656 }
657 });
658 }
659 });
660 },
661 // 更新土地用途信息
662 /**
663 * @description: 更新土地用途信息
664 * @param {*} val
665 * @author: renchao
666 */
667 upDateTdytxxList (val) {
668 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
669 this.key++;
670 },
671 // 更新权利人信息
672 /**
673 * @description: 更新权利人信息
674 * @param {*} val
675 * @author: renchao
676 */
677 upDateQlrxxList (val) {
678 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
679 this.czrOptions = this.ruleForm.qlrData;
680 this.key++;
681 },
682 // 更新义务人信息
683 /**
684 * @description: 更新义务人信息
685 * @param {*} val
686 * @author: renchao
687 */
688 upDateYwrxxList (val) {
689 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
690 this.key++;
691 },
692 /**
693 * @description: onSubmit
694 * @author: renchao
695 */
696 onSubmit () {
697 this.$refs.ruleForm.validate((valid) => {
698 if (valid) {
699 if (this.ruleForm.qlrData.length == 0) {
700 this.$message({
701 showClose: true,
702 message: "请确认权利人信息",
703 type: "error",
704 });
705 return false;
706 }
707 if (this.ruleForm.ywrData.length == 0) {
708 this.$message({
709 showClose: true,
710 message: "请确认义务人信息",
711 type: "error",
712 });
713 return false;
714 }
715 if (this.ruleForm.qlxx.gyfs == "0") {
716 if (this.ruleForm.qlrData.length > 1) {
717 this.$message({
718 showClose: true,
719 message: "共有方式:单独所有,权利人只能是一个人",
720 type: "error",
721 });
722 return false;
723 }
724 } else {
725 if (this.ruleForm.qlrList.length <= 1) {
726 this.$message({
727 showClose: true,
728 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
729 type: "error",
730 });
731 return false;
732 }
733 }
734 save(this.ruleForm).then((res) => {
735 if (res.code === 200) {
736 this.$message({
737 showClose: true,
738 message: "保存成功!",
739 type: "success",
740 });
741 this.$parent.changeywh();
742 this.$store.dispatch("user/refreshPage", true);
743 } else {
744 this.$message({
745 showClose: true,
746 message: res.message,
747 type: "error",
748 });
749 }
750 });
751 } else {
752 return false;
753 }
754 });
755 },
756 },
757 }; 470 };
758 </script> 471 </script>
759 <style scoped lang="scss"> 472 <style scoped lang="scss">
......
...@@ -293,11 +293,7 @@ ...@@ -293,11 +293,7 @@
293 > 293 >
294 </el-form-item> 294 </el-form-item>
295 </el-col> 295 </el-col>
296 <el-col :span="24"> 296
297 <el-form-item label="附记:">
298 <el-input v-model="ruleForm.yydj.fj"></el-input>
299 </el-form-item>
300 </el-col>
301 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'"> 297 <el-col :span="8" v-if="ruleForm.qlxx.qszt == '2'">
302 <el-form-item label="注销异议业务号:"> 298 <el-form-item label="注销异议业务号:">
303 <el-input v-model="ruleForm.yydj.zxyyywh"></el-input> 299 <el-input v-model="ruleForm.yydj.zxyyywh"></el-input>
...@@ -326,6 +322,11 @@ ...@@ -326,6 +322,11 @@
326 </el-date-picker> 322 </el-date-picker>
327 </el-form-item> 323 </el-form-item>
328 </el-col> 324 </el-col>
325 <el-col :span="24">
326 <el-form-item label="附记:">
327 <el-input v-model="ruleForm.yydj.fj"></el-input>
328 </el-form-item>
329 </el-col>
329 </el-row> 330 </el-row>
330 <div class="slxx_title title-block"> 331 <div class="slxx_title title-block">
331 权利人信息 332 权利人信息
...@@ -407,40 +408,19 @@ ...@@ -407,40 +408,19 @@
407 </div> 408 </div>
408 </template> 409 </template>
409 <script> 410 <script>
410 import { mapGetters } from "vuex"; 411
411 // import ywmix from "@/views/ywbl/mixin/index"; 412 // import ywmix from "@/views/ywbl/mixin/index";
412 import { 413 import ywmix from "./dataprocessing";
413 init,
414 getSsQlxx,
415 getZtQlxx,
416 getQlxxByQlxxBsm,
417 save,
418 } from "@/api/djbRepair.js";
419 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; 414 import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable";
420 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; 415 import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable";
421 import tdytTable from "@/views/workflow/components/tdytTable"; 416 import tdytTable from "@/views/workflow/components/tdytTable";
422 import selectTable from "@/components/selectTable/index.vue"; 417 import selectTable from "@/components/selectTable/index.vue";
423 export default { 418 export default {
424 // mixins: [ywmix], 419 mixins: [ywmix],
425 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable }, 420 components: { qlrCommonTable, ywrCommonTable, tdytTable, selectTable },
426 computed: {
427 ...mapGetters(["dictData", "flag"]),
428 // 根据流程判断表单是否为只读
429 editDisabled() {
430 if (!this.ableOperation) {
431 //只读状态
432 return true;
433 }
434 return false;
435 },
436 },
437 data() { 421 data() {
438 return { 422 return {
439 ssqlxxshow: true, 423 ssqlxxshow: true,
440 props: {
441 label: "bdcqzh",
442 value: "bdcdyid",
443 },
444 //表单是否可操作 424 //表单是否可操作
445 propsParam: this.$attrs, 425 propsParam: this.$attrs,
446 key: 0, 426 key: 0,
...@@ -450,45 +430,7 @@ export default { ...@@ -450,45 +430,7 @@ export default {
450 ssQlxxList: [], 430 ssQlxxList: [],
451 ztQlxxList: [], 431 ztQlxxList: [],
452 ruleForm: {}, 432 ruleForm: {},
453 // 登记类型
454 djlxlist: [
455 {
456 dcode: "100",
457 dname: "首次登记",
458 },
459 {
460 dcode: "200",
461 dname: "转移登记",
462 },
463 {
464 dcode: "300",
465 dname: "变更登记",
466 },
467 {
468 dcode: "500",
469 dname: "更正登记",
470 },
471
472 {
473 dcode: "901",
474 dname: "补证",
475 },
476 {
477 dcode: "902",
478 dname: "换证",
479 },
480 ],
481 // 权属状态 433 // 权属状态
482 qsztlist: [
483 {
484 dcode: "1",
485 dname: "现势",
486 },
487 {
488 dcode: "2",
489 dname: "历史",
490 },
491 ],
492 //传递参数\ 434 //传递参数\
493 rules: { 435 rules: {
494 ssQlxxrules: [ 436 ssQlxxrules: [
...@@ -514,236 +456,8 @@ export default { ...@@ -514,236 +456,8 @@ export default {
514 ableOperation: false, 456 ableOperation: false,
515 }; 457 };
516 }, 458 },
517 created() {
518 this.loadData();
519 },
520 mounted() {
521 this.ableOperation = this.$parent.ableOperation;
522 },
523 methods: { 459 methods: {
524 /**
525 * @description: ztQlxxchange
526 * @param {*} val
527 * @author: renchao
528 */
529 ztQlxxchange(val) {
530 this.ruleForm.ztQlxx = val;
531 },
532 /**
533 * @description: ssQlxxchange
534 * @param {*} val
535 * @author: renchao
536 */
537 ssQlxxchange(val) {
538 this.ruleForm.ssQlxx = val;
539 this.ruleForm.qlxx.ssywh = val.ywh;
540 this.ssQlxxchangediolog(val);
541 },
542 // 弹框事件
543 ssQlxxchangediolog(val) {
544 this.$confirm("是否将上手权利信息同步到表单", "提示", {
545 iconClass: "el-icon-question", //自定义图标样式
546 confirmButtonText: "确认", //确认按钮文字更换
547 cancelButtonText: "取消", //取消按钮文字更换
548 showClose: true, //是否显示右上角关闭按钮
549 type: "warning",
550 })
551 .then(() => {
552 getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => {
553 if (res.code == 200) {
554 this.nowlist = res.result;
555 for (var key in this.ruleForm.yydj) {
556 if (
557 this.ruleForm.yydj[key] == "" ||
558 this.ruleForm.yydj[key] == null
559 ) {
560 this.ruleForm.yydj[key] = this.nowlist.yydj[key];
561 }
562 }
563 for (var key in this.ruleForm.qlxx) {
564 if (
565 this.ruleForm.qlxx[key] == "" ||
566 (this.ruleForm.qlxx[key] == null &&
567 key != "ywh" &&
568 key != "dbr" &&
569 key != "djsj" &&
570 key != "ssywh" &&
571 key != "ssywh" &&
572 key != "bdcqzh")
573 ) {
574 this.ruleForm.qlxx[key] = this.nowlist.qlxx[key];
575 }
576 }
577 if (!this.ruleForm.tdytqxList.length) {
578 this.ruleForm.tdytqxList = this.nowlist.tdytqxList;
579 }
580 if (!this.ruleForm.qlrData.length) {
581 this.ruleForm.qlrData = this.nowlist.qlrData;
582 }
583 if (!this.ruleForm.ywrData.length) {
584 this.ruleForm.ywrData = this.nowlist.ywrData;
585 }
586 this.$message({
587 type: "success",
588 message: "同步成功!",
589 });
590 }
591 });
592 })
593 .catch(() => {
594 this.$message({
595 type: "info",
596 message: "已取消同步",
597 });
598 });
599 },
600 /**
601 * @description: djlxchange
602 * @param {*} val
603 * @author: renchao
604 */
605 djlxchange(val) {
606 if (val == null || val == 100) {
607 this.ssqlxxshow = false;
608 } else {
609 this.ssqlxxshow = true;
610 }
611 },
612 /**
613 * @description: loadData
614 * @author: renchao
615 */
616 loadData() {
617 this.$startLoading();
618 this.propsParam.isEdit = this.$parent.isEdit;
619 init(this.propsParam).then((res) => {
620 if (res.code == 200) {
621 this.ruleForm = res.result;
622 let djlx = this.ruleForm.qlxx.djlx;
623 if (djlx == null || djlx == 100) {
624 this.ssqlxxshow = false;
625 }
626 this.$endLoading();
627 this.isShow = true;
628 //获取主体信息
629 getSsQlxx({
630 bdcdyid: this.propsParam.bdcdyid,
631 qllx: this.propsParam.qllx,
632 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
633 }).then((res) => {
634 if (res.code == 200) {
635 this.ssQlxxList = res.result;
636 }
637 });
638 //获取上手信息
639 getZtQlxx({
640 bdcdyid: this.propsParam.bdcdyid,
641 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
642 }).then((res) => {
643 if (res.code == 200) {
644 this.ztQlxxList = res.result;
645 }
646 });
647 }
648 });
649 },
650 // 更新土地用途信息
651 /**
652 * @description: 更新土地用途信息
653 * @param {*} val
654 * @author: renchao
655 */
656 upDateTdytxxList(val) {
657 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
658 this.key++;
659 },
660 // 更新权利人信息
661 /**
662 * @description: 更新权利人信息
663 * @param {*} val
664 * @author: renchao
665 */
666 upDateQlrxxList(val) {
667 this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val));
668 this.czrOptions = this.ruleForm.qlrData;
669 this.key++;
670 },
671 // 更新义务人信息
672 /**
673 * @description: 更新义务人信息
674 * @param {*} val
675 * @author: renchao
676 */
677 upDateYwrxxList(val) {
678 this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val));
679 this.key++;
680 },
681 /**
682 * @description: onSubmit
683 * @author: renchao
684 */
685 onSubmit() {
686 this.$refs.ruleForm.validate((valid) => {
687 if (valid) {
688 if (this.ruleForm.qlrData.length == 0) {
689 this.$message({
690 showClose: true,
691 message: "请确认权利人信息",
692 type: "error",
693 });
694 return false;
695 }
696 if (this.ruleForm.ywrData.length == 0) {
697 this.$message({
698 showClose: true,
699 message: "请确认义务人信息",
700 type: "error",
701 });
702 return false;
703 }
704 if (this.ruleForm.qlxx.gyfs == "0") {
705 if (this.ruleForm.qlrData.length > 1) {
706 this.$message({
707 showClose: true,
708 message: "共有方式:单独所有,权利人只能是一个人",
709 type: "error",
710 });
711 return false;
712 }
713 this.ruleForm.qlrData[0].sfczr = "1";
714 } else {
715 if (this.ruleForm.qlrData.length <= 1) {
716 this.$message({
717 showClose: true,
718 message: "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上",
719 type: "error",
720 });
721 return false;
722 }
723 }
724 460
725 save(this.ruleForm).then((res) => {
726 if (res.code === 200) {
727 this.$message({
728 showClose: true,
729 message: "保存成功!",
730 type: "success",
731 });
732 this.$parent.changeywh();
733 this.$store.dispatch("user/refreshPage", true);
734 } else {
735 this.$message({
736 showClose: true,
737 message: res.message,
738 type: "error",
739 });
740 }
741 });
742 } else {
743 return false;
744 }
745 });
746 },
747 }, 461 },
748 }; 462 };
749 </script> 463 </script>
......