fix:统计同步

This commit is contained in:
shijing 2025-07-02 10:37:45 +08:00
parent 86472560fe
commit ef83958eae
3 changed files with 115 additions and 95 deletions

View File

@ -121,7 +121,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="10号抽检" class-name="colorheader2"> <el-table-column label="8车间中检" align="center" class-name="colorheader2">
<el-table-column label="抽检数量" class-name="colorheader2"> <el-table-column label="抽检数量" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.十车间入库_count }}</span> <span v-if="scope.row.data">{{ scope.row.data.十车间入库_count }}</span>
@ -188,7 +188,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="8号入库" align="center" class-name="colorheader3"> <!-- <el-table-column label="8号入库" align="center" class-name="colorheader3">
<el-table-column label="时间" width="100px" class-name="colorheader3"> <el-table-column label="时间" width="100px" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.十车间入库_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.十车间入库_日期 }}</span>
@ -262,198 +262,198 @@
<el-table-column label="接收人" class-name="colorheader3"> <el-table-column label="接收人" class-name="colorheader3">
<template #default="scope">{{ scope.row.data.十车间入库_备注 }}</template> <template #default="scope">{{ scope.row.data.十车间入库_备注 }}</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column> -->
<el-table-column label="退火" align="center" class-name="colorheader4"> <el-table-column label="退火" align="center" class-name="colorheader3">
<el-table-column label="时间" width="160px" class-name="colorheader4"> <el-table-column label="时间" width="160px" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退火数" class-name="colorheader4"> <el-table-column label="退火数" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_use }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_use }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格数" class-name="colorheader4"> <el-table-column label="合格数" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_ok }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_ok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader4"> <el-table-column label="合格率" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_合格率 }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格数" class-name="colorheader4"> <el-table-column label="不合格数" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_notok }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="箱中破" class-name="colorheader4"> <el-table-column label="箱中破" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_xzp }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_xzp }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退火后碎" class-name="colorheader4"> <el-table-column label="退火后碎" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_thhs }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_thhs }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="划伤" class-name="colorheader4"> <el-table-column label="划伤" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_hs }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_hs }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="结石" class-name="colorheader4"> <el-table-column label="结石" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_js }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_js }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="气线" class-name="colorheader4"> <el-table-column label="气线" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_qx }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_count_n_qx }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他" class-name="colorheader4"> <el-table-column label="其他" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{getCountQt(scope.row.data,'管料退火')}}</span> <span v-if="scope.row.data">{{getCountQt(scope.row.data,'管料退火')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="退火人" class-name="colorheader4"> <el-table-column label="退火人" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.管料退火_操作人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.管料退火_操作人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="6号车间" align="center" class-name="colorheader5"> <el-table-column label="6号车间" align="center" class-name="colorheader4">
<el-table-column label="库存领料" align="center" class-name="colorheader5"> <el-table-column label="库存领料" align="center" class-name="colorheader4">
<el-table-column label="领取时间" width="160px" class-name="colorheader5"> <el-table-column label="领取时间" width="160px" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间领料_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间领料_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领取数" class-name="colorheader5"> <el-table-column label="领取数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间领料_count }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间领料_count }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交送人" class-name="colorheader5"> <el-table-column label="交送人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间领料_仓库执行人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间领料_仓库执行人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领取人" class-name="colorheader5"> <el-table-column label="领取人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间领料_车间执行人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间领料_车间执行人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" class-name="colorheader5"> <el-table-column label="备注" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间领料_备注 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间领料_备注 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="交接领料" align="center" class-name="colorheader5"> <el-table-column label="交接领料" align="center" class-name="colorheader4">
<el-table-column label="领取时间" width="160px" class-name="colorheader5"> <el-table-column label="领取时间" width="160px" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领取数" class-name="colorheader5"> <el-table-column label="领取数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_count }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_count }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交送人" class-name="colorheader5"> <el-table-column label="交送人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_送料人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_送料人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领取人" class-name="colorheader5"> <el-table-column label="领取人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_接料人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间交接领料_接料人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="开槽" align="center" class-name="colorheader5"> <el-table-column label="开槽" align="center" class-name="colorheader4">
<el-table-column label="加工数" class-name="colorheader5"> <el-table-column label="加工数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_real }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_real }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader5"> <el-table-column label="合格率" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_合格率 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格数" class-name="colorheader5"> <el-table-column label="不合格数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_notok }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="断裂" class-name="colorheader5"> <el-table-column label="断裂" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_dl }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_count_n_dl }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他" class-name="colorheader5"> <el-table-column label="其他" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{getCountQt(scope.row.data,'开槽')}}</span> <span v-if="scope.row.data">{{getCountQt(scope.row.data,'开槽')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="加工日期" min-width="160" class-name="colorheader5"> <el-table-column label="加工日期" min-width="160" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作人" class-name="colorheader5"> <el-table-column label="操作人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_操作人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_操作人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" class-name="colorheader5"> <el-table-column label="备注" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_备注 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_开槽_备注 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="倒角" align="center" class-name="colorheader5"> <el-table-column label="倒角" align="center" class-name="colorheader4">
<el-table-column label="加工数" class-name="colorheader5"> <el-table-column label="加工数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_real }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_real }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader5"> <el-table-column label="合格率" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_合格率 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格数" class-name="colorheader5"> <el-table-column label="不合格数" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_notok }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="断裂" class-name="colorheader5"> <el-table-column label="断裂" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_n_dl }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_count_n_dl }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他" class-name="colorheader5"> <el-table-column label="其他" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{getCountQt(scope.row.data,'倒角')}}</span> <span v-if="scope.row.data">{{getCountQt(scope.row.data,'倒角')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="加工日期" min-width="160" class-name="colorheader5"> <el-table-column label="加工日期" min-width="160" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作人" class-name="colorheader5"> <el-table-column label="操作人" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_操作人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_操作人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" class-name="colorheader5"> <el-table-column label="备注" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_备注 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间_倒角_备注 }}</span>
</template> </template>
@ -461,115 +461,115 @@
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<!-- 六车间中检 --> <!-- 六车间中检 -->
<el-table-column label="六车间中检" align="center" class-name="colorheader6"> <el-table-column label="六车间中检" align="center" class-name="colorheader5">
<el-table-column label="检验" class-name="colorheader6"> <el-table-column label="检验" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader6"> <el-table-column label="合格率" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_合格率 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格数" class-name="colorheader6"> <el-table-column label="不合格数" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_notok }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="划伤" class-name="colorheader6"> <el-table-column label="划伤" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hs }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hs }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="杂质" class-name="colorheader6"> <el-table-column label="杂质" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zz }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zz }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="锥度大" class-name="colorheader6"> <el-table-column label="锥度大" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zdd }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zdd }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="炸纹" class-name="colorheader6"> <el-table-column label="炸纹" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zw }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_zw }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="气泡" class-name="colorheader6"> <el-table-column label="气泡" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_qp }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_qp }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不亮" class-name="colorheader6"> <el-table-column label="不亮" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_bl }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_bl }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="横纹" class-name="colorheader6"> <el-table-column label="横纹" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hw }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_hw }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="有皮" class-name="colorheader6"> <el-table-column label="有皮" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_yp }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_count_n_yp }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他" class-name="colorheader6"> <el-table-column label="其他" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{getCountQt(scope.row.data,'六车间中检')}}</span> <span v-if="scope.row.data">{{getCountQt(scope.row.data,'六车间中检')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" class-name="colorheader6" min-width="160"> <el-table-column label="日期" class-name="colorheader5" min-width="160">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作人" class-name="colorheader6"> <el-table-column label="操作人" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间中检_检验人 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间中检_检验人 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="终检" align="center" class-name="colorheader7"> <el-table-column label="终检" align="center" class-name="colorheader6">
<el-table-column label="终检数" class-name="colorheader7"> <el-table-column label="终检数" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.销售发货_count">{{ scope.row.data.销售发货_count + scope.row.data.六车间生产入库_count_notok }}</span> <span v-if="scope.row.data&&scope.row.data.销售发货_count">{{ scope.row.data.销售发货_count + scope.row.data.六车间生产入库_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader7"> <el-table-column label="合格率" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_合格率 }}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格数" class-name="colorheader7"> <el-table-column label="不合格数" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_notok }}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_notok }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="划伤" class-name="colorheader7"> <el-table-column label="划伤" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_n_hs }}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_n_hs }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="炸纹" class-name="colorheader7"> <el-table-column label="炸纹" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_n_zw }}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_count_n_zw }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他" class-name="colorheader7"> <el-table-column label="其他" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{getCountQt(scope.row.data,'六车间生产入库')}}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{getCountQt(scope.row.data,'六车间生产入库')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" class-name="colorheader7" min-width="160"> <el-table-column label="日期" class-name="colorheader6" min-width="160">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.六车间生产入库_检验日期 }}</span> <span v-if="scope.row.data">{{ scope.row.data.六车间生产入库_检验日期 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作人" class-name="colorheader7"> <el-table-column label="操作人" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_检验人 }}</span> <span v-if="scope.row.data&&scope.row.data.六车间生产入库_检验日期!==''">{{ scope.row.data.六车间生产入库_检验人 }}</span>
</template> </template>

View File

@ -279,7 +279,7 @@ export default {
}, },
methods: { methods: {
queryTypeChnge() { queryTypeChnge() {
this.query.queryDate = ""; this.queryDate =null;
}, },
getTableData1() { getTableData1() {
let that = this; let that = this;

View File

@ -67,13 +67,11 @@
:data="tableData1" :data="tableData1"
id="exportDiv7" id="exportDiv7"
:height="tableHeight" :height="tableHeight"
:summary-method="getSummaries"
show-summary
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column <el-table-column label="任务编号" prop="number" min-width="100px" sortable>
label="任务编号"
prop="number"
min-width="100px"
>
</el-table-column> </el-table-column>
<el-table-column label="计划数" prop="count"> <el-table-column label="计划数" prop="count">
</el-table-column> </el-table-column>
@ -96,13 +94,11 @@
:data="tableData2" :data="tableData2"
id="exportDiv10" id="exportDiv10"
:height="tableHeight" :height="tableHeight"
:summary-method="getSummaries"
show-summary
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column <el-table-column label="任务编号" prop="number" min-width="100px" sortable>
label="任务编号"
prop="number"
min-width="100px"
>
</el-table-column> </el-table-column>
<el-table-column label="计划数" prop="count"> <el-table-column label="计划数" prop="count">
</el-table-column> </el-table-column>
@ -125,13 +121,11 @@
:data="tableData3" :data="tableData3"
id="exportDiv6" id="exportDiv6"
:height="tableHeight" :height="tableHeight"
:summary-method="getSummaries"
show-summary
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column <el-table-column label="任务编号" prop="number" min-width="100px" sortable>
label="任务编号"
prop="number"
min-width="100px"
>
</el-table-column> </el-table-column>
<el-table-column label="计划数" prop="count"> <el-table-column label="计划数" prop="count">
</el-table-column> </el-table-column>
@ -178,8 +172,8 @@ export default {
series: { series: {
name: "7车间完成率", name: "7车间完成率",
type: "pie", type: "pie",
radius: ["40%", "70%"], radius: ["35%", "65%"],
center: ["50%", "60%"], center: ["50%", "58%"],
label: { label: {
show: true, show: true,
position: "outside", position: "outside",
@ -194,7 +188,6 @@ export default {
option2: { option2: {
title: { title: {
text: "10车间完成率", text: "10车间完成率",
// subtext: '',
}, },
tooltip: { tooltip: {
trigger: "item", trigger: "item",
@ -207,8 +200,8 @@ export default {
series: { series: {
name: "10车间完成率", name: "10车间完成率",
type: "pie", type: "pie",
radius: ["40%", "70%"], radius: ["35%", "65%"],
center: ["50%", "60%"], center: ["50%", "58%"],
label: { label: {
show: true, show: true,
position: "outside", position: "outside",
@ -235,8 +228,8 @@ export default {
series: { series: {
name: "6车间完成率", name: "6车间完成率",
type: "pie", type: "pie",
radius: ["40%", "70%"], radius: ["35%", "65%"],
center: ["50%", "60%"], center: ["50%", "58%"],
label: { label: {
show: true, show: true,
position: "outside", position: "outside",
@ -276,8 +269,7 @@ export default {
this.currentYear = year; this.currentYear = year;
this.currentMonth = month > 9 ? month : "0" + month; this.currentMonth = month > 9 ? month : "0" + month;
this.start_date = year + "-" + month + "-01"; this.start_date = year + "-" + month + "-01";
this.end_date = this.end_date = year + "-" + month + "-" + days;
year + "-" + month + "-" + new Date(year, month, 0).getDate();
let month1 = month > 9 ? month : "0" + month; let month1 = month > 9 ? month : "0" + month;
this.queryDate = year + "-" + month1; this.queryDate = year + "-" + month1;
let height = document.getElementById("elMain").clientHeight - 40; let height = document.getElementById("elMain").clientHeight - 40;
@ -430,6 +422,34 @@ export default {
this.getData7(); this.getData7();
this.getData10(); this.getData10();
}, },
getSummaries({ columns, data }) {
const sums = [];
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = "合计";
return;
}
if (index == 2||index == 3) {
const values = data.map((item) =>
Number(item[column.property])
);
if (!values.every((value) => Number.isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); //Number
let sum = Number(
Number(prev) + Number(curr)
).toFixed(2); //toFixed(2)
if (!isNaN(value)) {
return sum;
} else {
return prev;
}
}, 0);
}
}
});
return sums;
},
handleExport(val) { handleExport(val) {
this.exportLoading = true; this.exportLoading = true;
let id = "#exportDiv" + val; let id = "#exportDiv" + val;