| | |
| | | </el-form-item> |
| | | <el-form-item label="故障类型" prop="workOrderNo"> |
| | | <el-select v-model="queryParams.errorType" placeholder="故障类型" clearable @clear="handleQuery"> |
| | | <el-option v-for="(item, index) in errorTypeOptions" :label="item.dictLabel" :value="item.dictValue" |
| | | :key="index" |
| | | ></el-option> |
| | | <el-option v-for="dict in dict.type.error_type" |
| | | :value="dict.value" |
| | | :label="dict.label"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单状态" prop="status"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-row :gutter="20" v-loading="loading"> |
| | | <el-col :xl="6" :lg="8" :md="12" :sm="24" v-for="item in workOrderList" :key="item.id" |
| | | style="margin-bottom: 20px;" |
| | | > |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitReportForm">提 交</el-button> |
| | | <el-button @click="reportOpen = false">取 消</el-button> |
| | | <el-button type="primary" @click="submitReportForm">提 交</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | |
| | | export default { |
| | | name: 'Work-order', |
| | | dicts: ['error_type'], |
| | | components: {}, |
| | | data() { |
| | | return { |
| | |
| | | this.workOrderList = response.data |
| | | this.total = response.total |
| | | this.loading = false |
| | | }) |
| | | // 获取故障类型 |
| | | getDicts('error_type').then(response => { |
| | | this.errorTypeOptions = response.data |
| | | }) |
| | | }, |
| | | // 取消按钮 |