This commit is contained in:
BianLzhaoMin 2025-10-13 18:15:43 +08:00
parent 6986145faf
commit 57101265f7
3 changed files with 33 additions and 2 deletions

View File

@ -54,3 +54,12 @@ export const getCardReplacementApplyListAPI = (data) => {
params: data,
})
}
// 判断当前月份是否封档
export const getCardReplacementMonthIsClosedAPI = (data) => {
return request({
url: '/bmw/cardApply/getProSalaryStatus',
method: 'POST',
data,
})
}

View File

@ -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>

View File

@ -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() {