refactor: handle pay installment no

This commit is contained in:
Thanaphon Frappet 2024-12-02 16:29:36 +07:00
parent efa576b423
commit 3a63d2622c
2 changed files with 16 additions and 7 deletions

View file

@ -606,6 +606,7 @@ function isInstallmentPaySuccess(installmentNo: number) {
</transition>
</article>
<!-- product -->
<template
v-for="(value, index) in workList?.filter((v) =>
v.productService.work?.attributes.workflowStep?.[
@ -622,6 +623,8 @@ function isInstallmentPaySuccess(installmentNo: number) {
:status="
value.stepStatus?.find((v) => v.step === pageState.currentStep)
"
:installment-no="value.productService.installmentNo"
:pay-condition="data?.quotation.payCondition"
:img-url="`/product/${value.productService.productId}/image/${value.productService.product.selectedImage}`"
:name="value.productService.product.name"
:code="value.productService.product.code"
@ -683,8 +686,6 @@ function isInstallmentPaySuccess(installmentNo: number) {
"
@download="
(opt) => {
console.log(opt);
triggerViewFile({
id: opt.id,
fileName: opt.data.fileName,