feat:禅道383黑化车间看板-投产分析时间改为早7-晚7
This commit is contained in:
parent
d47bf5fc49
commit
6020f9a541
|
|
@ -141,7 +141,7 @@
|
||||||
<el-col :xs="8" :md="8" style="height: 100%;">
|
<el-col :xs="8" :md="8" style="height: 100%;">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="boxtitle">
|
<div class="boxtitle">
|
||||||
<div class="boxlabel">投产分析(2:00 — 次日2:00)</div>
|
<div class="boxlabel">投产分析(7:00 — 次日7:00)</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="totalStatic">
|
<div class="totalStatic">
|
||||||
<span class="totalStaticItem">昨日退火投产统计</span>
|
<span class="totalStaticItem">昨日退火投产统计</span>
|
||||||
|
|
@ -752,18 +752,22 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//库存统计列表
|
//库存统计列表
|
||||||
getMaterials() {
|
getMaterials(page) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({ page: 0,mgroup__name__in:'退火,黑化' }).then((res) => {
|
page = page || 1;
|
||||||
that.configData.data = [];
|
if(page === 1) that.configData.data = [];
|
||||||
if(res.length>0){
|
that.$API.wpm.wmaterial.list.req({ page: page, page_size: 100, mgroup__name__in:'退火,黑化' }).then((res) => {
|
||||||
res.forEach((item) => {
|
if(res.results && res.results.length > 0){
|
||||||
|
res.results.forEach((item) => {
|
||||||
let arr = [];
|
let arr = [];
|
||||||
arr[0] = item.material_name;
|
arr[0] = item.material_name;
|
||||||
arr[1] = item.batch;
|
arr[1] = item.batch;
|
||||||
arr[2] = item.count;
|
arr[2] = item.count;
|
||||||
that.configData.data .push(arr);
|
that.configData.data.unshift(arr);
|
||||||
})
|
});
|
||||||
|
if(that.configData.data.length < res.count){
|
||||||
|
that.getMaterials(page + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue