|
@@ -177,38 +177,47 @@ export default {
|
|
{
|
|
{
|
|
title: '序号',
|
|
title: '序号',
|
|
dataIndex: 'index',
|
|
dataIndex: 'index',
|
|
|
|
+ width: 50,
|
|
checked: true,
|
|
checked: true,
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
return `${(this.$refs.table.localPagination.current - 1) * this.$refs.table.localPagination.pageSize + index + 1}`
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '设备名称',
|
|
+ title: '设备新号',
|
|
- checked: true,
|
|
+ dataIndex: 'no',
|
|
- dataIndex: 'name'
|
|
+ width: 120,
|
|
|
|
+ checked: true
|
|
},
|
|
},
|
|
|
|
+ /* {
|
|
|
|
+ title: '设备旧号',
|
|
|
|
+ dataIndex: 'zbh',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true
|
|
|
|
+ },*/
|
|
{
|
|
{
|
|
- title: '设备编号',
|
|
+ title: '测量设备编号',
|
|
- dataIndex: 'no',
|
|
+ dataIndex: 'cardNo',
|
|
|
|
+ width: 150,
|
|
checked: true
|
|
checked: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '设备型号',
|
|
+ title: '设备名称',
|
|
checked: true,
|
|
checked: true,
|
|
width: 200,
|
|
width: 200,
|
|
- dataIndex: 'model'
|
|
+ dataIndex: 'name'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '使用位置',
|
|
+ title: '设备型号',
|
|
checked: true,
|
|
checked: true,
|
|
width: 200,
|
|
width: 200,
|
|
- dataIndex: 'cph'
|
|
+ dataIndex: 'model'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '存放位置',
|
|
+ title: '使用位置',
|
|
checked: true,
|
|
checked: true,
|
|
width: 200,
|
|
width: 200,
|
|
- dataIndex: 'positionId'
|
|
+ dataIndex: 'cph'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '使用部门',
|
|
title: '使用部门',
|
|
@@ -220,6 +229,7 @@ export default {
|
|
title: '设备类型',
|
|
title: '设备类型',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'type',
|
|
dataIndex: 'type',
|
|
|
|
+ width: 120,
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return record.typeName
|
|
return record.typeName
|
|
}
|
|
}
|
|
@@ -228,42 +238,87 @@ export default {
|
|
title: '设备等级',
|
|
title: '设备等级',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'level',
|
|
dataIndex: 'level',
|
|
|
|
+ width: 120,
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return this.BaseTool.Object.getField(this.levelMap, text)
|
|
return this.BaseTool.Object.getField(this.levelMap, text)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
{
|
|
{
|
|
title: '设备原值',
|
|
title: '设备原值',
|
|
dataIndex: 'initialValue',
|
|
dataIndex: 'initialValue',
|
|
|
|
+ width: 100,
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
return this.BaseTool.Amount.formatter(text)
|
|
return this.BaseTool.Amount.formatter(text)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '购置日期',
|
|
title: '购置日期',
|
|
- dataIndex: 'buyDate'
|
|
+ dataIndex: 'buyDate',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '投用日期',
|
|
title: '投用日期',
|
|
- dataIndex: 'startDate'
|
|
+ dataIndex: 'startDate',
|
|
|
|
+ width: 120,
|
|
|
|
+ checked: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '下次检定日期',
|
|
+ title: '检定日期',
|
|
- dataIndex: 'nextCheckDate'
|
|
+ dataIndex: 'checkDate',
|
|
|
|
+ width: 150,
|
|
|
|
+ checked: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '检定周期',
|
|
|
|
+ dataIndex: 'checkPeriod',
|
|
|
|
+ width: 100,
|
|
|
|
+ checked: true,
|
|
|
|
+ customRender: (text, record, index) => {
|
|
|
|
+ if (record.nextCheckDate == null) {
|
|
|
|
+ return '未知'
|
|
|
|
+ } else {
|
|
|
|
+ return text + '月'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '检定有效期',
|
|
|
|
+ dataIndex: 'nextCheckDate',
|
|
|
|
+ width: 150,
|
|
|
|
+ fixed: 'right',
|
|
|
|
+ checked: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '检定截止',
|
|
|
|
+ dataIndex: 'restDay',
|
|
|
|
+ width: 100,
|
|
|
|
+ fixed: 'right',
|
|
|
|
+ checked: true,
|
|
|
|
+ customRender: (text, record, index) => {
|
|
|
|
+ if (record.nextCheckDate == null) {
|
|
|
|
+ return '未知'
|
|
|
|
+ } else {
|
|
|
|
+ return this.BaseTool.Date.getCountBetween(new Date(), record.nextCheckDate, 1) + '天'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
-
|
|
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
checked: true,
|
|
checked: true,
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
|
|
+ width: 100,
|
|
|
|
+ fixed: 'right',
|
|
scopedSlots: { customRender: 'status' }
|
|
scopedSlots: { customRender: 'status' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
key: 'action',
|
|
key: 'action',
|
|
checked: true,
|
|
checked: true,
|
|
|
|
+ fixed: 'right',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: '300',
|
|
+ width: '100',
|
|
scopedSlots: { customRender: 'action' }
|
|
scopedSlots: { customRender: 'action' }
|
|
}
|
|
}
|
|
],
|
|
],
|