diff --git a/src/pages/08_request-list/RequestListView.vue b/src/pages/08_request-list/RequestListView.vue index 47b857f4..2b3b70ca 100644 --- a/src/pages/08_request-list/RequestListView.vue +++ b/src/pages/08_request-list/RequestListView.vue @@ -262,11 +262,13 @@ const responsiblePersonList = computed(() => { curr.productService.service?.workflow?.step.forEach((v) => { const key = v.order.toString(); - if (!acc[key]) acc[key] = []; + if (!acc[key]) acc[key] = v.responsiblePerson.map((v) => v.user); + + const current = acc[key]; v.responsiblePerson.forEach((lhs) => { - if (acc[v.order].find((rhs) => rhs.id === lhs.userId)) return; - acc[v.order].push(lhs.user); + if (current.find((rhs) => rhs.id === lhs.userId)) return; + current.push(lhs.user); }); }); @@ -275,7 +277,7 @@ const responsiblePersonList = computed(() => { {}, ); - return temp; + return temp || {}; }); const successAll = computed(() => { @@ -372,15 +374,12 @@ function isInstallmentPaySuccess(installmentNo: number) { {{ $t('flow.responsiblePerson') }}