This commit is contained in:
BianLzhaoMin 2025-10-21 10:55:24 +08:00
parent 126504f14f
commit c5456955c9
4 changed files with 64 additions and 37 deletions

View File

@ -117,6 +117,7 @@
ref="personExitFormRef" ref="personExitFormRef"
:exitFormData="exitFormData" :exitFormData="exitFormData"
:isExitUpload="isExitUpload" :isExitUpload="isExitUpload"
:isShanghai="isShanghai"
v-if="dialogConfig.outerTitle === '人员出场'" v-if="dialogConfig.outerTitle === '人员出场'"
/> />
@ -187,6 +188,7 @@ export default {
exitFormData: {}, exitFormData: {},
queryDetailsId: '', queryDetailsId: '',
isExitUpload: 1, // 1: 2: isExitUpload: 1, // 1: 2:
isShanghai: 0, //
getExitPersonListAPI, getExitPersonListAPI,
slots: { slots: {
@ -241,6 +243,7 @@ export default {
// //
onHandlePersonExit(data, type) { onHandlePersonExit(data, type) {
this.isExitUpload = type this.isExitUpload = type
this.isShanghai = data.isShanghai
const { const {
name, name,
id, id,

View File

@ -100,7 +100,13 @@ export default {
type: Number, type: Number,
default: 1, default: 1,
}, },
//
isShanghai: {
type: [Number, String],
default: 0,
}, },
},
data() { data() {
return { return {
personExitFormData: { personExitFormData: {
@ -116,7 +122,9 @@ export default {
fileList: [ fileList: [
{ {
trigger: 'change,blur', trigger: 'change,blur',
required: this.isExitUpload === 2, required:
this.isExitUpload === 2 ||
(this.isExitUpload !== 2 && this.isShanghai == 1),
message: '请上传离场工资结算确认单', message: '请上传离场工资结算确认单',
}, },
], ],
@ -128,8 +136,16 @@ export default {
onHandleConfirmAddOrEditFun() { onHandleConfirmAddOrEditFun() {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
if (this.isExitUpload === 1) { if (this.isExitUpload === 1) {
const { id, workerId, fileList, proId, subId, teamId } = this.$refs.personExitFormRef.validate(async (valid) => {
this.personExitFormData if (valid) {
const {
id,
workerId,
fileList,
proId,
subId,
teamId,
} = this.personExitFormData
const params = { const params = {
id, id,
proId, proId,
@ -162,6 +178,8 @@ export default {
this.$modal.msgError(res.msg) this.$modal.msgError(res.msg)
reject(new Error(res.msg)) reject(new Error(res.msg))
} }
}
})
} else { } else {
this.$refs.personExitFormRef.validate(async (valid) => { this.$refs.personExitFormRef.validate(async (valid) => {
if (valid) { if (valid) {

View File

@ -75,13 +75,19 @@
<span <span
:style="{ :style="{
color: color:
row.attStatus == 0 row.attStatus == 1 ||
? '#ef4444' (row.attStatus == 0 &&
: '#10b981', row.isRepair == 1)
? '#10b981'
: '#ef4444',
}" }"
> >
{{ {{
row.attStatus == 0 ? '未打卡' : '已打卡' row.attStatus == 1 ||
(row.attStatus == 0 &&
row.isRepair == 1)
? '已打卡'
: '未打卡'
}} }}
</span> </span>
</template> </template>

View File

@ -123,7 +123,7 @@
<div class="data-item"> <div class="data-item">
<div class="data-label">累计补卡天数(人次)</div> <div class="data-label">累计补卡天数(人次)</div>
<div class="data-value"> <div class="data-value">
{{ attendanceData.proRepairNum || 0 }} {{ attendanceData.repairNumHis || 0 }}
</div> </div>
</div> </div>
</div> </div>