From ecd19a6bc544c171cf27a8e007d19b9a010d3aa4 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 2 Feb 2024 16:29:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A11=EF=BC=8C12=E6=9C=88?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/budget/component/payPlan.vue | 56 +++++++++++++------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/views/budget/component/payPlan.vue b/src/views/budget/component/payPlan.vue index de13cf1..1b62f2e 100644 --- a/src/views/budget/component/payPlan.vue +++ b/src/views/budget/component/payPlan.vue @@ -40,7 +40,7 @@ >新增 i.type === this.rowType) - if (data) { - let department = data.departments?.find(i => i.department_id === this.plan_department_id) - let m2 = department.money_total_2; - let m1 = department.money_total_1; - let m3 = department.use_money_total; - let per = 0; - - if (m2 != 0) { - per = ((m3 / m2) * 100).toFixed(2); - } else if (m1 != 0) { - per = ((m3 / m1) * 100).toFixed(2); - } - - console.log(per,'per') - if (per < 85) { - this.$message({ - type: "warning", - message: `责任科室执行率未达到85%,当前计划${data.type_text}进展率为${per}%`, - duration: 3000 - }) - return - } - } - } + let month = this.formList[i]?.paid_plan_date.split('-')[1]; + // if (month == 11 || month == 12) { + // const data = this.typeList.find(i => i.type === this.rowType) + // if (data) { + // let department = data.departments?.find(i => i.department_id === this.plan_department_id) + // let m2 = department.money_total_2; + // let m1 = department.money_total_1; + // let m3 = department.use_money_total; + // let per = 0; + // + // if (m2 != 0) { + // per = ((m3 / m2) * 100).toFixed(2); + // } else if (m1 != 0) { + // per = ((m3 / m1) * 100).toFixed(2); + // } + // + // console.log(per,'per') + // if (per < 85) { + // this.$message({ + // type: "warning", + // message: `责任科室执行率未达到85%,当前计划${data.type_text}进展率为${per}%`, + // duration: 3000 + // }) + // return + // } + // } + // } } let editIds = Array.from(new Set(this.editId)) let promiseAll = [];