This commit is contained in:
lb 2024-02-21 16:55:35 +08:00
parent ed65bd7f30
commit 95a4b336f8

View File

@ -2,7 +2,7 @@
filename: Content.vue filename: Content.vue
author: liubin author: liubin
date: 2023-12-12 13:53:22 date: 2023-12-12 13:53:22
description: description: 巡检单设置
--> -->
<template> <template>
@ -59,6 +59,7 @@
import basicPageMixin from '@/mixins/lb/basicPageMixin'; import basicPageMixin from '@/mixins/lb/basicPageMixin';
import addOrUpdata from './add-or-updata.vue'; import addOrUpdata from './add-or-updata.vue';
import add from './add.vue'; import add from './add.vue';
import { parseTime } from '../../core/mixins/code-filter';
export default { export default {
name: 'SpecialEquipmentCheckConfig', name: 'SpecialEquipmentCheckConfig',
@ -68,7 +69,7 @@ export default {
return { return {
addOrUpdateVisible: false, addOrUpdateVisible: false,
addOrEditTitle: '', addOrEditTitle: '',
searchBarKeys: ['equipmentId', 'name', 'specialType'], searchBarKeys: ['name'],
tableBtn: [ tableBtn: [
this.$auth.hasPermi('equipment:check-setting:addInsp') this.$auth.hasPermi('equipment:check-setting:addInsp')
? { ? {
@ -99,55 +100,49 @@ export default {
tableProps: [ tableProps: [
{ {
prop: 'name', prop: 'name',
label: '配置名', label: '巡检单名称',
width: 110, width: 100,
showOverflowtooltip: true, showOverflowtooltip: true,
}, },
{ prop: 'lineName', label: '产线', showOverflowtooltip: true },
{ {
prop: 'equipmentCategory', prop: 'code',
label: '设备大类', label: '巡检单编码',
filter: (val) =>
val != null ? ['-', '安全', '消防', '特种'][val] : '-',
},
{ prop: 'equipmentName', label: '设备', showOverflowtooltip: true },
{
prop: 'equipmentCode',
label: '设备编码',
minWidth: 150,
showOverflowtooltip: true, showOverflowtooltip: true,
}, },
{ prop: 'responsible', label: '负责人' }, {
{ prop: 'remark', label: '描述' }, prop: 'department',
{ prop: 'checkNumber', label: '巡检条数' }, // TODO: label: '部门',
width: 100,
showOverflowtooltip: true,
},
{
prop: 'planCheckTime',
label: '计划巡检时间',
showOverflowtooltip: true,
filter: parseTime,
},
{
prop: 'confirmTimeLimit',
label: '确认时限',
showOverflowtooltip: true,
},
{ prop: 'groupClass', label: '班次', showOverflowtooltip: true },
{ prop: 'creator', label: '创建人', showOverflowtooltip: true },
{
prop: 'createTime',
label: '创建时间',
showOverflowtooltip: true,
filter: parseTime,
},
{ prop: 'remark', label: '备注' },
], ],
searchBarFormConfig: [ searchBarFormConfig: [
{ {
type: 'input', type: 'input',
label: '配置名称', label: '巡检单名称',
placeholder: '请输入配置名称', placeholder: '请输入巡检单名称',
param: 'name', param: 'name',
}, },
{
type: 'select',
label: '设备大类',
placeholder: '请选择设备大类',
param: 'specialType',
onchange: true,
selectOptions: [
{ id: 1, name: '安全设备' },
{ id: 2, name: '消防设备' },
{ id: 3, name: '特种设备' },
],
filterable: true,
},
{
type: 'select',
label: '设备名称',
placeholder: '请选择设备',
param: 'equipmentId',
filterable: true,
},
{ {
type: 'button', type: 'button',
btnName: '查询', btnName: '查询',
@ -226,14 +221,11 @@ export default {
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
equipmentId: null,
name: null, name: null,
special: true,
specialType: null,
}, },
// //
form: {}, form: {},
basePath: '/base/equipment-check-config', basePath: '/base/equipment-check-order',
mode: null, mode: null,
allSpecialEquipments: [], allSpecialEquipments: [],
}; };