| | |
| | | <el-button icon="el-icon-detail" :size="size" :type="type" @click.stop="getDetail(row)"> |
| | | 详情 |
| | | </el-button> |
| | | <el-button icon="el-icon-detail" :size="size" :type="type" @click.stop="goAudit(row)" |
| | | <el-button icon="el-icon-s-check" :size="size" :type="type" @click.stop="goAudit(row)" |
| | | :disabled="row.status != 1">审核</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-drawer title="整改情况详情" :visible.sync="isDetail" :append-to-body="true" size="46%" direction="rtl"> |
| | | <el-drawer title="整改情况详情" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl"> |
| | | <div class="title"> |
| | | <div class="icon">{{ refreshNum }}</div> |
| | | 基础信息 |
| | |
| | | <!-- 审核弹窗 --> |
| | | <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%" |
| | | custom-class="flow-design-dialog" :before-close="handleClose"> |
| | | <el-form ref="auditForm" :model="auditForm" :rules="auditRules"> |
| | | <el-form-item label="审核结论:" prop="status"> |
| | | <el-radio-group v-model="auditForm.status"> |
| | | <el-radio :label="2">通过</el-radio> |
| | | <el-radio :label="3">不通过</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="不通过原因:" prop="reasonFailure" v-if="auditForm.status == 3"> |
| | | <el-input type="textarea" v-model="auditForm.reasonFailure"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="display:flex;justify-content:center"> |
| | | <el-button @click="submitAudit" size="small" type="primary">保 存</el-button> |
| | | <el-button @click="cancelAudit" size="small">取 消</el-button> |
| | | </div> |
| | | <audit-base @handleSubmit="submitAudit"></audit-base> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | |
| | | status: [{ required: true, message: "必填" }], |
| | | reasonFailure: [{ required: true, message: "必填" }], |
| | | }, |
| | | auditForm: {}, |
| | | visible: false, |
| | | typeStatus: 1, |
| | | isDetail: false, |
| | |
| | | // 取消审核 |
| | | cancelAudit () { |
| | | this.visible = false |
| | | this.auditForm = {} |
| | | this.$refs.auditForm.resetFields() |
| | | }, |
| | | |
| | | // 确认提交审核 |
| | | submitAudit () { |
| | | this.$refs.auditForm.validate((valid) => { |
| | | if (valid) { |
| | | applyRectification(Object.assign(this.auditParams, this.auditForm)).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.warning("审核成功") |
| | | this.onLoad(this.page) |
| | | this.cancelAudit() |
| | | } |
| | | }) |
| | | } else { |
| | | return false |
| | | submitAudit (form) { |
| | | let auditForm = { |
| | | status: form.status == '1' ? '2' : '3', |
| | | reasonFailure: form.confirmNotion, |
| | | } |
| | | |
| | | applyRectification(Object.assign(this.auditParams, auditForm)).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.warning("审核成功") |
| | | this.onLoad(this.page) |
| | | this.cancelAudit() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | background-color: #409EFF; |
| | | } |
| | | |
| | | :deep(.el-radio) { |
| | | margin-right: 20px; |
| | | } |
| | | |
| | | .title { |
| | | margin: 10px; |
| | | height: 40px; |
| | |
| | | |
| | | .basic-info { |
| | | padding: 0 20px; |
| | | font-size: 14px; |
| | | |
| | | .info-item { |
| | | display: flex; |
| | |
| | | |
| | | .question-list { |
| | | padding: 0 20px; |
| | | font-size: 14px; |
| | | |
| | | .question-type { |
| | | height: 60px; |
| | |
| | | |
| | | .key { |
| | | width: 80%; |
| | | padding-right: 20px; |
| | | word-break: break-all; |
| | | } |
| | | |