duy 2 mesiacov pred
rodič
commit
01c53503e7
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      src/views/tentative/detect/commission.vue

+ 3 - 1
src/views/tentative/detect/commission.vue

@@ -418,9 +418,11 @@ const getDelegateExcelHtml = async () => {
 }
 
 //关联材料选择
+const cancelRowData = ref({})
 const linkSamplingChange = async ({ id, entrustId }, cancelRow) => {
     await getDelegateExcelHtml()
     if (!id) {
+        cancelRowData.value = cancelRow
         await getCancelRow( cancelRow)
     }
 
@@ -448,7 +450,7 @@ const getCancelRow = async (cancelRow) => {
 const getDelegateDataInfo = async (id, entrustId, formData) => {
     const { primaryKeyId } = nodeDataInfo.value
     const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
-        id: entrustId,
+        id: entrustId || cancelRowData.value.entrustId,
         sampleId: id,
         pkeyId: nodeErTreeId.value,
         projectId: projectId.value,