Browse Source

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

余思翰 4 days ago
parent
commit
d6c92f868c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      oa-ui/src/views/flowable/form/finance/borrowForm.vue

+ 2
- 1
oa-ui/src/views/flowable/form/finance/borrowForm.vue View File

613
       if (budgetData.total == 1) {
613
       if (budgetData.total == 1) {
614
         let budget = budgetData.rows[0];
614
         let budget = budgetData.rows[0];
615
         this.budgetTaskForm.formId = this.form.projectId;
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
         let maxExpense = siteRes.rows.reduce((sum, site) => sum + (Number(site.amount) || 0), 0);
617
         let maxExpense = siteRes.rows.reduce((sum, site) => sum + (Number(site.amount) || 0), 0);
618
         this.siteExpenses = maxExpense
618
         this.siteExpenses = maxExpense
619
       }
619
       }
620
       if (budgetData.total == 0) {
620
       if (budgetData.total == 0) {
621
         this.siteExpenses = 0
621
         this.siteExpenses = 0
622
+        this.budgetTaskForm.formId = '';
622
       }
623
       }
623
       let borrow = await listBorrow({ projectId: this.form.projectId })
624
       let borrow = await listBorrow({ projectId: this.form.projectId })
624
       if (borrow.total != 0) {
625
       if (borrow.total != 0) {

Loading…
Cancel
Save