|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="app-container" v-loading="loading">
|
|
|
+ <div class="app-container" v-loading="loading">
|
|
|
<el-tabs stretch v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="加计年度企业基本信息" name="1">
|
|
|
<year-edit :type="type" :info.sync="form"></year-edit>
|
|
@@ -10,7 +10,11 @@
|
|
|
<el-tab-pane label="上传文件" name="3" :disabled="encDisabled">
|
|
|
<enclosure-edit :type="type"></enclosure-edit>
|
|
|
</el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ </el-tabs>
|
|
|
+ <div class="oper" v-if="oper == 'audit'">
|
|
|
+ <el-button @click="handleAudit('4')">通过审核</el-button>
|
|
|
+ <el-button @click="handleAudit('1')">驳回</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -19,7 +23,7 @@ import YearEdit from "./components/year-edit.vue"
|
|
|
import EntEdit from "./components/ent-edit.vue"
|
|
|
import EnclosureEdit from "./components/enclosure-edit.vue"
|
|
|
import { devProjectApi } from "@/api/enterprise/project/project"
|
|
|
-
|
|
|
+import {submitDeclareApi} from "@/api/enterprise/declare/declare"
|
|
|
export default {
|
|
|
name: "projectEdit",
|
|
|
computed: {
|
|
@@ -34,6 +38,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ oper: this.$route.query.oper || "",
|
|
|
activeName: "1",
|
|
|
loading: false,
|
|
|
id: undefined,
|
|
@@ -72,6 +77,22 @@ export default {
|
|
|
this.form = res.data || {}
|
|
|
})
|
|
|
},
|
|
|
+ handleAudit(type) {
|
|
|
+ let _self = this
|
|
|
+ this.$confirm('是否确认提交审核该数据?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return submitDeclareApi(_self.id,type);
|
|
|
+ }).then(() => {
|
|
|
+ _self.$message({
|
|
|
+ message: '提交成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ _self.$router.go(-1)
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|