16496a0d by 杨威

宗地提交和审核权限判断

1 parent e5bc0fa8
...@@ -365,13 +365,13 @@ ...@@ -365,13 +365,13 @@
365 </table> 365 </table>
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">保存</el-button> 367 <el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun">保存</el-button>
368 <el-button type="primary" @click="submitZDxx" :disabled="disabled">提交</el-button>
369 <el-button type="primary" @click="registerCall">登记调用</el-button> 368 <el-button type="primary" @click="registerCall">登记调用</el-button>
370 </div> 369 </div>
371 </div> 370 </div>
372 <div class="sh-btn"> 371 <div class="sh-btn">
373 <el-button type="primary" @click="thzd">退回</el-button> 372 <el-button type="primary" @click="thzd">退回</el-button>
374 <el-button type="primary" @click="shzd">审核</el-button> 373 <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
374 <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button>
375 </div> 375 </div>
376 </div> 376 </div>
377 </template> 377 </template>
...@@ -395,7 +395,7 @@ ...@@ -395,7 +395,7 @@
395 updateQjZdjbxx, 395 updateQjZdjbxx,
396 } from "@api/zd"; 396 } from "@api/zd";
397 import { Message } from 'element-ui'; 397 import { Message } from 'element-ui';
398 398 import { getActivityDetail } from "@api/user";
399 export default { 399 export default {
400 inject: ['getRightTree'], 400 inject: ['getRightTree'],
401 name: "", 401 name: "",
...@@ -482,6 +482,7 @@ ...@@ -482,6 +482,7 @@
482 DJZQDM: "", 482 DJZQDM: "",
483 SYQLXID: "", 483 SYQLXID: "",
484 }, 484 },
485 workFlowState:false,
485 }; 486 };
486 }, 487 },
487 mixins: [geoUtils], 488 mixins: [geoUtils],
...@@ -490,11 +491,24 @@ ...@@ -490,11 +491,24 @@
490 }, 491 },
491 mounted() { 492 mounted() {
492 this.getZdjbxxData(this.$store.state.zdbsm); 493 this.getZdjbxxData(this.$store.state.zdbsm);
494 this.getActivityDetail();
493 this.$nextTick(() => { 495 this.$nextTick(() => {
494 this.mainBoxWidth = this.$refs.mainBox.clientWidth; 496 this.mainBoxWidth = this.$refs.mainBox.clientWidth;
495 }) 497 })
496 }, 498 },
497 methods: { 499 methods: {
500 getActivityDetail(){
501 let params = {
502 "params": {},
503 "workflowPeriod": "current",
504 "workitemInstanceId": this.$route.query.workitemInstanceId
505 }
506 getActivityDetail(params).then(res => {
507 this.workFlowState = res.workitemInstance.apps.some(function(item) {
508 return item == 'shenpibiao';
509 });
510 })
511 },
498 registerCall() { 512 registerCall() {
499 let data = { 513 let data = {
500 type: 'zd', 514 type: 'zd',
...@@ -856,20 +870,20 @@ ...@@ -856,20 +870,20 @@
856 }, 870 },
857 //提交宗地基本信息 871 //提交宗地基本信息
858 submitZDxx() { 872 submitZDxx() {
859 // vm.setTjDialog(true); 873 vm.setTjDialog(true);
860 let data = { 874 // let data = {
861 glbsm: this.$store.state.zdbsm, 875 // glbsm: this.$store.state.zdbsm,
862 status: 1, 876 // status: 1,
863 type: "zd" 877 // type: "zd"
864 } 878 // }
865 submit(data).then((res) => { 879 // submit(data).then((res) => {
866 if (res.code === 200) { 880 // if (res.code === 200) {
867 this.$message.success("提交成功!") 881 // this.$message.success("提交成功!")
868 this.getZdjbxxData(this.curZdbsm); 882 // this.getZdjbxxData(this.curZdbsm);
869 this.$store.state.oldZdbsm = ''; 883 // this.$store.state.oldZdbsm = '';
870 this.getRightTree(this.curZdbsm,'0,1,2') 884 // this.getRightTree(this.curZdbsm,'0,1,2')
871 } 885 // }
872 }) 886 // })
873 }, 887 },
874 getQlrxxData() { 888 getQlrxxData() {
875 // console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据 889 // console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
......