| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="primary"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-plus"--> |
| | | <!-- size="mini"--> |
| | | <!-- @click="handleAdd"--> |
| | | <!-- v-hasPermi="['x:work-order:add']"--> |
| | | <!-- >新增</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button--> |
| | | <!-- type="success"--> |
| | | <!-- plain--> |
| | | <!-- icon="el-icon-edit"--> |
| | | <!-- size="mini"--> |
| | | <!-- :disabled="single"--> |
| | | <!-- @click="handleUpdate"--> |
| | | <!-- v-hasPermi="['x:work-order:edit']"--> |
| | | <!-- >修改</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | >删除</el-button> |
| | | <el-row> |
| | | <el-col :span="8" v-for="item in workOrderList" :key="item" style="margin: 10px;width: 20%;"> |
| | | <el-card :body-style="{ padding: '0px' }"> |
| | | <img src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image"> |
| | | <div style="padding: 14px;"> |
| | | <span>{{ item.unitName }}</span> |
| | | <span class="time">{{ item.ywPeopleName }}</span> |
| | | <div class="bottom clearfix"> |
| | | <span style="font-size: 13px;">处理时间</span> |
| | | <time class="time">{{ item.ywHandleTime }}</time> |
| | | </div> |
| | | <div class="bottom clearfix"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleAuditing(item)" |
| | | v-hasPermi="['work:order:audit']" |
| | | >审核</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleYwCondition(item)" |
| | | >运维情况</el-button> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="text"--> |
| | | <!-- @click="handleYwResult(scope.row)"--> |
| | | <!-- >运维结果</el-button>--> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleCheckResult(item)" |
| | | v-hasPermi="['work:order:result']" |
| | | >检测结果</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleFlow(item)" |
| | | >过程图</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleReport(item)" |
| | | >事后报备</el-button> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['x:work-order:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="workOrderList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="工单号" align="center" prop="workOrderNo" width="170"/> |
| | | <el-table-column label="工单来源" align="center" prop="source" width="170"/> |
| | | <el-table-column label="是否报备" align="center" width="170"> |
| | | <template slot-scope="scope"> |
| | | <el-tag>已报备(事前)</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="故障类型" align="center" prop="errorType" width="170"/> |
| | | <el-table-column label="运维单位" align="center" prop="unitName" width="150"/> |
| | | <el-table-column label="运维人员" align="center" prop="ywPeopleName" /> |
| | | <el-table-column label="运维处理时间" align="center" prop="ywHandleTime" width="180"/> |
| | | <el-table-column label="处理结束时间" align="center" prop="ywHandleTime" width="180"/> |
| | | <el-table-column label="运维结果" align="center" prop="ywResult" /> |
| | | <el-table-column label="运维情况" align="center" prop="ywCondition" width="150"/> |
| | | <el-table-column label="运维检测结果" align="center" prop="ywCheckResult" width="200"/> |
| | | <el-table-column label="审核通过时间" align="center" prop="ywHandleTime" width="200"/> |
| | | <el-table-column label="创建时间" align="center" prop="createTime" width="180"/> |
| | | |
| | | <el-table-column label="操作" fixed="right" width="150" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleAuditing(scope.row)" |
| | | v-hasPermi="['work:order:audit']" |
| | | >审核</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleYwCondition(scope.row)" |
| | | >运维情况</el-button> |
| | | <!-- <el-button--> |
| | | <!-- size="mini"--> |
| | | <!-- type="text"--> |
| | | <!-- @click="handleYwResult(scope.row)"--> |
| | | <!-- >运维结果</el-button>--> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleCheckResult(scope.row)" |
| | | v-hasPermi="['work:order:result']" |
| | | >检测结果</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleFlow(scope.row)" |
| | | >过程图</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleReport(scope.row)" |
| | | >事后报备</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog title="运维检测结果" :visible.sync="checkResultOpen" width="500px" append-to-body> |
| | | <el-dialog title="运维检测结果" :visible.sync="checkResultOpen" width="550px" append-to-body> |
| | | <el-form ref="ywResultForm" :model="checkResultForm" :rules="checkResultRules" label-width="120px"> |
| | | <el-form-item label="工单号" prop="workOrderNo"> |
| | | <el-input v-model="checkResultForm.workOrderNo" disabled /> |
| | |
| | | <el-input v-model="checkResultForm.ywPeopleName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="运维检测结果" prop="ywCheckResult"> |
| | | <el-input v-model="checkResultForm.ywCheckResult" type="textarea" maxlength="150" show-word-limit/> |
| | | <file-upload v-model="checkResultForm.ywCheckResult"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 添加或修改运维工单对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-dialog :title="title" :visible.sync="open" width="550px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="工单号" prop="workOrderNo"> |
| | | <el-input v-model="form.workOrderNo" placeholder="请输入工单号" /> |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .time { |
| | | font-size: 13px; |
| | | color: #999; |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | .bottom { |
| | | margin-top: 13px; |
| | | line-height: 12px; |
| | | } |
| | | |
| | | |
| | | .image { |
| | | width: 100%; |
| | | display: block; |
| | | } |
| | | |
| | | .clearfix:before, |
| | | .clearfix:after { |
| | | display: table; |
| | | content: ""; |
| | | } |
| | | |
| | | .clearfix:after { |
| | | clear: both |
| | | } |
| | | </style> |