From d3f66f66a0fa684bdc80bca582adb726b102966f Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 04 十一月 2026 09:55:41 +0800
Subject: [PATCH] 器管回款列表增加无回款医院的过滤,修改增加应收款、实收款修改

---
 src/views/project/unitCost/particulars/index.vue |   42 ++++++++++++++++--------------------------
 1 files changed, 16 insertions(+), 26 deletions(-)

diff --git a/src/views/project/unitCost/particulars/index.vue b/src/views/project/unitCost/particulars/index.vue
index 8910b17..4cbc82a 100644
--- a/src/views/project/unitCost/particulars/index.vue
+++ b/src/views/project/unitCost/particulars/index.vue
@@ -372,7 +372,7 @@
                     placeholder="璇疯緭鍏ユ崘鐚�呭鍚�"
                   />
                 </el-form-item>
-                <el-form-item label="鎶ュ憡鏃ユ湡" prop="donatetime">
+                <el-form-item label="鎹愮尞鏃ユ湡" prop="donatetime">
                   <el-date-picker style="width: 220px;"
                     v-model="donatetimeRange"
                     type="daterange"
@@ -416,7 +416,7 @@
                 @selection-change="handleSelectionChange"
               >
                 <el-table-column type="selection" width="55"> </el-table-column>
-                <el-table-column prop="donatetime" label="鎶ュ憡鏃ユ湡" width="120">
+                <el-table-column prop="donatetime" label="鎹愮尞鏃ユ湡" width="120">
                   <template slot-scope="scope">
                     <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
                   </template>
@@ -489,6 +489,7 @@
         :title="pdftitle"
         :visible.sync="pdfVisible"
         width="60%"
+        custom-class="pdf-resize-dialog"
       >
         <div class="pdfimg">
           <div class="box-pdf">
@@ -663,7 +664,8 @@
         { value: "3", label: "搴撳瓨" },
         { value: "4", label: "澶卞姛" },
         { value: "5", label: "鐩寸郴鍏嶉櫎" },
-        { value: "6", label: "涓嶈壇浜嬩欢" }
+        { value: "6", label: "涓嶈壇浜嬩欢" },
+        { value: "7", label: "绉戠爺" }
       ],
       gatheringlist: [
         { label: "鏂板缓", value: "1" },
@@ -980,14 +982,8 @@
     },
     // 鑾峰彇璇锋眰澶�
     Getnetworkheader() {
-      let string = window.location.href;
-      if (string.includes("9091")) {
-        const index = string.indexOf("9091");
-        this.Networkheader = string.slice(0, index + 4); // 鎴彇9091鍙婂叾鍓嶉儴瀛楃
-      } else {
-        const index = string.indexOf("8032");
-        this.Networkheader = string.slice(0, index + 4); // 鎴彇8032鍙婂叾鍓嶉儴瀛楃
-      }
+      // 浠ュ綋鍓嶉〉闈� origin 涓哄噯锛屽吋瀹� 80/8032/9091 鍙婂悗缁鍙h皟鏁�
+      this.Networkheader = window.location.origin;
     },
     // 琛ㄥ崟閲嶇疆
     reset() {
@@ -1254,7 +1250,7 @@
       const config = {
         headers: { Authorization: "Bearer " + this.ICDtoken }
       };
-      const pdfimg = this.Networkheader + "/prod-api" + response.fileName;
+      const pdfimg = this.Networkheader + process.env.VUE_APP_BASE_API + response.fileName;
       //鑾峰彇绁ㄦ嵁淇℃伅浣嶇疆
       if (response.code == 200) {
         this.previewpdf = true;
@@ -1310,7 +1306,7 @@
       if (this.donorchargeorgans[index].annexFilesList) {
         const fetchPromises = this.donorchargeorgans[index].annexFilesList.map(
           (value, indexson) => {
-            const pdfimg = this.Networkheader + "/prod-api" + value.url;
+            const pdfimg = this.Networkheader + process.env.VUE_APP_BASE_API + value.url;
             return fetch(pdfimg, config)
               .then(response => response.blob())
               .then(blob => {
@@ -1353,19 +1349,13 @@
     downFile(item) {
       this.pdftitle =
         "鍏�" + this.pdfimgsrcList.length + "椤癸紝褰撳墠閫変腑" + item.name;
-      let name = item.name.split(".");
-      if (name[1] == "pdf") {
-        this.$modal.msgWarning("褰撳墠鏂囦欢鏆備笉鏀寔棰勮");
-        this.previewpdf = false;
-        this.hintitle = "褰撳墠鏂囦欢鏆備笉鏀寔棰勮";
-      } else if (name[1] == "jpg" || "png") {
-        console.log(item, "灞曠ず");
-        this.previewpdf = true;
-        if (item.url) {
-          this.pdfimg = item.url;
-        } else {
-          this.pdfimg = "";
-        }
+      const ext = String(item.name || "pdf").toLowerCase().split(".").pop();
+      if (ext === "pdf") {
+        this.$previewFile([{ name: item.name, url: item.url }]);
+        return;
+      } else if (["jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(ext)) {
+        this.$previewFile([{ name: item.name, url: item.url }]);
+        return;
       } else {
         this.hintitle = "褰撳墠鏂囦欢鏆備笉鏀寔棰勮";
         this.$modal.msgWarning("褰撳墠鏂囦欢鏆備笉鏀寔棰勮");

--
Gitblit v1.9.3