|
@@ -7,7 +7,7 @@
|
|
|
<el-tag v-if="item.employeeCategory" class="mr-3">{{ item.employeeCategory }}</el-tag>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <m-button type="success" size="small" icon="el-icon-check">通过</m-button>
|
|
|
+ <m-button type="success" size="small" icon="el-icon-check" @click="onResolve">通过</m-button>
|
|
|
<m-button type="danger" size="small" icon="el-icon-close">拒绝</m-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -17,6 +17,9 @@
|
|
|
|
|
|
<script>
|
|
|
import BonusTable from '../components/bonusTable.vue'
|
|
|
+import {
|
|
|
+ saveBonusApproveConfirmation
|
|
|
+} from '@/api/bonus'
|
|
|
export default {
|
|
|
name: 'approveDetails',
|
|
|
components: {
|
|
@@ -39,6 +42,25 @@ export default {
|
|
|
employeeCategory: item.employeeCategory
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ onResolve () {
|
|
|
+ this.$confirm('是否确定通过?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ try {
|
|
|
+ await saveBonusApproveConfirmation({
|
|
|
+ employeePerformanceConfirmationId: this.item.employeePerformanceConfirmationId,
|
|
|
+ status: 1
|
|
|
+ })
|
|
|
+ this.$message.success('审核通过')
|
|
|
+ this.$refs.dialog.close()
|
|
|
+ this.$emit('onRefresh')
|
|
|
+ } catch (error) {
|
|
|
+ this.$message.error(error)
|
|
|
+ }
|
|
|
+ }).catch(_ => {})
|
|
|
}
|
|
|
}
|
|
|
}
|