注释11,12月计划判断

master
xy 2 years ago
parent 8d596fd273
commit ecd19a6bc5

@ -40,7 +40,7 @@
>新增</el-button
>
<xy-table
style="margin-top: 20px"
style="margin-top: 20px;width: 800px;"
:height="320"
:table-item="itemTable"
:list="formList"
@ -260,33 +260,33 @@ export default {
})
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 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 = [];

Loading…
Cancel
Save