|
|
@@ -98,6 +98,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
queryAttendanceDetail,
|
|
|
+ getAttendanceDetail,
|
|
|
saveAttendanceReissue
|
|
|
} from '@/api/business/attendance'
|
|
|
import IbpsAttachment from '@/business/platform/file/attachment/selector'
|
|
|
@@ -212,6 +213,25 @@ export default {
|
|
|
this.$message.warning('该异常班次已申请!')
|
|
|
return
|
|
|
}
|
|
|
+ let shiFouyichang = false
|
|
|
+ //校验该班次是否异常班次
|
|
|
+ const kaoQinId = this.params.kao_qin_id_ || this.params.kaoQinId|| ''
|
|
|
+ const res = await getAttendanceDetail({ id : kaoQinId})
|
|
|
+ if(res.data){
|
|
|
+ if(banci.includes('上班')){
|
|
|
+ if(res.data.zhuangTai1 == '正常'){
|
|
|
+ shiFouyichang = true
|
|
|
+ }
|
|
|
+ }else if(banci.includes('下班')) {
|
|
|
+ if(res.data.zhuangTai2 == '正常'){
|
|
|
+ shiFouyichang = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(shiFouyichang){
|
|
|
+ this.$message.warning('该班次打卡状态已无异常!')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.buKaBanCiOptions = [
|
|
|
{
|
|
|
label: this.params.bu_ka_ban_ci_ || this.params.buKaBanCi,
|