From f71349e211e274904bbd883c9ac119acc3f12368 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Mon, 09 Mar 2026 11:41:12 +0800
Subject: [PATCH] 修改名称
---
src/views/warehouse/components/enterpriseStock.vue | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/src/views/warehouse/components/enterpriseStock.vue b/src/views/warehouse/components/enterpriseStock.vue
index fdd9e13..6972463 100644
--- a/src/views/warehouse/components/enterpriseStock.vue
+++ b/src/views/warehouse/components/enterpriseStock.vue
@@ -55,7 +55,7 @@
<script>
import {computePageCount} from "@/utils";
- import {listStockDataByStorehouseId} from "../../../api/warehouse";
+ import {listStockDataByStorehouseId, listStockHzDataByStorehouseId} from "../../../api/warehouse";
export default {
name: "index",
@@ -70,8 +70,13 @@
},
components: {},
methods:{
- open(data){
- this.getList(data.id || data.storehouseId)
+ open(data,type){
+ console.log(data,'data')
+ if(type == '监管' || type == '管理'){
+ this.getList(data.id || data.storehouseId)
+ }else{
+ this.getHzList(data)
+ }
this.dialogVisible = true
},
async getList(id){
@@ -87,6 +92,25 @@
})
}
this.listLoading = false
+ },
+ async getHzList(data){
+ this.listLoading = true
+ let res = await listStockHzDataByStorehouseId({sid: data.storehouseId,eid: data.gId})
+ if(res.data.code === "200"){
+ if(res.data.result && res.data.result.stockDataInfos.length>0 && res.data.result.reserveName && res.data.result.storehouseName){
+ this.listData = res.data.result.stockDataInfos
+ this.title = '库区:'+res.data.result.reserveName +' 仓库:'+ res.data.result.storehouseName + '各企业库存情况'
+ }else{
+ this.listData = []
+ this.title = '暂无企业库存情况'
+ }
+ }else{
+ this.$message({
+ type:'warning',
+ message:res.data.message
+ })
+ }
+ this.listLoading = false
}
}
}
--
Gitblit v1.9.2