0c464ed2 by zhaoqian

单独的户提交按钮

1 parent 90cfb88c
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
56 <hbj ref="hbj" :bsm="hbsm" :key="hbsm"></hbj> 56 <hbj ref="hbj" :bsm="hbsm" :key="hbsm"></hbj>
57 <div class="btnGroup"> 57 <div class="btnGroup">
58 <el-button type="primary" @click="hbjSaveInfo">保存</el-button> 58 <el-button type="primary" @click="hbjSaveInfo">保存</el-button>
59 <el-button type="primary" @click="hbjSubmitInfo">提交</el-button>
59 <el-button type="primary" @click="hbjResetInfo">重置</el-button> 60 <el-button type="primary" @click="hbjResetInfo">重置</el-button>
60 <el-button type="primary" @click="hbjVisible = false">取消</el-button> 61 <el-button type="primary" @click="hbjVisible = false">取消</el-button>
61 </div> 62 </div>
...@@ -110,6 +111,11 @@ ...@@ -110,6 +111,11 @@
110 this.$refs.hbj.onSave(this.hbsm, this.tabPosition); 111 this.$refs.hbj.onSave(this.hbsm, this.tabPosition);
111 this.getData({pageSize:15}); 112 this.getData({pageSize:15});
112 }, 113 },
114 //户提交
115 hbjSubmitInfo() {
116 this.$refs.hbj.onSubmit(this.hbsm, this.tabPosition);
117 this.getData({pageSize:15});
118 },
113 //户编辑表单重置 119 //户编辑表单重置
114 hbjResetInfo() { 120 hbjResetInfo() {
115 this.$refs.hbj.onReset(); 121 this.$refs.hbj.onReset();
......
...@@ -403,7 +403,8 @@ ...@@ -403,7 +403,8 @@
403 import Qlr from "./../../../../../components/formMenu/qlr"; 403 import Qlr from "./../../../../../components/formMenu/qlr";
404 import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; 404 import Qlxz from "./../../../../../components/formMenu/qlxz_simple";
405 import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"; 405 import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h";
406 import {getBdcdyh} from "./../../../../../api/zrz" 406 import {getBdcdyh} from "./../../../../../api/zrz";
407 import {submit} from "./../../../../../api/common"
407 export default { 408 export default {
408 name:'zrz', 409 name:'zrz',
409 components:{ 410 components:{
...@@ -697,6 +698,18 @@ ...@@ -697,6 +698,18 @@
697 } 698 }
698 }) 699 })
699 }, 700 },
701 onSubmit(bsm,yclx){
702 let data={
703 glbsm:bsm,
704 status:1,
705 type:"h"
706 }
707 submit(data).then((res)=>{
708 if(res.code===200){
709 this.$message.success("提交完成!");
710 }
711 })
712 },
700 onReset(){ 713 onReset(){
701 this.form.bdcdyh='', //不动产单元号 714 this.form.bdcdyh='', //不动产单元号
702 this.form.mjdwbsm='', //面积单位编号 715 this.form.mjdwbsm='', //面积单位编号
......
...@@ -252,6 +252,7 @@ ...@@ -252,6 +252,7 @@
252 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj> 252 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj>
253 <div class="btnGroup"> 253 <div class="btnGroup">
254 <el-button type="primary" @click="hbjSaveInfo">保存</el-button> 254 <el-button type="primary" @click="hbjSaveInfo">保存</el-button>
255 <el-button type="primary" @click="hbjSubmitInfo">提交</el-button>
255 <el-button type="primary" @click="hbjResetInfo">重置</el-button> 256 <el-button type="primary" @click="hbjResetInfo">重置</el-button>
256 <el-button type="primary" @click="hbjVisible = false">取消</el-button> 257 <el-button type="primary" @click="hbjVisible = false">取消</el-button>
257 </div> 258 </div>
...@@ -574,6 +575,10 @@ export default { ...@@ -574,6 +575,10 @@ export default {
574 hbjSaveInfo() { 575 hbjSaveInfo() {
575 this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition); 576 this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition);
576 }, 577 },
578 //户保存
579 hbjSubmitInfo() {
580 this.$refs.hbj.onSubmit(this.bsms[this.bsms.length - 1], this.tabPosition);
581 },
577 //户编辑表单重置 582 //户编辑表单重置
578 hbjResetInfo() { 583 hbjResetInfo() {
579 this.$refs.hbj.onReset(); 584 this.$refs.hbj.onReset();
......