Commit ceabdfd5 by huangqy

中间左边块

parent 2b471386
......@@ -19,27 +19,23 @@
</div>
<div class="extra">
<div class="item">
<span style="font-size: 0.3rem;">位总数</span>
<span style="font-size: 0.3rem;">位总数</span>
<span style="margin-left: 38px;color: #03a9f4;font-size: 0.32rem;font-weight: 700;">{{ rackAmount }}</span>
</div>
</div>
<div class="down">
<div class="leftNm">
<div class="item">
<span>工作</span>
<span>工作</span>
<span style="margin-left: 55px;font-size: 0.25rem;color: #03a9f4;">{{ workRackAmount }}</span>
</div>
<div class="item">
<span>有货</span>
<span>有货</span>
<span style="margin-left: 55px;font-size: 0.25rem;color: #03a9f4;">{{ usedRackAmount }}</span>
</div>
<div class="item">
<span>空 托 盘</span>
<span style="margin-left: 63px;font-size: 0.25rem;color: #03a9f4;">{{ nullPalletAmount }}</span>
</div>
<div class="item">
<span>空 货 位</span>
<span style="margin-left: 63px;font-size: 0.25rem;color: #03a9f4;">{{ nullRackAmount }}</span>
<span>无货垛位</span>
<span style="margin-left: 55px;font-size: 0.25rem;color: #03a9f4;">{{ nullRackAmount }}</span>
</div>
</div>
<div class="percent">
......@@ -88,8 +84,7 @@ export default {
},
methods: {
initData() {
let params = window._CONFIG['isLTK'] ? {storeCode: this.$route.query.storeCode} : ''
getAction(window._CONFIG['domianURL'] + this.url, params).then(res => {
getAction(window._CONFIG['domianURL'] + this.url, {storeCode: this.$route.query.storeCode}).then(res => {
this.amount = res.data.stockVo.amount
this.inAmount = {
number: [res.data.stockVo.inAmount],
......@@ -108,26 +103,21 @@ export default {
}
}
this.rackAmount = res.data.rackVo.rackAmount
this.nullPalletAmount = res.data.rackVo.nullPalletAmount
this.nullRackAmount = res.data.rackVo.nullRackAmount
this.usedRackAmount = res.data.rackVo.usedRackAmount
this.workRackAmount = res.data.rackVo.workRackAmount
this.config = {
data: [
{
name: '工作位',
name: '工作位',
value: this.workRackAmount
},
{
name: '有货位',
name: '有货位',
value: this.usedRackAmount
},
{
name: '空托盘',
value: this.nullPalletAmount
},
{
name: '空货位',
name: '无货垛位',
value: this.nullRackAmount
}
],
......
......@@ -127,7 +127,7 @@ export default {
span {
margin-top: 0.0875rem;
display: flex;
font-size: 0.24rem;
font-size: 0.2rem;
line-height: 1.5rem;
justify-content: center;
}
......
......@@ -5,7 +5,7 @@
<span style="color:#5cd9e8">
<icon name="align-left"></icon>
</span>
<span class="fs-xl text mx-2 headerTitle">巷道物资统计</span>
<span class="fs-xl text mx-2 headerTitle">垛位物资统计</span>
</div>
<dv-capsule-chart :config="config" style="width: 4.6rem;height: 3.4rem" />
</div>
......@@ -17,7 +17,7 @@ import { getAction } from '@/api/manage'
export default {
data() {
return {
url: '/first/getGoodsStock',
url: '/firstDynamic/getStockByPosition',
config: {}
};
},
......@@ -29,13 +29,12 @@ export default {
},
methods: {
getGoodsStock() {
let params = window._CONFIG['isLTK'] ? {storeCode: this.$route.query.storeCode} : ''
getAction(window._CONFIG['domianURL'] + this.url, params).then(res => {
getAction(window._CONFIG['domianURL'] + this.url, {storeCode: this.$route.query.storeCode}).then(res => {
let data = []
res.data.consumeGoods.forEach(item => {
res.data.forEach(item => {
const obj = {
name: item.vaisleName,
value: item.qty
name: item.goodsName,
value: item.amount
}
data.push(obj)
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论