2026-06-11 ac02e562a1dadfa2a0f7b8e6f2d0a066522d7d3b
src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -1,6 +1,6 @@
<template>
  <div class="app-container">
    <div class="search_form">
    <div class="search_form mb20">
      <div>
        <span class="search_title">供应商:</span>
        <el-input
@@ -14,6 +14,15 @@
        <span style="margin-left: 10px" class="search_title">检测日期:</span>
        <el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
                        placeholder="请选择" clearable @change="changeDaterange"/>
        <span style="margin-left: 10px" class="search_title">采购订单号:</span>
        <el-input
            v-model="searchForm.purchaseContractNo"
            style="width: 240px"
            placeholder="请输入采购订单号搜索"
            @change="handleQuery"
            clearable
            :prefix-icon="Search"
        />
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
        >搜索
        </el-button
@@ -83,6 +92,7 @@
  searchForm: {
    supplier: "",
    entryDate: undefined, // 录入日期
    purchaseContractNo: "",
    entryDateStart: undefined,
    entryDateEnd: undefined,
  },
@@ -95,6 +105,11 @@
  {
    label: "检测日期",
    prop: "checkTime",
    width: 120
  },
  {
    label: "采购订单号",
    prop: "purchaseContractNo",
    width: 120
  },
  {
@@ -119,8 +134,23 @@
    prop: "unit",
  },
  {
    label: "数量",
    label: "总数量",
    prop: "quantity",
    width: 100
  },
  {
    label: "合格数量",
    prop: "qualifiedQuantity",
    width: 100
  },
  {
    label: "不合格数量",
    prop: "unqualifiedQuantity",
    width: 100
  },
  {
    label: "检测单位",
    prop: "checkCompany",
    width: 120
  },
  {
@@ -138,7 +168,7 @@
      } else if (params === '合格') {
        return "success";
      } else {
        return null;
        return 'danger';
      }
    },
  },
@@ -177,6 +207,13 @@
            }
      },
      {
        name: "查看",
        type: "text",
        clickFun: (row) => {
          openForm("view", row);
        },
      },
      {
        name: "附件",
        type: "text",
        clickFun: (row) => {