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) { export function getLotProjectSelectListByConditionAPI(data) {
return request({ return request({
url: '/bmw/select/selectPro', url: '/bmw/select/selectDgcPro',
method: 'POST', method: 'POST',
data, 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) => { export const deleteEntryPersonAPI = (data) => {
return request({ return request({

View File

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

View File

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