24h,设备

This commit is contained in:
helloDy
2023-11-15 14:30:28 +08:00
parent e6158cd59b
commit 952490f0d4
12 changed files with 230 additions and 120 deletions

View File

@@ -29,7 +29,8 @@
filterable
:disabled="isdetail"
style="width: 100%"
placeholder="请选择设备名称">
placeholder="请选择设备名称"
@change="setConfig">
<el-option
v-for="dict in eqList"
:key="dict.id"
@@ -78,7 +79,7 @@
type="date"
:disabled="isdetail"
format='yyyy-MM-dd'
value-format="yyyy-MM-dd HH:mm:ss"
value-format="timestamp"
placeholder="选择巡检时间" />
</el-form-item>
</el-col>
@@ -202,6 +203,13 @@ export default {
const configres = await getcheckConfigByEqList()
this.configList = configres.data
},
async setConfig() {
const configres = await getcheckConfigByEqList({equipmentId: this.dataForm.equipmentId})
this.configList = configres.data
this.dataForm.equipmentCode = this.eqList.filter(item => {
return item.id === this.dataForm.equipmentId
})[0].code
},
goback() {
this.$emit('refreshDataList');
this.visible = false;
@@ -226,7 +234,7 @@ export default {
this.$refs['dataForm'].resetFields();
if (this.dataForm.id) {
// 获取备品备件
// 获取巡检记录
getEqCheckLog(this.dataForm.id).then(response => {
this.formLoading = false
this.dataForm = response.data;

View File

@@ -58,6 +58,7 @@ import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import addRecord from './addRecord.vue';
import { exportCheckLogExcel } from '@/api/equipment/base/inspection/record'
import { parseTime } from '../../../../core/mixins/code-filter';
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@@ -90,13 +91,13 @@ export default {
: undefined,
].filter((v) => v),
tableProps: [
{ prop: 'repairOrderNumber', label: '配置名称' },
{ prop: 'maintenanceDuration', label: '设备名称' },
{ prop: 'lineName', label: '数据来源' },
{ prop: 'sectionName', label: '计划巡检时间' },
{ prop: 'equipmentName', label: '实际巡检时间' },
{ prop: 'maintenanceDetail', label: '完成状态' },
{ prop: 'repairman', label: '巡检人' },
{ prop: 'configName', label: '配置名称' },
{ prop: 'equipmentName', label: '设备名称' },
// { prop: 'lineName', label: '数据来源' },
// { prop: 'sectionName', label: '计划巡检时间' },
{ prop: 'actualTime', label: '实际巡检时间', filter: parseTime },
// { prop: 'maintenanceDetail', label: '完成状态' },
{ prop: 'responsible', label: '巡检人' },
],
searchBarFormConfig: [
{
@@ -222,7 +223,7 @@ export default {
},
// 表单参数
form: {},
basePath: '/base/equipment-repair-log',
basePath: '/base/equipment-check-log',
mode: null,
};
},