|
@@ -8,41 +8,41 @@
|
|
|
style='width: 100%'
|
|
|
:header-cell-style='{background:"rgba(245,246,247,1)",fontFamily:"MicrosoftYaHei",color:"rgba(100,108,115,1)",lineHeight:"16px",fontSize:"12px"}'
|
|
|
>
|
|
|
- <el-table-column type='index' label='序号' width='60'></el-table-column>
|
|
|
- <el-table-column prop label='设备名称' show-overflow-tooltip resizable min-width='150'>
|
|
|
+ <el-table-column type='index' label='序号' width='60' :index='indexMethod'></el-table-column>
|
|
|
+ <el-table-column prop label='设备名称' show-overflow-tooltip resizable min-width='200'>
|
|
|
<template slot-scope='{row}'>{{row.sbmc||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='设备编号' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='设备编号' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>{{row.location||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='重要事项记录' show-overflow-tooltip resizable>
|
|
|
+ <el-table-column prop label='重要事项记录' show-overflow-tooltip resizable min-width='120'>
|
|
|
<template slot-scope='{row}'>{{row.matters||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop label='描述' show-overflow-tooltip resizable min-width='150'>
|
|
|
<template slot-scope='{row}'>{{row.description||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop label='更换配件信息' align='center' show-overflow-tooltip resizable>
|
|
|
- <el-table-column prop label='是/否更换' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='是/否更换' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>
|
|
|
<div v-if='row.ismodel==0'>否</div>
|
|
|
<div v-else-if='row.ismodel==1'>是</div>
|
|
|
<div v-else>'--'</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='配件名称型号' min-width='100' show-overflow-tooltip resizable>
|
|
|
+ <el-table-column prop label='配件名称型号' min-width='100' show-overflow-tooltip resizable>
|
|
|
<template slot-scope='{row}'>{{row.model||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='数量' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='数量' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>{{row.sl>=0?row.sl:'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='费用(万元)' min-width='80' show-overflow-tooltip resizable>
|
|
|
+ <el-table-column prop label='费用(万元)' min-width='110' show-overflow-tooltip resizable>
|
|
|
<template slot-scope='{row}'>{{row.cost?number_format(row.cost):'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='费用出处' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='费用出处' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>{{row.source||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='现场照片' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='现场照片' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>{{row.pics || '--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop label='填报时间' show-overflow-tooltip resizable width='130'>
|
|
@@ -51,7 +51,7 @@
|
|
|
<el-table-column prop label='验收时间' show-overflow-tooltip width='130' resizable>
|
|
|
<template slot-scope='{row}'>{{row.sjjssj?formatter(row.sjjssj):'--'}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label='工单编号' show-overflow-tooltip resizable width="80">
|
|
|
+ <el-table-column prop label='工单编号' show-overflow-tooltip resizable width='80'>
|
|
|
<template slot-scope='{row}'>{{row.wonum||'--'}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -70,7 +70,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import Select from '@/components/Select/Select.vue'
|
|
|
+// import Select from '@/components/Select/Select.vue'
|
|
|
+import { Select } from 'meri-design'
|
|
|
import moment from 'moment'
|
|
|
import { number_format } from '@/utils/format.js'
|
|
|
|
|
@@ -86,6 +87,9 @@ export default {
|
|
|
},
|
|
|
components: { Select },
|
|
|
methods: {
|
|
|
+ indexMethod(index) {
|
|
|
+ return (this.page - 1) * this.size + index + 1
|
|
|
+ },
|
|
|
formatter(date) {
|
|
|
return moment.unix(date / 1000).format('YYYY.MM.DD HH:mm')
|
|
|
},
|