From 644aad632b70e827106e202814066882adbcf5e4 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期四, 03 四月 2025 10:03:33 +0800
Subject: [PATCH] fix

---
 src/views/placement-batch/components/ApprovalDialog.vue |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/views/placement-batch/components/ApprovalDialog.vue b/src/views/placement-batch/components/ApprovalDialog.vue
index 5d7cd46..f5fba24 100644
--- a/src/views/placement-batch/components/ApprovalDialog.vue
+++ b/src/views/placement-batch/components/ApprovalDialog.vue
@@ -326,7 +326,7 @@
                   <div class="approval-time-info">
                     <div class="approval-time-title">审核时间:</div>
                     <div class="approval-time">
-                      {{ detailData.approveTime || "-" }}
+                      {{ detailData.approveTime | formatDate }}
                     </div>
                   </div>
                 </div>
@@ -372,6 +372,7 @@
 </template>
 
 <script>
+import dayjs from 'dayjs';
 import { getPlacementBatchDetail } from "@/api/placement-details";
 export default {
   name: "ApprovalDialog",
@@ -394,6 +395,15 @@
     placementBatchId: {
       type: Number,
       default: "",
+    },
+  },
+  filters: {
+    formatDate(date) {
+      if (date) {
+        return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
+      } else {
+        return "-";
+      }
     },
   },
   data() {
@@ -462,11 +472,18 @@
       this.getList();
     },
     tableRowClassName({ row, rowIndex }) {
-      if (row.hasError) {
-        return "error-row";
+      if (row.compensationSumWarn == 1 || row.householdHeadWarn == 1 || row.idCardWarn == 1 || row.priceAmountWarn == 1 || row.quarterPayAmountWarn == 1 || row.subsidyAmountWarn == 1 || row.twoPriceWarn == 1 || row.waitFamilyAreaWarn == 1) {
+        return 'warning-row'
       }
-      return "";
+      return ''
     },
+    tableRowClassName1({ row, rowIndex }) {
+      if (row.areaWarn == 1 || row.compensationAmountWarn == 1 || row.compensationSumWarn == 1 || row.householdHeadWarn == 1 || row.idCardWarn == 1 || row.waitFamilyAreaWarn == 1 || row.waitFamilyNamesWarn == 1 || row.subsidyAmountWarn == 1 || row.quarterPayAmountWarn == 1) {
+        return 'warning-row'
+      }
+      return ''
+    },
+
     cancelAudit() {
       this.$emit("close");
       this.resetForm();

--
Gitblit v1.7.1