From c105b70fcf9819b5f597c254b395932f215ab98f Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期三, 17 七月 2024 16:33:39 +0800 Subject: [PATCH] 批注工时批量审核批准修改 --- src/components/tool/value-table.vue | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 0f74844..8d20d12 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -1106,6 +1106,31 @@ this.$message.error('璇烽�夋嫨瑕佸垹闄ょ殑鏁版嵁') } }, + // 鏃ュ伐鏃剁鐞嗚緟鍔╁伐鏃�--鎵归噺瀹℃牳鍜屾壒鍑� + batchCheck(e) { + if (this.multipleSelection && this.multipleSelection.length > 0) { + const list = JSON.parse(JSON.stringify(this.multipleSelection)) + const url = e === 0 ? this.$api.auxiliaryWorkingHoursDay.check : this.$api.auxiliaryWorkingHoursDay.approve + const state = e === 0 ? '宸插鏍�' : '宸叉壒鍑�' + list.forEach(item => { + this.$axios.post(url, {id: item.id, state: 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