Gustavo Zanatta il y a 1 jour
Parent
commit
694a0dfe89
3 fichiers modifiés avec 1 ajouts et 28 suppressions
  1. 0 5
      src/api/customSchedules.js
  2. 1 19
      src/helpers/utils.js
  3. 0 4
      src/pages/dashboard/DashboardPage.vue

+ 0 - 5
src/api/customSchedules.js

@@ -3,9 +3,4 @@ import api from 'src/api'
 export const createCustomSchedule = async (payload) => {
   const { data } = await api.post('/custom-schedule', payload)
   return data
-}
-
-export const acceptProposal = async (proposalId) => {
-  const response = await api.post(`/custom-schedule/${proposalId}/accept`)
-  return response.data
 }

+ 1 - 19
src/helpers/utils.js

@@ -314,23 +314,6 @@ const calculateDailyPrices = (dailyPrice8h) => {
   };
 };
 
-
-const chooseprice = (periodType, daily_price_8h) => {
-  let alldaily_prices = calculateDailyPrices(daily_price_8h);
-  switch (periodType) {
-    case "8":
-      return daily_price_8h
-    case "6":
-      return alldaily_prices.daily_price_6h
-    case "4":
-      return alldaily_prices.daily_price_4h
-    case "2":
-      return alldaily_prices.daily_price_2h
-    default:
-      return 0
-  }
-}
-
 export {
   formatDateDMYtoYMD,
   formatDateYMDtoDMY,
@@ -348,6 +331,5 @@ export {
   detectCardBrand,
   validateCardExpiration,
   formatAddress,
-  calculateDailyPrices,
-  chooseprice
+  calculateDailyPrices
 };

+ 0 - 4
src/pages/dashboard/DashboardPage.vue

@@ -16,7 +16,6 @@
       />
       <DashboardTodaySchedules v-if="todaySchedules.length > 0" :data="todaySchedules" @rate="openRatingDialog" />
       <DashboardScrollAreaSchedules />
-      <DashboardClientProposals :data="clientProposals" />
       <DashboardPendingCustomSchedules />
       <DashboardNextSchedules v-if="nextSchedules.length > 0" :data="nextSchedules" @view-details="openNextScheduleDialog" />
       <DashboardLastDoneSchedules v-if="lastDoneSchedules.length > 0" :data="lastDoneSchedules" />
@@ -39,7 +38,6 @@ import DashboardProvidersClose from 'src/components/dashboard/DashboardProviders
 import DashboardTodaySchedules from 'src/components/dashboard/DashboardTodaySchedules.vue';
 import FinalSuccesModal from '../schedules/components/FinalSuccesModal.vue';
 import DashboardPendingCustomSchedules from 'src/pages/dashboard/components/DashboardPendingCustomSchedules.vue';
-import DashboardClientProposals from 'src/pages/dashboard/components/DashboardClientProposals.vue';
 import { useRouter } from 'vue-router'
 import { onMounted, ref } from 'vue';
 import { useDialogPluginComponent, useQuasar } from 'quasar';
@@ -53,7 +51,6 @@ const headerBar = ref({});
 const summaryInfos = ref({});
 const pendingSchedules = ref([]);
 const nextSchedules = ref([]);
-const clientProposals = ref([]);
 const lastDoneSchedules = ref([]);
 const favoriteProviders = ref([]);
 const providersClose = ref([]);
@@ -84,7 +81,6 @@ const reloadDashboard = async () => {
     lastDoneSchedules.value = response.lastDoneSchedules ?? [];
     favoriteProviders.value = response.favoriteProviders ?? [];
     providersClose.value = response.providersClose ?? [];
-    clientProposals.value = response.schedulesProposals ?? [];
     todaySchedules.value = response.todaySchedules ?? [];
   }
   if( showSuccessModal.value ) {