diff --git a/src/api/charts.js b/src/api/charts.js index 8543069..7f7d2d3 100644 --- a/src/api/charts.js +++ b/src/api/charts.js @@ -16,5 +16,14 @@ export function outboundsCharts(params) { }) } +export function updateInventorys(params) { + return request({ + url: '/api/admin/chart/update-inventorys', + method: 'get', + params:params + }) +} + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index c55fee6..c2cd219 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -38,7 +38,7 @@ stocksCharts } from "@/api/charts.js" import { - outboundsCharts + outboundsCharts,updateInventorys } from "@/api/charts.js" import { getInfo @@ -123,6 +123,11 @@ this.list = res; }).catch() }, + async updateIn(){ + await updateInventorys().then(res=>{ + + }) + }, async loadChart(){ let that = this that.lineArr.xArr = [] @@ -205,6 +210,7 @@ this.dateRange = [this.start_time,this.end_time] this.loadData(); this.loadChart() + this.updateIn() }, mounted() { window.onresize = () => { diff --git a/src/views/materialfile/component/addMater.vue b/src/views/materialfile/component/addMater.vue index c863692..49ea605 100644 --- a/src/views/materialfile/component/addMater.vue +++ b/src/views/materialfile/component/addMater.vue @@ -28,7 +28,7 @@ *物资类型: