src/views/productionManagement/productionReporting/index.vue
@@ -43,6 +43,7 @@
                @selection-change="handleSelectionChange"
                :tableLoading="tableLoading"
                @pagination="pagination"
                :rowClassName="rowClassName"
                :total="page.total">
        <template #productNoSlot="{ row }">
          <el-button
@@ -148,6 +149,12 @@
        :isEdit="false"
        :row="currentReportRowData"
        @refreshData="getList"/>
    <GranulationForm
        v-if="granulationFormVisible"
        v-model:isShow="granulationFormVisible"
        :isEdit="false"
        :row="currentReportRowData"
        @refreshData="getList"/>
    <Detail
        v-if="showDetail"
        v-model:isShow="showDetail"
@@ -167,9 +174,10 @@
import {productionProductMainListPage} from "@/api/productionManagement/productionProductMain.js";
import {userListNoPageByTenantId} from "@/api/system/user.js";
import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
import VoltageSortingForm from "@/views/productionManagement/workOrder/components/VoltageSortingForm.vue";
const VoltageSortingForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/VoltageSortingForm.vue"));
const CopperPrintingForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/CopperPrintingForm.vue"));
const GranulationForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/GranulationForm.vue"));
const Detail = defineAsyncComponent(() => import("@/views/productionManagement/productionReporting/components/Detail.vue"));
@@ -230,6 +238,16 @@
  {
    label: "报废数量",
    prop: "scrapQty",
    width: 120,
  },
  {
    label: "合格率",
    prop: "actualQualifiedRate",
    width: 120,
  },
  {
    label: "标准合格率",
    prop: "processQualifiedRate",
    width: 120,
  },
  {
@@ -295,6 +313,14 @@
  }
  handleQuery();
};
const rowClassName = ({row}) => {
  if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) {
    return 'danger-row';
  }
  return '';
};
const deleteReport = row => {
  ElMessageBox.confirm("确定删除该报工吗?", "提示", {
    confirmButtonText: "确定",
@@ -430,6 +456,7 @@
const isShowInput = ref(false);
const copperPrintingFormVisible = ref(false);
const voltageSortingFormVisible = ref(false);
const granulationFormVisible = ref(false);
const showDetail = ref(false);
const isShowingId = ref(0);
const showInput = row => {
@@ -457,6 +484,8 @@
    copperPrintingFormVisible.value = true;
  } else if (row.process === '电压分选') {
    voltageSortingFormVisible.value = true;
  } else if (row.process === '造粒') {
    granulationFormVisible.value = true;
  } else {
    showDetail.value = true;
  }
@@ -466,4 +495,8 @@
});
</script>
<style scoped></style>
<style scoped>
:deep(.danger-row td) {
  color: #e95a66 !important;
}
</style>