|
|
|
|
@ -1200,7 +1200,7 @@ import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
|
import { getBudget } from "@/api/budget/budget";
|
|
|
|
|
import { getOatoken } from "@/api/oatoken";
|
|
|
|
|
import { deepCopy, parseTime, resetSelect,moneyFormatter } from '@/utils'
|
|
|
|
|
import { deepCopy, parseTime, resetSelect,moneyFormatter, calcPayPercent } from '@/utils'
|
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
|
import { getInfo } from "@/api/user.js";
|
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
@ -1455,12 +1455,11 @@ export default {
|
|
|
|
|
label: "支付占比",
|
|
|
|
|
width: 140,
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
let per =
|
|
|
|
|
((row.fund_log_total / row.money || 0) * 100)?.toFixed(2) || 0;
|
|
|
|
|
let per = calcPayPercent(row.fund_log_total, row.money);
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
color: per > 110 ? "red" : "green",
|
|
|
|
|
color: Number(per) > 110 ? "red" : "green",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{" "}
|
|
|
|
|
@ -1777,12 +1776,11 @@ export default {
|
|
|
|
|
label: "支付占比",
|
|
|
|
|
width: 140,
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
let per =
|
|
|
|
|
((row.fund_log_total / row.money || 0) * 100)?.toFixed(2) || 0;
|
|
|
|
|
let per = calcPayPercent(row.fund_log_total, row.money);
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
color: per > 110 ? "red" : "green",
|
|
|
|
|
color: Number(per) > 110 ? "red" : "green",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{" "}
|
|
|
|
|
|