From 90b059bc6ef33f45a5b98580735a0d7815dd55f8 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Wed, 20 Dec 2023 20:01:34 +0800 Subject: [PATCH] 2023-12-20 --- public/index.html | 3 + .../contract/components/addContractLedger.vue | 19 +++++ .../components/paymentRegistration.vue | 4 +- src/views/contract/contractList.vue | 63 ++++++++++++++- .../components/examineRegistration.vue | 81 +++++++++++++------ src/views/finance/paymentRegistrationList.vue | 13 ++- vue.config.js | 12 ++- 7 files changed, 165 insertions(+), 30 deletions(-) diff --git a/public/index.html b/public/index.html index be5c00d..105e794 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,9 @@ + + + <%= webpackConfig.name %> diff --git a/src/views/contract/components/addContractLedger.vue b/src/views/contract/components/addContractLedger.vue index edc5742..a2fa531 100644 --- a/src/views/contract/components/addContractLedger.vue +++ b/src/views/contract/components/addContractLedger.vue @@ -130,6 +130,24 @@ + @@ -164,6 +182,7 @@ export default { guarantee_year: "", date: this.$moment().format('YYYY-MM-DD'), is_contract: 1, + is_framework: "", purchase_status: 3, join_status: 3, invite_status: 3 diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index ae5b703..a762d02 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -224,7 +224,7 @@
支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls .xlsx -
单个文件不能超过2M +
单个文件不能超过20M
@@ -395,7 +395,7 @@ export default { }, uploadBefore(file) { console.log(file); - if (file.size / 1000 > 2 * 1024) { + if ((file.size / 1000) > (20 * 1024)) { this.$message({ type: "warning", message: "上传图片大小超过2M!", diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index 722db47..3472384 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -1102,7 +1102,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 } from '@/utils' +import { deepCopy, parseTime, resetSelect,moneyFormatter } from '@/utils' import { Message } from "element-ui"; import { getInfo } from "@/api/user.js"; import { getToken } from "@/utils/auth"; @@ -1330,6 +1330,38 @@ export default { .replace(/(\d)(?=(\d{3})+\.)/g, "$1,"); }, }, + { + label: "支付占比", + width: 140, + customFn: (row) => { + let per = + ((row.fund_log_total / row.money || 0) * 100)?.toFixed(2) || 0; + return ( +
110 ? "red" : "green", + }} + > + {" "} + {per} % +
+ ); + }, + }, + { + label: "付款计划", + prop: "sign_plan_count", + width: 120, + formatter: (cell, data, value) => { + if (value == 0) return "暂无"; + return value + "期"; + }, + customFn:row => { + let text = "暂无"; + if (row.sign_plan_count && row.sign_plan_count != 0) text = row.sign_plan_count + '期'; + return ({text}) + } + }, { label: "供应商/服务商", width: 220, @@ -1363,6 +1395,35 @@ export default { } }, }, + { + label: '费用年占比', + width: 160, + customFn: row => { + const { start_date, end_date, money } = row + if (!start_date || !end_date) { + return (/) + } + const startYear = new Date(start_date).getFullYear() + const endYear = new Date(end_date).getFullYear() + + if (startYear === endYear) { + return (

[{startYear}]{moneyFormatter(money)}

) + } else { + const startMonths = 12 - new Date(start_date).getMonth() + const endMonths = new Date(end_date).getMonth() + 1 + return( +
+

+ [{startYear}]{moneyFormatter(money*startMonths/(startMonths+endMonths))} +

+

+ [{endYear}]{moneyFormatter(money*endMonths/(startMonths+endMonths))} +

+
+ ) + } + } + }, { label: "签订日期", width: 160, diff --git a/src/views/finance/components/examineRegistration.vue b/src/views/finance/components/examineRegistration.vue index 9660bb0..1561081 100644 --- a/src/views/finance/components/examineRegistration.vue +++ b/src/views/finance/components/examineRegistration.vue @@ -75,7 +75,7 @@ *申请付款金额
-
@@ -86,7 +86,7 @@ *本期扣款金额
-
@@ -98,7 +98,7 @@
- @@ -132,10 +132,26 @@ *资金列支渠道
- - - + + + + +
@@ -186,9 +202,9 @@