From 0e5553e2390bb336e589e5b7f0fa890d59aed735 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 27 十月 2026 01:09:44 +0800
Subject: [PATCH] 统计、绩效模块

---
 src/views/project/statistics/chargeStatistics/index.vue |   59 +++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 39 insertions(+), 20 deletions(-)

diff --git a/src/views/project/statistics/chargeStatistics/index.vue b/src/views/project/statistics/chargeStatistics/index.vue
index d2223e6..3431cd4 100644
--- a/src/views/project/statistics/chargeStatistics/index.vue
+++ b/src/views/project/statistics/chargeStatistics/index.vue
@@ -2,12 +2,28 @@
 <template>
   <div class="app-container">
     <el-form
+      class="opo-query-form"
       :model="queryParams"
       ref="queryForm"
       :inline="true"
       label-width="70px"
     >
       <el-row :gutter="8">
+        <el-col :span="8">
+          <el-form-item label="鏈堜唤鑼冨洿">
+            <el-date-picker
+              style="width: 100%"
+              v-model="selecttime"
+              type="monthrange"
+              range-separator="鑷�"
+              start-placeholder="寮�濮嬫湀浠�"
+              end-placeholder="缁撴潫鏈堜唤"
+              value-format="yyyy-MM-dd"
+              @change="getTimeList"
+            >
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
         <el-col :span="8">
           <el-form-item label="鍖婚櫌鍚嶇О">
             <org-selecter
@@ -16,24 +32,7 @@
               v-model="queryParams.pahospitalno"
             />
           </el-form-item>
-        </el-col>
-        <el-col :span="8">
-          <el-form-item label="缁熻绫诲瀷">
-            <el-select
-              v-model="queryParams.pachageflag"
-              placeholder="璇烽�夋嫨妗堜緥鐘舵��"
-            >
-              <el-option
-                v-for="item in reportlist"
-                :label="item.label"
-                :value="item.value"
-              >
-              </el-option>
-            </el-select>
-          </el-form-item>
-        </el-col>
-      </el-row>
-      <el-row :gutter="8">
+        </el-col>  
         <el-col :span="6">
           <el-form-item>
             <el-button
@@ -88,8 +87,7 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            @click="handleAdd(scope.row)"
-            >鍖诲璇勪及</el-button
+            >璇存槑</el-button
           >
         </template>
       </el-table-column>
@@ -285,6 +283,27 @@
       this.resetForm("queryForm");
       this.handleQuery();
     },
+    getTimeList(e) {
+      if (this.selecttime != 0) {
+        this.queryParams.pabegtime = this.selecttime[0];
+        this.queryParams.paendtime = this.selecttime[1];
+        // if (this.queryParams.paendtime == this.queryParams.pabegtime) {
+        // 缁撴潫鏃堕棿鍙�"鎵�閫夌粨鏉熸湀鐨勬鏈� 1 鍙�"锛屼互鍖呭惈鏁翠釜缁撴潫鏈堛��
+        // 鍘熷疄鐜版妸鏈堜唤 +1 鍚庣洿鎺ユ嫾瀛楃涓诧紝12 鏈堜細寰楀埌 13 鏈堬紙2026-13-01锛夛紝
+        // MySQL 鎶� Incorrect datetime value锛屽瓨鍌ㄨ繃绋嬬洿鎺� 500銆�
+        this.queryParams.paendtime = this.$moment(this.queryParams.paendtime)
+          .startOf("month")
+          .add(1, "month")
+          .format("YYYY-MM")
+          .concat("-01 00:00:00");
+        this.queryParams.pabegtime =
+          this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00";
+        // }
+      } else {
+        // this.queryParams.pabegtime = "1998-01-01 00:00:00";
+        // this.queryParams.paendtime = "2998-01-01 00:00:00";
+      }
+    },
     getSummaries(param) {
       const { columns, data } = param;
       const sums = [];

--
Gitblit v1.9.3