From 7edd455c42b5600a320017ff99b13bdcf9d0bd7f Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 26 十月 2026 21:21:19 +0800
Subject: [PATCH] feat: 新增公出申请审批、安全驾驶舱及工资发放记录查看

---
 src/views/personnelManagement/monthlyStatistics/index.vue |   61 ++++++++++++++++++++++++++++++
 1 files changed, 60 insertions(+), 1 deletions(-)

diff --git a/src/views/personnelManagement/monthlyStatistics/index.vue b/src/views/personnelManagement/monthlyStatistics/index.vue
index f581070..ff4395c 100644
--- a/src/views/personnelManagement/monthlyStatistics/index.vue
+++ b/src/views/personnelManagement/monthlyStatistics/index.vue
@@ -93,6 +93,38 @@
       @close="auditDialogVisible = false"
       @success="handleAuditSuccess"
     />
+    <el-dialog v-model="issueRecordVisible" title="鍙戞斁璁板綍" width="820px" append-to-body>
+      <template v-if="issueRecordRow">
+        <el-descriptions :column="2" border>
+          <el-descriptions-item label="宸ヨ祫涓婚">{{ issueRecordRow.salaryTitle }}</el-descriptions-item>
+          <el-descriptions-item label="宸ヨ祫鏈堜唤">{{ issueRecordRow.salaryMonth }}</el-descriptions-item>
+          <el-descriptions-item label="宸ヨ祫鎬婚">{{ formatAmount(issueRecordRow.totalSalary) }}</el-descriptions-item>
+          <el-descriptions-item label="鍙戞斁閾惰">{{ issueRecordRow.payBank || "-" }}</el-descriptions-item>
+          <el-descriptions-item label="鍙戞斁鏃堕棿">{{ issueRecordRow.payTime || "-" }}</el-descriptions-item>
+          <el-descriptions-item label="瀹℃牳浜�">{{ issueRecordRow.auditUserName || "-" }}</el-descriptions-item>
+          <el-descriptions-item label="澶囨敞" :span="2">{{ issueRecordRow.remark || "-" }}</el-descriptions-item>
+        </el-descriptions>
+        <div class="issue-record-title">鍙戞斁鏄庣粏锛坽{ issueRecordDetails.length }} 浜猴級</div>
+        <el-table :data="issueRecordDetails" border size="small" max-height="360">
+          <el-table-column prop="staffName" label="濮撳悕" width="90" />
+          <el-table-column prop="deptName" label="閮ㄩ棬" width="110" />
+          <el-table-column prop="postName" label="宀椾綅" width="110" />
+          <el-table-column label="搴斿彂宸ヨ祫" width="110" align="right">
+            <template #default="{ row }">{{ formatAmount(row.grossSalary) }}</template>
+          </el-table-column>
+          <el-table-column label="鎵f鍚堣" width="110" align="right">
+            <template #default="{ row }">{{ formatAmount(row.deductSalary) }}</template>
+          </el-table-column>
+          <el-table-column label="瀹炲彂宸ヨ祫" width="110" align="right">
+            <template #default="{ row }">{{ formatAmount(row.netSalary) }}</template>
+          </el-table-column>
+          <el-table-column prop="remark" label="澶囨敞" show-overflow-tooltip />
+        </el-table>
+      </template>
+      <template #footer>
+        <el-button @click="issueRecordVisible = false">鍏抽棴</el-button>
+      </template>
+    </el-dialog>
   </div>
 </template>
 
@@ -149,6 +181,7 @@
   },
   { label: "宸ヨ祫鎬婚", prop: "totalSalary", width: 120 },
   { label: "鏀粯閾惰", prop: "payBank", width: 120 },
+  { label: "鍙戞斁鏃堕棿", prop: "payTime", width: 160, formatData: (v) => v || "-" },
   { label: "瀹℃牳浜�", prop: "auditUserName", width: 110 },
   { label: "澶囨敞", prop: "remark", minWidth: 120 },
   {
@@ -156,7 +189,7 @@
     label: "鎿嶄綔",
     align: "center",
     fixed: "right",
-    width: 180,
+    width: 240,
     operation: [
       {
         name: "缂栬緫",
@@ -180,6 +213,12 @@
         type: "text",
         disabled: (row) => Number(row?.status) !== 4,
         clickFun: (row) => openIssue(row),
+      },
+      {
+        name: "鍙戞斁璁板綍",
+        type: "text",
+        disabled: (row) => Number(row?.status) !== 5,
+        clickFun: (row) => openIssueRecord(row),
       },
     ],
   },
@@ -209,6 +248,21 @@
 const auditDialogVisible = ref(false);
 const auditRow = ref(null);
 const auditDiaRef = ref(null);
+const issueRecordVisible = ref(false);
+const issueRecordRow = ref(null);
+
+const issueRecordDetails = computed(() =>
+  Array.isArray(issueRecordRow.value?.staffSalaryDetailList)
+    ? issueRecordRow.value.staffSalaryDetailList
+    : []
+);
+
+const formatAmount = (v) => (v == null || v === "" ? "-" : Number(v).toFixed(2));
+
+const openIssueRecord = (row) => {
+  issueRecordRow.value = row || null;
+  issueRecordVisible.value = true;
+};
 
 const issueBankOptions = computed(() => {
   const options = Array.isArray(bankSetting.value?.options) ? bankSetting.value.options : [];
@@ -410,4 +464,9 @@
 .table_list {
   margin-top: 20px;
 }
+.issue-record-title {
+  margin: 16px 0 8px;
+  font-weight: 600;
+  font-size: 14px;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3