ZaiZai 11 mesi fa
parent
commit
df4912c9a2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/views/tentative/material/sampling.vue

+ 2 - 2
src/views/tentative/material/sampling.vue

@@ -835,11 +835,10 @@ const delegateContractChange = async () => {
 
 //获取委托数据
 const getDelegateDataInfo = async () => {
-    const { erTreeId } = nodeDataInfo.value
     const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
         id: entrustId.value,
         sampleId: editHtmlId.value,
-        pkeyId: erTreeId,
+        pkeyId: nodeErTreeId.value,
         contractId: delegateContractId.value,
     })
     if (!error && code === 200) {
@@ -861,6 +860,7 @@ const getDelegateExcelHtml = async () => {
         nodeErTreeId.value = msg
     } else {
         delegateHtml.value = ''
+        nodeErTreeId.value = ''
         window.$message.error(msg || '获取委托信息失败')
     }
 }