diff --git a/src/views/specialEquipment/maintain/PlanConfig--add.vue b/src/views/specialEquipment/maintain/PlanConfig--add.vue index 0d2e016d..126db178 100644 --- a/src/views/specialEquipment/maintain/PlanConfig--add.vue +++ b/src/views/specialEquipment/maintain/PlanConfig--add.vue @@ -44,10 +44,7 @@ - + - + { @@ -410,7 +422,10 @@ export default { } }, handleAddDetail() { - this.detailAddVisible = true; + this.resetForm(); + this.$nextTick(() => { + this.detailAddVisible = true; + }); }, }, }; diff --git a/src/views/specialEquipment/maintain/PlanConfig.vue b/src/views/specialEquipment/maintain/PlanConfig.vue index 8f284a10..2a360a9b 100644 --- a/src/views/specialEquipment/maintain/PlanConfig.vue +++ b/src/views/specialEquipment/maintain/PlanConfig.vue @@ -101,8 +101,13 @@ export default { { prop: 'name', label: '计划名称' }, { prop: 'departmentName', label: '部门' }, { width: 144, prop: 'lineName', label: '产线名' }, - { width: 144, prop: 'maintenancePeriod', label: '保养频率(天/次)' }, - { width: 144, prop: 'firstMaintenanceTime', label: '首次保养时间' }, + { width: 132, prop: 'maintenancePeriod', label: '保养频率(天/次)' }, + { + width: 180, + prop: 'firstMaintenanceTime', + label: '首次保养时间', + filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'), + }, { width: 144, prop: 'maintainDuration', label: '保养时长' }, { prop: 'maintainer', label: '计划保养人员' }, {