spring
2025-04-02 ddc15b8f31c2d84d791b561fd24f3817c7ab81da
src/views/standard/standardLibrary/index.vue
@@ -92,7 +92,14 @@
          <el-table-column label="检验项" min-width="140" prop="inspectionItem" show-overflow-tooltip></el-table-column>
          <el-table-column label="检验项子项" min-width="140" prop="inspectionItemSubclass"
            show-overflow-tooltip></el-table-column>
          <el-table-column label="子实验室" prop="sonLaboratory" show-overflow-tooltip width="130"></el-table-column>
          <!-- checkStatusList -->
          <el-table-column label="审核状态" min-width="140" prop="checkStatus">
            <template slot-scope="scope">
              <el-tag :type="checkStatusList.find(m => m.value == scope.row.checkStatus).type"
                v-if="checkStatusList.find(m => m.value == scope.row.checkStatus)" size="small">{{
                  checkStatusList.find(m => m.value == scope.row.checkStatus).label }}</el-tag>
            </template>
          </el-table-column>
          <el-table-column label="要求值" min-width="200px" prop="ask">
            <template slot-scope="scope">
              <el-input v-if="
@@ -112,6 +119,7 @@
              <span v-else>{{ scope.row.ask }}</span>
            </template>
          </el-table-column>
          <el-table-column label="子实验室" prop="sonLaboratory" show-overflow-tooltip width="130"></el-table-column>
          <el-table-column label="试验方法" prop="method" width="200">
            <template slot-scope="scope">
              <el-select v-if="
@@ -295,6 +303,7 @@
  getStandardTemplate,
  selectStandardProductByMethodId,
  selectStandardProductEnumByMethodId,
  productListSubmit,
} from "@/api/standard/standardLibrary";
import bindSupplierDensityDialogAsk from "./components/bindSupplierDensityDialogAsk.vue";
import BatchCopy from "./components/BatchCopy.vue";
@@ -374,6 +383,23 @@
      batchCopyDia: false,
      VUE_APP_BASE_API: process.env.VUE_APP_BASE_API,
      moreSelects: [],
      checkStatusList: [
        {
          value: 0,
          label: '未提交',
          type: 'danger'
        },
        {
          value: 1,
          label: '审核中',
          type: 'warning'
        },
        {
          value: 2,
          label: '已更新',
          type: 'success'
        },
      ]
    };
  },
  mounted() {
@@ -723,6 +749,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    upStandardProductListOfTell(value, index) {
@@ -733,6 +760,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    // 标准库选择实验方法的回调
@@ -744,6 +772,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    // 标准库选择条件的回调
@@ -755,6 +784,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    upStandardProductListOfPrice(value, index) {
@@ -765,6 +795,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    upStandardProductListOfManHour(value, index) {
@@ -775,6 +806,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    upStandardProductListOfTemplate(value, index) {
@@ -785,6 +817,7 @@
        }),
      }).then((res) => {
        this.$message.success("已保存");
        this.refreshList()
      });
    },
    handleSelectionChange(val) {
@@ -865,6 +898,7 @@
        }),
      }).then((res) => {
        this.$message.success('已保存')
        this.refreshList()
      });
    },
    filterHandler(value) {
@@ -1180,6 +1214,11 @@
          return true;
        }
      }).then(({ value }) => {
        productListSubmit({
          remark: value
        }).then(res => {
          this.selectsStandardMethodByFLSSM();
        })
        // this.$message({
        //   type: 'success',
        //   message: '你的邮箱是: ' + value