Przeglądaj źródła

默认联系人

xzc 3 dni temu
rodzic
commit
6881e4a09f

+ 5 - 1
yudao-ui-admin-vue3/src/views/pressure2/inspectionOpinion/boilerInspectionOpinion.vue

@@ -822,9 +822,13 @@ const batchRePush = async () => {
 /**
  * 重新推送
  */
-const handleRePush = (row) => {
+const handleRePush = async (row) => {
   recipientRow.value = row
   recipientType.value = 'single'
+  // 调用接口获取任务单默认联系人信息
+  const result = await BoilerTaskOrderApi.exportCheckBookDetail({ id: row.reportId })
+  recipientFormData.recipient = result?.defaultRecipient || ''
+  recipientFormData.recipientPhone = result?.defaultRecipientPhone || ''
   recipientDialogVisible.value = true
 }
 

+ 5 - 1
yudao-ui-admin-vue3/src/views/pressure2/inspectionOpinion/pipeInspectionOpinion.vue

@@ -822,9 +822,13 @@ const batchRePush = async () => {
 /**
  * 重新推送
  */
-const handleRePush = (row) => {
+const handleRePush = async (row) => {
   recipientRow.value = row
   recipientType.value = 'single'
+  // 调用接口获取任务单默认联系人信息
+  const result = await PipeTaskOrderApi.exportCheckBookDetail({ id: row.reportId })
+  recipientFormData.recipient = result?.defaultRecipient || ''
+  recipientFormData.recipientPhone = result?.defaultRecipientPhone || ''
   recipientDialogVisible.value = true
 }