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/fund/performancedetails/index.vue |   97 +++++++++++++++++++++++++++++++-----------------
 1 files changed, 62 insertions(+), 35 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index 760c5a3..aabeffc 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -74,11 +74,11 @@
             </el-form-item>
           </el-col>
           <el-col :span="5">
-            <el-form-item label="鐢宠鏉愭枡鐘舵��" prop="infoid">
+            <el-form-item label="鏉愭枡棰勫鐘舵��" prop="infoid">
               <el-select
                 v-model="form.checkstatus"
                 filterable
-                placeholder="璇烽�夋嫨鐢宠鏉愭枡鐘舵��"
+                placeholder="璇烽�夋嫨鏉愭枡棰勫鐘舵��"
               >
                 <el-option
                   v-for="item in baselisttages"
@@ -661,16 +661,18 @@
               v-if="this.previewpdf && pdfimgsrcList.length"
               class="pdfimgmin"
             >
-              <!-- <img :src="pdfimg" /> -->
               <el-image
                 style="width: 95%; height: 90%"
                 :src="pdfimg"
-                :preview-src-list="pdfimgsrcList"
-              >
-                <!-- <div slot="error" class="image-slot">
-              <i class="el-icon-picture-outline"></i>
-            </div> -->
-              </el-image>
+                @click="handleImageClick(0)"
+              />
+              <custom-image-viewer
+                :url-list="pdfimgsrcList"
+                :initial-index="currentIndex"
+                :visible="viewerVisible"
+                @update:visible="viewerVisible = $event"
+                @close="handleViewerClose"
+              />
             </div>
             <div v-else class="pdfimgmins">{{ hintitle }}</div>
           </div>
@@ -764,16 +766,18 @@
               v-if="this.previewpdf && invoicepdfimgsrcList.length"
               class="pdfimgmin"
             >
-              <!-- <img :src="pdfimg" /> -->
               <el-image
                 style="width: 95%; height: 90%"
                 :src="invoicepdfimg"
-                :preview-src-list="invoicepdfimgsrcList"
-              >
-                <!-- <div slot="error" class="image-slot">
-              <i class="el-icon-picture-outline"></i>
-            </div> -->
-              </el-image>
+                @click="invoiceHandleImageClick(0)"
+              />
+              <custom-image-viewer
+                :url-list="invoicepdfimgsrcList"
+                :initial-index="invoiceCurrentIndex"
+                :visible="invoiceViewerVisible"
+                @update:visible="invoiceViewerVisible = $event"
+                @close="invoiceHandleViewerClose"
+              />
             </div>
             <div v-else class="pdfimgmins">{{ hintitle }}</div>
           </div>
@@ -872,12 +876,15 @@
 import Li_area_select from "@/components/Address";
 import OrgSelecter from "@/views/project/components/orgselect";
 import { getToken } from "@/utils/auth";
