This commit is contained in:
BianLzhaoMin 2025-12-24 17:56:13 +08:00
parent 319419fbda
commit 914fb04175
5 changed files with 21 additions and 5 deletions

View File

@ -278,6 +278,13 @@
mode="aspectFit"
class="sign-image"
/>
<!-- <up-image
v-if="form.signaturePath"
:src="form.signaturePath"
mode="aspectFit"
class="sign-image"
/> -->
<view v-else class="sign-empty-box"></view>
</view>
<view class="sign-buttons">
@ -916,7 +923,9 @@ const handleGetWorkerInfo = async () => {
if (photoRes !== 'is null') {
const { signaturePhoto, facePhoto } = photoRes
form.value.signaturePath = import.meta.env.VITE_API_FILE_ASE_URL + signaturePhoto
form.value.signaturePath = signaturePhoto.startsWith('http')
? signaturePhoto
: import.meta.env.VITE_API_FILE_ASE_URL + signaturePhoto
form.value.signatureUrl = signaturePhoto
form.value.faceUrl = facePhoto
}

View File

@ -499,7 +499,7 @@ const handleSignProtocol = async (signaturePath, type) => {
if (result.res === 1) {
console.log(result, 'result签订协议成功')
//
emitSigned(result.resMsg, type, params.startDate, params.endDate)
emitSigned(result.resMsg, type, params.startDate, params.endDate, result.obj)
uni.$u.toast('签订协议成功')
//
setTimeout(() => {

View File

@ -217,8 +217,9 @@ onLoad((options) => {
personnelInfo.value = JSON.parse(decodeURIComponent(options.personnelInfo))
//
if (personnelInfo.value.facePhoto) {
currentFacePhoto.value =
import.meta.env.VITE_API_FILE_ASE_URL + personnelInfo.value.facePhoto
currentFacePhoto.value = personnelInfo.value.facePhoto.startsWith('http')
? personnelInfo.value.facePhoto
: import.meta.env.VITE_API_FILE_ASE_URL + personnelInfo.value.facePhoto
console.log(currentFacePhoto.value, 'currentFacePhoto.value')
}

View File

@ -72,7 +72,12 @@
{{ isViewDetail ? '审核详情' : '施工人员入场审核' }}
</view>
<scroll-view class="detail-body" scroll-y>
<view v-if="isViewDetail">
<view
v-if="
isViewDetail ||
(activeTab == 0 && list.filter((item) => item.isChecked).length <= 1)
"
>
<view class="detail-row">
<text class="label"> </text>
<text class="value">{{ detail.name || '-' }}</text>

View File

@ -56,6 +56,7 @@ export const createHttpClient = ({ baseURL, clientTag, tokenSelector }) => {
if (options.isUploadFile) {
if (token) {
options.header.Authorization = token
options.header.Token = token
}
return
}