From c1a35f017eba33c14536784325f3fd16a60a603d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 17 七月 2024 16:20:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/tool/value-table.vue |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 0f74844..6416a82 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -1106,6 +1106,50 @@
           this.$message.error('璇烽�夋嫨瑕佸垹闄ょ殑鏁版嵁')
         }
       },
+      // 鏃ュ伐鏃剁鐞嗚緟鍔╁伐鏃�--鎵归噺瀹℃牳鍜屾壒鍑�
+      batchCheck(e) {
+        if (this.multipleSelection && this.multipleSelection.length > 0) {
+          const list = JSON.parse(JSON.stringify(this.multipleSelection))
+          list.forEach(item => {
+            if (e == 0) {
+              item.state = '宸插鏍�'
+              this.$axios.post(this.$api.auxiliaryWorkingHoursDay.check, {
+                  ...item
+                },{
+                  headers: {
+                    'Content-Type': 'application/json'
+                  }
+                }
+              ).then(res => {
+                if (res.code === 201) {
+                  return
+                }
+                this.$parent.submitBatchCheckDialog()
+                this.$message.success('鎿嶄綔鎴愬姛')
+              })
+            } else {
+              item.state = '宸叉壒鍑�'
+              this.$axios.post(this.$api.auxiliaryWorkingHoursDay.approve, {
+                id: item.id,
+                state: item.state
+                },{
+                  headers: {
+                    'Content-Type': 'application/json'
+                  }
+                }
+              ).then(res => {
+                if (res.code === 201) {
+                  return
+                }
+                this.$parent.submitBatchCheckDialog()
+                this.$message.success('鎿嶄綔鎴愬姛')
+              })
+            }
+          })
+        } else {
+          this.$message.error('璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�')
+        }
+      },
       getRedColor(label,row){
         if(this.data.cellSpecialStyle&&this.data.cellSpecialStyle.redColorByKey&&label.includes(this.data.cellSpecialStyle.redColorByKey)&&row[(label.replace(this.data.cellSpecialStyle.redColorByKey, ""))]){
           return true

--
Gitblit v1.9.3