直转审核加loading

This commit is contained in:
hongchao 2025-09-28 19:47:02 +08:00
parent 0fa146d047
commit f0ae70fb91
1 changed files with 5 additions and 2 deletions

View File

@ -61,8 +61,8 @@
'rejected': item.isAccept !== 0 && item.isAccept !== 1 'rejected': item.isAccept !== 0 && item.isAccept !== 1
}">{{ item.isAccept == 0 ? '待审批' : item.isAccept == 1 ? '已通过' : '已驳回' }}</text><br/> }">{{ item.isAccept == 0 ? '待审批' : item.isAccept == 1 ? '已通过' : '已驳回' }}</text><br/>
审批人<text class="black-text">{{ item.auditBy ? item.auditBy : '' }}</text><br/> 审批人<text class="black-text">{{ item.auditBy ? item.auditBy : '' }}</text><br/>
审批时间<text class="black-text">{{ item.createTime ? item.createTime : '' }}</text><br/> 审批时间<text class="black-text">{{ item.createTime ? item.createTime : '' }}</text>
审批意见<text class="black-text">{{ item.remark ? item.remark : '' }}</text> <text v-if="item.remark"><br/>审批意见<text class="black-text">{{ item.remark }}</text></text>
</text> </text>
</div> </div>
</view> </view>
@ -405,6 +405,7 @@ const handleReview = (action) => {
auditingParams.value.nextNodeId =auditingList.value[currentIndex + 1].id auditingParams.value.nextNodeId =auditingList.value[currentIndex + 1].id
} }
console.log("yyyyyyyyyyyyyyy",auditingParams.value) console.log("yyyyyyyyyyyyyyy",auditingParams.value)
uni.showLoading({ title: '提交中...', mask: true })
const submitRes = await submitAuditingApi(auditingParams.value) const submitRes = await submitAuditingApi(auditingParams.value)
console.log("zrrrrrrrrrrrrrrrrrr",submitRes) console.log("zrrrrrrrrrrrrrrrrrr",submitRes)
if (submitRes.code === 200) { if (submitRes.code === 200) {
@ -412,11 +413,13 @@ const handleReview = (action) => {
title: '审核成功', title: '审核成功',
icon: 'none', icon: 'none',
}) })
uni.hideLoading()
initPageData(); initPageData();
// uni.navigateBack(); // // uni.navigateBack(); //
} }
} else if (res.cancel) { } else if (res.cancel) {
console.log('用户取消操作'); console.log('用户取消操作');
uni.hideLoading()
} }
} }
}); });