This commit is contained in:
parent
6986145faf
commit
57101265f7
|
|
@ -54,3 +54,12 @@ export const getCardReplacementApplyListAPI = (data) => {
|
|||
params: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 判断当前月份是否封档
|
||||
export const getCardReplacementMonthIsClosedAPI = (data) => {
|
||||
return request({
|
||||
url: '/bmw/cardApply/getProSalaryStatus',
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ export default {
|
|||
// repairNum: '', // 补卡人数
|
||||
// repairDay: '', // 补卡天数
|
||||
repairRemark: '', // 补卡说明
|
||||
repairMonth: '2025-08', // 补卡月份
|
||||
repairMonth: '', // 补卡月份
|
||||
repairCardRecords: [],
|
||||
fileList: [],
|
||||
},
|
||||
|
|
@ -421,5 +421,14 @@ export default {
|
|||
immediate: true,
|
||||
},
|
||||
},
|
||||
|
||||
created() {
|
||||
const today = new Date()
|
||||
// 获取上个月 格式为YYYY-MM
|
||||
this.addParams.repairMonth =
|
||||
today.getFullYear() +
|
||||
'-' +
|
||||
today.getMonth().toString().padStart(2, '0')
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@
|
|||
<div @click.stop class="check-box-item">
|
||||
<el-checkbox
|
||||
v-model="item.isChecked"
|
||||
:disabled="isClosed"
|
||||
v-if="item.isActive == 0 && item.inRange"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -141,6 +142,7 @@
|
|||
import {
|
||||
getCardReplacementPersonListAPI,
|
||||
getCardReplacementPersonCheckRecordAPI,
|
||||
getCardReplacementMonthIsClosedAPI,
|
||||
} from '@/api/construction-person/attendance-manage/card-replacement-apply'
|
||||
export default {
|
||||
name: 'SelectPersonAndDate',
|
||||
|
|
@ -179,6 +181,9 @@ export default {
|
|||
new Date().toISOString().split('T')[0],
|
||||
],
|
||||
},
|
||||
|
||||
// 是否封档
|
||||
isClosed: false,
|
||||
personOptions: [],
|
||||
name: '',
|
||||
idNumber: '',
|
||||
|
|
@ -233,8 +238,16 @@ export default {
|
|||
}))
|
||||
},
|
||||
// 查询
|
||||
handleQuery() {
|
||||
async handleQuery() {
|
||||
this.getCardReplacementPersonCheckRecord()
|
||||
|
||||
// 判断当前月份是否封档
|
||||
const res = await getCardReplacementMonthIsClosedAPI({
|
||||
repairMonth: this.queryPersonForm.time[0].slice(0, 7),
|
||||
proId: this.selectProjectId,
|
||||
})
|
||||
|
||||
this.isClosed = res.msg == 1 ? true : false
|
||||
},
|
||||
|
||||
resetQuery() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue