a3c7422a by zhaoqian

提交按钮

1 parent 62103e8b
...@@ -196,6 +196,8 @@ ...@@ -196,6 +196,8 @@
196 <div class="header-button" :style="{width:mainBoxWidth+'px'}"> 196 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
197 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" 197 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled"
198 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button> 198 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
199 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled"
200 v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
199 <el-button type="primary" @click="registerCall">登记调用</el-button> 201 <el-button type="primary" @click="registerCall">登记调用</el-button>
200 </div> 202 </div>
201 <div class="sh-btn" v-if="$store.state.isWorkFlow && workitemInstanceFlag"> 203 <div class="sh-btn" v-if="$store.state.isWorkFlow && workitemInstanceFlag">
...@@ -204,6 +206,9 @@ ...@@ -204,6 +206,9 @@
204 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button> 206 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
205 <el-button type="primary" @click="shdz" v-if="workFlowState">审核</el-button> 207 <el-button type="primary" @click="shdz" v-if="workFlowState">审核</el-button>
206 </div> 208 </div>
209 <div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
210 <el-button type="primary" @click="onSubmitWithoutWorkflow" :disabled="disabled" >提交</el-button>
211 </div>
207 </div> 212 </div>
208 213
209 </template> 214 </template>
...@@ -606,6 +611,22 @@ ...@@ -606,6 +611,22 @@
606 // } 611 // }
607 // }) 612 // })
608 }, 613 },
614
615 onSubmitWithoutWorkflow(){
616 console.log(this.form)
617 let data={
618 glbsm:this.bsm,
619 status:1,
620 type:"dz"
621 }
622 submit(data).then((res)=>{
623 if(res.code===200){
624 this.$message.success("提交完成!");
625 this.getDzDetailByBsm(this.$route.query.bsm)
626 this.getTreeByBsm(this.$route.query.bsm,'dz','0,1,2')
627 }
628 })
629 },
609 getZddm(zdbsm){ 630 getZddm(zdbsm){
610 getQjZdjbxxDetailById(zdbsm).then((res)=>{ 631 getQjZdjbxxDetailById(zdbsm).then((res)=>{
611 if(res.code===200){ 632 if(res.code===200){
......
...@@ -366,6 +366,8 @@ ...@@ -366,6 +366,8 @@
366 <div class="header-button" :style="{width:mainBoxWidth+'px'}"> 366 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
367 <el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun" 367 <el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun"
368 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button> 368 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
369 <el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun"
370 v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
369 <el-button type="primary" @click="registerCall">登记调用</el-button> 371 <el-button type="primary" @click="registerCall">登记调用</el-button>
370 </div> 372 </div>
371 </div> 373 </div>
...@@ -375,6 +377,9 @@ ...@@ -375,6 +377,9 @@
375 <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button> 377 <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
376 <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button> 378 <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button>
377 </div> 379 </div>
380 <div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
381 <el-button type="primary" @click="submitZDxxWithoutWorkflow" :disabled="disabled">提交</el-button>
382 </div>
378 </div> 383 </div>
379 </template> 384 </template>
380 385
...@@ -900,6 +905,22 @@ ...@@ -900,6 +905,22 @@
900 // } 905 // }
901 // }) 906 // })
902 }, 907 },
908 //提交宗地基本信息
909 submitZDxxWithoutWorkflow() {
910 let data = {
911 glbsm: this.$store.state.zdbsm,
912 status: 1,
913 type: "zd"
914 }
915 submit(data).then((res) => {
916 if (res.code === 200) {
917 this.$message.success("提交成功!")
918 this.getZdjbxxData(this.curZdbsm);
919 this.$store.state.oldZdbsm = '';
920 this.getRightTree(this.curZdbsm,'0,1,2')
921 }
922 })
923 },
903 getQlrxxData() { 924 getQlrxxData() {
904 // console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据 925 // console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
905 // console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据 926 // console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据
......
...@@ -275,6 +275,8 @@ ...@@ -275,6 +275,8 @@
275 <div class="header-button" :style="{width:mainBoxWidth+'px'}"> 275 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
276 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun" 276 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun"
277 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button> 277 v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
278 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun"
279 v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
278 <el-button type="primary" @click="registerCall">登记调用</el-button> 280 <el-button type="primary" @click="registerCall">登记调用</el-button>
279 <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> --> 281 <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
280 </div> 282 </div>
...@@ -285,6 +287,9 @@ ...@@ -285,6 +287,9 @@
285 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button> 287 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
286 <el-button type="primary" @click="shzrz" v-if="workFlowState">审核</el-button> 288 <el-button type="primary" @click="shzrz" v-if="workFlowState">审核</el-button>
287 </div> 289 </div>
290 <div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
291 <el-button type="primary" @click="onSubmitWithoutWorkflow" :disabled="disabled" >提交</el-button>
292 </div>
288 </div> 293 </div>
289 </template> 294 </template>
290 295
...@@ -659,6 +664,23 @@ ...@@ -659,6 +664,23 @@
659 // } 664 // }
660 // }) 665 // })
661 }, 666 },
667 onSubmitWithoutWorkflow(){
668 let data={
669 glbsm:this.bsm,
670 status:1,
671 type:"zrz"
672 }
673 submit(data).then((res)=>{
674 if(res.code===200){
675 this.$message.success("提交完成!");
676 this.getZrzDetailByBsm(this.$route.query.bsm);
677 this.$store.state.oldZdbsm = '';
678 this.getTreeByBsm(this.$route.query.bsm,'zrz','0,1,2')
679 }else{
680 this.$message.error(res.message);
681 }
682 })
683 },
662 shzrz(){ 684 shzrz(){
663 let data = { 685 let data = {
664 bdcdyh:this.form.bdcdyh, 686 bdcdyh:this.form.bdcdyh,
......