duy 5 mesiacov pred
rodič
commit
50635bd037

+ 1 - 1
src/api/modules/data-fill/query.js

@@ -86,7 +86,7 @@ export default {
         return HcApi({
             url: '/api/blade-business/neiYeController/downloadNeiYe',
             method: 'post',
-            params: form,
+            data: form,
             responseType: 'blob',
         })
     },

+ 4 - 2
src/views/ledger/components/internal.vue

@@ -321,6 +321,8 @@ const batchDownload = async () => {
 const waterDownloadLoading = ref(false)
 const tableWaterKeys = ref([])
 const tableWaterSelection = (rows) => {
+
+    
     tableWaterKeys.value = rows.filter((item) => {
         return (item ?? '') !== ''
     })
@@ -329,10 +331,10 @@ const tableWaterSelection = (rows) => {
 const waterBatchDownload = async () => {
     const rows = tableWaterKeys.value
   
-    const ids = arrToId(rows)
+    // const ids = arrToId(rows)
     //批量下载
     waterDownloadLoading.value = true
-    const { error, disposition, res } = await queryApi.downloadNeiYe({ ids: ids })
+    const { error, disposition, res } = await queryApi.downloadNeiYe({ list: rows })
     //处理数据
     waterDownloadLoading.value = false
     if (!error) {