Ver código fonte

请款附件bug

cz 1 ano atrás
pai
commit
ad2e3fa974
1 arquivos alterados com 25 adições e 5 exclusões
  1. 25 5
      src/views/finance/fundManage/funds/index.vue

+ 25 - 5
src/views/finance/fundManage/funds/index.vue

@@ -263,6 +263,10 @@ const paymentStatus = ref([
     value: "10",
   },
   {
+    label: "部分打款",
+    value: "15",
+  },
+  {
     label: "未打款",
     value: "20",
   },
@@ -734,14 +738,30 @@ const handleOpenFile = (row) => {
       }
     });
   proxy
-    .post("/fileInfo/getList", { businessIdList: [row.accountPaymentId] })
-    .then((fileObj) => {
+    .post("/accountPayment/detail", { id: row.accountPaymentId })
+    .then((res) => {
+      let ids = [];
       if (
-        fileObj[row.accountPaymentId] &&
-        fileObj[row.accountPaymentId].length > 0
+        res.accountPaymentRecordsList &&
+        res.accountPaymentRecordsList.length > 0
       ) {
-        fileData.data.fileListOne = fileObj[row.accountPaymentId];
+        ids = res.accountPaymentRecordsList.map((x) => x.id);
       }
+      proxy
+        .post("/fileInfo/getList", {
+          businessIdList: [row.accountPaymentId, ...ids],
+        })
+        .then((fileObj) => {
+          if (fileObj) {
+            let arr = [];
+            for (const key in fileObj) {
+              if (fileObj[key]) {
+                arr = [...arr, ...fileObj[key]];
+              }
+            }
+            fileData.data.fileListOne = arr;
+          }
+        });
     });
   openFileDialog.value = true;
 };