From 6816ee4cbdaa253c2cd452e0e582a351860ffbe7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 07 四月 2025 16:35:36 +0800
Subject: [PATCH] 成品检验项分配人员

---
 src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue |   64 ++++++++++++++++---------------
 1 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue b/src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue
index c829dac..c379f86 100644
--- a/src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue
+++ b/src/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue
@@ -2,27 +2,28 @@
   <div>
     <el-dialog title="鏁版嵁鏌ョ湅" :visible.sync="isShow" width="80%" @closed="$emit('closeDataLook')">
       <ul class="tab">
-        <li v-for="(m,i) in dataVisibleTitle" :key="i" :class="{active:i===dataVisibleIndex}" @click="handleDataVisibleTab(m,i)">{{m.label}}</li>
+        <li v-for="(m, i) in dataVisibleTitle" :key="i" :class="{ active: i === dataVisibleIndex }"
+          @click="handleDataVisibleTab(m, i)">{{ m.label }}</li>
       </ul>
       <div>
-        <lims-table :tableData="tableData" :column="column"
-                    @pagination="pagination" height="500px" key="tableData"
-                    :page="page" :tableLoading="tableLoading"></lims-table>
+        <lims-table :tableData="tableData" :column="column" @pagination="pagination" height="500px" key="tableData"
+          :page="page" :tableLoading="tableLoading"></lims-table>
       </div>
     </el-dialog>
-    <un-pass-retest-result :retestVisible="retestVisible" :retestInfo="retestInfo" @closeRetestLook="closeRetestLook" v-if="retestVisible"></un-pass-retest-result>
+    <un-pass-retest-result :retestVisible="retestVisible" :retestInfo="retestInfo" @closeRetestLook="closeRetestLook"
+      v-if="retestVisible"></un-pass-retest-result>
   </div>
 </template>
 
 <script>
 import UnPassRetestResult from "./unPassRetestResult.vue";
 import limsTable from "@/components/Table/lims-table.vue";
-import {getRetestResult, selectSampleAndProductByOrderId} from "@/api/business/rawMaterialOrder";
+import { getRetestResult, selectSampleAndProductByOrderId } from "@/api/business/rawMaterialOrder";
 
 export default {
   name: "dataLookVisible",
   // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
-  components: {limsTable, UnPassRetestResult},
+  components: { limsTable, UnPassRetestResult },
   props: {
     dataDialogVisible: {
       type: Boolean,
@@ -30,7 +31,7 @@
     },
     dataLookInfo: {
       type: Object,
-      default: () => {}
+      default: () => { }
     },
   },
   data() {
@@ -39,17 +40,17 @@
       tableData: [],
       tableLoading: false,
       column: [
-        {label: '鏍峰搧缂栧彿', prop: 'sampleCode'},
-        {label: '鏍峰搧鍚嶇О', prop: 'sample'},
-        {label: '妫�楠岄」鍒嗙被', prop: 'inspectionItemClass'},
-        {label: '妫�楠岄」', prop: 'inspectionItem'},
-        {label: '妫�楠屽瓙椤�', prop: 'inspectionItemSubclass'},
-        {label: '鍗曚綅', prop: 'unit'},
-        {label: '鏍峰搧鍨嬪彿', prop: 'model'},
-        {label: '鏉′欢', prop: 'radius'},
-        {label: '鐢电紗鏍囪瘑', prop: 'cableTag'},
-        {label: '璇曢獙瑕佹眰', prop: 'tell'},
-        {label: '妫�楠岀粨鏋�', prop: 'lastValue'},
+        { label: '鏍峰搧缂栧彿', prop: 'sampleCode' },
+        { label: '鏍峰搧鍚嶇О', prop: 'sample' },
+        { label: '妫�楠岄」鍒嗙被', prop: 'inspectionItemClass' },
+        { label: '妫�楠岄」', prop: 'inspectionItem' },
+        { label: '妫�楠屽瓙椤�', prop: 'inspectionItemSubclass' },
+        { label: '鍗曚綅', prop: 'unit' },
+        { label: '鏍峰搧鍨嬪彿', prop: 'model' },
+        { label: '鏉′欢', prop: 'radius' },
+        { label: '鐢电紗鏍囪瘑', prop: 'cableTag' },
+        { label: '璇曢獙瑕佹眰', prop: 'tell' },
+        { label: '妫�楠岀粨鏋�', prop: 'lastValue' },
         {
           dataType: 'tag',
           label: '缁撴灉鍒ゅ畾',
@@ -72,11 +73,12 @@
               return 'danger'
             } else if (params == 3) {
               return ''
-            }  else {
+            } else {
               return null
             }
           }
         },
+        { label: "妫�楠屼汉", prop: "checkUserName" },
         {
           dataType: 'action',
           fixed: 'right',
@@ -89,17 +91,17 @@
               clickFun: (row) => {
                 this.getRetestResult(row);
               },
-              disabled: (row, index) =>  {
-                return row.insResult!=0
+              disabled: (row, index) => {
+                return row.insResult != 0
               }
             },
           ]
         }
       ],
       page: {
-        total:0,
-        size:10,
-        current:1
+        total: 0,
+        size: 10,
+        current: 1
       },
       isShow: this.dataDialogVisible,
       dataVisibleTitle: [
@@ -126,7 +128,7 @@
   // 鏂规硶闆嗗悎
   methods: {
     // 鍒囨崲鏁版嵁鏌ョ湅tab鏍�
-    handleDataVisibleTab (m, i) {
+    handleDataVisibleTab(m, i) {
       this.dataVisibleIndex = i
       this.refreshTable()
     },
@@ -138,7 +140,7 @@
         this.entity.id = this.dataLookInfo.quarterOrderId
       }
       this.tableLoading = true
-      const params = {...this.entity, ...this.page}
+      const params = { ...this.entity, ...this.page }
       selectSampleAndProductByOrderId(params).then(res => {
         this.tableLoading = false
         if (res.code === 200) {
@@ -149,18 +151,18 @@
         this.tableLoading = false
       })
     },
-    pagination (page) {
+    pagination(page) {
       this.page.size = page.limit
       this.refreshTable()
     },
     // 鏌ョ湅涓嶅悎鏍煎娴嬬粨鏋�
-    getRetestResult (row) {
-      getRetestResult({insProductId: row.insProductId}).then(res => {
+    getRetestResult(row) {
+      getRetestResult({ insProductId: row.insProductId }).then(res => {
         this.retestVisible = true
         this.retestInfo = res.data
       })
     },
-    closeRetestLook () {
+    closeRetestLook() {
       this.retestVisible = false
     },
   },

--
Gitblit v1.9.3