huminmin
7 天以前 5f18876241777adb7cacce4bc8316779cb16c237
src/views/qualityManagement/InspectItem/index.vue
@@ -9,7 +9,6 @@
          placeholder="请输入检测项目名称"
          clearable
          :prefix-icon="Search"
          @change="handleQuery"
          @clear="handleQuery"
        />
        <el-button type="primary" style="margin-left: 10px" @click="handleQuery">搜索</el-button>
@@ -34,22 +33,22 @@
    </div>
    <el-dialog v-model="dialogVisible" :title="operationType === 'add' ? '新增检测项目' : '修改检测项目'" width="520px" @close="closeDialog">
      <el-form ref="formRef" :model="form" :rules="rules" label-width="100px">
      <el-form ref="formRef" :model="form" :rules="rules" label-width="100px" class="dialog-form-center">
        <el-form-item label="检测项目" prop="name">
          <el-input v-model="form.name" placeholder="请输入检测项目名称" clearable />
          <el-input v-model="form.name" placeholder="请输入检测项目名称" clearable style="width: 280px" />
        </el-form-item>
        <el-form-item label="单位" prop="unit">
          <el-input v-model="form.unit" placeholder="请输入单位" clearable />
          <el-input v-model="form.unit" placeholder="请输入单位" clearable style="width: 280px" />
        </el-form-item>
        <el-form-item label="标准值" prop="standardValue">
          <el-input v-model="form.standardValue" placeholder="请输入标准值" clearable />
          <el-input v-model="form.standardValue" placeholder="请输入标准值" clearable style="width: 280px" />
        </el-form-item>
        <el-form-item label="内控值" prop="internalControl">
          <el-input v-model="form.internalControl" placeholder="请输入内控值" clearable />
          <el-input v-model="form.internalControl" placeholder="请输入内控值" clearable style="width: 280px" />
        </el-form-item>
        <el-form-item label="化验值" prop="testValue">
          <el-input v-model="form.testValue" placeholder="请输入化验值" clearable />
        </el-form-item>
        <!-- <el-form-item label="化验值" prop="testValue">
          <el-input v-model="form.testValue" placeholder="请输入化验值" clearable style="width: 280px" />
        </el-form-item> -->
      </el-form>
      <template #footer>
        <div class="dialog-footer">
@@ -98,7 +97,7 @@
  { label: "单位", prop: "unit", width: 120 },
  { label: "标准值", prop: "standardValue", width: 160 },
  { label: "内控值", prop: "internalControl", width: 160 },
  { label: "化验值", prop: "testValue", width: 160 },
  // { label: "化验值", prop: "testValue", width: 160 },
  {
    dataType: "action",
    label: "操作",
@@ -122,7 +121,7 @@
const operationType = ref("add");
const page = reactive({
  current: 1,
  size: 10,
  size: 30,
  total: 0,
});
@@ -230,4 +229,10 @@
getList();
</script>
<style scoped></style>
<style scoped>
.dialog-form-center {
  padding-top: 12px;
  width: fit-content;
  margin: 0 auto;
}
</style>