Selaa lähdekoodia

货款账单: 付款回填bug

lxf 1 vuosi sitten
vanhempi
commit
d4fba203d8
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      src/components/process/PurchasePayment.vue

+ 6 - 1
src/components/process/PurchasePayment.vue

@@ -280,6 +280,7 @@ const getDict = () => {
             value: item.dictKey,
           };
         });
+        console.log(fundsPaymentMethod.value);
       }
     });
   proxy.post("/supplierInfo/page", { pageNum: 1, pageSize: 999 }).then((res) => {
@@ -425,10 +426,14 @@ onMounted(async () => {
               } else {
                 formData.data.payDetailList = [{ purchaseId: ids[i], money: undefined, remark: "" }];
               }
-              changePurchaseId({ purchaseId: ids[i] });
             }
           }
         }
+        if (formData.data.payDetailList && formData.data.payDetailList.length > 0) {
+          for (let i = 0; i < formData.data.payDetailList.length; i++) {
+            changePurchaseId(formData.data.payDetailList[i]);
+          }
+        }
       }
     }
   }