lion 2 years ago
parent 2f716b9cfb
commit fdeb9d812d

@ -16,5 +16,14 @@ export function outboundsCharts(params) {
})
}
export function updateInventorys(params) {
return request({
url: '/api/admin/chart/update-inventorys',
method: 'get',
params:params
})
}

@ -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 = () => {

@ -28,7 +28,7 @@
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>物资类型
</div>
<div class="xy-table-item-content">
<el-select v-model="form.wuzileixing" style="width: 300px;" placeholder="请选择物资类型">
<el-select :disabled="type==='editor'?true:false" v-model="form.wuzileixing" style="width: 300px;" placeholder="请选择物资类型">
<el-option
v-for="item in lexingList"
:key="item.value"

Loading…
Cancel
Save