This commit is contained in:
parent
6986145faf
commit
57101265f7
|
|
@ -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,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue