|
@@ -1,6 +1,16 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
|
|
+ <el-form-item label="涉及审计" prop="auditId">
|
|
|
+ <el-select clearable v-model="queryParams.auditId" placeholder="请选择涉及审计" filterable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in auditOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="年份" prop="year">
|
|
|
<el-date-picker clearable
|
|
|
v-model="queryParams.year"
|
|
@@ -9,14 +19,6 @@
|
|
|
placeholder="请选择年份">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <!--<el-form-item label="涉及code" prop="questionnaireId">-->
|
|
|
- <!--<el-input-->
|
|
|
- <!--v-model="queryParams.questionnaireId"-->
|
|
|
- <!--placeholder="请输入涉及code"-->
|
|
|
- <!--clearable-->
|
|
|
- <!--@keyup.enter.native="handleQuery"-->
|
|
|
- <!--/>-->
|
|
|
- <!--</el-form-item>-->
|
|
|
<el-form-item label="负责人" prop="personInCharge">
|
|
|
<el-select clearable v-model="queryParams.personInCharge" placeholder="请选择负责人"
|
|
|
@keyup.enter.native="handleQuery">
|
|
@@ -92,13 +94,20 @@
|
|
|
|
|
|
<el-table border v-loading="loading" :data="meetingList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="涉及审计" align="center" prop="auditName" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>
|
|
|
+ {{scope.row.deptName}}<br/>
|
|
|
+ ({{ parseTime(scope.row.auditTime, '{yy}-{mm}-{dd}') }})
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="装置" align="center" prop="deptName" width="120" />
|
|
|
<el-table-column label="年份" align="center" prop="year" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.year, '{y}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!--<el-table-column label="涉及code" align="center" prop="questionnaireId" width="100" />-->
|
|
|
<el-table-column label="章节" align="center" prop="chapName" width="250"/>
|
|
|
<el-table-column label="目录" align="center" prop="directory" width="100" />
|
|
|
<el-table-column label="涉及CODE" align="center" prop="code" width="100" />
|
|
@@ -169,9 +178,16 @@
|
|
|
placeholder="请选择年份">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <!--<el-form-item label="涉及code" prop="questionnaireId">-->
|
|
|
- <!--<el-input v-model="form.questionnaireId" placeholder="请输入涉及code" />-->
|
|
|
- <!--</el-form-item>-->
|
|
|
+ <el-form-item label="涉及审计" prop="auditId" v-if="!form.id">
|
|
|
+ <el-select clearable v-model="form.auditId" placeholder="请选择涉及审计" filterable @change="handleAuditChange">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in auditOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="涉及章节" prop="chapterId" v-if="!form.id">
|
|
|
<el-select clearable v-model="form.chapterId" placeholder="请选择涉及章节" filterable @change="handleChapterChange">
|
|
|
<el-option
|
|
@@ -374,6 +390,7 @@
|
|
|
<script>
|
|
|
import { listMeeting, getMeeting, delMeeting, addMeeting, updateMeeting, listChapter, listCode } from "@/api/rc/meeting";
|
|
|
import { listDept } from "@/api/system/dept";
|
|
|
+import { listAllAudit } from "@/api/rc/audit";
|
|
|
import { listAllUser } from "@/api/system/user";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { addCommonfile, allFileList, delCommonfile, updateCommonfile } from "@/api/rc/commonfile";
|
|
@@ -426,6 +443,8 @@ export default {
|
|
|
deptOptions: [],
|
|
|
// 用户列表
|
|
|
userOptions: [],
|
|
|
+ // 审计列表
|
|
|
+ auditOptions: [],
|
|
|
chapterOptions: [],
|
|
|
questionnaireOptions: [],
|
|
|
// 附件参数
|
|
@@ -454,13 +473,22 @@ export default {
|
|
|
pId: null,
|
|
|
form: {}
|
|
|
},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ chapterId: [{required: true, message: "涉及章节不可为空", trigger: "blur"}],
|
|
|
+ questionnaireId: [{required: true, message: "涉及CODE不可为空", trigger: "blur"}],
|
|
|
+ deptId: [{required: true, message: "装置不可为空", trigger: "blur"}],
|
|
|
+ auditId: [{required: true, message: "涉及审计不可为空", trigger: "blur"}],
|
|
|
+ year: [{required: true, message: "年份不可为空", trigger: "blur"}],
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
this.getDeptList();
|
|
|
this.getUserList();
|
|
|
- this.getChapterList();
|
|
|
+ this.getAuditList();
|
|
|
+ // this.getChapterList();
|
|
|
},
|
|
|
methods: {
|
|
|
/** 开项按钮操作 */
|
|
@@ -510,14 +538,25 @@ export default {
|
|
|
};
|
|
|
this.resetForm("openitemForm");
|
|
|
},
|
|
|
+ handleAuditChange() {
|
|
|
+ this.chapterOptions = [];
|
|
|
+ this.form.chapterId = null;
|
|
|
+ this.form.questionnaireId = null;
|
|
|
+ listChapter(this.form.auditId).then(response => {
|
|
|
+ let data = response.data;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ this.chapterOptions.push({"dictLabel": data[i].code + " - " + data[i].name, "dictValue": data[i].id});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
handleChapterChange() {
|
|
|
+ this.questionnaireOptions = [];
|
|
|
+ this.form.questionnaireId = null;
|
|
|
listCode(this.form.chapterId).then(response => {
|
|
|
let data = response.data;
|
|
|
- this.questionnaireOptions = [];
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
this.questionnaireOptions.push({"dictLabel": data[i].directory + " - " + data[i].code, "dictValue": data[i].id});
|
|
|
}
|
|
|
- console.log(this.questionnaireOptions)
|
|
|
});
|
|
|
},
|
|
|
/** 附件按钮操作 */
|
|
@@ -595,6 +634,18 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /** 查询审计列表 */
|
|
|
+ getAuditList() {
|
|
|
+ listAllAudit().then(response => {
|
|
|
+ let data = response.data;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ this.auditOptions.push({
|
|
|
+ "dictLabel": data[i].deptName + "(" + data[i].auditTime + ")",
|
|
|
+ "dictValue": data[i].id
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 查询会议列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
@@ -606,6 +657,7 @@ export default {
|
|
|
},
|
|
|
/** 查询章节列表 */
|
|
|
getChapterList() {
|
|
|
+ this.chapterOptions = [];
|
|
|
listChapter().then(response => {
|
|
|
let data = response.data;
|
|
|
for (let i = 0; i < data.length; i++) {
|