批量户的表单部分页面调整
Showing
3 changed files
with
56 additions
and
2 deletions
... | @@ -523,6 +523,40 @@ export default { | ... | @@ -523,6 +523,40 @@ export default { |
523 | this.outNum--; | 523 | this.outNum--; |
524 | } | 524 | } |
525 | }, | 525 | }, |
526 | reset(){ | ||
527 | this.countList=[ | ||
528 | { | ||
529 | id: Math.random(), | ||
530 | isInside: false, | ||
531 | hasNotBorder: false, | ||
532 | bsm: "", //权利性质标识码 | ||
533 | glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM | ||
534 | qlxzdm: "", | ||
535 | zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 | ||
536 | list: [ | ||
537 | { | ||
538 | pzdjbsm: "", | ||
539 | pzdjmc: "", | ||
540 | pzytdm: "", | ||
541 | pzytmc: "", | ||
542 | pzytmj: 0, | ||
543 | qlxzbsm: "", | ||
544 | sjdjbsm: "", | ||
545 | sjdjmc: "", | ||
546 | sjytdm: "", | ||
547 | sjytmc: "", | ||
548 | sjytmj: 0, | ||
549 | syqx: "", | ||
550 | tdsyjssj: "", | ||
551 | pickerStart:{}, | ||
552 | pickerEnd:{}, | ||
553 | tdsyqssj: "", | ||
554 | tdzh: "", | ||
555 | }, | ||
556 | ], | ||
557 | }, | ||
558 | ]; | ||
559 | }, | ||
526 | //内层操作 | 560 | //内层操作 |
527 | handleInClick(index, childIndex, type) { | 561 | handleInClick(index, childIndex, type) { |
528 | let insideObj = { | 562 | let insideObj = { | ... | ... |
... | @@ -405,18 +405,38 @@ | ... | @@ -405,18 +405,38 @@ |
405 | addQjTdytRequestList:[{ | 405 | addQjTdytRequestList:[{ |
406 | }], //土地用途新增实体列表 | 406 | }], //土地用途新增实体列表 |
407 | }] | 407 | }] |
408 | } | 408 | }; |
409 | this.$refs.qlxzModule.reset(); | ||
410 | this.ytTitleRowspan=1; //用途的单元格垂直合并数量 | ||
411 | this.fwjgTitleRowspan=1; //房屋结构的单元格垂直合并数量 | ||
409 | }, | 412 | }, |
410 | save: function () { | 413 | save: function () { |
411 | this.form['hbsms'] = this.bsms | 414 | this.form['hbsms'] = this.bsms |
412 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); | 415 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); |
416 | for(let i=0;i< this.form.fwjgList.length;i++){ | ||
417 | if(this.form.fwjgList[i].fwjgzdbsm===''){ | ||
418 | this.form.fwjgList.splice(i,1); | ||
419 | } | ||
420 | } | ||
421 | for(let i=0;i< this.form.fwytList.length;i++){ | ||
422 | if(this.form.fwytList[i].fwsjytbsm===''){ | ||
423 | this.form.fwytList.splice(i,1); | ||
424 | } | ||
425 | } | ||
426 | for(let i=0;i< this.form.qlxzList.length;i++){ | ||
427 | if(this.form.qlxzList[i].qlxzdm===''){ | ||
428 | this.form.qlxzList.splice(i,1); | ||
429 | } | ||
430 | } | ||
413 | console.log("批量户信息") | 431 | console.log("批量户信息") |
414 | console.log(this.form) | 432 | console.log(this.form) |
415 | batchUpdateQjH(this.form).then((res)=>{ | 433 | batchUpdateQjH(this.form).then((res)=>{ |
416 | if(res.code===200){ | 434 | if(res.code===200){ |
417 | this.lodding() | 435 | this.lodding() |
418 | this.$message.success("保存成功!") | 436 | this.$message.success("保存成功!") |
437 | this.$nextTick(()=>{ | ||
419 | this.reset(); | 438 | this.reset(); |
439 | }) | ||
420 | this.close(); | 440 | this.close(); |
421 | } | 441 | } |
422 | }) | 442 | }) | ... | ... |
... | @@ -635,7 +635,7 @@ export default { | ... | @@ -635,7 +635,7 @@ export default { |
635 | if (res.code === 200) { | 635 | if (res.code === 200) { |
636 | this.$message.success("生成完成!"); | 636 | this.$message.success("生成完成!"); |
637 | } else { | 637 | } else { |
638 | this.$message.warning("生成失败!"); | 638 | this.$message.warning(res.message); |
639 | } | 639 | } |
640 | } | 640 | } |
641 | ); | 641 | ); | ... | ... |
-
Please register or sign in to post a comment