This commit is contained in:
BianLzhaoMin 2025-12-29 18:18:37 +08:00
parent 5113164e23
commit c08aa7939c
4 changed files with 38 additions and 6 deletions

View File

@ -67,9 +67,16 @@ export const getPostTypeSelectListAPI = () => {
}
// 获取标段工程下拉列表 ----- 携带查询条件的
// export function getLotProjectSelectListByConditionAPI(data) {
// return request({
// url: '/bmw/select/selectPro',
// method: 'POST',
// data,
// })
// }
export function getLotProjectSelectListByConditionAPI(data) {
return request({
url: '/bmw/select/selectPro',
url: '/bmw/select/selectDgcPro',
method: 'POST',
data,
})

View File

@ -46,6 +46,15 @@ export const uploadExitFileAPI = (data) => {
})
}
// 判断当前人员是否需要上传离场结算确认单
export const checkExitFileAPI = (data) => {
return request({
url: '/bmw/proConfig/getConfigByProId',
method: 'POST',
data,
})
}
// 人员出场 删除人员接口
export const deleteEntryPersonAPI = (data) => {
return request({

View File

@ -20,7 +20,10 @@
<div class="content">
<span> 人员同时入场多个工程设置 </span>
<span> 1. 请确保该人员已经入场一个上海工程 </span>
<span>
1.
请确保该人员已经入场一个工程并且该人员所在公司允许同时入场多个工程
</span>
<span>
2.
每个工程人员只能存在一条在场数据即一个工程只能入场一次
@ -57,7 +60,10 @@
<div class="content-detail">
<span> 人员同时入场多个工程设置 </span>
<span> 1. 请确保该人员已经入场一个上海工程 </span>
<span>
1.
请确保该人员已经入场一个工程并且该人员所在公司允许同时入场多个工程
</span>
<span>
2.
每个工程人员只能存在一条在场数据即一个工程只能入场一次

View File

@ -85,6 +85,7 @@ import UploadFileFormData from '@/components/UploadFileFormData'
import {
addEntryPersonAPI,
uploadExitFileAPI,
checkExitFileAPI,
} from '@/api/construction-person/entry-and-exit-manage/person-exit'
export default {
name: 'personExitForm',
@ -122,9 +123,7 @@ export default {
fileList: [
{
trigger: 'change,blur',
required:
this.isExitUpload === 2 ||
(this.isExitUpload !== 2 && this.isShanghai == 0),
required: this.checkExitFileFun() == 1,
message: '请上传离场工资结算确认单',
},
],
@ -220,6 +219,16 @@ export default {
}
})
},
//
async checkExitFileFun() {
const res = await checkExitFileAPI({
proId: this.personExitFormData.proId,
})
if (res.code === 200) {
return res.data.tczm
}
},
},
watch: {
@ -227,6 +236,7 @@ export default {
handler(newVal) {
if (Object.keys(newVal).length > 0) {
Object.assign(this.personExitFormData, newVal)
this.checkExitFileFun()
}
},
deep: true,