Sfoglia il codice sorgente

关联取样取消

duy 1 mese fa
parent
commit
f5512ddfc9
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      src/views/tentative/detect/commission/sampling.vue

+ 8 - 1
src/views/tentative/detect/commission/sampling.vue

@@ -184,7 +184,14 @@ const rowCancel = () => {
 //确认关联取样材料
 const linkSamplingClick = () => {
     curId.value = currentId.value
-    emit('change', rowItem.value)
+    // emit('change', rowItem.value)
+        if (currentId.value) {
+        emit('change', rowItem.value)
+    } else {
+        emit('change', {}) // 如果没有选择,传递空对象
+    }
+    console.log(rowItem.value, 'rowItem.value')
+    
     linkSamplingClose()
 }