From af243517097315d758b53d2c24cfa2d81323b319 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 1 Apr 2025 17:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E4=BB=98=E6=AC=BE=E8=AE=A1?= =?UTF-8?q?=E5=88=92=20=E9=BB=98=E8=AE=A4=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../finance/components/examineRegistration.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/finance/components/examineRegistration.vue b/src/views/finance/components/examineRegistration.vue index 35ba27f..ab6aac3 100644 --- a/src/views/finance/components/examineRegistration.vue +++ b/src/views/finance/components/examineRegistration.vue @@ -651,6 +651,7 @@ import {listdeptNoAuth} from "@/api/system/department"; //计划 //获取预算计划 async getBudgets(pid) { + console.log("this.paymentRegistrationForm.applyMoney",this.paymentRegistrationForm.applyMoney) let res = await getBudget({ top_pid: 1, ...this.plansSelect, @@ -658,7 +659,7 @@ import {listdeptNoAuth} from "@/api/system/department"; }) if (res.list.data) { this.plans = res.list.data.map(i => ({ - use_money: 0, + use_money: this.paymentRegistrationForm.applyMoney, ...i })).reduce((accumulator, current) => { const duplicate = accumulator.find(item => item.id === current.id); @@ -719,10 +720,14 @@ import {listdeptNoAuth} from "@/api/system/department"; toggleSelection(plans) { if (plans) { this.plans.filter(plan => { - if (plans.includes(plan.pid)) { - plan.use_money = this.paymentRegistrationForm.plan[plans.indexOf(plan.pid)].use_money - return true - } + // if (plans.includes(plan.pid)) { + // plan.use_money = this.paymentRegistrationForm.plan[plans.indexOf(plan.pid)].use_money + // return true + // } + // else{ + plan.use_money = this.paymentRegistrationForm.applyMoney + // } + }).forEach(row => { this.$refs.planTable.toggleRowSelection(row) })