fix: data not append if key not exists
This commit is contained in:
parent
c9da7ed59f
commit
61501dba8d
1 changed files with 7 additions and 8 deletions
|
|
@ -262,14 +262,12 @@ const responsiblePersonList = computed(() => {
|
|||
curr.productService.service?.workflow?.step.forEach((v) => {
|
||||
const key = v.order.toString();
|
||||
|
||||
if (!acc[key]) {
|
||||
acc[key] = [];
|
||||
} else {
|
||||
v.responsiblePerson.forEach((lhs) => {
|
||||
if (acc[v.order].find((rhs) => rhs.id === lhs.userId)) return;
|
||||
acc[v.order].push(lhs.user);
|
||||
});
|
||||
}
|
||||
if (!acc[key]) acc[key] = [];
|
||||
|
||||
v.responsiblePerson.forEach((lhs) => {
|
||||
if (acc[v.order].find((rhs) => rhs.id === lhs.userId)) return;
|
||||
acc[v.order].push(lhs.user);
|
||||
});
|
||||
});
|
||||
|
||||
return acc;
|
||||
|
|
@ -612,6 +610,7 @@ function isInstallmentPaySuccess(installmentNo: number) {
|
|||
<ProductExpansion
|
||||
:cancel="data.requestDataStatus === RequestDataStatus.Canceled"
|
||||
:readonly="data.requestDataStatus === RequestDataStatus.Canceled"
|
||||
:order-able="value._formExpansion"
|
||||
:installment-info="getInstallmentInfo()"
|
||||
:pay-success="
|
||||
isInstallmentPaySuccess(value.productService.installmentNo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue