This commit is contained in:
BianLzhaoMin 2025-10-21 14:59:26 +08:00
parent 06c20c63e6
commit f8c89b3104
2 changed files with 23 additions and 3 deletions

View File

@ -141,8 +141,11 @@ const afterRead = (e) => {
// //
const openConfirmExitModal = () => { const openConfirmExitModal = () => {
if (fileList.value.length === 0) { console.log('fileList', fileList.value)
exitContent.value = `当前没有上传离场工资结算确认单,是否确认将人员 <${exitParams.value.name}> 出场?` if (fileList.value.length === 0 && exitParams.value.isShanghai == 0) {
uni.$u.toast('请上传离场工资结算确认单')
return
// exitContent.value = ` <${exitParams.value.name}> `
} else { } else {
exitContent.value = `是否确认将人员 ${exitParams.value.name} 出场?` exitContent.value = `是否确认将人员 ${exitParams.value.name} 出场?`
} }
@ -155,6 +158,8 @@ const onConfirmExit = async () => {
id: exitParams.value.id, id: exitParams.value.id,
proId: exitParams.value.proId, proId: exitParams.value.proId,
workerId: exitParams.value.workerId, workerId: exitParams.value.workerId,
subId: exitParams.value.subId,
teamId: exitParams.value.teamId,
exitWay: 'APP', exitWay: 'APP',
} }

View File

@ -196,7 +196,19 @@ const onPersonExitItem = (item) => {
uni.$u.toast('人员已出场') uni.$u.toast('人员已出场')
return return
} }
const { name, id, proId, proName, subName, idNumber, workerId, teamName } = item const {
name,
id,
proId,
proName,
subName,
idNumber,
workerId,
teamName,
subId,
teamId,
isShanghai,
} = item
const params = { const params = {
name, name,
id, id,
@ -206,6 +218,9 @@ const onPersonExitItem = (item) => {
idNumber, idNumber,
workerId, workerId,
teamName, teamName,
subId,
teamId,
isShanghai,
} }
uni.navigateTo({ uni.navigateTo({
url: `/pages/person-exit/data-upload/index?params=${JSON.stringify(params)}`, url: `/pages/person-exit/data-upload/index?params=${JSON.stringify(params)}`,