|
@@ -36,6 +36,10 @@
|
|
|
:pageset="mixins_pageset"
|
|
|
@page-change="pageChange"
|
|
|
>
|
|
|
+ <template slot="readData" slot-scope="scope">{{ scope.row.data.readData }}</template>
|
|
|
+ <template slot="readStatus" slot-scope="scope">{{ scope.row.data.readStatus === 1 ? '未抄' : '已抄' }}</template>
|
|
|
+ <template slot="readTime" slot-scope="scope">{{ getTypeDate(scope.row.data.readTime) }}</template>
|
|
|
+
|
|
|
<template slot-scope="scope" slot="opt">
|
|
|
<div class="opt">
|
|
|
<el-tooltip class="item" effect="light" placement="bottom" content="详情">
|
|
@@ -86,19 +90,18 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '当前读数',
|
|
|
- prop: 'receivedPropertyFee'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '设备状态',
|
|
|
- prop: 'receivedPropertyFee'
|
|
|
+ prop: 'readData',
|
|
|
+ slot: 'readData'
|
|
|
},
|
|
|
{
|
|
|
label: '抄表状态',
|
|
|
- prop: 'collectionRateDict'
|
|
|
+ prop: 'readStatus',
|
|
|
+ slot: 'readStatus'
|
|
|
},
|
|
|
{
|
|
|
label: '抄表时间',
|
|
|
- prop: 'receivedPropertyFee'
|
|
|
+ prop: 'readTime',
|
|
|
+ slot: 'readTime'
|
|
|
}
|
|
|
],
|
|
|
mixins_post: 'get',
|
|
@@ -112,13 +115,23 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.initDate('YYYYMMDD');
|
|
|
this.getorgTree();
|
|
|
+
|
|
|
this.mixins_dataUrl = '/sc-energy/meter/read/record/page';
|
|
|
this.mixins_query.categoryId = 1;
|
|
|
this.mixins_search();
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
+ getTypeDate(dateNum) {
|
|
|
+ if (!dateNum) return '-';
|
|
|
+ let da = new Date(Number(dateNum));
|
|
|
+ return [da.getFullYear(), da.getMonth() + 1, da.getDate()].join('-');
|
|
|
+ },
|
|
|
+ initDate(type) {
|
|
|
+ this.mixins_query.date = this.$moment().format(type);
|
|
|
+ },
|
|
|
getorgTree() {
|
|
|
this.$http
|
|
|
.get('/sc-community/assets/community/list')
|