|
@@ -82,6 +82,14 @@
|
|
|
>
|
|
|
新建命题申请
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'ExamTaskApplyManage')"
|
|
|
+ icon="el-icon-circle-plus-outline"
|
|
|
+ type="primary"
|
|
|
+ @click="toAddExamAndPrintTask"
|
|
|
+ >
|
|
|
+ 新建任务
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -157,6 +165,16 @@
|
|
|
@click="toCancel(scope.row)"
|
|
|
>撤销申请</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ scope.row.approveFormStatus &&
|
|
|
+ checkPrivilege('link', 'SelectForm')
|
|
|
+ "
|
|
|
+ class="btn-primary"
|
|
|
+ type="text"
|
|
|
+ @click="toDownloadForm(scope.row)"
|
|
|
+ >下载审批表</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -186,12 +204,24 @@
|
|
|
ref="CreateTaskApply"
|
|
|
@modified="taskModified"
|
|
|
></create-task-apply>
|
|
|
+ <!-- CreateExamAndPrintTask -->
|
|
|
+ <create-exam-and-print-task
|
|
|
+ ref="CreateExamAndPrintTask"
|
|
|
+ @modified="taskModified"
|
|
|
+ ></create-exam-and-print-task>
|
|
|
+ <!-- PaperApproveTable -->
|
|
|
+ <paper-approve-table
|
|
|
+ :instance="curExamTask"
|
|
|
+ ref="PaperApproveTable"
|
|
|
+ ></paper-approve-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import ModifyTaskApply from "../components/ModifyTaskApply";
|
|
|
-import CreateTaskApply from "../components/createExamAndPrintTask/CreateTaskApply";
|
|
|
+import CreateExamAndPrintTask from "../components/createExamAndPrintTask/CreateExamAndPrintTask";
|
|
|
+import CreateTaskApply from "../components/CreateTaskApply";
|
|
|
+import PaperApproveTable from "../components/PaperApproveTable";
|
|
|
import { AUDITING_STATUS } from "@/constants/enumerate";
|
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
|
import { taskApplyListPage, cancelOrRestartTaskApply } from "../api";
|
|
@@ -201,7 +231,9 @@ export default {
|
|
|
name: "task-apply-manage",
|
|
|
components: {
|
|
|
ModifyTaskApply,
|
|
|
- CreateTaskApply
|
|
|
+ CreateExamAndPrintTask,
|
|
|
+ CreateTaskApply,
|
|
|
+ PaperApproveTable
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -306,6 +338,13 @@ export default {
|
|
|
},
|
|
|
toAddApply() {
|
|
|
this.$refs.CreateTaskApply.open();
|
|
|
+ },
|
|
|
+ toAddExamAndPrintTask() {
|
|
|
+ this.$refs.CreateExamAndPrintTask.open();
|
|
|
+ },
|
|
|
+ toDownloadForm(row) {
|
|
|
+ this.curExamTask = row;
|
|
|
+ this.$refs.PaperApproveTable.open();
|
|
|
}
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|