From c870390bfc28b314f30240352895c5d6c466c148 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期日, 20 九月 2026 13:46:23 +0800
Subject: [PATCH] AI修复

---
 src/views/project/fundcheck/officeExpenseCheck/index.vue |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/src/views/project/fundcheck/officeExpenseCheck/index.vue b/src/views/project/fundcheck/officeExpenseCheck/index.vue
index d603f52..e048953 100644
--- a/src/views/project/fundcheck/officeExpenseCheck/index.vue
+++ b/src/views/project/fundcheck/officeExpenseCheck/index.vue
@@ -77,13 +77,13 @@
 -->
 
           <el-table-column label="鎶ラ攢鍗曞彿" align="center" prop="bh" width="150px" />
-          <el-table-column label="鐢宠鏃ユ湡" width="180" align="center" prop="applyTime">
+          <el-table-column label="鐢宠鏃ユ湡" width="120px" align="center" prop="applyTime">
             <template slot-scope="scope">
               <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="鐢宠閲戦" align="center" prop="pretaxcost" width="200px" />
-          <el-table-column label="缁忓姙浜�" align="center" prop="username" width="150px" />
+          <el-table-column label="鐢宠閲戦" align="center" prop="pretaxcost" width="120px" />
+          <el-table-column label="缁忓姙浜�" align="center" prop="username" width="90px" />
           <!--<el-table-column label="鎹愮尞缂栧彿" align="center" prop="donorno" />-->
           <!--
           <el-table-column label="棰勬敮璐圭敤" align="center" prop="prepaidamount" width="120px" />
@@ -96,21 +96,21 @@
           </el-table-column>
           <el-table-column label="璐㈠姟瀹℃牳" align="center" prop="financechecher" width="140" />
           -->
-          <el-table-column label="鐢宠鏉愭枡鐘舵��" width="140" align="center" prop="checkstatus">
+          <el-table-column label="鏉愭枡棰勫鐘舵��" width="140px" align="center" prop="checkstatus">
             <template slot-scope="scope">
               <dict-tag :options="dict.type.sys_stage_type" :value="scope.row.checkstatus" />
             </template>
           </el-table-column>
-          <el-table-column label="瀹℃牳鐘舵��" align="center" prop="recordstatus" width="200">
+          <el-table-column label="瀹℃牳鐘舵��" align="center" prop="recordstatus" width="140px">
             <template slot-scope="scope">
               <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" />
             </template>
           </el-table-column>
-          <el-table-column label="鎵�灞炵粍鍒�" align="center" prop="deptmentname" width="200px" />
-          <el-table-column label="缁勯暱" align="center" prop="managername" width="150px" />
-          <el-table-column label="鎹愮尞鑰�" align="center" prop="donorname" width="150px" />
+          <el-table-column label="鎵�灞炵粍鍒�" align="center" prop="deptmentname" width="140px" />
+          <el-table-column label="缁勯暱" align="center" prop="managername" width="90px" />
+          <el-table-column label="鎹愮尞鑰�" align="center" prop="donorname" width="90px" />
           <el-table-column label="澶囨敞" align="center" prop="remark" />
-          <el-table-column label="鎿嶄綔" fixed="right" align="center" class-name="small-padding fixed-width" width="260px">
+          <el-table-column label="鎿嶄綔" fixed="right" align="center" class-name="small-padding fixed-width" width="200px">
             <template slot-scope="scope">
               <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 0"
                 @click="handleDetail(scope.row)">璇︽儏</el-button>
@@ -499,6 +499,7 @@
 import { listDept } from "@/api/system/dept";
 import { getToken } from "@/utils/auth";
 import { setItem, grtItem, removeItem } from "@/utils/storage.js";
+import { moneySum, moneyAdd, moneySub, moneyMul, moneyRound } from "@/utils/money";
 
 export default {
   components: {
@@ -596,11 +597,11 @@
       checkmaterials: [
         {
           value: 1,
-          label: "鏉愭枡寰呭鏍�"
+          label: "寰呭鏍�"
         },
         {
           value: 2,
-          label: "瀹℃煡閫氳繃绛夊緟閭瘎绾歌川鏉愭枡"
+          label: "瀹℃煡閫氳繃绛夊緟绾歌川鏉愭枡"
         },
         {
           value: 3,
@@ -1448,41 +1449,40 @@
       // });
     },
 
-    //璁$畻鎬婚噾棰�
+    //璁$畻鎬婚噾棰濓紙閲戦涓�寰嬭蛋绮剧‘杩愮畻锛岀姝� parseFloat 绱姞锛�
     sumTotalFee() {
-      let allSum = 0;
+      const detailsArr = [];
       if (this.form.applytype != null) {
         for (let i = 0; i < this.fundDetailArr.length; i++) {
+          const detail = this.fundDetailArr[i];
           let totalFee = 0;
           let taxFee = 0;
           if (this.form.applytype == 1 || this.form.applytype == 2) {
-            //璁$畻褰撳墠鎶ラ攢鍐呭璐圭敤鍚堣
-            if (!isNaN(parseFloat(this.fundDetailArr[i].amount))) {
-              totalFee += parseFloat(this.fundDetailArr[i].amount);
-              taxFee += parseFloat(this.fundDetailArr[i].amount);
+            //璁$畻褰撳墠鎶ラ攢鍐呭璐圭敤鍚堣锛氱◣鍓� - 鎵g◣
+            if (!isNaN(parseFloat(detail.amount))) {
+              totalFee = moneyAdd(totalFee, detail.amount);
+              taxFee = moneyAdd(taxFee, detail.amount);
             }
-            if (!isNaN(parseFloat(this.fundDetailArr[i].taxamount))) {
-              totalFee -= parseFloat(this.fundDetailArr[i].taxamount);
-              taxFee -= parseFloat(this.fundDetailArr[i].taxamount);
+            if (!isNaN(parseFloat(detail.taxamount))) {
+              totalFee = moneySub(totalFee, detail.taxamount);
+              taxFee = moneySub(taxFee, detail.taxamount);
             }
           } else if (this.form.applytype == 3) {
             if (
-              !isNaN(parseFloat(this.fundDetailArr[i].price)) &&
-              !isNaN(parseFloat(this.fundDetailArr[i].quantity))
+              !isNaN(parseFloat(detail.price)) &&
+              !isNaN(parseFloat(detail.quantity))
             ) {
-              totalFee +=
-                parseFloat(this.fundDetailArr[i].price) *
-                parseFloat(this.fundDetailArr[i].quantity);
+              totalFee = moneyMul(detail.price, detail.quantity);
             }
           }
           if (!isNaN(parseFloat(taxFee))) {
-            this.fundDetailArr[i].taxedamount = taxFee.toFixed(2);
+            this.fundDetailArr[i].taxedamount = moneyRound(taxFee).toFixed(2);
           }
-          allSum += totalFee;
+          detailsArr.push(totalFee);
         }
       }
       //this.form.amountrequested = allSum.toFixed(2);
-      this.$set(this.form, "amountrequested", allSum.toFixed(2));
+      this.$set(this.form, "amountrequested", moneyRound(moneySum(detailsArr)).toFixed(2));
       //this.$forceUpdate();
     },
 

--
Gitblit v1.9.3