diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue
index 684770e9c..9d5849b68 100644
--- a/src/components/common/VnInput.vue
+++ b/src/components/common/VnInput.vue
@@ -83,7 +83,7 @@ const inputRules = [
-
+
[
},
]);
-const setRows = (data) => {
- balanceDueTotal.value = data.reduce((accumulator, currentValue) => {
- return accumulator + (currentValue['amount'] || 0);
- }, 0);
-};
-
const viewAddObservation = (rowsSelected) => {
quasar.dialog({
component: CustomerDefaulterAddObservation,
componentProps: {
clients: rowsSelected,
- promise: refreshData,
+ promise: async () => await dataRef.value.fetch(),
},
});
};
-const refreshData = async () => {
- await dataRef.value.fetch();
-};
-
const onFetch = (data) => {
- for (const element of data) {
- element.isWorker = element.businessTypeFk === 'worker';
- }
- setRows(data);
+ for (const element of data) element.isWorker = element.businessTypeFk === 'worker';
+
+ balanceDueTotal.value = data.reduce((acc, { amount = 0 }) => acc + amount, 0);
};
@@ -212,8 +201,8 @@ const onFetch = (data) => {
-
+
+
@@ -239,6 +228,7 @@ const onFetch = (data) => {
{
type="textarea"
v-model="props.value"
autogrow
+ :disable="true"
/>
{{ props.value }}
@@ -324,8 +315,10 @@ const onFetch = (data) => {
-
+
+
+
+