新需求优化

This commit is contained in:
BianLzhaoMin 2025-09-18 16:23:41 +08:00
parent 8bcac60702
commit 6721fe85d8
5 changed files with 70 additions and 5 deletions

View File

@ -12,7 +12,7 @@ export const addEntryPersonAPI = (data) => {
// 人员出场 批量出场 // 人员出场 批量出场
export const batchExitPersonAPI = (data) => { export const batchExitPersonAPI = (data) => {
return requestFormData({ return request({
url: '/bmw/workerExit/exit/batchExit', url: '/bmw/workerExit/exit/batchExit',
method: 'POST', method: 'POST',
data, data,

View File

@ -298,6 +298,7 @@ export default {
// //
handleCloseDialogOuter() { handleCloseDialogOuter() {
this.selectProjectId = ''
this.dialogConfig.outerVisible = false this.dialogConfig.outerVisible = false
}, },
}, },

View File

@ -58,6 +58,25 @@
<span> ({{ idNumber }}) </span> <span> ({{ idNumber }}) </span>
</div> </div>
<div class="legend">
<div class="legend-item">
<span class="legend-mark active"></span>
<span>已打卡</span>
</div>
<div class="legend-item">
<span class="legend-mark inactive"></span>
<span>未打卡</span>
</div>
<div class="legend-item">
<span class="legend-mark not-in-range"></span>
<span>已在其他工程打卡</span>
</div>
<div class="legend-item">
<span class="legend-mark is-no-att"></span>
<span>不在场</span>
</div>
</div>
<!-- 补卡日历 --> <!-- 补卡日历 -->
<div class="date-ist" v-if="cardReplacementDateList.length > 0"> <div class="date-ist" v-if="cardReplacementDateList.length > 0">
<div <div
@ -81,6 +100,7 @@
> >
{{ item.month }} {{ item.month }}
</span> </span>
<div <div
class="item" class="item"
:ref="`item${index}`" :ref="`item${index}`"
@ -88,7 +108,9 @@
height: initHeight + 'px', height: initHeight + 'px',
backgroundColor: item.inRange backgroundColor: item.inRange
? item.isActive == 1 ? item.isActive == 1
? item.isSamePro == 1
? '#19be6b' ? '#19be6b'
: '#ff9900'
: '#f56c6c' : '#f56c6c'
: '#999', : '#999',
cursor: cursor:
@ -266,8 +288,9 @@ export default {
month: key.split('-')[1], month: key.split('-')[1],
date: key.split('-')[2], date: key.split('-')[2],
inRange: res[key].inRange, inRange: res[key].inRange,
isActive: res[key].isActive,
currentDate: key, currentDate: key,
isActive: res[key].isActive,
isSamePro: res[key].isSamePro,
isChecked: this.editRepairDateList.includes(key), isChecked: this.editRepairDateList.includes(key),
}) })
} }
@ -280,6 +303,7 @@ export default {
isActive: res[key].isActive, isActive: res[key].isActive,
currentDate: key, currentDate: key,
isChecked: false, isChecked: false,
isSamePro: res[key].isSamePro,
}) })
} }
} }
@ -442,4 +466,44 @@ export default {
background-color: #b58bae !important; background-color: #b58bae !important;
} }
} }
/* 图例样式 */
.legend {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
padding-bottom: 10px;
}
.legend-item {
display: flex;
align-items: center;
gap: 5px;
font-size: 14px;
color: #666;
}
.legend-mark {
display: inline-block;
width: 24px;
height: 24px;
border-radius: 3px;
}
.legend-mark.active {
background-color: #19be6b;
}
.legend-mark.inactive {
background-color: #f56c6c;
}
.legend-mark.not-in-range {
background-color: #ff9900;
}
.is-no-att {
background-color: #999;
}
</style> </style>

View File

@ -1444,7 +1444,7 @@ export default {
async getEntryPersonDetail() { async getEntryPersonDetail() {
const { data: res } = await getEntryPersonDetailAPI({ const { data: res } = await getEntryPersonDetailAPI({
id: this.queryDetailsId, id: this.queryDetailsId,
proId: this.proId, proId: this.proId || 0, // id0
}) })
// //

View File

@ -214,7 +214,7 @@ export default {
const res = await batchExitPersonAPI(params) const res = await batchExitPersonAPI(params)
if (res.code === 200) { if (res.code === 200) {
this.$modal.msgWarning(res.msg) this.$modal.msgSuccess(res.msg)
this.$refs.personExitTableRef.getTableList() this.$refs.personExitTableRef.getTableList()
} else { } else {
this.$modal.msgError(res.msg) this.$modal.msgError(res.msg)