f5d75d31 by xiaomiao

--no commit message

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