Quellcode durchsuchen

feat(qc): integrate OutboundQcViewDialog into QC work order page

zlwu vor 5 Monaten
Ursprung
Commit
4a00f21bfb
1 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. 18 0
      web-admin/src/views/quality-inspection/qc-work-order/index.vue

+ 18 - 0
web-admin/src/views/quality-inspection/qc-work-order/index.vue

@@ -635,6 +635,11 @@
         :submitting="remarkEditLoading"
         @submit="submitRemarkEdit"
       />
+
+      <OutboundQcViewDialog
+        v-model:visible="outboundViewVisible"
+        :work-order-id="outboundViewId"
+      />
     </section>
   </div>
 </template>
@@ -711,6 +716,7 @@
   import type { ViewField, ViewSection } from '@/components/business/system-view-dialog/index.vue'
   import { downloadAttachmentFile } from '@/utils/download-attachment'
   import WorkOrderRemarkDialog from '@/components/business/work-order-remark-dialog/index.vue'
+  import OutboundQcViewDialog from './OutboundQcViewDialog.vue'
 
   defineOptions({ name: 'QualityInspectionQcWorkOrder' })
 
@@ -1367,7 +1373,19 @@
     }
   }
 
+  const outboundViewVisible = ref(false)
+  const outboundViewId = ref('')
+
+  function handleOutboundView(row: QcWorkOrder) {
+    outboundViewId.value = row.id
+    outboundViewVisible.value = true
+  }
+
   async function handleView(row: QcWorkOrder) {
+    if (activeTypeTab.value === 'outbound') {
+      handleOutboundView(row)
+      return
+    }
     viewVisible.value = true
     viewLoading.value = true
     viewTasks.value = []