打印审核人
This commit is contained in:
parent
bdcb11ed8a
commit
954d6c8126
@ -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"> </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"> </span>
|
||||
<span v-else> {{ formData.approveUserName+'/'+formatDate(new Date(formData.approveTime), 'YYYY-MM-DD')}}</span>
|
||||
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<span v-if="!planData.approver"> </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"> </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;
|
||||
|
Loading…
Reference in New Issue
Block a user