|
@@ -35,6 +35,37 @@
|
|
|
<div v-if="showLeaderAudit" style="margin-left: 12px;border-left: 1px solid #dadada">
|
|
|
<GroupLeaderAudit :data="props.patinfo" :close-modal="closeDialog" />
|
|
|
</div>
|
|
|
+ <div v-else-if="!showLeaderAudit && leaderAudits.length > 0">
|
|
|
+ <div style="height: 30px; padding-left: 25px" >
|
|
|
+ <el-tag>
|
|
|
+ 编码组长审核记录
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
+ <div style="overflow-y: auto; height: 470px; width: 350px">
|
|
|
+ <el-timeline>
|
|
|
+ <el-timeline-item
|
|
|
+ v-for="item in leaderAudits"
|
|
|
+ :timestamp="item.createTime"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <el-card>
|
|
|
+ <h4>
|
|
|
+ 编码员:{{ item.coderName }}
|
|
|
+ </h4>
|
|
|
+ <p v-if="item.majorError" class="major-error">主要错误:{{item.majorError}}</p>
|
|
|
+ <p class="audit-remark">审核结果:{{ item.auditRemark }}</p>
|
|
|
+ <p style="font-size: 12px; color: dimgray">
|
|
|
+ <span>审核人:{{ item.auditName }}</span>
|
|
|
+ </p>
|
|
|
+ <p style="font-size: 12px; color: dimgray">
|
|
|
+ <span>审核时间:{{ item.createTime }}</span>
|
|
|
+ </p>
|
|
|
+ <img :src="item.auditState === 'APPROVED' ? approveImg : rejectImg" alt="" class="img-state">
|
|
|
+ </el-card>
|
|
|
+ </el-timeline-item>
|
|
|
+ </el-timeline>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div style="position: absolute; bottom: 20px; right: 20px">
|
|
|
<el-button
|
|
|
v-if="leaderAuditVisible"
|
|
@@ -65,6 +96,7 @@ const props = defineProps({
|
|
|
const emits = defineEmits(["cyDialogConfirm"]);
|
|
|
|
|
|
const histories = ref([])
|
|
|
+const leaderAudits = ref([])
|
|
|
const userStore = useUserStore()
|
|
|
const isGroupLeader = userStore.isFSCGroupLeader
|
|
|
|
|
@@ -82,12 +114,15 @@ function openGroupLeaderAudit() {
|
|
|
showLeaderAudit.value = false
|
|
|
return
|
|
|
}
|
|
|
- let coderName = '';
|
|
|
+ let coderCode = ''
|
|
|
+ let coderName = ''
|
|
|
histories.value.forEach(item => {
|
|
|
- if (coderName.indexOf(item.auditStaffName) === -1) {
|
|
|
+ if (coderCode.indexOf(item.auditStaffCode) === -1) {
|
|
|
+ coderCode += ("," + item.auditStaffCode)
|
|
|
coderName += ("," + item.auditStaffName)
|
|
|
}
|
|
|
})
|
|
|
+ props.patinfo.coderCode = coderCode.substring(1)
|
|
|
props.patinfo.coderName = coderName.substring(1)
|
|
|
|
|
|
if (histories.value.length > 0 && isGroupLeader) {
|
|
@@ -101,7 +136,8 @@ function closeDialog() {
|
|
|
|
|
|
onMounted(() => {
|
|
|
fetchAuditHistories(props.patinfo).then(res => {
|
|
|
- histories.value = res
|
|
|
+ histories.value = res.histories
|
|
|
+ leaderAudits.value = res.leaderAudits
|
|
|
})
|
|
|
})
|
|
|
|