+import { moneySum, moneyAdd, moneySub, moneyRound } from "@/utils/money";
+import CustomImageViewer from "@/components/CustomImageViewer";
 
 export default {
   //import寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
   components: {
     Li_area_select,
-    OrgSelecter
+    OrgSelecter,
+    CustomImageViewer
   },
   name: "fundApply",
 
@@ -940,15 +947,15 @@
       baselisttages: [
         {
           id: 1,
-          name: "寰呯敵璇锋潗鏂�"
+          name: "寰呭鏍�"
         },
         {
           id: 2,
-          name: "瀹℃牳閫氳繃绛夊緟閭瘎绾歌川鏉愭枡"
+          name: "棰勫閫氳繃绛夊緟绾歌川鏉愭枡"
         },
         {
           id: 3,
-          name: "宸叉敹鍒版姤閿�鏉愭枡"
+          name: "宸叉敹鍒扮焊璐ㄦ潗鏂�"
         }
       ],
       PerformanceType: [
@@ -1178,6 +1185,10 @@
       pdfimgsrcList: [],
       pdfVisible: false,
       previewpdf: false,
+      viewerVisible: false,
+      currentIndex: 0,
+      invoiceViewerVisible: false,
+      invoiceCurrentIndex: 0,
       hintitle: "璇蜂笂浼犳枃浠跺悗鏌ョ湅",
       atpresent: "",
       Savereminder: false, //鎻愰啋淇濆瓨寮规
@@ -1797,6 +1808,7 @@
           this.$store.dispatch("tagsView/delView", this.$route);
           this.$router.go(-1);
         } else {
+          this.$modal.closeLoading();
           if (res.msg) {
             this.$modal.msgError("鎿嶄綔澶辫");
           } else {
@@ -1820,7 +1832,7 @@
         this.standardlevel = res.data.standardlevel;
         if (
           this.userprofile.userName == "admin" ||
-          this.userprofile.userName == "001" ||
+          this.userprofile.userName == "053" ||
           this.userprofile.userName == "047"
         ) {
           this.ismanager = true;
@@ -2054,9 +2066,8 @@
       }
     },
 
-    //绋庡墠鎵g◣绠楃◣鍚�
+    //绋庡墠鎵g◣绠楃◣鍚庯紙閲戦涓�寰嬭蛋绮剧‘杩愮畻锛�
     chargeSum(row, type) {
-      let targetValue = 0;
       for (let i = 0; i < this.rbDetails.length; i++) {
         if (!this.rbDetails[i].amount) {
           this.rbDetails[i].amount = 0;
@@ -2064,17 +2075,16 @@
         if (!this.rbDetails[i].taxamount) {
           this.rbDetails[i].taxamount = 0;
         }
-        this.rbDetails[i].taxedamount = (
-          parseFloat(this.rbDetails[i].amount) -
-          parseFloat(this.rbDetails[i].taxamount)
+        //绋庡墠 - 鎵g◣ = 绋庡悗锛堟诞鐐圭浉鍑忎細娈嬬暀鏋佸皬灏惧樊锛屽鑷村嚭鐜� -0.00锛�
+        this.rbDetails[i].taxedamount = moneySub(
+          this.rbDetails[i].amount,
+          this.rbDetails[i].taxamount
         ).toFixed(2);
-        targetValue += parseFloat(this.rbDetails[i].amount); // 鍋囪姣忎釜瀵硅薄涓殑鐗瑰畾鍊煎瓨鍌ㄥ湪'specificValue'灞炴�т笅
-        console.log(this.rbDetails[i].taxedamount, "鍚堣");
       }
-      console.log(targetValue, "鍚堣");
-      this.form.pretaxcost = targetValue;
+      //鍚堣蹇呴』绮剧‘绱姞锛屽惁鍒欎細鍐欏叆 form.pretaxcost 骞惰惤搴�
+      this.form.pretaxcost = moneySum(this.rbDetails, "amount");
     },
-    //绋庡悗鎵g◣绠楃◣鍓�
+    //绋庡悗鎵g◣绠楃◣鍓嶏紙閲戦涓�寰嬭蛋绮剧‘杩愮畻锛�
     queenchargeSum(row, type) {
       for (let i = 0; i < this.rbDetails.length; i++) {
         if (!this.rbDetails[i].amount) {
@@ -2083,9 +2093,10 @@
         if (!this.rbDetails[i].taxamount) {
           this.rbDetails[i].taxamount = 0;
         }
-        this.rbDetails[i].amount =
-          parseFloat(this.rbDetails[i].taxamount) +
-          parseFloat(this.rbDetails[i].taxedamount);
+        //鎵g◣ + 绋庡悗 = 绋庡墠锛堝繀椤荤簿纭浉鍔犲苟褰掍竴鍖栧埌 2 浣嶏紝鍚﹀垯浼氭畫鐣欓暱灏忔暟锛�
+        this.rbDetails[i].amount = moneyRound(
+          moneyAdd(this.rbDetails[i].taxamount, this.rbDetails[i].taxedamount)
+        );
       }
     },
 
@@ -2898,7 +2909,23 @@
   destroyed() {
     window.removeEventListener("beforeunload", e => this.beforeunloadFn(e));
   }, //鐢熷懡鍛ㄦ湡 - 閿�姣佸畬鎴�
-  activated() {} //濡傛灉椤甸潰鏈塳eep-alive缂撳瓨鍔熻兘锛岃繖涓嚱鏁颁細瑙﹀彂
+  activated() {}, //濡傛灉椤甸潰鏈塳eep-alive缂撳瓨鍔熻兘锛岃繖涓嚱鏁颁細瑙﹀彂
+
+  // 鍥剧墖棰勮
+  handleImageClick(index) {
+    this.currentIndex = index;
+    this.viewerVisible = true;
+  },
+  handleViewerClose() {
+    this.viewerVisible = false;
+  },
+  invoiceHandleImageClick(index) {
+    this.invoiceCurrentIndex = index;
+    this.invoiceViewerVisible = true;
+  },
+  invoiceHandleViewerClose() {
+    this.invoiceViewerVisible = false;
+  },
 };
 </script>
 

--
Gitblit v1.9.3