From 0885aa811a94cae8d7473c9b2957a447110c9b1d Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 18 四月 2025 11:17:08 +0800
Subject: [PATCH] 网分仪数采20%

---
 src/views/business/inspectionTask/components/EditInspectionItem.vue |   71 ++++++++++++-----------------------
 1 files changed, 25 insertions(+), 46 deletions(-)

diff --git a/src/views/business/inspectionTask/components/EditInspectionItem.vue b/src/views/business/inspectionTask/components/EditInspectionItem.vue
index c3116f0..4d6768f 100644
--- a/src/views/business/inspectionTask/components/EditInspectionItem.vue
+++ b/src/views/business/inspectionTask/components/EditInspectionItem.vue
@@ -1,25 +1,19 @@
 <template>
   <div>
-    <el-dialog
-      :visible.sync="editInspectionDia"
-      title="淇敼妫�楠岄」"
-      width="80%"
-      @close="editInspectionDia = false"
-    >
-      <TableCard :showTitle="false">
-        <template v-slot:table>
-          <lims-table
-            :column="editColumn"
-            :table-data="editTableData"
-            :table-loading="editLoading"
-            :page="page"
-            height="600"
-            style="padding: 0 15px"
-            @pagination="pagination"
-          >
-          </lims-table>
-        </template>
-      </TableCard>
+    <el-dialog :visible.sync="editInspectionDia" title="淇敼妫�楠岄」" width="80%" @close="editInspectionDia = false">
+      <div>
+        <el-form :model="entity" :inline="true">
+          <el-form-item label="妫�楠岄」" prop="outputWorkTime">
+            <el-input v-model="entity.inspectionItem" clearable size="small"></el-input>
+          </el-form-item>
+          <el-form-item>
+            <el-button size="small" type="primary" @click="getTableData">鏌ヨ</el-button>
+          </el-form-item>
+        </el-form>
+      </div>
+      <lims-table :column="editColumn" :table-data="editTableData" :table-loading="editLoading" :page="page"
+        height="560" @pagination="pagination">
+      </lims-table>
     </el-dialog>
     <el-dialog :visible.sync="editAskDia" title="淇敼" width="50%">
       <el-form ref="form" :model="editForm" label-width="100px">
@@ -30,37 +24,22 @@
           <el-input v-model="editForm.tell" type="textarea"></el-input>
         </el-form-item>
         <el-form-item label="妫�楠屽�肩被鍨�">
-          <el-select
-            v-model="editForm.inspectionValueType"
-            clearable
-            placeholder="璇烽�夋嫨"
-            size="small"
-            style="width: 100%"
-          >
-            <el-option
-              v-for="dict in inspectionValueType"
-              :key="dict.value"
-              :label="dict.label"
-              :value="dict.value"
-            ></el-option>
+          <el-select v-model="editForm.inspectionValueType" clearable placeholder="璇烽�夋嫨" size="small"
+            style="width: 100%">
+            <el-option v-for="dict in inspectionValueType" :key="dict.value" :label="dict.label"
+              :value="dict.value"></el-option>
           </el-select>
         </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button @click="editAskDia = false">鍙� 娑�</el-button>
-        <el-button
-          :loading="handleEditLoading"
-          type="primary"
-          @click="handleEdit"
-          >纭� 瀹�</el-button
-        >
+        <el-button :loading="handleEditLoading" type="primary" @click="handleEdit">纭� 瀹�</el-button>
       </span>
     </el-dialog>
   </div>
 </template>
 
 <script>
-import TableCard from "@/components/TableCard/index.vue";
 import limsTable from "@/components/Table/lims-table.vue";
 import {
   selectSampleAndProductByOrderId,
@@ -69,13 +48,14 @@
 export default {
   name: "EditInspectionItem",
   // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
-  components: { TableCard, limsTable },
+  components: { limsTable },
   data() {
     // 杩欓噷瀛樻斁鏁版嵁
     return {
       editInspectionDia: false,
       entity: {
         id: 0,
+        inspectionItem: ''
       },
       editColumn: [
         {
@@ -104,7 +84,7 @@
           prop: "inspectionItemSubclass",
         },
         {
-          label: "鏉′欢",
+          label: "璇曢獙鏉′欢",
           minWidth: "120px",
           prop: "radius",
         },
@@ -132,6 +112,7 @@
           minWidth: "120px",
           prop: "model",
         },
+        { label: "妫�楠屼汉", prop: "checkUserName" },
         {
           dataType: "action",
           width: "80px",
@@ -187,9 +168,8 @@
       })
         .then((res) => {
           this.editLoading = false;
-          if (res.code === 201) return;
-          this.editTableData = res.data.body.records;
-          this.page.total = res.data.body.total;
+          this.editTableData = res.data.records;
+          this.page.total = res.data.total;
         })
         .catch(() => {
           this.editLoading = false;
@@ -212,7 +192,6 @@
       updateProductOnPlan(params)
         .then((res) => {
           this.handleEditLoading = false;
-          if (res.code === 201) return;
           this.$message.success("淇敼鎴愬姛");
           this.editAskDia = false;
           this.getTableData();

--
Gitblit v1.9.3