Преглед на файлове

feat(contracts): update columns in Contracts list

alvesantos преди 1 седмица
родител
ревизия
2dca6f1fa4
променени са 1 файла, в които са добавени 17 реда и са изтрити 25 реда
  1. 17 25
      src/pages/contracts/ContractsPage.vue

+ 17 - 25
src/pages/contracts/ContractsPage.vue

@@ -48,23 +48,7 @@
         :loading="isLoading"
         @on-add-item="handleAdd"
       >
-        <template #body-cell-contato="{ row }">
-          <q-td>
-            <div>
-              {{ row.student_phone }}
-            </div>
-
-            <div class="text-grey-6 text-caption">
-              {{ row.student_city }}
-
-              <template v-if="row.student_city && row.student_state_code">
-                ,
-              </template>
-
-              {{ row.student_state_code }}
-            </div>
-          </q-td>
-        </template>
+        
 
         <template #body-cell-status="{ row }">
           <q-td align="center">
@@ -300,22 +284,28 @@ const columns = [
     label: "Nome",
     name: "name",
   },
-  {
-    align: "left",
-    field: null,
-    label: "Contato/Endereço",
-    name: "contato",
-  },
   {
     align: "left",
     field: "package_name",
-    label: "Pacote",
+    label: "Proposta",
     name: "package_name",
   },
+  {
+    align: "center",
+    field: "signature_date",
+    label: "Data de Início",
+    name: "signature_date",
+  },
+  {
+    align: "center",
+    field: "protocol",
+    label: "Protocolo",
+    name: "protocol",
+  },
   {
     align: "center",
     field: "status",
-    label: "Status Contrato",
+    label: "Status",
     name: "status",
   },
   {
@@ -548,6 +538,7 @@ const loadContracts = async () => {
 
 const statusColor = (status) => {
   if (status === "active") return "positive";
+  if (status === "pending") return "warning";
   if (status === "frozen") return "info";
   if (status === "cancelled") return "negative";
 
@@ -556,6 +547,7 @@ const statusColor = (status) => {
 
 const statusLabel = (status) => {
   if (status === "active") return "Ativo";
+  if (status === "pending") return "Pendente";
   if (status === "frozen") return "Trancado";
   if (status === "cancelled") return "Cancelado";