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, params: data,
}) })
} }
// 判断当前月份是否封档
export const getCardReplacementMonthIsClosedAPI = (data) => {
return request({
url: '/bmw/cardApply/getProSalaryStatus',
method: 'POST',
data,
})
}

View File

@ -224,7 +224,7 @@ export default {
// repairNum: '', // // repairNum: '', //
// repairDay: '', // // repairDay: '', //
repairRemark: '', // repairRemark: '', //
repairMonth: '2025-08', // repairMonth: '', //
repairCardRecords: [], repairCardRecords: [],
fileList: [], fileList: [],
}, },
@ -421,5 +421,14 @@ export default {
immediate: true, immediate: true,
}, },
}, },
created() {
const today = new Date()
// YYYY-MM
this.addParams.repairMonth =
today.getFullYear() +
'-' +
today.getMonth().toString().padStart(2, '0')
},
} }
</script> </script>

View File

@ -128,6 +128,7 @@
<div @click.stop class="check-box-item"> <div @click.stop class="check-box-item">
<el-checkbox <el-checkbox
v-model="item.isChecked" v-model="item.isChecked"
:disabled="isClosed"
v-if="item.isActive == 0 && item.inRange" v-if="item.isActive == 0 && item.inRange"
/> />
</div> </div>
@ -141,6 +142,7 @@
import { import {
getCardReplacementPersonListAPI, getCardReplacementPersonListAPI,
getCardReplacementPersonCheckRecordAPI, getCardReplacementPersonCheckRecordAPI,
getCardReplacementMonthIsClosedAPI,
} from '@/api/construction-person/attendance-manage/card-replacement-apply' } from '@/api/construction-person/attendance-manage/card-replacement-apply'
export default { export default {
name: 'SelectPersonAndDate', name: 'SelectPersonAndDate',
@ -179,6 +181,9 @@ export default {
new Date().toISOString().split('T')[0], new Date().toISOString().split('T')[0],
], ],
}, },
//
isClosed: false,
personOptions: [], personOptions: [],
name: '', name: '',
idNumber: '', idNumber: '',
@ -233,8 +238,16 @@ export default {
})) }))
}, },
// //
handleQuery() { async handleQuery() {
this.getCardReplacementPersonCheckRecord() 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() { resetQuery() {