fix: refs #7248 update exprBuilder for workerFk and calculate total amount in CustomerBalanceDueTotal
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
98c73f8462
commit
5f9d498700
|
@ -156,7 +156,7 @@ function exprBuilder(param, value) {
|
|||
case 'payMethod':
|
||||
return { [`c.payMethodFk`]: value };
|
||||
case 'workerFk':
|
||||
return { [`co.${param}`]: value };
|
||||
return { [`uw.id`]: value };
|
||||
case 'departmentFk':
|
||||
return { [`c.${param}`]: value };
|
||||
case 'amount':
|
||||
|
@ -185,7 +185,14 @@ function exprBuilder(param, value) {
|
|||
<template>
|
||||
<VnSubToolbar>
|
||||
<template #st-data>
|
||||
<CustomerBalanceDueTotal :amount="arrayData.store.data?.amount" />
|
||||
<CustomerBalanceDueTotal
|
||||
:amount="
|
||||
arrayData.store.data?.reduce(
|
||||
(sum, defaulter) => sum + defaulter.amount,
|
||||
0,
|
||||
)
|
||||
"
|
||||
/>
|
||||
</template>
|
||||
<template #st-actions>
|
||||
<QBtn
|
||||
|
@ -212,7 +219,6 @@ function exprBuilder(param, value) {
|
|||
:disable-option="{ card: true }"
|
||||
auto-load
|
||||
:order="['amount DESC']"
|
||||
key-data="defaulters"
|
||||
>
|
||||
<template #column-clientFk="{ row }">
|
||||
<span class="link" @click.stop>
|
||||
|
|
Loading…
Reference in New Issue