feat:禅道383黑化车间看板-投产分析时间改为早7-晚7

This commit is contained in:
shijing 2026-04-29 15:26:04 +08:00
parent d47bf5fc49
commit 6020f9a541
1 changed files with 12 additions and 8 deletions

View File

@ -141,7 +141,7 @@
<el-col :xs="8" :md="8" style="height: 100%;">
<div class="box">
<div class="boxtitle">
<div class="boxlabel">投产分析2:00 次日2:00</div>
<div class="boxlabel">投产分析7:00 次日7:00</div>
</div>
<div class="totalStatic">
<span class="totalStaticItem">昨日退火投产统计</span>
@ -752,18 +752,22 @@ export default {
})
},
//
getMaterials() {
getMaterials(page) {
let that = this;
that.$API.wpm.wmaterial.list.req({ page: 0,mgroup__name__in:'退火,黑化' }).then((res) => {
that.configData.data = [];
if(res.length>0){
res.forEach((item) => {
page = page || 1;
if(page === 1) that.configData.data = [];
that.$API.wpm.wmaterial.list.req({ page: page, page_size: 100, mgroup__name__in:'退火,黑化' }).then((res) => {
if(res.results && res.results.length > 0){
res.results.forEach((item) => {
let arr = [];
arr[0] = item.material_name;
arr[1] = item.batch;
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);
}
}
})
},