From 3db528dcd1e7d8c43334cb22548ea4037ca76386 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期五, 31 七月 2026 17:06:21 +0800
Subject: [PATCH] 显示税后金额

---
 src/views/project/fundcheck/performanceCheck/index.vue |   71 +++++++++++++++++++++--------------
 1 files changed, 42 insertions(+), 29 deletions(-)

diff --git a/src/views/project/fundcheck/performanceCheck/index.vue b/src/views/project/fundcheck/performanceCheck/index.vue
index 1f8cb3f..25e804d 100644
--- a/src/views/project/fundcheck/performanceCheck/index.vue
+++ b/src/views/project/fundcheck/performanceCheck/index.vue
@@ -1,9 +1,9 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
       <el-row align="left">
         <el-col :span="5">
-          <el-form-item label-width="120px" label="棰勫鐘舵��" prop="checkstatus" style="float: left">
+          <el-form-item label="棰勫鐘舵��" prop="checkstatus" style="float: left">
             <el-select v-model="queryParams.checkstatus" placeholder="璇烽�夋嫨" style="width: 100%">
               <el-option v-for="item in checkmaterials" :key="item.value" :label="item.label" :value="item.value">
               </el-option>
@@ -51,36 +51,36 @@
     <el-form ref="infoform" label-width="100px">
       <el-row>
         <el-table v-loading="loading" border :data="donateconsolationfundList" @selection-change="handleSelectionChange">
-          <el-table-column type="selection" width="45"> </el-table-column>
-          <el-table-column label="涓◣璁$畻鎯呭喌" align="center" prop="recordstatus" width="200">
+          <el-table-column type="selection" width="45px"> </el-table-column>
+          <!-- <el-table-column label="涓◣璁$畻鎯呭喌" align="center" prop="istax" width="200px">
             <template slot-scope="scope">
               <dict-tag :options="dict.type.sys_tax" :value="scope.row.istax" />
             </template>
-          </el-table-column>
-          <el-table-column label="鐢宠鏃ユ湡" width="180" align="center" prop="createTime">
+          </el-table-column> -->
+          <el-table-column label="鐢宠鏃ユ湡" width="120px" align="center" prop="applyTime">
             <template slot-scope="scope">
-              <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
+              <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="缁忓姙浜�" align="center" prop="username" width="150px" />
-          <el-table-column label="鐢宠閲戦" align="center" prop="pretaxcost" width="200px" />
-          <el-table-column label="缁╂晥绫诲瀷" width="150" align="center" prop="Performancetype">
+          <el-table-column label="缁忓姙浜�" align="center" prop="username" width="90px" />
+          <el-table-column label="鐢宠閲戦" align="center" prop="pretaxcost" width="120px" />
+          <el-table-column label="缁╂晥绫诲瀷" width="150px" align="center" prop="Performancetype">
             <template slot-scope="scope">
               <dict-tag :options="dict.type.sys_performance_type" :value="scope.row.Performancetype" />
             </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="鐢宠鏉愭枡鐘舵��" 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="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>
@@ -376,22 +376,35 @@
     totaldayin(e) {
       // const id =this.row.id
       getdownloadBX(e).then(res => {
-        if (res.downloadUrl) {
-          var fileUrl = res;
-          //鑾峰彇褰撳墠缃戝潃
-          var urlBase = process.env.VUE_APP_BASE_API;
-          var curWWWPath = window.document.location.href;
-          var pos = curWWWPath.indexOf(window.document.location.pathname);
-          // 鍒涘缓a鏍囩
-          var aEle = document.createElement("a");
-          aEle.href =
-            curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"];
-          aEle.click();
-          this.$alert("涓嬭浇鎴愬姛", "鎻愮ず", {
-            confirmButtonText: "纭畾",
-            type: "success"
+        var fileUrl = res;
+        //鑾峰彇褰撳墠缃戝潃
+        var urlBase = process.env.VUE_APP_BASE_API;
+        var curWWWPath = window.document.location.href;
+        var pos = curWWWPath.indexOf(window.document.location.pathname);
+        // 鍒涘缓a鏍囩
+        var aEle = document.createElement("a");
+        aEle.href =
+          curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"];
+        console.log(aEle.href);
+        // 娣诲姞Authorization澶撮儴
+        fetch(aEle.href, {
+          headers: this.headers
+        })
+          .then(response => {
+            // 灏嗘枃浠朵笅杞介摼鎺ヤ綔涓篵lob瀵硅薄杩涜涓嬭浇
+            return response.blob();
+          })
+          .then(blob => {
+            const url = window.URL.createObjectURL(new Blob([blob]));
+            console.log(url);
+            const link = document.createElement("a");
+            link.href = url;
+            const name=fileUrl["downloadName"]
+            link.setAttribute("download", name); // 鏇挎崲file.pdf涓哄疄闄呯殑鏂囦欢鍚�
+            document.body.appendChild(link);
+            link.click();
+            link.parentNode.removeChild(link);
           });
-        }
       });
     },
 
@@ -488,7 +501,7 @@
         // this.defaultperson = response.data;
         // this.standardlevel = response.data.standardlevel;
         if (
-          response.data.userName === "001" ||
+          response.data.userName === "053" ||
           response.data.userName === "002" ||
           response.data.userName === "admin"
         ) {

--
Gitblit v1.9.3