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