refactor: sort installment no

This commit is contained in:
Thanaphon Frappet 2024-12-02 16:32:29 +07:00
parent 3a63d2622c
commit b24380fae0

View file

@ -608,10 +608,16 @@ function isInstallmentPaySuccess(installmentNo: number) {
<!-- product --> <!-- product -->
<template <template
v-for="(value, index) in workList?.filter((v) => v-for="(value, index) in workList
?.filter((v) =>
v.productService.work?.attributes.workflowStep?.[ v.productService.work?.attributes.workflowStep?.[
pageState.currentStep - 1 pageState.currentStep - 1
]?.productsId.includes(v.productService.productId), ]?.productsId.includes(v.productService.productId),
)
.sort(
(lhs, rhs) =>
lhs.productService.installmentNo -
rhs.productService.installmentNo,
)" )"
:key="value" :key="value"
> >