From 0a3f7d7292fdb64eda329718e632c3a2ff4f81e9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 14 Jul 2026 12:39:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:zt=5Fbatch=5Fgx=E5=B1=95=E5=BC=80=E8=A1=8Cc?= =?UTF-8?q?ount=5F*=E5=AD=97=E6=AE=B5=E5=90=8E=E7=BC=80=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E4=B8=BA=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- src/views/statistics/zt_batch_gx.vue | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/views/statistics/zt_batch_gx.vue b/src/views/statistics/zt_batch_gx.vue index 7ca9c99b..6687d05f 100644 --- a/src/views/statistics/zt_batch_gx.vue +++ b/src/views/statistics/zt_batch_gx.vue @@ -64,7 +64,7 @@ @@ -148,6 +148,29 @@ export default { let s = row.data.直通_子批次; return s ? s.split(";").length : 0; }, + displayData(data) { + // count_* 字段后缀翻译为中文展示(注意 _count_ok_full 须在 _count_ok 之前替换) + const map = [ + ["_count_ok_full", "_完全合格数"], + ["_count_notok", "_不合格数"], + ["_count_ok", "_合格数"], + ["_count_use", "_领用数"], + ["_count_real", "_生产数"], + ["_count_pn_jgqbl", "_加工前不良"], + ]; + const out = {}; + for (const k in data) { + let nk = k; + for (const [en, cn] of map) { + if (nk.includes(en)) { + nk = nk.replace(en, cn); + break; + } + } + out[nk] = data[k]; + } + return out; + }, getList(val) { let that = this; that.params.page = val ? val : 1;