| | |
| | | <el-form-item label="运维人员" prop="ywPeopleName"> |
| | | <el-input v-model="auditingForm.ywPeopleName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="现场情况"> |
| | | <el-form-item label="现场情况" v-if="auditingForm.condition"> |
| | | <el-input type="textarea" v-html="auditingForm.condition" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="佐证材料"> |
| | | <el-form-item label="佐证材料" v-if="auditingForm.proofMaterials"> |
| | | <el-link v-for="item in auditingForm.proofMaterials != null ? auditingForm.proofMaterials.split(',') : auditingForm.proofMaterials" :underline="false" :key="item" @click="handleDownload(item)">{{ item.substring(item.lastIndexOf("/") + 1) }}</el-link> |
| | | </el-form-item> |
| | | <el-form-item label="审核结果" prop="auditingResult"> |
| | | <el-radio v-model="auditingForm.auditingResult" label="pass">通过</el-radio> |
| | | <el-radio v-model="auditingForm.auditingResult" label="return">驳回</el-radio> |
| | | <el-radio v-model="auditingForm.auditingResult" label="AUDITING_SUCCESS">通过</el-radio> |
| | | <el-radio v-model="auditingForm.auditingResult" label="AUDITING_FAIL">驳回</el-radio> |
| | | </el-form-item> |
| | | <el-form-item label="审核备注" prop="auditingRemark"> |
| | | <el-input v-model="auditingForm.auditingRemark" type="textarea" maxlength="30" show-word-limit/> |
| | |
| | | </el-dialog> |
| | | |
| | | <el-dialog title="运维情况记录" :visible.sync="ywConditionOpen" width="500px" append-to-body> |
| | | <el-form ref="ywConditionForm" :model="ywConditionForm" :rules="ywConditionRules" label-width="80px"> |
| | | <el-form ref="form" :model="form" :rules="ywConditionRules" label-width="80px"> |
| | | <el-form-item label="工单号" prop="workOrderNo"> |
| | | <el-input v-model="ywConditionForm.workOrderNo" disabled /> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="ywConditionForm.unitName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="运维人员" prop="ywPeopleName"> |
| | | <el-input v-model="ywConditionForm.ywPeopleName" /> |
| | | <el-input v-model="ywConditionForm.ywPeopleName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="现场情况" prop="reportContent"> |
| | | <editor v-model="form.condition" :min-height="192"/> |
| | | <el-form-item label="现场情况" prop="ywCondition"> |
| | | <editor v-model="form.ywCondition" :min-height="192"/> |
| | | </el-form-item> |
| | | <el-form-item label="佐证材料" prop="reportMaterials"> |
| | | <file-upload v-model="form.proofMaterials"/> |
| | | <el-form-item label="佐证材料" prop="ywProofMaterials"> |
| | | <file-upload v-model="form.ywProofMaterials"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | } |
| | | </style> |
| | | <script> |
| | | import { listWorkOrder, getWorkOrder, delWorkOrder, addWorkOrder, updateWorkOrder,auditing, ywCondition } from "@/api/platform/work-order"; |
| | | import { listWorkOrder, getWorkOrder, delWorkOrder, addWorkOrder, updateWorkOrder,auditing, ywCondition, getYwCondition } from "@/api/platform/work-order"; |
| | | export default { |
| | | name: "Work-order", |
| | | components: { |
| | |
| | | // 审核按钮 |
| | | handleAuditing(row) { |
| | | this.auditingForm = row; |
| | | this.auditingForm.condition = '设备异常遮挡,现场修复完成' |
| | | this.auditingForm.proofMaterials = '30路由配置_20240411101816A008.png' |
| | | this.auditingOpen = true; |
| | | getYwCondition(row.id).then(response => { |
| | | if (response.data) { |
| | | this.auditingForm.condition = response.data.ywCondition; |
| | | this.auditingForm.proofMaterials = response.data.ywProofMaterials; |
| | | } |
| | | this.auditingOpen = true; |
| | | }); |
| | | }, |
| | | // 运维情况按钮 |
| | | handleYwCondition(row) { |
| | | this.form = {}; |
| | | this.ywConditionForm = row; |
| | | this.ywConditionOpen = true; |
| | | this.form.id = row.id; |
| | | }, |
| | | // 运维结果按钮 |
| | | handleYwResult(row) { |
| | |
| | | }, |
| | | // 提交运维情况 |
| | | submitYwCondition() { |
| | | this.$refs["ywConditionForm"].validate(valid => { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | ywCondition(this.ywConditionForm).then(res => { |
| | | ywCondition(this.form).then(res => { |
| | | this.ywConditionOpen = false; |
| | | this.$modal.msgSuccess("操作成功"); |
| | | }) |
| | |
| | | getList() { |
| | | this.loading = true; |
| | | this.queryParams.params = {}; |
| | | if (null != this.daterangeYwHandleTime && '' != this.daterangeYwHandleTime) { |
| | | this.queryParams["start"] = this.daterangeYwHandleTime[0]; |
| | | this.queryParams["end"] = this.daterangeYwHandleTime[1]; |
| | | } |
| | | this.queryParams["start"] = this.daterangeYwHandleTime[0]; |
| | | this.queryParams["end"] = this.daterangeYwHandleTime[1]; |
| | | listWorkOrder(this.queryParams).then(response => { |
| | | this.workOrderList = response.data; |
| | | this.total = response.total; |