3 changed files with 713 additions and 66 deletions
-
136src/api/eam/eam.js
-
47src/assets/scss/rq.scss
-
596src/views/modules/reportWorkOrder/reportCheckOrder.vue
@ -1,127 +1,131 @@ |
|||||
import { createAPI } from "@/utils/httpRequest.js"; |
import { createAPI } from "@/utils/httpRequest.js"; |
||||
|
|
||||
//---------------机修人员-------------------
|
//---------------机修人员-------------------
|
||||
export const eamAdminSearch = data => createAPI(`/pms/eam/eamAdminSearch`,'post',data) |
|
||||
|
export const eamAdminSearch = data => createAPI(`api/pms/eam/eamAdminSearch`,'post',data) |
||||
|
|
||||
export const eamAdminSave = data => createAPI(`/pms/eam/eamAdminSave`,'post',data) |
|
||||
|
export const eamAdminSave = data => createAPI(`api/pms/eam/eamAdminSave`,'post',data) |
||||
|
|
||||
export const eamAdminEdit = data => createAPI(`/pms/eam/eamAdminEdit`,'post',data) |
|
||||
|
export const eamAdminEdit = data => createAPI(`api/pms/eam/eamAdminEdit`,'post',data) |
||||
|
|
||||
export const eamAdminDelete = data => createAPI(`/pms/eam/eamAdminDelete`,'post',data) |
|
||||
|
export const eamAdminDelete = data => createAPI(`api/pms/eam/eamAdminDelete`,'post',data) |
||||
|
|
||||
export const initAdminLevel = data => createAPI(`/pms/eam/initAdminLevel`,'post',data) |
|
||||
|
export const initAdminLevel = data => createAPI(`api/pms/eam/initAdminLevel`,'post',data) |
||||
//获取所有部门
|
//获取所有部门
|
||||
export const getEmpyDeptList = data => createAPI(`/pms/eam/getEmpyDeptList`,'post',data) |
|
||||
|
export const getEmpyDeptList = data => createAPI(`api/pms/eam/getEmpyDeptList`,'post',data) |
||||
|
|
||||
//---------------设备分类-------------------
|
//---------------设备分类-------------------
|
||||
export const eamFamilySearch = data => createAPI(`/pms/eam/eamFamilySearch`,'post',data) |
|
||||
|
export const eamFamilySearch = data => createAPI(`api/pms/eam/eamFamilySearch`,'post',data) |
||||
|
|
||||
export const eamFamilySave = data => createAPI(`/pms/eam/eamFamilySave`,'post',data) |
|
||||
|
export const eamFamilySave = data => createAPI(`api/pms/eam/eamFamilySave`,'post',data) |
||||
|
|
||||
export const eamFamilyEdit = data => createAPI(`/pms/eam/eamFamilyEdit`,'post',data) |
|
||||
|
export const eamFamilyEdit = data => createAPI(`api/pms/eam/eamFamilyEdit`,'post',data) |
||||
|
|
||||
export const eamFamilyDelete = data => createAPI(`/pms/eam/eamFamilyDelete`,'post',data) |
|
||||
|
export const eamFamilyDelete = data => createAPI(`api/pms/eam/eamFamilyDelete`,'post',data) |
||||
//---------------设备分组-------------------
|
//---------------设备分组-------------------
|
||||
export const eamGroupSearch = data => createAPI(`/pms/eam/eamGroupSearch`,'post',data) |
|
||||
|
export const eamGroupSearch = data => createAPI(`api/pms/eam/eamGroupSearch`,'post',data) |
||||
|
|
||||
export const eamGroupSave = data => createAPI(`/pms/eam/eamGroupSave`,'post',data) |
|
||||
|
export const eamGroupSave = data => createAPI(`api/pms/eam/eamGroupSave`,'post',data) |
||||
|
|
||||
export const eamGroupEdit = data => createAPI(`/pms/eam/eamGroupEdit`,'post',data) |
|
||||
|
export const eamGroupEdit = data => createAPI(`api/pms/eam/eamGroupEdit`,'post',data) |
||||
|
|
||||
export const eamGroupDelete = data => createAPI(`/pms/eam/eamGroupDelete`,'post',data) |
|
||||
|
export const eamGroupDelete = data => createAPI(`api/pms/eam/eamGroupDelete`,'post',data) |
||||
|
|
||||
//---------------设备区域-------------------
|
//---------------设备区域-------------------
|
||||
export const eamLocationSearch = data => createAPI(`/pms/eam/eamLocationSearch`,'post',data) |
|
||||
|
export const eamLocationSearch = data => createAPI(`api/pms/eam/eamLocationSearch`,'post',data) |
||||
|
|
||||
export const eamLocationSave = data => createAPI(`/pms/eam/eamLocationSave`,'post',data) |
|
||||
|
export const eamLocationSave = data => createAPI(`api/pms/eam/eamLocationSave`,'post',data) |
||||
|
|
||||
export const eamLocationEdit = data => createAPI(`/pms/eam/eamLocationEdit`,'post',data) |
|
||||
|
export const eamLocationEdit = data => createAPI(`api/pms/eam/eamLocationEdit`,'post',data) |
||||
|
|
||||
export const eamLocationDelete = data => createAPI(`/pms/eam/eamLocationDelete`,'post',data) |
|
||||
|
export const eamLocationDelete = data => createAPI(`api/pms/eam/eamLocationDelete`,'post',data) |
||||
//---------------设备供应商-------------------
|
//---------------设备供应商-------------------
|
||||
export const eamSupplierSearch = data => createAPI(`/pms/eam/eamSupplierSearch`,'post',data) |
|
||||
|
export const eamSupplierSearch = data => createAPI(`api/pms/eam/eamSupplierSearch`,'post',data) |
||||
|
|
||||
export const eamSupplierSave = data => createAPI(`/pms/eam/eamSupplierSave`,'post',data) |
|
||||
|
export const eamSupplierSave = data => createAPI(`api/pms/eam/eamSupplierSave`,'post',data) |
||||
|
|
||||
export const eamSupplierEdit = data => createAPI(`/pms/eam/eamSupplierEdit`,'post',data) |
|
||||
|
export const eamSupplierEdit = data => createAPI(`api/pms/eam/eamSupplierEdit`,'post',data) |
||||
|
|
||||
export const eamSupplierDelete = data => createAPI(`/pms/eam/eamSupplierDelete`,'post',data) |
|
||||
|
export const eamSupplierDelete = data => createAPI(`api/pms/eam/eamSupplierDelete`,'post',data) |
||||
//---------------设备制造商-------------------
|
//---------------设备制造商-------------------
|
||||
export const eamManufacturerSearch = data => createAPI(`/pms/eam/eamManufacturerSearch`,'post',data) |
|
||||
|
export const eamManufacturerSearch = data => createAPI(`api/pms/eam/eamManufacturerSearch`,'post',data) |
||||
|
|
||||
export const eamManufacturerSave = data => createAPI(`/pms/eam/eamManufacturerSave`,'post',data) |
|
||||
|
export const eamManufacturerSave = data => createAPI(`api/pms/eam/eamManufacturerSave`,'post',data) |
||||
|
|
||||
export const eamManufacturerEdit = data => createAPI(`/pms/eam/eamManufacturerEdit`,'post',data) |
|
||||
|
export const eamManufacturerEdit = data => createAPI(`api/pms/eam/eamManufacturerEdit`,'post',data) |
||||
|
|
||||
export const eamManufacturerDelete = data => createAPI(`/pms/eam/eamManufacturerDelete`,'post',data) |
|
||||
|
export const eamManufacturerDelete = data => createAPI(`api/pms/eam/eamManufacturerDelete`,'post',data) |
||||
//---------------设备人员等级-------------------
|
//---------------设备人员等级-------------------
|
||||
export const eamAdminLevelSearch = data => createAPI(`/pms/eam/eamAdminLevelSearch`,'post',data) |
|
||||
|
export const eamAdminLevelSearch = data => createAPI(`api/pms/eam/eamAdminLevelSearch`,'post',data) |
||||
|
|
||||
export const eamAdminLevelSave = data => createAPI(`/pms/eam/eamAdminLevelSave`,'post',data) |
|
||||
|
export const eamAdminLevelSave = data => createAPI(`api/pms/eam/eamAdminLevelSave`,'post',data) |
||||
|
|
||||
export const eamAdminLevelEdit = data => createAPI(`/pms/eam/eamAdminLevelEdit`,'post',data) |
|
||||
|
export const eamAdminLevelEdit = data => createAPI(`api/pms/eam/eamAdminLevelEdit`,'post',data) |
||||
|
|
||||
export const eamAdminLevelDelete = data => createAPI(`/pms/eam/eamAdminLevelDelete`,'post',data) |
|
||||
|
export const eamAdminLevelDelete = data => createAPI(`api/pms/eam/eamAdminLevelDelete`,'post',data) |
||||
//----------------点检项目------------------------
|
//----------------点检项目------------------------
|
||||
export const eamPropertiesItemSearch = data => createAPI(`/pms/eam/eamPropertiesItemSearch`,'post',data) |
|
||||
|
export const eamPropertiesItemSearch = data => createAPI(`api/pms/eam/eamPropertiesItemSearch`,'post',data) |
||||
|
|
||||
export const eamPropertiesItemSave = data => createAPI(`/pms/eam/eamPropertiesItemSave`,'post',data) |
|
||||
|
export const eamPropertiesItemSave = data => createAPI(`api/pms/eam/eamPropertiesItemSave`,'post',data) |
||||
|
|
||||
export const eamPropertiesItemEdit = data => createAPI(`/pms/eam/eamPropertiesItemEdit`,'post',data) |
|
||||
|
export const eamPropertiesItemEdit = data => createAPI(`api/pms/eam/eamPropertiesItemEdit`,'post',data) |
||||
|
|
||||
export const eamPropertiesItemDelete = data => createAPI(`/pms/eam/eamPropertiesItemDelete`,'post',data) |
|
||||
|
export const eamPropertiesItemDelete = data => createAPI(`api/pms/eam/eamPropertiesItemDelete`,'post',data) |
||||
|
|
||||
export const saveItemAvailable = data => createAPI(`/pms/eam/saveItemAvailable`,'post',data) |
|
||||
|
export const saveItemAvailable = data => createAPI(`api/pms/eam/saveItemAvailable`,'post',data) |
||||
|
|
||||
export const searchItemAvailable = data => createAPI(`/pms/eam/searchItemAvailable`,'post',data) |
|
||||
export const deleteItemAvailable = data => createAPI(`/pms/eam/deleteItemAvailable`,'post',data) |
|
||||
|
export const searchItemAvailable = data => createAPI(`api/pms/eam/searchItemAvailable`,'post',data) |
||||
|
export const deleteItemAvailable = data => createAPI(`api/pms/eam/deleteItemAvailable`,'post',data) |
||||
//---------------点检模板-------------------
|
//---------------点检模板-------------------
|
||||
export const eamPropertiesModelSearch = data => createAPI(`/pms/eam/eamPropertiesModelSearch`,'post',data) |
|
||||
|
export const eamPropertiesModelSearch = data => createAPI(`api/pms/eam/eamPropertiesModelSearch`,'post',data) |
||||
|
|
||||
export const eamPropertiesModelSave = data => createAPI(`/pms/eam/eamPropertiesModelSave`,'post',data) |
|
||||
|
export const eamPropertiesModelSave = data => createAPI(`api/pms/eam/eamPropertiesModelSave`,'post',data) |
||||
|
|
||||
export const eamPropertiesModelEdit = data => createAPI(`/pms/eam/eamPropertiesModelEdit`,'post',data) |
|
||||
|
export const eamPropertiesModelEdit = data => createAPI(`api/pms/eam/eamPropertiesModelEdit`,'post',data) |
||||
|
|
||||
export const eamPropertiesModelDelete = data => createAPI(`/pms/eam/eamPropertiesModelDelete`,'post',data) |
|
||||
|
export const eamPropertiesModelDelete = data => createAPI(`api/pms/eam/eamPropertiesModelDelete`,'post',data) |
||||
|
|
||||
export const searchModalDetails = data => createAPI(`/pms/eam/searchModalDetails`,'post',data) |
|
||||
|
export const searchModalDetails = data => createAPI(`api/pms/eam/searchModalDetails`,'post',data) |
||||
|
|
||||
export const saveModalDetails = data => createAPI(`/pms/eam/saveModalDetails`,'post',data) |
|
||||
export const deleteModalDetails = data => createAPI(`/pms/eam/deleteModalDetails`,'post',data) |
|
||||
|
export const saveModalDetails = data => createAPI(`api/pms/eam/saveModalDetails`,'post',data) |
||||
|
export const deleteModalDetails = data => createAPI(`api/pms/eam/deleteModalDetails`,'post',data) |
||||
//---------------点检计划-------------------
|
//---------------点检计划-------------------
|
||||
|
|
||||
export const eamWorkPlanSearch = data => createAPI(`/pms/eam/eamWorkPlanSearch`,'post',data) |
|
||||
export const eamWorkPlanSave = data => createAPI(`/pms/eam/eamWorkPlanSave`,'post',data) |
|
||||
export const eamWorkPlanEdit = data => createAPI(`/pms/eam/eamWorkPlanEdit`,'post',data) |
|
||||
export const eamWorkPlanDelete = data => createAPI(`/pms/eam/eamWorkPlanDelete`,'post',data) |
|
||||
|
export const eamWorkPlanSearch = data => createAPI(`api/pms/eam/eamWorkPlanSearch`,'post',data) |
||||
|
export const eamWorkPlanSave = data => createAPI(`api/pms/eam/eamWorkPlanSave`,'post',data) |
||||
|
export const eamWorkPlanEdit = data => createAPI(`api/pms/eam/eamWorkPlanEdit`,'post',data) |
||||
|
export const eamWorkPlanDelete = data => createAPI(`api/pms/eam/eamWorkPlanDelete`,'post',data) |
||||
|
|
||||
export const searchPlanItems = data => createAPI(`/pms/eam/searchPlanItems`,'post',data) |
|
||||
export const updatePlanItems = data => createAPI(`/pms/eam/updatePlanItems`,'post',data) |
|
||||
export const searchPlanItemAvailable = data => createAPI(`/pms/eam/searchPlanItemAvailable`,'post',data) |
|
||||
export const savePlanItemAvailable = data => createAPI(`/pms/eam/savePlanItemAvailable`,'post',data) |
|
||||
export const deletePlanItemAvailable = data => createAPI(`/pms/eam/deletePlanItemAvailable`,'post',data) |
|
||||
export const createEamWorkOrder = data => createAPI(`/pms/eam/createEamWorkOrder`,'post',data) |
|
||||
|
export const searchPlanItems = data => createAPI(`api/pms/eam/searchPlanItems`,'post',data) |
||||
|
export const updatePlanItems = data => createAPI(`api/pms/eam/updatePlanItems`,'post',data) |
||||
|
export const searchPlanItemAvailable = data => createAPI(`api/pms/eam/searchPlanItemAvailable`,'post',data) |
||||
|
export const savePlanItemAvailable = data => createAPI(`api/pms/eam/savePlanItemAvailable`,'post',data) |
||||
|
export const deletePlanItemAvailable = data => createAPI(`api/pms/eam/deletePlanItemAvailable`,'post',data) |
||||
|
export const createEamWorkOrder = data => createAPI(`api/pms/eam/createEamWorkOrder`,'post',data) |
||||
|
|
||||
export const objectIDBlur = data => createAPI(`/pms/eam/objectIDBlur`,'post',data) |
|
||||
export const modalCodeBlur = data => createAPI(`/pms/eam/modalCodeBlur`,'post',data) |
|
||||
|
export const objectIDBlur = data => createAPI(`api/pms/eam/objectIDBlur`,'post',data) |
||||
|
export const modalCodeBlur = data => createAPI(`api/pms/eam/modalCodeBlur`,'post',data) |
||||
//---------------点检工单-------------------
|
//---------------点检工单-------------------
|
||||
export const eamWorkOrderSearch = data => createAPI(`/pms/eam/eamWorkOrderSearch`,'post',data) |
|
||||
|
export const eamWorkOrderSearch = data => createAPI(`api/pms/eam/eamWorkOrderSearch`,'post',data) |
||||
//---------------故障-------------------
|
//---------------故障-------------------
|
||||
export const eamDefectSearch = data => createAPI(`/pms/eam/eamDefectSearch`,'post',data) |
|
||||
|
export const eamDefectSearch = data => createAPI(`api/pms/eam/eamDefectSearch`,'post',data) |
||||
|
|
||||
export const eamDefectSave = data => createAPI(`/pms/eam/eamDefectSave`,'post',data) |
|
||||
|
export const eamDefectSave = data => createAPI(`api/pms/eam/eamDefectSave`,'post',data) |
||||
|
|
||||
export const eamDefectEdit = data => createAPI(`/pms/eam/eamDefectEdit`,'post',data) |
|
||||
|
export const eamDefectEdit = data => createAPI(`api/pms/eam/eamDefectEdit`,'post',data) |
||||
|
|
||||
export const eamDefectDelete = data => createAPI(`/pms/eam/eamDefectDelete`,'post',data) |
|
||||
|
export const eamDefectDelete = data => createAPI(`api/pms/eam/eamDefectDelete`,'post',data) |
||||
|
|
||||
//---------------设备故障-------------------
|
//---------------设备故障-------------------
|
||||
export const eamObjectDefectSearch = data => createAPI(`/pms/eam/eamObjectDefectSearch`,'post',data) |
|
||||
|
export const eamObjectDefectSearch = data => createAPI(`api/pms/eam/eamObjectDefectSearch`,'post',data) |
||||
|
|
||||
export const eamObjectDefectSave = data => createAPI(`/pms/eam/eamObjectDefectSave`,'post',data) |
|
||||
|
export const eamObjectDefectSave = data => createAPI(`api/pms/eam/eamObjectDefectSave`,'post',data) |
||||
|
|
||||
export const eamObjectDefectEdit = data => createAPI(`/pms/eam/eamObjectDefectEdit`,'post',data) |
|
||||
|
export const eamObjectDefectEdit = data => createAPI(`api/pms/eam/eamObjectDefectEdit`,'post',data) |
||||
|
|
||||
export const eamObjectDefectDelete = data => createAPI(`/pms/eam/eamObjectDefectDelete`,'post',data) |
|
||||
|
export const eamObjectDefectDelete = data => createAPI(`api/pms/eam/eamObjectDefectDelete`,'post',data) |
||||
|
|
||||
|
export const getObjectList = data => createAPI(`api/pms/eam/getObjectList`,'post',data) |
||||
|
|
||||
|
//---------------点检执行-------------------
|
||||
|
export const eamWorkOrderItemSearch = data => createAPI(`api/pms/eam/eamWorkOrderItemSearch`,'post',data) |
||||
|
|
||||
export const getObjectList = data => createAPI(`/pms/eam/getObjectList`,'post',data) |
|
||||
@ -0,0 +1,47 @@ |
|||||
|
/* el-form-item 对话框标题 start*/ |
||||
|
.el-dialog__title{ |
||||
|
font-size: 14px; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
/* el-form-item 对话框标题 end*/ |
||||
|
|
||||
|
/* el-form-item 控件标题 start*/ |
||||
|
.el-form-item__label{ |
||||
|
font-size: 12px; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.pad .el-form-item__label { |
||||
|
font-size: 18px; |
||||
|
} |
||||
|
|
||||
|
.pad .el-input__inner{ |
||||
|
font-size: 18px; |
||||
|
} |
||||
|
.pad .el-input--medium .el-input__inner { |
||||
|
height: 35px; |
||||
|
line-height: 21px; |
||||
|
} |
||||
|
|
||||
|
.pad .el-button--medium { |
||||
|
|
||||
|
font-size: 18px; |
||||
|
|
||||
|
} |
||||
|
.pad .el-table .cell { |
||||
|
line-height: 25px; |
||||
|
font-size: 18px; |
||||
|
height: 25px; |
||||
|
} |
||||
|
.pad .el-select-dropdown__item{ |
||||
|
font-size: 18px; |
||||
|
} |
||||
|
|
||||
|
.el-table .cell, .el-table th div, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell { |
||||
|
padding-left: 0px; |
||||
|
} |
||||
|
.rq .el-table .cell { |
||||
|
line-height: 20px; |
||||
|
font-size: 12px; |
||||
|
height: 20px; |
||||
|
} |
||||
@ -0,0 +1,596 @@ |
|||||
|
<template> |
||||
|
<div class="mod-config"> |
||||
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()"> |
||||
|
|
||||
|
<el-button @click="getDataList()">查询</el-button> |
||||
|
<!-- <el-button type="primary" @click="addModal()">新增</el-button>--> |
||||
|
|
||||
|
</el-form> |
||||
|
<el-table |
||||
|
:height="height" |
||||
|
:data="dataList" |
||||
|
border |
||||
|
v-loading="dataListLoading" |
||||
|
|
||||
|
style="width: 100%;"> |
||||
|
<!-- <el-table-column--> |
||||
|
<!-- type="selection"--> |
||||
|
<!-- header-align="center"--> |
||||
|
<!-- align="center"--> |
||||
|
<!-- width="50">--> |
||||
|
<!-- </el-table-column>--> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnList" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
||||
|
style="width: 100px; height: 80px"/></span> |
||||
|
</template> |
||||
|
|
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="" |
||||
|
header-align="center" |
||||
|
align="center" |
||||
|
min-width="100" |
||||
|
fixed="right" |
||||
|
label="操作"> |
||||
|
<template slot-scope="scope"> |
||||
|
<a type="text" size="small" @click="reportModal(scope.row)">执行</a> |
||||
|
|
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
<el-pagination |
||||
|
@size-change="sizeChangeHandle" |
||||
|
@current-change="currentChangeHandle" |
||||
|
:current-page="pageIndex" |
||||
|
:page-sizes="[20, 100, 500, 1000]" |
||||
|
:page-size="pageSize" |
||||
|
:total="totalPage" |
||||
|
layout="total, sizes, prev, pager, next, jumper"> |
||||
|
</el-pagination> |
||||
|
|
||||
|
<el-dialog title="执行点检工单" :close-on-click-modal="false" v-drag :visible.sync="detailModelFlag" width="830px"> |
||||
|
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()"> |
||||
|
<el-form-item :label="'点检模板编码'"> |
||||
|
<el-input v-model="modelData.codeNo" readonly style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="'点检模板名称'"> |
||||
|
<el-input v-model="modelData.codeDesc" readonly style="width: 120px"></el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item :label="' '"> |
||||
|
<!-- <el-button type="primary" @click="addDetailModal()">新增</el-button>--> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div class="rq "> |
||||
|
<el-table |
||||
|
:height="200" |
||||
|
:data="detailList" |
||||
|
border |
||||
|
v-loading="dataListLoading" |
||||
|
|
||||
|
style="width: 100%;"> |
||||
|
<el-table-column |
||||
|
v-for="(item,index) in columnDetailList" :key="index" |
||||
|
:sortable="item.columnSortable" |
||||
|
:prop="item.columnProp" |
||||
|
:header-align="item.headerAlign" |
||||
|
:show-overflow-tooltip="item.showOverflowTooltip" |
||||
|
:align="item.align" |
||||
|
:fixed="item.fixed==''?false:item.fixed" |
||||
|
:min-width="item.columnWidth" |
||||
|
:label="item.columnLabel"> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
||||
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
||||
|
style="width: 100px; height: 80px"/></span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
prop="" |
||||
|
header-align="center" |
||||
|
align="right" |
||||
|
min-width="80" |
||||
|
label="实测值"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-input v-if="scope.row.valueTypeDb=='T'&&scope.row.valueChooseFlag=='N'" v-model="scope.row.textValue" style="height: 11px;padding: 0px " filterable |
||||
|
allow-create>;width:98%"></el-input> |
||||
|
<el-input v-if="scope.row.valueTypeDb=='N'&&scope.row.valueChooseFlag=='N'" v-model="scope.row.numberValue" type="number" style="height: 11px;padding: 0px " filterable |
||||
|
allow-create>;width:98%"></el-input> |
||||
|
<el-select v-if="scope.row.valueTypeDb=='T'&&scope.row.valueChooseFlag=='Y'" v-model="scope.row.textValue" placeholder="请选择" style="height: 11px;padding: 0px " filterable |
||||
|
allow-create> |
||||
|
<el-option v-for="item in scope.row.availableList " :key="index" :label="item.availableValue" |
||||
|
:value="item.availableValue"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
|
||||
|
<el-select v-if="scope.row.valueTypeDb=='N'&&scope.row.valueChooseFlag=='Y'" v-model="scope.row.numberValue" placeholder="请选择" style="height: 11px;padding: 0px " filterable |
||||
|
allow-create> |
||||
|
<el-option v-for="item in scope.row.availableList " :key="index" :label="item.availableValue" |
||||
|
:value="item.availableValue"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
||||
|
<el-button type="primary" @click="detailModelFlag = false">关闭</el-button> |
||||
|
</el-footer> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
eamWorkOrderSearch, |
||||
|
eamWorkOrderItemSearch, |
||||
|
} from "@/api/eam/eam.js" |
||||
|
export default { |
||||
|
watch: { |
||||
|
searchData: { |
||||
|
deep: true, |
||||
|
handler: function (newV, oldV) { |
||||
|
this.searchData.groupID = this.searchData.groupID.toUpperCase() |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
modalData: { |
||||
|
deep: true, |
||||
|
handler: function (newV, oldV) { |
||||
|
this.modalData.groupID = this.modalData.groupID.toUpperCase() |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
data () { |
||||
|
return { |
||||
|
|
||||
|
searchData: { |
||||
|
site: this.$store.state.user.site, |
||||
|
orderNo: '', |
||||
|
planID: '', |
||||
|
objectID: '', |
||||
|
planOperator: '', |
||||
|
functionType: 'A', |
||||
|
status: '未开工', |
||||
|
startDate:'', |
||||
|
endDate:'', |
||||
|
page: 1, |
||||
|
limit: 10, |
||||
|
}, |
||||
|
height: 200, |
||||
|
pageIndex: 1, |
||||
|
pageSize: 100, |
||||
|
totalPage: 0, |
||||
|
|
||||
|
dataList: [], |
||||
|
dataListLoading: false, |
||||
|
dataListSelections: [], |
||||
|
modalFlag:false, |
||||
|
modalDisableFlag:false, |
||||
|
modalData:{ |
||||
|
flag:'', |
||||
|
site: this.$store.state.user.site, |
||||
|
groupID:'', |
||||
|
groupDesc:'', |
||||
|
active:'', |
||||
|
}, |
||||
|
departmentList:[], |
||||
|
// 展示列集 |
||||
|
columnList: [ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableSite', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'site', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '工厂编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableOrderNo', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'orderNo', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '工单编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 120, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TablePlanID', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'planID', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '计划编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 140, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TablePropertiesCode', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'propertiesCode', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '模板编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableObjectID', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'objectID', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '设备编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableStatus', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'status', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '状态', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 80, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TablePlanOperatorName', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'planOperatorName', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '计划机修人员', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableActualOperatorName', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'actualOperatorName', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '实际机修人员', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 100, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableActualPlanDate', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'planDate', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '计划执行日期', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 130, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableActualActualDate', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'actualDate', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '实际执行日期', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 130, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableWorkTime', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'workTime', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '工作时间', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 60, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019TableActualRemark', |
||||
|
tableId: "101019Table", |
||||
|
tableName: "common", |
||||
|
columnProp: 'remark', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '备注', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 150, |
||||
|
}, |
||||
|
], |
||||
|
detailModelFlag:false, |
||||
|
detailList:[], |
||||
|
modelData:{ |
||||
|
|
||||
|
}, |
||||
|
columnDetailList: [ |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2EamPropertiesItemID', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'itemNo', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '点检项目编码', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 90, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2EamPropertiesItemDesc', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'itemDesc', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '点检项目名称', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 90, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2EamPropertiesItemRemark', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'itemRemark', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '点检方法说明', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 120, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2ValueType', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'valueType', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '检测值类型', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 70, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2DefaultValue', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'defaultValue', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '参照值', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 70, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2MaxValue', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'maxValue', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '最大值', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 70, |
||||
|
}, |
||||
|
{ |
||||
|
userId: this.$store.state.user.name, |
||||
|
functionId: 101019, |
||||
|
serialNumber: '101019Table2MinValue', |
||||
|
tableId: "101019Table2", |
||||
|
tableName: "点检项目表", |
||||
|
columnProp: 'minValue', |
||||
|
headerAlign: "center", |
||||
|
align: "left", |
||||
|
columnLabel: '最小值', |
||||
|
columnHidden: false, |
||||
|
columnImage: false, |
||||
|
columnSortable: false, |
||||
|
sortLv: 0, |
||||
|
status: true, |
||||
|
fixed: '', |
||||
|
columnWidth: 70, |
||||
|
}, |
||||
|
], |
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
this.$nextTick(() => { |
||||
|
this.height = window.innerHeight - 210 |
||||
|
}) |
||||
|
}, |
||||
|
created () { |
||||
|
this.getDataList() |
||||
|
}, |
||||
|
methods: { |
||||
|
// 获取数据列表 |
||||
|
getDataList () { |
||||
|
this.searchData.limit = this.pageSize |
||||
|
this.searchData.page = this.pageIndex |
||||
|
eamWorkOrderSearch(this.searchData).then(({data}) => { |
||||
|
if (data.code == 0) { |
||||
|
this.dataList = data.page.list |
||||
|
this.pageIndex = data.page.currPage |
||||
|
this.pageSize = data.page.pageSize |
||||
|
this.totalPage = data.page.totalCount |
||||
|
} |
||||
|
this.dataListLoading = false |
||||
|
}) |
||||
|
}, |
||||
|
// 每页数 |
||||
|
sizeChangeHandle (val) { |
||||
|
this.pageSize = val |
||||
|
this.pageIndex = 1 |
||||
|
this.getDataList() |
||||
|
}, |
||||
|
// 当前页 |
||||
|
currentChangeHandle (val) { |
||||
|
this.pageIndex = val |
||||
|
this.getDataList() |
||||
|
}, |
||||
|
// 多选 |
||||
|
selectionChangeHandle (val) { |
||||
|
this.dataListSelections = val |
||||
|
}, |
||||
|
reportModal(row){ |
||||
|
let indata={ |
||||
|
site:row.site, |
||||
|
itemNo:row.itemNo, |
||||
|
planID:row.planID, |
||||
|
itemType:row.functionType, |
||||
|
} |
||||
|
eamWorkOrderItemSearch(indata).then(({data}) => { |
||||
|
this.detailList=data.rows |
||||
|
}) |
||||
|
this.detailModelFlag=true; |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue