打印审核人

This commit is contained in:
Ledo 2025-01-10 09:31:02 +08:00
parent bdcb11ed8a
commit 954d6c8126

View File

@ -278,13 +278,13 @@ style="
<span v-else> {{ userInit.find((user) => user.id == planData.approver)?.nickname+'/'+formatDate(new Date(planData.auditDate), 'YYYY-MM-DD') }}</span>
</td> -->
<td colspan="4">
<span v-if="!planData.auditor"> &nbsp;</span>
<span v-else> {{ userInit.find((user) => user.id == planData.auditor)?.nickname+'/'+formatDate(new Date(planData.auditDate), 'YYYY-MM-DD')}}</span>
<span v-if="!formData.approveUserName"> &nbsp;</span>
<span v-else> {{ formData.approveUserName+'/'+formatDate(new Date(formData.approveTime), 'YYYY-MM-DD')}}</span>
</td>
<td colspan="3">
<span v-if="!planData.approver"> &nbsp;</span>
<span v-else> {{ userInit.find((user) => user.id == planData.approver)?.nickname+'/'+formatDate(new Date(planData.auditDate), 'YYYY-MM-DD') }}</span>
<span v-if="!formData.auditUserName"> &nbsp;</span>
<span v-else> {{formData.auditUserName +'/'+formatDate(new Date(formData.auditTime), 'YYYY-MM-DD') }}</span>
</td>
<td colspan="3">
@ -786,18 +786,24 @@ const open = async (id: number,propertynew :number) => {
formData.value.customer = await getCustomer(formData.value.customerId)
// /
let logParams = {
pageNo: 1,
pageSize: 2,
typeList: [9, 10]
}
const logs = await getOperateLogPage(logParams)
if (logs.list && logs.list.length == 2) {
const approveLog = logs.list[0]
const auditLog = logs.list[1]
pageNo: 1,
pageSize: 99,
businessId: id,
businessType: 'PROJECT_ORDER'
}
formData.value.operateLogs = (await getOperateLogPage(logParams)).list
if (formData.value.operateLogs && formData.value.operateLogs.length >= 3) {
const approveLog = formData.value.operateLogs[2]
formData.value.approveTime = approveLog.startTime
formData.value.approveUserName = approveLog.userNickname
formData.value.auditTime = auditLog.startTime
formData.value.auditUserName = auditLog.userNickname
if(formData.value.operateLogs.length ==4){
const auditLog = formData.value.operateLogs[3]
formData.value.auditTime = auditLog.startTime
formData.value.auditUserName = auditLog.userNickname
}
// const auditLog = formData.value.operateLogs[3]
// formData.value.auditTime = auditLog.startTime
// formData.value.auditUserName = auditLog.userNickname
}
formData.value.propertynew = propertynew;
// loading .value = false;