This commit is contained in:
BianLzhaoMin 2025-11-17 10:35:04 +08:00
parent 7783cd98b6
commit fa14d9f281
7 changed files with 73 additions and 41 deletions

View File

@ -1,5 +1,5 @@
# VITE_API_BASE_URL = http://112.29.103.165:1616 # VITE_API_BASE_URL = http://112.29.103.165:1616
# VITE_API_BASE_URL = /api VITE_API_BASE_URL = /api
VITE_API_BASE_URL = http://192.168.0.14:1999/hd-real-name # VITE_API_BASE_URL = http://192.168.0.14:1999/hd-real-name
# VITE_API_BASE_URL = http://192.168.0.234:38080/hd-real-name # VITE_API_BASE_URL = http://192.168.0.234:38080/hd-real-name
# VITE_API_BASE_URL = http://192.168.0.234:38080 # VITE_API_BASE_URL = http://192.168.0.234:38080

View File

@ -409,6 +409,19 @@ const updateContractInfo = () => {
Object.assign(contractInfoForm.value, props.contractInfo) Object.assign(contractInfoForm.value, props.contractInfo)
} }
const resetForm = () => {
contractInfoForm.value = {
contractCode: '', //
contractTermType: '以完成一定工作为期限的合同', //
contractStartDate: null, //
contractStopDate: null, //
wageApprovedWay: '天', //
wageCriterion: '', //
}
contractImageList.value[0].fileList = []
contractImageIdList.value = []
}
// //
const initSalaryRegexp = (num) => { const initSalaryRegexp = (num) => {
// num1-999999 // num1-999999
@ -499,6 +512,7 @@ const initSalaryMessage = (num) => {
// //
defineExpose({ defineExpose({
validateContractForm, validateContractForm,
resetForm,
updateContractInfo, updateContractInfo,
}) })

View File

@ -119,6 +119,14 @@ const props = defineProps({
type: [Number, String], type: [Number, String],
default: '', default: '',
}, },
proId: {
type: [Number, String],
default: '',
},
einStatus: {
type: [Number, String],
default: '',
},
}) })
// //

View File

@ -47,6 +47,9 @@
<view class="red-text exit-title"> 离场工资结算确认单 </view> <view class="red-text exit-title"> 离场工资结算确认单 </view>
<view class="upload-content"> <view class="upload-content">
<text style="color: red; margin-right: 10rpx" v-show="exitParams?.isShanghai == 0">
*
</text>
<text> 离场工资结算确认单</text> <text> 离场工资结算确认单</text>
<up-upload <up-upload
@ -85,12 +88,18 @@ import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm.j
import NavBarModal from '@/components/NavBarModal/index.vue' import NavBarModal from '@/components/NavBarModal/index.vue'
const { safeAreaInsets } = uni.getSystemInfoSync() const { safeAreaInsets } = uni.getSystemInfoSync()
const commonStore = useCommonStore() const commonStore = useCommonStore()
const exitParams = ref({}) // const exitParams = ref({
isShanghai: 0,
}) //
const fileList = ref([]) // const fileList = ref([]) //
const exitContent = ref('') // const exitContent = ref('') //
const showModalConfirmExit = ref(false) // const showModalConfirmExit = ref(false) //
const fileIds = ref([]) // ID const fileIds = ref([]) // ID
defineOptions({
inheritAttrs: false,
})
// //
const deletePic = (e) => { const deletePic = (e) => {
fileList.value = fileList.value.filter((item) => item.id !== e.file.id) fileList.value = fileList.value.filter((item) => item.id !== e.file.id)
@ -305,7 +314,7 @@ onLoad((options) => {
display: flex; display: flex;
align-items: center; align-items: center;
& text:first-child { & text:nth-child(2) {
display: inline-block; display: inline-block;
width: 200rpx; width: 200rpx;
color: #909399; color: #909399;

View File

@ -123,6 +123,7 @@ const queryParams = ref({
name: '', name: '',
subName: '', subName: '',
proName: '', proName: '',
proId: '',
}) })
const statusList = ref([ const statusList = ref([
@ -147,17 +148,20 @@ const onSearchName = () => {
switch (searchType.value) { switch (searchType.value) {
case 1: case 1:
queryParams.value.name = searchValue.value queryParams.value.name = searchValue.value
queryParams.value.proName = commonStore?.activeProjectName queryParams.value.proName = ''
queryParams.value.proId = commonStore?.activeProjectId
queryParams.value.subName = '' queryParams.value.subName = ''
break break
case 2: case 2:
queryParams.value.subName = searchValue.value queryParams.value.subName = searchValue.value
queryParams.value.proName = commonStore?.activeProjectName queryParams.value.proName = ''
queryParams.value.proId = commonStore?.activeProjectId
queryParams.value.name = '' queryParams.value.name = ''
break break
case 3: case 3:
queryParams.value.proName = searchValue.value queryParams.value.proName = searchValue.value
queryParams.value.proId = ''
queryParams.value.name = '' queryParams.value.name = ''
queryParams.value.subName = '' queryParams.value.subName = ''
break break
@ -252,7 +256,8 @@ const hasMore = computed(() => {
}) })
onMounted(() => { onMounted(() => {
queryParams.value.proName = commonStore?.activeProjectName // queryParams.value.proName = commonStore?.activeProjectName
queryParams.value.proId = commonStore?.activeProjectId
onInputLoaded() onInputLoaded()
getPersonExitListFun() getPersonExitListFun()
uni.$on('refreshPersonExitList', onSearchName) uni.$on('refreshPersonExitList', onSearchName)

View File

@ -215,6 +215,30 @@ const formRef = ref(null) // 表单ref
const showLoading = ref(false) // const showLoading = ref(false) //
const workerId = ref('') // ID const workerId = ref('') // ID
const personContractFormRef = ref(null) // ref const personContractFormRef = ref(null) // ref
const contractInfo = ref({}) //
const contractImageList = ref([
{
type: 1,
fileList: [],
name: 'contract',
title: '人员手持合同照',
},
]) //
const props = defineProps({
workerId: {
type: [Number, String],
default: '',
},
name: {
type: [String],
default: '',
},
idCard: {
type: [String],
default: '',
},
})
// //
const formData = ref({ const formData = ref({
@ -230,39 +254,6 @@ const formData = ref({
postId: '', postId: '',
id: '', id: '',
}) })
const contractInfo = ref({}) //
const contractImageList = ref([
{
type: 1,
fileList: [],
name: 'contract',
title: '人员手持合同照',
},
// {
// type: 2,
// fileList: [],
// name: 'contract',
// title: '',
// },
// {
// type: 3,
// fileList: [],
// name: 'contract',
// title: '',
// },
// {
// type: 4,
// fileList: [],
// name: 'contract',
// title: '',
// },
// {
// type: 5,
// fileList: [],
// name: 'contract',
// title: '',
// },
]) //
// //
const formRules = ref({ const formRules = ref({
@ -455,6 +446,7 @@ const submitData = async (isContinue) => {
teamName: '', teamName: '',
id: workerId.value, id: workerId.value,
} }
personContractFormRef.value.resetForm()
} else { } else {
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()

View File

@ -68,6 +68,10 @@ const workerId = ref('') // 人员ID
const name = ref('') // const name = ref('') //
const idCardNumber = ref('') // const idCardNumber = ref('') //
defineOptions({
inheritAttrs: false,
})
// //
const getShProjectDetailsListFun = async () => { const getShProjectDetailsListFun = async () => {
const res = await getShProjectListByWorkerIdAPI({ const res = await getShProjectListByWorkerIdAPI({