|
|
|
|
@ -16,30 +16,28 @@ |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
|
|
|
|
|
:row-class-name="rowClassName" |
|
|
|
|
> |
|
|
|
|
<!-- :span-method="spanMethod" --> |
|
|
|
|
<!-- :span-method="spanMethod" --> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="danger" @click="handleDeletes">批量删除</el-button> |
|
|
|
|
<el-button type="primary" @click="handleMaintain">设备维护</el-button> |
|
|
|
|
<el-button type="danger" @click="handleDeletes">批量删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> |
|
|
|
|
<el-button type="primary" @click="handleImport">导 入</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #equipmentDate="scope"> |
|
|
|
|
{{ scope.row.equipmentDate ?scope.row.equipmentDate.substring(0, 10) : ''}} |
|
|
|
|
{{ scope.row.equipmentDate ? scope.row.equipmentDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
<template #deviceDueDate="scope"> |
|
|
|
|
{{ scope.row.deviceDueDate ?scope.row.deviceDueDate.substring(0, 10) : ''}} |
|
|
|
|
<template #deviceDueDate="scope"> |
|
|
|
|
{{ scope.row.deviceDueDate ? scope.row.deviceDueDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
<template #dataBirth="scope"> |
|
|
|
|
{{ scope.row.dataBirth ?scope.row.dataBirth.substring(0, 10) : ''}} |
|
|
|
|
{{ scope.row.dataBirth ? scope.row.dataBirth.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
<template #validityPeriodExpire="scope"> |
|
|
|
|
{{ scope.row.validityPeriodExpire ?scope.row.validityPeriodExpire.substring(0, 10) : ''}} |
|
|
|
|
{{ scope.row.validityPeriodExpire ? scope.row.validityPeriodExpire.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 设备维护 --> |
|
|
|
|
<equipmentDialog |
|
|
|
|
@ -172,7 +170,7 @@ export default { |
|
|
|
|
overflow: true, |
|
|
|
|
search: true, |
|
|
|
|
fixed: 'left', |
|
|
|
|
searchLabelWidth:50, |
|
|
|
|
searchLabelWidth: 50, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '所属班组', |
|
|
|
|
@ -247,7 +245,7 @@ export default { |
|
|
|
|
overflow: true, |
|
|
|
|
search: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
label: '设备编号', |
|
|
|
|
prop: 'deviceCode', |
|
|
|
|
span: 24, |
|
|
|
|
@ -297,9 +295,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted() {}, |
|
|
|
|
methods: { |
|
|
|
|
// 点击导入按钮 |
|
|
|
|
handleImport() { |
|
|
|
|
@ -405,7 +401,7 @@ export default { |
|
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|
this.$message.error('请至少选择一条数据'); |
|
|
|
|
} else { |
|
|
|
|
// 检查是否所有选中项都有 certificateTypeId |
|
|
|
|
// 检查是否所有选中项都有 certificateTypeId |
|
|
|
|
const invalidItem = this.selectionList.find( |
|
|
|
|
item => !item.certificateTypeId || item.certificateTypeId === '' |
|
|
|
|
); |
|
|
|
|
|