Parcourir la source

修改借款管理最大借款额不正确的问题

余思翰 il y a 4 jours
Parent
révision
d6c92f868c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      oa-ui/src/views/flowable/form/finance/borrowForm.vue

+ 2
- 1
oa-ui/src/views/flowable/form/finance/borrowForm.vue Voir le fichier

@@ -613,12 +613,13 @@ export default {
613 613
       if (budgetData.total == 1) {
614 614
         let budget = budgetData.rows[0];
615 615
         this.budgetTaskForm.formId = this.form.projectId;
616
-        let siteRes = await listSite({ budgetId: budget.budgetId });
616
+        let siteRes = await listSite({ pageSize: 9999, budgetId: budget.budgetId });
617 617
         let maxExpense = siteRes.rows.reduce((sum, site) => sum + (Number(site.amount) || 0), 0);
618 618
         this.siteExpenses = maxExpense
619 619
       }
620 620
       if (budgetData.total == 0) {
621 621
         this.siteExpenses = 0
622
+        this.budgetTaskForm.formId = '';
622 623
       }
623 624
       let borrow = await listBorrow({ projectId: this.form.projectId })
624 625
       if (borrow.total != 0) {

Loading…
Annuler
Enregistrer