- 同比昨日 {{item.rate}}%
+ 同比上次 {{item.rate}}%

diff --git a/src/views/foodManage/index.vue b/src/views/foodManage/index.vue
index e1a6d2c2..0c6f0c38 100644
--- a/src/views/foodManage/index.vue
+++ b/src/views/foodManage/index.vue
@@ -4,8 +4,8 @@
数据总览
-
-
+
+
@@ -76,6 +76,7 @@ import { getDataScreeningModelApi,
getProportionOfOrderTypesApi
} from "@/api/index";
import {
+ getIndexDataApi,
supplierScorePageApi
} from "@/api/foodManage/index";
@@ -148,7 +149,7 @@ export default {
}
},
mounted(){
- // this.getTopData()
+ this.getTopData()
this.InitEChartsOne()
this.InitEChartsTwo()
this.InitEChartsThree()
@@ -173,10 +174,51 @@ export default {
},
handleTabClick(){
console.log(this.activeName)
+ this.getTopData()
},
getTopData(){
- getDataScreeningModelApi({}).then((response) => {
- this.topAreaOptions = response.data.data;
+ getIndexDataApi({type:this.activeName}).then((response) => {
+ this.topAreaOptions = [
+ {
+ "num": response.data.totalOrderAmount.thisNum,
+ "rate": response.data.totalOrderAmount.percent,
+ "name": "采购订单总额(元)"
+ },{
+ "num": response.data.totalOrderNum.thisNum,
+ "rate": response.data.totalOrderNum.percent,
+ "name": "采购订单数量(个)"
+ },
+ {
+ "num": response.data.unFinshOrderNum.thisNum,
+ "rate": response.data.unFinshOrderNum.percent,
+ "name": "未验收完成采购订单数(个)"
+ },
+ {
+ "num": response.data.totalOrderGoodsNum.thisNum,
+ "rate": response.data.totalOrderGoodsNum.percent,
+ "name": "采购订单货品总数"
+ },
+ {
+ "num": response.data.storeNum.thisNum,
+ "rate": response.data.storeNum.percent,
+ "name": "入库货品数量"
+ },
+ {
+ "num": response.data.outboundNum.thisNum,
+ "rate": response.data.outboundNum.percent,
+ "name": "出库货品数量"
+ },
+ {
+ "num": response.data.storeAmount.thisNum,
+ "rate": response.data.storeAmount.percent,
+ "name": "入库总金额(元)"
+ },
+ {
+ "num": response.data.outboundAmount.thisNum,
+ "rate": response.data.outboundAmount.percent,
+ "name": "出库总金额(元)"
+ }
+ ];
});
},
InitEChartsOne() {
diff --git a/src/views/foodManage/stockReport/inoutDetails/index.vue b/src/views/foodManage/stockReport/inoutDetails/index.vue
index 3271cc2b..c3220a34 100644
--- a/src/views/foodManage/stockReport/inoutDetails/index.vue
+++ b/src/views/foodManage/stockReport/inoutDetails/index.vue
@@ -44,16 +44,26 @@
-
-
-
+
+
+
-
-
-
-
+
-
+ 领取出库
+ 报损出库
+ 退货出库
+ 调拨出库
+ 即入即出
+ 超市出库
+ 盘点出库
+
+
+
+
+
+
+ {{ (scope.row.outAmount/100).toFixed(2) }}
@@ -113,13 +123,25 @@
-
-
-
-
-
-
-
+
+
+
+
+ {{ (scope.row.balanceAmount/100).toFixed(2) }}
+
+
+
+
+
+ {{ (scope.row.intoAmount/100).toFixed(2) }}
+
+
+
+
+
+ {{ (scope.row.outAmount/100).toFixed(2) }}
+
+
import { systemAreaTreeApi } from "@/api/base/stall";
import { drpWareHousePageApi } from "@/api/foodManage/stockManage";
-import { stockInoutWarningPageApi } from "@/api/foodManage/stockReport";
+import { stockInoutFlowingPageApi,stockInoutStatisticsPageApi } from "@/api/foodManage/stockReport";
export default {
name: "",
@@ -277,13 +299,13 @@ export default {
"materialName": this.queryParams.materialName,
}
if(this.dateRange&&this.dateRange.length>0){
- param.startDateTime=this.formatDateTime(this.dateRange[0])
- param.endDateTime=this.formatDateTime(this.dateRange[1])
+ param.startDate=this.formatDateTime(this.dateRange[0])
+ param.endDate=this.formatDateTime(this.dateRange[1])
}else{
- param.startDateTime=undefined;
- param.endDateTime=undefined;
+ param.startDate=undefined;
+ param.endDate=undefined;
}
- stockInoutWarningPageApi(param).then(response => {
+ stockInoutFlowingPageApi(param).then(response => {
this.tableListData = response.rows;
this.total = Number(response.total);
this.loading = false;
@@ -306,11 +328,11 @@ export default {
let param = {
"pageNum": this.queryParams2.pageNum,
"pageSize": this.queryParams2.pageSize,
- "areaId": this.queryParams2.areaId,
- "warehouseId": this.queryParams2.warehouseId,
+ "areaIdList": [this.queryParams2.areaId],
+ "warehouseIdList": [this.queryParams2.warehouseId],
"materialName": this.queryParams2.materialName
}
- stockInoutWarningPageApi(param).then(response => {
+ stockInoutStatisticsPageApi(param).then(response => {
this.tableListData2 = response.rows;
this.total2 = Number(response.total);
this.loading = false;