<template>
|
<el-dialog
|
:visible.sync="dialogVisible"
|
width="70%"
|
:append-to-body="true"
|
:title="title"
|
>
|
<div class="app-container">
|
<div class="table_content">
|
<el-table
|
v-loading="listLoading"
|
:key="tableKey"
|
:data="listData"
|
border
|
fit
|
highlight-current-row
|
style="width: 100%;"
|
show-summary
|
>
|
<el-table-column label="企业名称" prop="enterpriseUser" align="center">
|
</el-table-column>
|
<el-table-column label="总库存" prop="totalStock" align="center">
|
</el-table-column>
|
<el-table-column label="爆竹类(箱)" prop="firecracker" align="center">
|
</el-table-column>
|
<el-table-column label="喷花类(箱)" prop="spray" align="center">
|
</el-table-column>
|
<el-table-column label="旋转类(箱)" prop="rotation" align="center">
|
</el-table-column>
|
<el-table-column label="吐珠类(箱)" prop="bead" align="center">
|
</el-table-column>
|
<el-table-column label="玩具类(箱)" prop="toy" align="center">
|
</el-table-column>
|
<el-table-column label="组合烟花类(箱)" prop="combined" align="center">
|
</el-table-column>
|
</el-table>
|
<br>
|
<!-- <el-pagination-->
|
<!-- v-show="recordTotal>0"-->
|
<!-- :current-page="currentPage"-->
|
<!-- :page-sizes="[10, 15]"-->
|
<!-- :page-size="pageSize"-->
|
<!-- :total="recordTotal"-->
|
<!-- layout="total, sizes, prev, pager, next, jumper"-->
|
<!-- background-->
|
<!-- style="float:right;"-->
|
<!-- @size-change="handleSizeChange"-->
|
<!-- @current-change="handleCurrentChange"-->
|
<!-- />-->
|
<!-- <br>-->
|
</div>
|
</div>
|
</el-dialog>
|
</template>
|
|
<script>
|
import {computePageCount} from "@/utils";
|
import {listStockDataByStorehouseId} from "../../../api/warehouse";
|
|
export default {
|
name: "index",
|
data(){
|
return{
|
title:'',
|
tableKey:'',
|
listLoading:false,
|
listData:[],
|
dialogVisible:false,
|
}
|
},
|
components: {},
|
methods:{
|
open(data){
|
this.getList(data.id || data.storehouseId)
|
this.dialogVisible = true
|
},
|
async getList(id){
|
this.listLoading = true
|
let res = await listStockDataByStorehouseId({id: id})
|
if(res.data.code === "200"){
|
this.listData = res.data.result.stockDataInfos
|
this.title = '库区:'+res.data.result.reserveName +' 仓库:'+ res.data.result.storehouseName + '各企业库存情况'
|
}else{
|
this.$message({
|
type:'warning',
|
message:res.data.message
|
})
|
}
|
this.listLoading = false
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
.basic_search{
|
display:inline-block;
|
}
|
.table_title{
|
font-size: 18px;
|
margin-bottom: 20px;
|
}
|
</style>
|