| | |
| | | <!-- 查看审核记录 --> |
| | | <el-dialog title="报备审核记录" :visible.sync="recordOpen" :close-on-click-modal="false" width="900px"> |
| | | <div slot="footer" class="dialog-footer" style="max-height: 500px;overflow-y: auto;"> |
| | | <el-timeline v-for="record in auditingRecordList" :key="record.id"> |
| | | <el-timeline-item :timestamp="record.auditingTime" placement="top"> |
| | | <el-card> |
| | | <el-descriptions title="提交数据" :column="3" border> |
| | | <el-descriptions-item label="点位" label-class-name="my-label" content-class-name="my-content">{{ |
| | | record.pointName }}</el-descriptions-item> |
| | | <el-descriptions-item label="报备类型">{{ record.reportType }}</el-descriptions-item> |
| | | <el-descriptions-item label="审核结果"><el-tag :type="record.result ? 'success' : 'danger'">{{ record.result ? "通过" : "未通过" }}</el-tag></el-descriptions-item> |
| | | <el-descriptions-item label="审核意见">{{ record.resultRemark ? record.resultRemark : "无" }}</el-descriptions-item> |
| | | <el-descriptions-item label="报备内容"> |
| | | <div class="content" v-html="getHtmlContent(record.reportContent)"></div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="报备材料"> |
| | | <el-link |
| | | v-for="item in record.reportMaterials != null ? record.reportMaterials.split(',') : record.reportMaterials" |
| | | :underline="false" type="primary" :key="item" @click="handleDownload(item)"> |
| | | {{ item.substring(item.lastIndexOf("/") + 1) }} |
| | | </el-link> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | <div v-if="auditingRecordList && auditingRecordList.length > 0"> |
| | | <el-timeline v-for="record in auditingRecordList" :key="record.id"> |
| | | <el-timeline-item :timestamp="record.auditingTime" placement="top"> |
| | | <el-card> |
| | | <el-descriptions title="提交数据" :column="3" border> |
| | | <el-descriptions-item label="点位" label-class-name="my-label" content-class-name="my-content">{{ |
| | | record.pointName }}</el-descriptions-item> |
| | | <el-descriptions-item label="报备类型">{{ record.reportType }}</el-descriptions-item> |
| | | <el-descriptions-item label="审核结果"><el-tag :type="record.result ? 'success' : 'danger'">{{ record.result ? "通过" : "未通过" }}</el-tag></el-descriptions-item> |
| | | <el-descriptions-item label="审核意见">{{ record.resultRemark ? record.resultRemark : "无" }}</el-descriptions-item> |
| | | <el-descriptions-item label="报备内容"> |
| | | <div class="content" v-html="getHtmlContent(record.reportContent)"></div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="报备材料"> |
| | | <el-link |
| | | v-for="item in record.reportMaterials != null ? record.reportMaterials.split(',') : record.reportMaterials" |
| | | :underline="false" type="primary" :key="item" @click="handleDownload(item)"> |
| | | {{ item.substring(item.lastIndexOf("/") + 1) }} |
| | | </el-link> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | <div v-else> |
| | | <el-empty description="无审核记录"></el-empty> |
| | | </div> |
| | | |
| | | <el-button type="primary" @click="recordOpen = false">关闭</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 审核报备 --> |
| | | <el-dialog title="报备审核" :visible.sync="auditingOpen" :close-on-click-modal="false" width="800px" append-to-body> |
| | | <el-dialog title="报备审核" :visible.sync="auditingOpen" :close-on-click-modal="false" width="1100px" append-to-body> |
| | | <div style="display: flex;flex-direction: row"> |
| | | <div style="flex: 6; border-right: 1px solid #d2d1d1; padding-right: 20px"> |
| | | <el-form ref="form" :model="auditingForm" :rules="auditingRules" label-width="80px"> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div style="flex: 6; border-right: 1px solid #d2d1d1; padding-right: 20px"> |
| | | <div>批量审核同一批次号的报备</div> |
| | | <div> |
| | | <el-checkbox-group v-model="selectedTo"> |
| | | <div style="flex: 5; border-right: 1px solid #d2d1d1; padding-right: 20px; padding-left: 20px"> |
| | | <div>同一批次号的报备</div> |
| | | <div style="margin-top: 20px"> |
| | | <el-checkbox-group v-if="togetherList && togetherList.length > 0" v-model="selectedTo"> |
| | | <el-checkbox v-for="item in togetherList" :label="item.id">{{item.pointName}}</el-checkbox> |
| | | </el-checkbox-group> |
| | | <span v-else>无</span> |
| | | </div> |
| | | </div> |
| | | <div style="flex: 5; padding-left: 20px"> |
| | |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="auditingCancel">取 消</el-button> |
| | | <el-button type="primary" @click="auditingSubmit">确 定</el-button> |
| | | <el-button type="primary" @click="auditingSubmit">审 核</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | this.togetherList = res.data; |
| | | if (this.togetherList && this.togetherList.length > 0) { |
| | | this.togetherList = this.togetherList.filter(item => item.id != row.id) |
| | | this.selectedTo = this.togetherList.map(item => item.pointId) |
| | | this.selectedTo = this.togetherList.map(item => item.id) |
| | | } |
| | | }) |
| | | } |
| | |
| | | /** 查询报备列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | if (this.form.daterangeCreateTime && this.form.daterangeCreateTime.length > 0) { |
| | | this.queryParams["beginCreateTime"] = this.form.daterangeCreateTime[0]; |
| | | this.queryParams["endCreateTime"] = this.form.daterangeCreateTime[1]; |
| | | } else { |
| | | this.queryParams["beginCreateTime"] = null; |
| | | this.queryParams["endCreateTime"] = null; |
| | | } |
| | | // if (this.form.daterangeCreateTime && this.form.daterangeCreateTime.length > 0) { |
| | | // this.queryParams["beginCreateTime"] = this.form.daterangeCreateTime[0]; |
| | | // this.queryParams["endCreateTime"] = this.form.daterangeCreateTime[1]; |
| | | // } else { |
| | | // this.queryParams["beginCreateTime"] = null; |
| | | // this.queryParams["endCreateTime"] = null; |
| | | // } |
| | | listReport(this.queryParams).then(response => { |
| | | this.reportList = response.data.records; |
| | | this.total = response.total; |
| | |
| | | /** 审核按钮操作 */ |
| | | auditingSubmit() { |
| | | this.auditingForm.auditingTime = new Date(); |
| | | let data = { |
| | | id: this.auditingForm.id, |
| | | togetherList: this.selectedTo |
| | | auditOpinion: this.auditingForm.auditOpinion, |
| | | auditingResult: this.auditingForm.auditingResult |
| | | } |
| | | this.auditingForm.togetherList = this.selectedTo |
| | | audit(this.auditingForm).then(response => { |
| | | this.$modal.msgSuccess("审核成功"); |
| | | this.auditingOpen = false |
| | | this.getList(); |
| | | this.auditingForm = {} |
| | | this.auditingForm = { |
| | | id: null, |
| | | unitName: "", |
| | | pointName: "", |
| | | peopleName: "", |
| | | errorTypeList: [], |
| | | reportContent: "", |
| | | auditing: "", |
| | | auditOpinion: "", |
| | | reportType: "", |
| | | beginCreateTime: null, |
| | | endCreateTime: null, |
| | | auditingResult: false, |
| | | daterangeCreateTime: [] |
| | | } |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |