Jelajahi Sumber

调整检测录入页面-项目文件作废接口对接参数

yangguanjin 1 Minggu lalu
induk
melakukan
baf2c46ba9
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      src/pages/equipment/detail/components/OtherReport.vue

+ 6 - 1
src/pages/equipment/detail/components/OtherReport.vue

@@ -234,7 +234,12 @@ const handleDelReport = async (reason: string) => {
       return
     }
 
-    const cancelReportReq = selectedProjects.value.map((item) => ({ id: item.id, reason }))
+    const cancelReportReq = selectedProjects.value.map((item) => ({ 
+      id: item.id, 
+      reason,
+      isDelete: true,
+      reportType: item.reportType,
+    }))
     let result = null
 
     if (props.useOnline === '1') {