--no commit message
Showing
11 changed files
with
101 additions
and
21 deletions
... | @@ -135,10 +135,22 @@ export function getZtQlxx (params) { | ... | @@ -135,10 +135,22 @@ export function getZtQlxx (params) { |
135 | * @author: renchao | 135 | * @author: renchao |
136 | */ | 136 | */ |
137 | export function getShList (data) { | 137 | export function getShList (data) { |
138 | console.log(data); | ||
139 | return request({ | 138 | return request({ |
140 | url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair='+data.bsmRepair, | 139 | url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair='+data.bsmRepair, |
141 | method: 'post', | 140 | method: 'post', |
142 | data | 141 | data |
143 | }) | 142 | }) |
144 | } | 143 | } |
144 | |||
145 | /** | ||
146 | * @description:初始化内容 | ||
147 | * @param {*} data | ||
148 | * @author: renchao | ||
149 | */ | ||
150 | export function getQlxxByQlxxBsm (params) { | ||
151 | return request({ | ||
152 | url: SERVER.SERVERAPI + '/rest/djbRepair/getQlxxByQlxxBsm', | ||
153 | method: 'get', | ||
154 | params | ||
155 | }) | ||
156 | } | ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
... | @@ -71,7 +71,7 @@ | ... | @@ -71,7 +71,7 @@ |
71 | </el-col> | 71 | </el-col> |
72 | 72 | ||
73 | <el-col :span="8" v-if="ssqlxxshow"> | 73 | <el-col :span="8" v-if="ssqlxxshow"> |
74 | <el-form-item label="上手权利信息:"> | 74 | <el-form-item label="上手权利信息:" prop="ssQlxx.bdcqzh" :rules="rules.ssQlxxrules"> |
75 | <select-table | 75 | <select-table |
76 | v-model="ruleForm.ssQlxx" | 76 | v-model="ruleForm.ssQlxx" |
77 | :table-width="550" | 77 | :table-width="550" |
... | @@ -433,7 +433,7 @@ | ... | @@ -433,7 +433,7 @@ |
433 | <script> | 433 | <script> |
434 | import { mapGetters } from "vuex"; | 434 | import { mapGetters } from "vuex"; |
435 | import ywmix from "@/views/ywbl/mixin/index" | 435 | import ywmix from "@/views/ywbl/mixin/index" |
436 | import { init, getSsQlxx, getZtQlxx, save } from "@/api/djbRepair.js"; | 436 | import { init, getSsQlxx, getZtQlxx, getQlxxByQlxxBsm,save } from "@/api/djbRepair.js"; |
437 | import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; | 437 | import qlrCommonTable from "@/views/djbworkflow/components/qlrCommonTable"; |
438 | import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; | 438 | import ywrCommonTable from "@/views/djbworkflow/components/ywrCommonTable"; |
439 | import tdytTable from "@/views/workflow/components/tdytTable"; | 439 | import tdytTable from "@/views/workflow/components/tdytTable"; |
... | @@ -510,6 +510,9 @@ | ... | @@ -510,6 +510,9 @@ |
510 | ableOperation: false, | 510 | ableOperation: false, |
511 | //传递参数\ | 511 | //传递参数\ |
512 | rules: { | 512 | rules: { |
513 | ssQlxxrules: [ | ||
514 | { required: true, message: "上手权利信息", trigger: "blur" }, | ||
515 | ], | ||
513 | ztQlxxrules: [ | 516 | ztQlxxrules: [ |
514 | { required: true, message: "抵押不动产信息", trigger: "blur" }, | 517 | { required: true, message: "抵押不动产信息", trigger: "blur" }, |
515 | ], | 518 | ], |
... | @@ -546,7 +549,65 @@ | ... | @@ -546,7 +549,65 @@ |
546 | ssQlxxchange (val) { | 549 | ssQlxxchange (val) { |
547 | this.ruleForm.ssQlxx = val; | 550 | this.ruleForm.ssQlxx = val; |
548 | this.ruleForm.qlxx.ssywh = val.ywh; | 551 | this.ruleForm.qlxx.ssywh = val.ywh; |
552 | this.ssQlxxchangediolog (val) | ||
549 | }, | 553 | }, |
554 | // 弹框事件 | ||
555 | ssQlxxchangediolog (val) { | ||
556 | console.log("确定了",this.ruleForm) | ||
557 | this.$confirm("是否将上手权利信息同步到表单", "提示", { | ||
558 | iconClass: "el-icon-question", //自定义图标样式 | ||
559 | confirmButtonText: "确认", //确认按钮文字更换 | ||
560 | cancelButtonText: "取消", //取消按钮文字更换 | ||
561 | showClose: true, //是否显示右上角关闭按钮 | ||
562 | type: "warning", | ||
563 | }).then(() => { | ||
564 | getQlxxByQlxxBsm({ qlxxBsm: val.bsmQlxx }).then((res) => { | ||
565 | if (res.code == 200) { | ||
566 | this.nowlist = res.result; | ||
567 | console.log("his.nowlist", this.nowlist); | ||
568 | console.log("this.ruleForm", this.ruleForm); | ||
569 | for (var key in this.ruleForm.dyiq) { | ||
570 | if ( | ||
571 | this.ruleForm.dyiq[key] == "" || | ||
572 | this.ruleForm.dyiq[key] == null | ||
573 | ) { | ||
574 | this.ruleForm.dyiq[key] = this.nowlist.dyiq[key]; | ||
575 | } | ||
576 | } | ||
577 | for (var key in this.ruleForm.qlxx) { | ||
578 | if ( | ||
579 | (this.ruleForm.qlxx[key] == null && key != "ywh") || | ||
580 | this.ruleForm.qlxx[key] == null | ||
581 | ) { | ||
582 | console.log("this.ruleForm.qlxx[key]", key); | ||
583 | if (key != "ywh") { | ||
584 | this.ruleForm.qlxx[key] = this.nowlist.qlxx[key]; | ||
585 | } | ||
586 | } | ||
587 | } | ||
588 | if (!this.ruleForm.tdytqxList.length) { | ||
589 | this.ruleForm.tdytqxList = this.nowlist.tdytqxList; | ||
590 | } | ||
591 | if (!this.ruleForm.qlrData.length) { | ||
592 | this.ruleForm.qlrData = this.nowlist.qlrData; | ||
593 | } | ||
594 | if (!this.ruleForm.ywrData.length) { | ||
595 | this.ruleForm.ywrData = this.nowlist.ywrData; | ||
596 | } | ||
597 | console.log("this.ruleForm", this.ruleForm); | ||
598 | this.$message({ | ||
599 | type: "success", | ||
600 | message: "同步成功!", | ||
601 | }); | ||
602 | } | ||
603 | }); | ||
604 | }).catch(() => { | ||
605 | this.$message({ | ||
606 | type: "info", | ||
607 | message: "已取消同步", | ||
608 | }); | ||
609 | }); | ||
610 | }, | ||
550 | /** | 611 | /** |
551 | * @description: djlxchange | 612 | * @description: djlxchange |
552 | * @param {*} val | 613 | * @param {*} val |
... | @@ -576,24 +637,29 @@ | ... | @@ -576,24 +637,29 @@ |
576 | } | 637 | } |
577 | this.$endLoading(); | 638 | this.$endLoading(); |
578 | this.isShow = true; | 639 | this.isShow = true; |
579 | } | 640 | |
580 | }); | 641 | //获取主体信息 |
581 | //获取主体信息 | 642 | getSsQlxx({ |
582 | getSsQlxx({ | 643 | bdcdyid: this.propsParam.bdcdyid, |
583 | bdcdyid: this.propsParam.bdcdyid, | 644 | qllx: this.propsParam.qllx, |
584 | qllx: this.propsParam.qllx, | 645 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, |
585 | }).then((res) => { | 646 | }).then((res) => { |
586 | if (res.code == 200) { | 647 | if (res.code == 200) { |
587 | this.ssQlxxList = res.result; | 648 | this.ssQlxxList = res.result; |
588 | } | 649 | } |
589 | }); | 650 | }); |
590 | //获取上手信息 | 651 | //获取上手信息 |
591 | getZtQlxx({ bdcdyid: this.propsParam.bdcdyid }).then((res) => { | 652 | getZtQlxx({ |
592 | if (res.code == 200) { | 653 | bdcdyid: this.propsParam.bdcdyid, |
593 | this.ztQlxxList = res.result; | 654 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, |
594 | } | 655 | }).then((res) => { |
595 | }); | 656 | if (res.code == 200) { |
596 | }, | 657 | this.ztQlxxList = res.result; |
658 | } | ||
659 | }); | ||
660 | } | ||
661 | }); | ||
662 | }, | ||
597 | // 更新土地用途信息 | 663 | // 更新土地用途信息 |
598 | /** | 664 | /** |
599 | * @description: 更新土地用途信息 | 665 | * @description: 更新土地用途信息 | ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
... | @@ -97,6 +97,8 @@ export default { | ... | @@ -97,6 +97,8 @@ export default { |
97 | yjsqOptions: { | 97 | yjsqOptions: { |
98 | handler(val) { | 98 | handler(val) { |
99 | console.log("val", val); | 99 | console.log("val", val); |
100 | console.log("this.tableData[this.currentindex]",this.tableData[this.currentindex]); | ||
101 | |||
100 | this.add(val); | 102 | this.add(val); |
101 | }, | 103 | }, |
102 | deep: true, | 104 | deep: true, | ... | ... |
-
Please register or sign in to post a comment