diff --git a/src/views/visit/record.vue b/src/views/visit/record.vue
index c55fb89..7014401 100644
--- a/src/views/visit/record.vue
+++ b/src/views/visit/record.vue
@@ -113,6 +113,32 @@
+
+ 审核流程
+ 暂无审核节点
+
+
+
+ {{ scope.row.level != null && scope.row.level !== '' ? Number(scope.row.level) + 1 : scope.$index + 1 }}
+
+
+
+ {{ scope.row.audit_admin ? scope.row.audit_admin.name : '-' }}
+
+
+
+ {{ auditNodeStatusText(scope.row.status) }}
+
+
+
+ {{ scope.row.reason || '—' }}
+
+
+ {{ scope.row.updated_at || scope.row.created_at || '—' }}
+
+
+
+
随访人员信息
@@ -374,7 +400,18 @@
]
}
},
- computed: {},
+ computed: {
+ auditList() {
+ if (!this.viewDetailData || !Array.isArray(this.viewDetailData.audit)) {
+ return []
+ }
+ return [...this.viewDetailData.audit].sort((a, b) => {
+ const la = a.level != null ? Number(a.level) : 0
+ const lb = b.level != null ? Number(b.level) : 0
+ return la - lb
+ })
+ }
+ },
mounted() {
console.log("stote",store)
// const state = store.state
@@ -433,6 +470,16 @@
this.viewDetailData = res
this.viewDialogVisible = true
},
+ auditNodeStatusText(status) {
+ const m = { 0: '待审核', 1: '通过', 2: '驳回' }
+ const s = parseInt(status, 10)
+ return m[s] !== undefined ? m[s] : '-'
+ },
+ auditNodeTagType(status) {
+ const m = { 0: 'warning', 1: 'success', 2: 'danger' }
+ const s = parseInt(status, 10)
+ return m[s] !== undefined ? m[s] : 'info'
+ },
credentText(credent) {
return parseInt(credent) === 2 ? '护照' : '身份证'
},