e9b26c6c by xiaomiao

--no commit message

1 parent d5ab5c3a
...@@ -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 }
......
...@@ -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,6 +549,64 @@ ...@@ -546,6 +549,64 @@
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)
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 });
549 }, 610 },
550 /** 611 /**
551 * @description: djlxchange 612 * @description: djlxchange
...@@ -576,23 +637,28 @@ ...@@ -576,23 +637,28 @@
576 } 637 }
577 this.$endLoading(); 638 this.$endLoading();
578 this.isShow = true; 639 this.isShow = true;
579 } 640
580 });
581 //获取主体信息 641 //获取主体信息
582 getSsQlxx({ 642 getSsQlxx({
583 bdcdyid: this.propsParam.bdcdyid, 643 bdcdyid: this.propsParam.bdcdyid,
584 qllx: this.propsParam.qllx, 644 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({
653 bdcdyid: this.propsParam.bdcdyid,
654 bsmQlxx: this.ruleForm.qlxx.bsmQlxx,
655 }).then((res) => {
592 if (res.code == 200) { 656 if (res.code == 200) {
593 this.ztQlxxList = res.result; 657 this.ztQlxxList = res.result;
594 } 658 }
595 }); 659 });
660 }
661 });
596 }, 662 },
597 // 更新土地用途信息 663 // 更新土地用途信息
598 /** 664 /**
......
...@@ -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,
......