|
@@ -70,43 +70,43 @@
|
|
|
|
|
|
<el-table-column label="入库时间">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.updateTime }}
|
|
|
+ {{ scope.row.add_time }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="电池类型" prop="deptId">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.typeTitle}}
|
|
|
+ {{ scope.row.type_title}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="PACK厂">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.packTitle }}
|
|
|
+ {{ scope.row.pack_title }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="批次编号">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.batchNum }}
|
|
|
+ {{ scope.row.batch_num }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="状态">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.statusTitle }}
|
|
|
+ {{ scope.row.status | statusStr }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="发送地">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.receivedPlace }}
|
|
|
+ {{ scope.row.received_place }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" prop="updateTime" label="操作时间">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.updateTime }}</span>
|
|
|
+ <span>{{ scope.row.add_time }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -371,7 +371,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getInfoList } from '@/api/device/info'
|
|
|
+import { storageInList } from '@/api/device/storage'
|
|
|
import Create from '@/views/device/storage/create.vue'
|
|
|
|
|
|
export default {
|
|
@@ -387,9 +387,8 @@ export default {
|
|
|
index: 1,
|
|
|
length: 20,
|
|
|
sn: '',
|
|
|
- status: [1],
|
|
|
sort: 'id desc',
|
|
|
- checkStatus: null
|
|
|
+ // checkStatus: []
|
|
|
},
|
|
|
//总条数
|
|
|
total: 0,
|
|
@@ -438,14 +437,8 @@ export default {
|
|
|
/**请求列表数据 */
|
|
|
getDataList() {
|
|
|
this.loading = true
|
|
|
- let dataForm = {
|
|
|
- index: this.listQuery.index,
|
|
|
- length: this.listQuery.length,
|
|
|
- sn: this.listQuery.sn,
|
|
|
- status: [1],
|
|
|
- sort: this.listQuery.sort,
|
|
|
- }
|
|
|
- getInfoList(dataForm).then(response => {
|
|
|
+
|
|
|
+ storageInList(this.listQuery).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.data = response.data
|
|
|
this.total = response.total
|
|
@@ -480,6 +473,19 @@ export default {
|
|
|
gotoHandle() {
|
|
|
this.$router.push('/device/storage/batchWarehousing')
|
|
|
}
|
|
|
+ },
|
|
|
+ filters: {
|
|
|
+ statusStr(value) {
|
|
|
+ if(value === 1) {
|
|
|
+ return '已入库'
|
|
|
+ } else if(value === 2) {
|
|
|
+ return '已调拨'
|
|
|
+ } else if(value === 3) {
|
|
|
+ return '已出库'
|
|
|
+ } else if(value === 4) {
|
|
|
+ return '已处置'
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|