|
|
|
@ -21,19 +21,16 @@
|
|
|
|
|
<div class="table1">
|
|
|
|
|
<div style="background-color: #1077bc19">
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
任务编号
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
任务类型
|
|
|
|
|
物料编码
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
物料名称
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
库位编号
|
|
|
|
|
物料规格
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
时间
|
|
|
|
|
库存数量
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<vue-seamless-scroll
|
|
|
|
@ -50,27 +47,22 @@
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.taskCode }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
入库
|
|
|
|
|
{{ item.materialCode }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.materialName }}
|
|
|
|
|
{{item.materialName}}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.locationCode }}
|
|
|
|
|
{{ item.materialSpec }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.applylate }}
|
|
|
|
|
{{ item.totalAmount }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -80,19 +72,16 @@
|
|
|
|
|
<div class="table2">
|
|
|
|
|
<div style="background-color: #1077bc19">
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
订单
|
|
|
|
|
物料编码
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
物料
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
物料需求
|
|
|
|
|
物料名称
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
Bom分解
|
|
|
|
|
物料规格
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="color:#65c2f3;font-weight: bold;">
|
|
|
|
|
时间
|
|
|
|
|
库存数量
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<vue-seamless-scroll
|
|
|
|
@ -102,34 +91,29 @@
|
|
|
|
|
style="height: calc(100% - 30px);overflow: hidden;"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in scrollTableData1"
|
|
|
|
|
v-for="(item, index) in scrollTableData"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<div :style='"background-color:" + ((index % 2 === 0)? "#1077bc19":"#1077bc05") '>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.orderCode }}
|
|
|
|
|
{{ item.materialCode }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.materialName }}
|
|
|
|
|
{{item.materialName}}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.saleAmount }}
|
|
|
|
|
{{ item.materialSpec }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
<!-- {{ item.value4 }}-->
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem"
|
|
|
|
|
>
|
|
|
|
|
{{ item.releaseTime }}
|
|
|
|
|
{{ item.totalAmount }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -160,7 +144,13 @@ import vueSeamlessScroll from 'vue-seamless-scroll'
|
|
|
|
|
import Chart from '@/components/board/Chart'
|
|
|
|
|
import HighChart from '@/components/board/HighChart'
|
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
|
import {} from '@/api/board/fourthFloorWarehouse'
|
|
|
|
|
import {
|
|
|
|
|
latestYearInOutStocks,
|
|
|
|
|
getFourthFloorTotalProductStocks,
|
|
|
|
|
getFourthFloorProductInOutstockInfo,
|
|
|
|
|
getFourthFloorPlateStockTotals,
|
|
|
|
|
getFourthFloorAccessoriesStockTotals
|
|
|
|
|
} from '@/api/board/fourthFloorWarehouse'
|
|
|
|
|
import { parseTime } from '@/utils/ruoyi'
|
|
|
|
|
|
|
|
|
|
const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100
|
|
|
|
@ -236,16 +226,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData() {
|
|
|
|
|
let e = {
|
|
|
|
|
data: {
|
|
|
|
|
'rawInstockAmount': 28,
|
|
|
|
|
'rawOutstockAmount': 14,
|
|
|
|
|
'productInstockAmount': 8
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
latestYearInOutStocks().then(e=>{
|
|
|
|
|
this.topData.num1 = [...[0, 0, 0, 0], ...(e.data.rawInstockAmount || 0).toString().split('')].slice(-4)
|
|
|
|
|
this.topData.num2 = [...[0, 0, 0, 0], ...(e.data.rawOutstockAmount || 0).toString().split('')].slice(-4)
|
|
|
|
|
this.topData.num3 = [...[0, 0, 0, 0], ...(e.data.productInstockAmount || 0).toString().split('')].slice(-4)
|
|
|
|
|
})
|
|
|
|
|
getFourthFloorTotalProductStocks().then(e=>{
|
|
|
|
|
this.$refs.chart1.setData({
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: 'item'
|
|
|
|
@ -283,7 +269,7 @@ export default {
|
|
|
|
|
width: 2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data: [1, 2, 3]
|
|
|
|
|
data: e.data.map(v=>v.materialName)
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
type: 'value',
|
|
|
|
@ -334,7 +320,7 @@ export default {
|
|
|
|
|
false
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
data: [11, 22, 3]
|
|
|
|
|
data: e.data.map(v=>v.totalAmount)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '',
|
|
|
|
@ -348,12 +334,12 @@ export default {
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: '#138dd7'
|
|
|
|
|
},
|
|
|
|
|
data: [11, 22, 3]
|
|
|
|
|
data: e.data.map(v=>v.totalAmount)
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
this.scrollTableData = []
|
|
|
|
|
this.scrollTableData1 = []
|
|
|
|
|
})
|
|
|
|
|
getFourthFloorProductInOutstockInfo().then(e=>{
|
|
|
|
|
this.$refs.chart3.setData({
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: 'axis',
|
|
|
|
@ -381,7 +367,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
type: 'category',
|
|
|
|
|
data: e.data.map(v => parseTime(v.day, '{m}-{d}')),
|
|
|
|
|
data: ['出入库信息'],
|
|
|
|
|
axisLine: {
|
|
|
|
|
lineStyle: {
|
|
|
|
|
color: 'white'
|
|
|
|
@ -431,7 +417,7 @@ export default {
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data: e.data.map(v => v.instockAmount)
|
|
|
|
|
data: [e.data.productInstockAmount]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '出库',
|
|
|
|
@ -451,11 +437,19 @@ export default {
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data: e.data.map(v => v.outStockAmount)
|
|
|
|
|
data: [e.data.productOutStockAmount]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
getFourthFloorPlateStockTotals().then(e=>{
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.scrollTableData = e.data
|
|
|
|
|
})
|
|
|
|
|
getFourthFloorAccessoriesStockTotals().then(e=>{
|
|
|
|
|
this.scrollTableData1 = e.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -564,7 +558,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
.scrollTableItem {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: calc(100% / 5);
|
|
|
|
|
width: calc(100% / 4);
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 14px 0;
|
|
|
|
|
color: #4e99c5
|
|
|
|
|