diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue
index 6e9128a43..8d9cacac2 100644
--- a/src/components/common/VnLog.vue
+++ b/src/components/common/VnLog.vue
@@ -1,7 +1,7 @@
@@ -72,8 +97,7 @@ const columns = computed(() => [
ref="tableRef"
data-key="ClientInformas"
url="ClientInformas"
- :filter="filter"
- :order="['created DESC']"
+ :user-filter="filter"
:columns="columns"
:right-search="false"
:is-editable="false"
@@ -82,22 +106,43 @@ const columns = computed(() => [
:disable-option="{ card: true }"
auto-load
:create="{
- urlCreate: `Clients/${route.params.id}/setRating`,
title: 'Create rating',
- onDataSaved: () => tableRef.reload(),
- formInitialData: {},
+ onDataSaved: ()=> tableRef.reload(),
+ formInitialData: defaultInitialData,
+ saveFn: handleSave
+
}"
>
{{ row.worker.user.nickname }}
+
+
+
+
+
+
+en:
+ terminationTitle: Confirm contract termination
+ terminationMessage: Are you sure you want to terminate the contract? This action will set the rating and recommended credit to 0.
es:
Recommended credit: Crédito recomendado
Since: Desde
Employee: Empleado
+ Create rating: Crear calificación
+ terminationTitle: Confirmar baja de contrato
+ terminationMessage: ¿Está seguro que desea dar de baja el contrato? Esta acción establecerá la calificación y el crédito recomendado en 0.
diff --git a/src/pages/Worker/Department/Card/DepartmentDescriptor.vue b/src/pages/Worker/Department/Card/DepartmentDescriptor.vue
index 820658593..9f8cbc054 100644
--- a/src/pages/Worker/Department/Card/DepartmentDescriptor.vue
+++ b/src/pages/Worker/Department/Card/DepartmentDescriptor.vue
@@ -46,6 +46,28 @@ const { openConfirmationModal } = useVnConfirm();
:summary="$props.summary"
:to-module="{ name: 'WorkerDepartment' }"
data-key="Department"
+ :filter="{
+ include: [
+ {
+ relation: 'client',
+ scope: {
+ fields: ['id', 'name'],
+ },
+ },
+ {
+ relation: 'worker',
+ scope: {
+ fields: ['id', 'name'],
+ include: {
+ relation: 'user',
+ scope: {
+ fields: ['id', 'name'],
+ },
+ },
+ },
+ },
+ ],
+ }"
>