Commit 8e2efef0 by wangchunyang

首页显示数量调整,库存查询调整

parent db0c0a3a
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<img class="logo" :src="item.logo" alt=""></img> <img class="logo" :src="item.logo" alt=""></img>
</div> </div>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<div class="flex1 middle"> <div class="flex1 middle">
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<el-table v-loading="loading" height="100%" :data="tableList"> <el-table v-loading="loading" height="100%" :data="tableList">
<el-table-column type="index" label="序号" align="center" width="100" fixed="left"/> <el-table-column type="index" label="序号" align="center" width="100" fixed="left"/>
<el-table-column label="物料名称" align="center" prop="materialName" :show-overflow-tooltip="true" width="200"/> <el-table-column label="物料名称" align="center" prop="materialName" :show-overflow-tooltip="true" width="200"/>
<el-table-column label="所属分类" align="center" prop="categoryName" :show-overflow-tooltip="true" min-width="200" /> <!-- <el-table-column label="所属分类" align="center" prop="categoryName" :show-overflow-tooltip="true" min-width="200" /> -->
<el-table-column label="物料编码" align="center" prop="sapNo" :show-overflow-tooltip="true" min-width="200" /> <el-table-column label="物料编码" align="center" prop="sapNo" :show-overflow-tooltip="true" min-width="200" />
<el-table-column label="当前库存" align="center" prop="quantity" :show-overflow-tooltip="true" min-width="200" > <el-table-column label="当前库存" align="center" prop="quantity" :show-overflow-tooltip="true" min-width="200" >
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="card-container-flex chart-container shadow"> <div class="card-container-flex chart-container shadow">
<div class="tip-title"> <div class="tip-title">
<div class="title-text">当前库存排名前10物料</div> <div class="title-text">当前库存排名前5物料</div>
<el-radio-group class="custom" v-model="kucunQueryType" size="mini" @change="kucunQueryTypeChange"> <el-radio-group class="custom" v-model="kucunQueryType" size="mini" @change="kucunQueryTypeChange">
<el-radio-button label="count">按数量</el-radio-button> <el-radio-button label="count">按数量</el-radio-button>
<el-radio-button label="money">按金额</el-radio-button> <el-radio-button label="money">按金额</el-radio-button>
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
// if(!data) return // if(!data) return
this.statics[1].value = data this.statics[1].value = data
}) })
// 出库次数 // 出库次数
outboundOrdersCount().then(res=>{ outboundOrdersCount().then(res=>{
let data = res.data let data = res.data
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
this.rukuList = data.map(item =>({ this.rukuList = data.map(item =>({
value:item.totalQuantity, value:item.totalQuantity,
name:item.materialName name:item.materialName
})).splice(0,5).reverse() })).reverse().splice(0,5).reverse()
}) })
} }
if(this.rukuRankType === 'money'){ if(this.rukuRankType === 'money'){
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
this.rukuList = data.map(item =>({ this.rukuList = data.map(item =>({
value:item.totalMoney, value:item.totalMoney,
name:item.materialName name:item.materialName
})).splice(0,5).reverse() })).reverse().splice(0,5).reverse()
}) })
} }
}, },
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
let data = res.rows let data = res.rows
if(!data) return if(!data) return
console.log('123123',data) console.log('123123',data)
this.kucunList = data this.kucunList = data.splice(0,5)
}) })
} }
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
inventoryTopTenByAmount().then(res=>{ inventoryTopTenByAmount().then(res=>{
let data = res.rows let data = res.rows
if(!data) return if(!data) return
this.kucunList = data this.kucunList = data.splice(0,5)
}) })
} }
}, },
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
height: 62px; height: 62px;
} }
} }
} }
.middle { .middle {
margin-top: var(--container-pd); margin-top: var(--container-pd);
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
color: rgba(76, 127, 244, 1); color: rgba(76, 127, 244, 1);
} }
} }
.chart-container { .chart-container {
height: 100%; height: 100%;
width: 590px; width: 590px;
margin-left: var(--container-pd); margin-left: var(--container-pd);
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
color: rgba(46, 46, 46, 1); color: rgba(46, 46, 46, 1);
margin-left: 9px; margin-left: 9px;
position: relative; position: relative;
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
width: 4px; width: 4px;
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
margin-top: 15px; margin-top: 15px;
} }
} }
// margin-left: var(--container-pd); // margin-left: var(--container-pd);
</style> </style>
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
select tab.*, case when total_quantity &lt; min_stock_level then '2' when total_quantity &gt; max_stock_level then '1' else '3' end alterType from ( select tab.*, case when total_quantity &lt; min_stock_level then '2' when total_quantity &gt; max_stock_level then '1' else '3' end alterType from (
<include refid="selectInventoryCount"/> <include refid="selectInventoryCount"/>
<where> <where>
and i.quantity > 0 and i.inventory_status = 1 and i.is_used = 1 and i.quantity != 0 and i.inventory_status = 1 and i.is_used = 1
<if test="inventoryType != null "> and i.inventory_type = #{inventoryType}</if> <if test="inventoryType != null "> and i.inventory_type = #{inventoryType}</if>
<if test="materialId != null and materialId != ''"> and m.material_code like concat('%', #{materialId}, '%')</if> <if test="materialId != null and materialId != ''"> and m.material_code like concat('%', #{materialId}, '%')</if>
<if test="batchId != null and batchId != ''"> and i.batch_id like concat('%', #{batchId}, '%')</if> <if test="batchId != null and batchId != ''"> and i.batch_id like concat('%', #{batchId}, '%')</if>
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
<select id="selectInventoryDetailList" parameterType="Inventory" resultMap="InventoryResult"> <select id="selectInventoryDetailList" parameterType="Inventory" resultMap="InventoryResult">
<include refid="selectInventoryDetailVo"/> <include refid="selectInventoryDetailVo"/>
<where> <where>
and i.quantity > 0 and i.inventory_status = 1 and i.is_used = 1 and i.quantity != 0 and i.inventory_status = 1 and i.is_used = 1
<if test="inventoryType != null "> and i.inventory_type = #{inventoryType}</if> <if test="inventoryType != null "> and i.inventory_type = #{inventoryType}</if>
<if test="materialId != null and materialId != ''"> and i.material_id = #{materialId}</if> <if test="materialId != null and materialId != ''"> and i.material_id = #{materialId}</if>
<if test="batchId != null and batchId != ''"> and i.batch_id like concat('%', #{batchId}, '%')</if> <if test="batchId != null and batchId != ''"> and i.batch_id like concat('%', #{batchId}, '%')</if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论