From 1511a7f94b1e3a88b4a54234ec144655a91eace7 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 13 十月 2026 09:26:53 +0800
Subject: [PATCH] 政策文件管理

---
 src/views/project/unitCost/particulars/index.vue |   33 +++++++++++++++------------------
 1 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/src/views/project/unitCost/particulars/index.vue b/src/views/project/unitCost/particulars/index.vue
index d71c45f..202018c 100644
--- a/src/views/project/unitCost/particulars/index.vue
+++ b/src/views/project/unitCost/particulars/index.vue
@@ -198,8 +198,8 @@
                   style="width: 100%"
                   v-model="scope.row.receiveTime"
                   :disabled="true"
-                  type="date"
-                  value-format="yyyy-MM-dd HH:mm:ss"
+                  type="date" format="yyyy-MM-dd"
+                  value-format="yyyy-MM-dd"
                   placeholder="鎺ユ敹鏃ユ湡"
                 >
                 </el-date-picker>
@@ -257,8 +257,8 @@
             </el-table-column>
             <el-table-column prop="amounttime" align="center" label="鏀舵鏃ユ湡" width="200">
               <template slot-scope="scope">
-                <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.amounttime" type="date"
-                  value-format="yyyy-MM-dd HH:mm:ss" placeholder="鏀舵鏃ユ湡">
+                <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.amounttime" type="date" format="yyyy-MM-dd"
+                  value-format="yyyy-MM-dd" placeholder="鏀舵鏃ユ湡">
                 </el-date-picker>
               </template>
             </el-table-column>
@@ -575,6 +575,7 @@
 import Li_area_select from "@/components/Address";
 import { getUserProfile } from "@/api/system/user";
 import { getToken } from "@/utils/auth";
+import { moneySum, moneyRound } from "@/utils/money";
 import debounce from "lodash/debounce";
 export default {
   components: {
@@ -897,6 +898,7 @@
       this.patientqueryParams.hospitalno = this.form.hospitalno;
       this.patientqueryParams.paymentid = null;
       this.patientqueryParams.paymentidIsNotNull = false;
+      this.patientqueryParams.pageSize = 10;
       listDonorchargeorgan(this.patientqueryParams).then(res => {
         this.donorchargeList = res.rows;
         this.patienttotal = res.total;
@@ -995,6 +997,7 @@
       listDonorpayment({ id: this.curId }).then(response => {
         this.form = response.rows[0];
         //鍣ㄥ畼璐圭敤淇℃伅
+        this.patientqueryParams.pageSize = 1000;
         listDonorchargeorgan(this.patientqueryParams).then(res => {
           console.log("listDonorchargeorgan", res);
           this.donorchargeorgans = res.rows;
@@ -1011,6 +1014,7 @@
         this.title = "鏌ョ湅鎹愮尞妗堜緥鍣ㄥ畼璐圭敤琛�";
         this.form = response.rows[0];
         //鍣ㄥ畼璐圭敤淇℃伅
+        this.patientqueryParams.pageSize = 1000;
         listDonorchargeorgan(this.patientqueryParams).then(res => {
           console.log("listDonorchargeorgan", res);
           this.donorchargeorgans = res.rows;
@@ -1086,23 +1090,16 @@
         this.$modal.msgError("娉ㄦ剰瀹炴敹閲戦涓嶇瓑浜庡簲鏀堕噾棰濓紝璇锋牳瀵规暟鎹紒");
       }
     },
-    //淇敼瀹炴敹鎴栧簲鏀跺悗瑙﹀彂
+    //淇敼瀹炴敹鎴栧簲鏀跺悗瑙﹀彂锛堥噾棰濅竴寰嬭蛋绮剧‘杩愮畻锛�
     chargeSum() {
-      let ChargeSum = 0;
-      let ChargeamountSum = 0;
-
       //璐圭敤鍚堣
       try {
-        for (let i = 0; i < this.donorchargeorgans.length; i++) {
-          if (!isNaN(parseFloat(this.donorchargeorgans[i].organcharge))) {
-            ChargeSum += parseFloat(this.donorchargeorgans[i].organcharge);
-          }
-          if (!isNaN(parseFloat(this.donorchargeorgans[i].amount))) {
-            ChargeamountSum += parseFloat(this.donorchargeorgans[i].amount);
-          }
-        }
-        this.form.receivableamount = ChargeSum.toFixed(2);
-        this.form.receivedamount = ChargeamountSum.toFixed(2);
+        this.form.receivableamount = moneyRound(
+          moneySum(this.donorchargeorgans, "organcharge")
+        ).toFixed(2);
+        this.form.receivedamount = moneyRound(
+          moneySum(this.donorchargeorgans, "amount")
+        ).toFixed(2);
       } catch {}
     },
 

--
Gitblit v1.9.3