xy hai 1 día
pai
achega
cc779458d0

+ 2 - 5
yudao-ui-admin-vue3/src/views/pressure2/inspectionOpinion/indexBoilerTab.vue

@@ -902,11 +902,8 @@ const handleRePush = async (row) => {
 }
 const fiePreviewEmitFn = async () => {
   try {
-    const result = await BoilerTaskOrderApi.exportCheckBookDetail({id: currentPreviewId.value})
-    if (result) {
-      recipientFormData.recipient = result.correspondName || (recipientRow.value as any).defaultRecipient || ''
-      recipientFormData.recipientPhone = result.correspondPhone || (recipientRow.value as any).defaultRecipientPhone || ''
-    }
+    recipientFormData.recipient = (recipientRow.value as any).recipient || (recipientRow.value as any).defaultRecipient || ''
+    recipientFormData.recipientPhone = (recipientRow.value as any).recipientPhone || (recipientRow.value as any).defaultRecipientPhone || ''
   } catch (e) {
     console.warn('获取推送接收人信息失败,使用默认值', e)
   }

+ 2 - 5
yudao-ui-admin-vue3/src/views/pressure2/inspectionOpinion/indexPipeTab.vue

@@ -902,11 +902,8 @@ const handleRePush = async (row) => {
 }
 const fiePreviewEmitFn = async () => {
   try {
-    const result = await PipeTaskOrderApi.exportCheckBookDetail({id: currentPreviewId.value})
-    if (result) {
-      recipientFormData.recipient = result.correspondName || (recipientRow.value as any).defaultRecipient || ''
-      recipientFormData.recipientPhone = result.correspondPhone || (recipientRow.value as any).defaultRecipientPhone || ''
-    }
+    recipientFormData.recipient = (recipientRow.value as any).recipient || (recipientRow.value as any).defaultRecipient || ''
+    recipientFormData.recipientPhone = (recipientRow.value as any).recipientPhone || (recipientRow.value as any).defaultRecipientPhone || ''
   } catch (e) {
     console.warn('获取推送接收人信息失败,使用默认值', e)
   }