Commit ceabdfd5 by huangqy

中间左边块

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