16496a0d by 杨威

宗地提交和审核权限判断

1 parent e5bc0fa8
......@@ -365,13 +365,13 @@
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun">保存</el-button>
<el-button type="primary" @click="submitZDxx" :disabled="disabled">提交</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
</div>
<div class="sh-btn">
<el-button type="primary" @click="thzd">退回</el-button>
<el-button type="primary" @click="shzd">审核</el-button>
<el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
<el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button>
</div>
</div>
</template>
......@@ -395,7 +395,7 @@
updateQjZdjbxx,
} from "@api/zd";
import { Message } from 'element-ui';
import { getActivityDetail } from "@api/user";
export default {
inject: ['getRightTree'],
name: "",
......@@ -482,6 +482,7 @@
DJZQDM: "",
SYQLXID: "",
},
workFlowState:false,
};
},
mixins: [geoUtils],
......@@ -490,11 +491,24 @@
},
mounted() {
this.getZdjbxxData(this.$store.state.zdbsm);
this.getActivityDetail();
this.$nextTick(() => {
this.mainBoxWidth = this.$refs.mainBox.clientWidth;
})
},
methods: {
getActivityDetail(){
let params = {
"params": {},
"workflowPeriod": "current",
"workitemInstanceId": this.$route.query.workitemInstanceId
}
getActivityDetail(params).then(res => {
this.workFlowState = res.workitemInstance.apps.some(function(item) {
return item == 'shenpibiao';
});
})
},
registerCall() {
let data = {
type: 'zd',
......@@ -856,20 +870,20 @@
},
//提交宗地基本信息
submitZDxx() {
// vm.setTjDialog(true);
let data = {
glbsm: this.$store.state.zdbsm,
status: 1,
type: "zd"
}
submit(data).then((res) => {
if (res.code === 200) {
this.$message.success("提交成功!")
this.getZdjbxxData(this.curZdbsm);
this.$store.state.oldZdbsm = '';
this.getRightTree(this.curZdbsm,'0,1,2')
}
})
vm.setTjDialog(true);
// let data = {
// glbsm: this.$store.state.zdbsm,
// status: 1,
// type: "zd"
// }
// submit(data).then((res) => {
// if (res.code === 200) {
// this.$message.success("提交成功!")
// this.getZdjbxxData(this.curZdbsm);
// this.$store.state.oldZdbsm = '';
// this.getRightTree(this.curZdbsm,'0,1,2')
// }
// })
},
getQlrxxData() {
// console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
......