| | |
| | | |
| | | <a-col :md="4" :sm="4"> |
| | | <a-form-item label="设备编号"> |
| | | <a-input placeholder="请输入设备编号" v-model="queryParam.num" :allow-clear="false"/> |
| | | <a-input-search :readOnly="true" v-model="queryParam.num" @search="handleOpenEamEquipmentListModal" |
| | | enter-button placeholder='请选择设备编号'/> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | |
| | | <th colspan="3"></th> |
| | | <th colspan="6">统一编号:{{dataSource.equipentNum}}</th> |
| | | <th colspan="3"></th> |
| | | <th colspan="6">{{queryParam.dataTime.split('-')[0]}} 年 {{queryParam.dataTime.split('-')[1]}} 月</th> |
| | | <th colspan="6"> |
| | | {{queryParam.dataTime.split('-')[0]}} 年 {{queryParam.dataTime.split('-')[1]}} 月 |
| | | </th> |
| | | <th colspan="6">单位:{{dataSource.workCenterName}}</th> |
| | | <th colspan="3"></th> |
| | | </tr> |
| | |
| | | <td>序号</td> |
| | | <td colspan="5">周保养项目</td> |
| | | <td colspan="5">检查标准</td> |
| | | <td colspan="31">周报执行记录</td> |
| | | <td colspan="31">周保执行记录</td> |
| | | </tr> |
| | | |
| | | <tr v-for="(item,index) in dataSource.list4"> |
| | |
| | | <td colspan="5">{{item.name}}</td> |
| | | <td colspan="5">{{item.detectionStandard}}</td> |
| | | <td v-for="childItem in 4" colspan="6"> |
| | | {{item.dataList&&item.dataList[childItem-1]?item.dataList[childItem-1].insResult:''}} |
| | | {{item.dataList&&item.dataList.find(item=>item.weekOfMonth===childItem)?item.dataList.find(item=>item.weekOfMonth===childItem).insResult:''}} |
| | | </td> |
| | | <td colspan="7"> |
| | | {{item.dataList&&item.dataList[4]?item.dataList[4].insResult:''}} |
| | | {{item.dataList&&item.dataList.find(item=>item.weekOfMonth===5)?item.dataList.find(item=>item.weekOfMonth===5).insResult:''}} |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="11">周保养操作者执行(操作者签字)</td> |
| | | <td v-for="childItem in 4" colspan="6"> |
| | | {{dataSource.list5&&dataSource.list5[0]&&dataSource.list5[0].dataList&&dataSource.list5[0].dataList[childItem-1]?dataSource.list5[0].dataList[childItem-1].inspectionUserName:''}} |
| | | {{dataSource.list5&&dataSource.list5[0]&&dataSource.list5[0].dataList&&dataSource.list5[0].dataList.find(item=>item.weekOfMonth===childItem)?dataSource.list5[0].dataList.find(item=>item.weekOfMonth===childItem).inspectionUserName:''}} |
| | | </td> |
| | | <td colspan="7"> |
| | | {{dataSource.list5&&dataSource.list5[0]&&dataSource.list5[0].dataList&&dataSource.list5[0].dataList[4]?dataSource.list5[0].dataList[4].inspectionUserName:''}} |
| | | {{dataSource.list5&&dataSource.list5[0]&&dataSource.list5[0].dataList&&dataSource.list5[0].dataList.find(item=>item.weekOfMonth===5)?dataSource.list5[0].dataList.find(item=>item.weekOfMonth===5).inspectionUserName:''}} |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="11">间保养检查人确认(维修人员签字)</td> |
| | | <td colspan="11">周保养检查人确认(维修人员签字)</td> |
| | | <td v-for="childItem in 4" colspan="6"> |
| | | {{dataSource.list6&&dataSource.list6[0]&&dataSource.list6[0].dataList&&dataSource.list6[0].dataList[childItem-1]?dataSource.list6[0].dataList[childItem-1].repairConfirmPerson:''}} |
| | | {{dataSource.list5&&dataSource.list6[0]&&dataSource.list6[0].dataList&&dataSource.list6[0].dataList.find(item=>item.weekOfMonth===childItem)?dataSource.list6[0].dataList.find(item=>item.weekOfMonth===childItem).repairConfirmPerson:''}} |
| | | |
| | | </td> |
| | | <td colspan="7"> |
| | | {{dataSource.list6&&dataSource.list6[0]&&dataSource.list6[0].dataList&&dataSource.list6[0].dataList[4]?dataSource.list6[0].dataList[4].repairConfirmPerson:''}} |
| | | {{dataSource.list5&&dataSource.list6[0]&&dataSource.list6[0].dataList&&dataSource.list6[0].dataList.find(item=>item.weekOfMonth===5)?dataSource.list6[0].dataList.find(item=>item.weekOfMonth===5).repairConfirmPerson:''}} |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td colspan="42" style="text-align: left"> |
| | | 填写要求:正常=/,异常=x,故障停机=△,没开机=T:设备日常点检记录由操作人员执行并记录。执行情况检查由维修人员负责执行并记录,对发现问题记录至点检表背面各注栏,对发现问题进行全程闭环记录。 |
| | | 填写要求:正常=√,异常=×,故障停机=△,没开机=T:设备日常点检记录由操作人员执行并记录。执行情况检查由维修人员负责执行并记录,对发现问题记录至点检表背面备注栏,对发现问题进行全程闭环记录。 |
| | | </td> |
| | | </tr> |
| | | |
| | |
| | | </tbody> |
| | | </table> |
| | | </a-spin> |
| | | |
| | | <eam-equipment-list-modal ref="eamEquipmentListModal" @sendSelectionRows="setSelectedEquipmentId"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { getAction } from '@/api/manage' |
| | | import $ from 'jquery' |
| | | import '@/components/table2excel/table2excel' |
| | | import EamEquipmentListModal from './modules/SelfMaintenanceAndInspectionList/EamEquipmentListModal' |
| | | |
| | | export default { |
| | | name: 'SelfMaintenanceAndInspectionList', |
| | | components: { EamEquipmentListModal }, |
| | | mixins: [JeecgListMixin], |
| | | data() { |
| | | return { |
| | |
| | | that.$message.warning(`${dataTime.split('-')[0]}年${dataTime.split('-')[1]}月 设备编号为${num}设备 无点检记录`) |
| | | return |
| | | } |
| | | |
| | | that.dataSource = res.result |
| | | |
| | | for (let index = 4; index <= 6; index++) { |
| | | that.dataSource[`list${index}`] = that.dataSource[`list${index}`].map(item => { |
| | | return { |
| | | ...item, |
| | | dataList: item.dataList.sort((x, y) => x.dayTime - y.dayTime) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | this.$nextTick(() => this.tableElement = document.getElementById('dataTable')) |
| | | } |
| | | else that.$message.warning(res.message) |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 控制选择设备弹窗弹出 |
| | | handleOpenEamEquipmentListModal() { |
| | | this.$refs.eamEquipmentListModal.visible = true |
| | | this.$refs.eamEquipmentListModal.openPage() |
| | | }, |
| | | |
| | | setSelectedEquipmentId(record) { |
| | | this.$set(this.queryParam, 'num', record.num) |
| | | }, |
| | | |
| | | exportExcel() { |
| | | if (!this.tableElement) this.$message.warning('请查询后再进行导出') |
| | | |