From 6020f9a541a9c2134ff21901cbd1e5d0444803c5 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 29 Apr 2026 15:26:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93383=E9=BB=91=E5=8C=96?= =?UTF-8?q?=E8=BD=A6=E9=97=B4=E7=9C=8B=E6=9D=BF-=E6=8A=95=E4=BA=A7?= =?UTF-8?q?=E5=88=86=E6=9E=90=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA=E6=97=A9?= =?UTF-8?q?7-=E6=99=9A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_heihuadept.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/bigScreen/index_heihuadept.vue b/src/views/bigScreen/index_heihuadept.vue index f5b5f769..e7152da2 100644 --- a/src/views/bigScreen/index_heihuadept.vue +++ b/src/views/bigScreen/index_heihuadept.vue @@ -141,7 +141,7 @@
-
投产分析(2:00 — 次日2:00)
+
投产分析(7:00 — 次日7:00)
昨日退火投产统计 @@ -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); + } } }) },