From 8335607623561dcbd456c538200ea530861adca6 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 30 Apr 2025 11:11:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A3=92=E7=AE=A1=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/statistics_bang.vue | 174 +++++++++++-- src/views/statistics/statistics_guan.vue | 316 +++++++++++++++++------ 2 files changed, 383 insertions(+), 107 deletions(-) diff --git a/src/views/statistics/statistics_bang.vue b/src/views/statistics/statistics_bang.vue index a45a1d30..aae95dfe 100644 --- a/src/views/statistics/statistics_bang.vue +++ b/src/views/statistics/statistics_bang.vue @@ -106,7 +106,7 @@ @@ -138,7 +138,7 @@ @@ -173,7 +173,7 @@ @@ -188,7 +188,7 @@ @@ -299,7 +299,7 @@ @@ -317,47 +317,47 @@ @@ -438,7 +438,7 @@ @@ -448,7 +448,7 @@ @@ -456,63 +456,63 @@ @@ -546,6 +546,124 @@ export default { handleQuery(){ this.$refs.table.queryData(this.query); }, + getCountQt(data,type){ + let count_qt = 0,count = 0; + if(type=='7车间'){ + if(data.棒料成型_count_notok){ + if (data.棒料成型_count_n_zw !== undefined) { + count += data.棒料成型_count_n_zw ; + } + if (data.棒料成型_count_n_zt !== undefined) { + count += data.棒料成型_count_n_zt ; + } + if (data.棒料成型_count_n_tw !== undefined) { + count += data.棒料成型_count_n_tw ; + } + if (data.棒料成型_count_n_qp !== undefined) { + count += data.棒料成型_count_n_qp ; + } + if (data.棒料成型_count_n_zz !== undefined) { + count += data.棒料成型_count_n_zz ; + } + if (data.棒料成型_count_n_b !== undefined) { + count += data.棒料成型_count_n_b ; + } + count_qt = data.棒料成型_count_notok - count; + return count_qt; + } + }else if(type=='8车间'){ + if(data.七车间入库_count_notok){ + if (data.七车间入库_count_n_zw !== undefined) { + count += data.七车间入库_count_n_zw ; + } + if (data.七车间入库_count_n_zt !== undefined) { + count += data.七车间入库_count_n_zt ; + } + if (data.七车间入库_count_n_tw !== undefined) { + count += data.七车间入库_count_n_tw ; + } + if (data.七车间入库_count_n_qp !== undefined) { + count += data.七车间入库_count_n_qp ; + } + if (data.七车间入库_count_n_b !== undefined) { + count += data.七车间入库_count_n_b ; + } + count_qt = data.七车间入库_count_notok - count; + return count_qt; + } + }else if(type=='粗中细磨'){ + if(data.六车间_粗中细磨_count_notok){ + if (data.六车间_粗中细磨_count_n_d !== undefined) { + count += data.六车间_粗中细磨_count_n_d ; + } + if (data.六车间_粗中细磨_count_n_w !== undefined) { + count += data.六车间_粗中细磨_count_n_w ; + } + if (data.六车间_粗中细磨_count_n_yp !== undefined) { + count += data.六车间_粗中细磨_count_n_yp ; + } + if (data.六车间_粗中细磨_count_n_dl !== undefined) { + count += data.六车间_粗中细磨_count_n_dl ; + } + count_qt = data.六车间_粗中细磨_count_notok - count; + return count_qt; + } + }else if(type=='抛光'){ + if(data.六车间_抛光_count_notok){ + if (data.六车间_抛光_count_n_hs !== undefined) { + count += data.六车间_抛光_count_n_hs ; + } + if (data.六车间_抛光_count_n_dl !== undefined) { + count += data.六车间_抛光_count_n_dl ; + } + if (data.六车间_抛光_count_n_qp !== undefined) { + count += data.六车间_抛光_count_n_qp ; + } + count_qt = data.六车间_抛光_count_notok - count; + return count_qt; + } + }else if(type=='六车间中检'){ + if(data.六车间中检_count_notok){ + if (data.六车间中检_count_n_hs !== undefined) { + count += data.六车间中检_count_n_hs ; + } + if (data.六车间中检_count_n_zw !== undefined) { + count += data.六车间中检_count_n_zw ; + } + if (data.六车间中检_count_n_zdd !== undefined) { + count += data.六车间中检_count_n_zdd ; + } + if (data.六车间中检_count_n_qp !== undefined) { + count += data.六车间中检_count_n_qp ; + } + if (data.六车间中检_count_n_bl !== undefined) { + count += data.六车间中检_count_n_bl ; + } + if (data.六车间中检_count_n_qx !== undefined) { + count += data.六车间中检_count_n_qx ; + } + count_qt = data.六车间中检_count_notok - count; + return count_qt; + } + }else if(type=='六车间生产入库'){ + if(data.六车间生产入库_count_notok){ + if (data.六车间生产入库_count_n_yp !== undefined) { + count += data.六车间生产入库_count_n_yp ; + } + if (data.六车间生产入库_count_n_d !== undefined) { + count += data.六车间生产入库_count_n_d ; + } + if (data.六车间生产入库_count_n_hs !== undefined) { + count += data.六车间生产入库_count_n_hs ; + } + if (data.六车间生产入库_count_n_zw !== undefined) { + count += data.六车间生产入库_count_n_zw ; + } + count_qt = data.六车间生产入库_count_notok - count; + return count_qt; + } + } + } }, }; diff --git a/src/views/statistics/statistics_guan.vue b/src/views/statistics/statistics_guan.vue index 03659d9f..c672a35e 100644 --- a/src/views/statistics/statistics_guan.vue +++ b/src/views/statistics/statistics_guan.vue @@ -112,7 +112,7 @@ @@ -179,7 +179,7 @@ @@ -188,7 +188,69 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -376,7 +376,7 @@ @@ -418,7 +418,7 @@ @@ -497,7 +497,7 @@ @@ -514,48 +514,48 @@ @@ -587,6 +587,164 @@ export default { handleQuery(){ this.$refs.table.queryData(this.query); }, + getCountQt(data,type){ + let count_qt = 0,count = 0; + if(type=='管料成型'){ + if(data.管料成型_count_notok){ + if (data.管料成型_count_n_wq !== undefined) { + count += data.管料成型_count_n_wq ; + } + if (data.管料成型_count_n_tw !== undefined) { + count += data.管料成型_count_n_tw ; + } + if (data.管料成型_count_n_dl !== undefined) { + count += data.管料成型_count_n_dl ; + } + if (data.管料成型_count_n_pb !== undefined) { + count += data.管料成型_count_n_pb ; + } + if (data.管料成型_count_n_dxt !== undefined) { + count += data.管料成型_count_n_dxt ; + } + if (data.管料成型_count_n_js !== undefined) { + count += data.管料成型_count_n_js ; + } + if (data.管料成型_count_n_qx !== undefined) { + count += data.管料成型_count_n_qx ; + } + count_qt = data.管料成型_count_notok - count; + return count_qt; + } + }else if(type=='十车间入库'){ + if(data.十车间入库_count_notok){ + if (data.十车间入库_count_n_wq !== undefined) { + count += data.十车间入库_count_n_wq ; + } + if (data.十车间入库_count_n_tw !== undefined) { + count += data.十车间入库_count_n_tw ; + } + if (data.十车间入库_count_n_dl !== undefined) { + count += data.十车间入库_count_n_dl ; + } + if (data.十车间入库_count_n_pb !== undefined) { + count += data.十车间入库_count_n_pb ; + } + if (data.十车间入库_count_n_dxt !== undefined) { + count += data.十车间入库_count_n_dxt ; + } + if (data.十车间入库_count_n_js !== undefined) { + count += data.十车间入库_count_n_js ; + } + if (data.十车间入库_count_n_qx !== undefined) { + count += data.十车间入库_count_n_qx ; + } + count_qt = data.十车间入库_count_notok - count; + return count_qt; + } + }else if(type=='十车间入库'){ + if(data.十车间入库_count_notok){ + if (data.十车间入库_count_n_wq !== undefined) { + count += data.十车间入库_count_n_wq ; + } + if (data.十车间入库_count_n_tw !== undefined) { + count += data.十车间入库_count_n_tw ; + } + if (data.十车间入库_count_n_dl !== undefined) { + count += data.十车间入库_count_n_dl ; + } + if (data.十车间入库_count_n_pb !== undefined) { + count += data.十车间入库_count_n_pb ; + } + if (data.十车间入库_count_n_dxt !== undefined) { + count += data.十车间入库_count_n_dxt ; + } + if (data.十车间入库_count_n_js !== undefined) { + count += data.十车间入库_count_n_js ; + } + if (data.十车间入库_count_n_qx !== undefined) { + count += data.十车间入库_count_n_qx ; + } + count_qt = data.十车间入库_count_notok - count; + return count_qt; + } + }else if(type=='管料退火'){ + if(data.管料退火_count_notok){ + if (data.管料退火_count_n_xzp !== undefined) { + count += data.管料退火_count_n_xzp ; + } + if (data.管料退火_count_n_thhs !== undefined) { + count += data.管料退火_count_n_thhs ; + } + if (data.管料退火_count_n_hs !== undefined) { + count += data.管料退火_count_n_hs ; + } + if (data.管料退火_count_n_js !== undefined) { + count += data.管料退火_count_n_js ; + } + if (data.管料退火_count_n_qx !== undefined) { + count += data.管料退火_count_n_qx ; + } + count_qt = data.管料退火_count_notok - count; + return count_qt; + } + }else if(type=='开槽'){ + if(data.六车间_开槽_count_notok){ + if (data.六车间_开槽_count_n_dl !== undefined) { + count += data.六车间_开槽_count_n_dl ; + } + count_qt = data.六车间_开槽_count_notok - count; + return count_qt; + } + }else if(type=='倒角'){ + if(data.六车间_倒角_count_notok){ + if (data.六车间_倒角_count_n_dl !== undefined) { + count += data.六车间_倒角_count_n_dl ; + } + count_qt = data.六车间_倒角_count_notok - count; + return count_qt; + } + }else if(type=='六车间中检'){ + if(data.六车间中检_count_notok){ + if (data.六车间中检_count_n_hs !== undefined) { + count += data.六车间中检_count_n_hs ; + } + if (data.六车间中检_count_n_zz !== undefined) { + count += data.六车间中检_count_n_zz ; + } + if (data.六车间中检_count_n_zdd !== undefined) { + count += data.六车间中检_count_n_zdd ; + } + if (data.六车间中检_count_n_zw !== undefined) { + count += data.六车间中检_count_n_zw ; + } + if (data.六车间中检_count_n_qp !== undefined) { + count += data.六车间中检_count_n_qp ; + } + if (data.六车间中检_count_n_bl !== undefined) { + count += data.六车间中检_count_n_bl ; + } + if (data.六车间中检_count_n_hw !== undefined) { + count += data.六车间中检_count_n_hw ; + } + if (data.六车间中检_count_n_yp !== undefined) { + count += data.六车间中检_count_n_yp ; + } + count_qt = data.六车间中检_count_notok - count; + return count_qt; + } + }else if(type=='六车间生产入库'){ + if(data.六车间生产入库_count_notok){ + if (data.六车间生产入库_count_n_hs !== undefined) { + count += data.六车间生产入库_count_n_hs ; + } + if (data.六车间生产入库_count_n_zw !== undefined) { + count += data.六车间生产入库_count_n_zw ; + } + count_qt = data.六车间生产入库_count_notok - count; + return count_qt; + } + } + } }, };