|
@@ -380,6 +380,7 @@ export default {
|
|
getInventoryLines({}).then(res => {
|
|
getInventoryLines({}).then(res => {
|
|
if (res.code === 10000) {
|
|
if (res.code === 10000) {
|
|
this.inventoryLinesData = res.data
|
|
this.inventoryLinesData = res.data
|
|
|
|
+ console.log(this.inventoryLinesData)
|
|
} else {
|
|
} else {
|
|
this.inventoryLinesData = {
|
|
this.inventoryLinesData = {
|
|
boarStock: [],
|
|
boarStock: [],
|
|
@@ -399,6 +400,8 @@ export default {
|
|
// this.inventoryLinesData = res.data
|
|
// this.inventoryLinesData = res.data
|
|
console.log(res.data)
|
|
console.log(res.data)
|
|
this.inventoryPieData = res.data.slice(0, 6)
|
|
this.inventoryPieData = res.data.slice(0, 6)
|
|
|
|
+ console.log('-----------存栏结构数据')
|
|
|
|
+ console.log(this.inventoryPieData)
|
|
this.inventoryItemsData = [res.data[1].stockQuantity, res.data[6].stockQuantity, res.data[7].stockQuantity, res.data[8].stockQuantity, res.data[2].stockQuantity, res.data[9].stockQuantity]
|
|
this.inventoryItemsData = [res.data[1].stockQuantity, res.data[6].stockQuantity, res.data[7].stockQuantity, res.data[8].stockQuantity, res.data[2].stockQuantity, res.data[9].stockQuantity]
|
|
this.productionPercents = [res.data[12].rate*100, res.data[13].rate*100, res.data[14].rate*100, res.data[15].rate*100, res.data[16].rate*100]
|
|
this.productionPercents = [res.data[12].rate*100, res.data[13].rate*100, res.data[14].rate*100, res.data[15].rate*100, res.data[16].rate*100]
|
|
this.productionItems = [res.data[17].stockQuantity, res.data[18].stockQuantity, res.data[19].stockQuantity, res.data[20].stockQuantity, res.data[21].stockQuantity, res.data[22].stockQuantity, res.data[23].stockQuantity, res.data[24].stockQuantity]
|
|
this.productionItems = [res.data[17].stockQuantity, res.data[18].stockQuantity, res.data[19].stockQuantity, res.data[20].stockQuantity, res.data[21].stockQuantity, res.data[22].stockQuantity, res.data[23].stockQuantity, res.data[24].stockQuantity]
|
|
@@ -440,6 +443,7 @@ export default {
|
|
getSalesChart(params).then(res => {
|
|
getSalesChart(params).then(res => {
|
|
if (res.code === 10000) {
|
|
if (res.code === 10000) {
|
|
this.salesChartData = res.data
|
|
this.salesChartData = res.data
|
|
|
|
+ console.log(this.salesChartData)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|