|
@@ -254,6 +254,7 @@
|
|
|
:key="entry.schedule.id"
|
|
:key="entry.schedule.id"
|
|
|
:proposals-count="entry.proposalsCount"
|
|
:proposals-count="entry.proposalsCount"
|
|
|
:schedule="entry.schedule"
|
|
:schedule="entry.schedule"
|
|
|
|
|
+ @cancelled="loadOrders"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -365,14 +366,15 @@ import DashboardClientProposals from "src/pages/dashboard/components/DashboardCl
|
|
|
import DashboardPendingSchedules from "src/components/dashboard/DashboardPendingSchedules.vue";
|
|
import DashboardPendingSchedules from "src/components/dashboard/DashboardPendingSchedules.vue";
|
|
|
import CustomScheduleRequestCard from "src/pages/orders/components/CustomScheduleRequestCard.vue";
|
|
import CustomScheduleRequestCard from "src/pages/orders/components/CustomScheduleRequestCard.vue";
|
|
|
import PackageScheduleDetailsDialog from "src/components/dashboard/PackageScheduleDetailsDialog.vue";
|
|
import PackageScheduleDetailsDialog from "src/components/dashboard/PackageScheduleDetailsDialog.vue";
|
|
|
-import ScheduleAcceptedDialog from "src/components/dashboard/ScheduleAcceptedDialog.vue";
|
|
|
|
|
-import ScheduleCancelDialog from "src/components/dashboard/ScheduleCancelDialog.vue";
|
|
|
|
|
|
|
+import ScheduleAcceptedDialog from "src/pages/dashboard/components/schedule/ScheduleAcceptedDialog.vue";
|
|
|
|
|
+import ScheduleCancelDialog from "src/pages/dashboard/components/schedule/ScheduleCancelDialog.vue";
|
|
|
import { createScheduleServicePackage } from "src/api/servicePackage";
|
|
import { createScheduleServicePackage } from "src/api/servicePackage";
|
|
|
import { dadosPedidosCliente } from "src/api/dashboard";
|
|
import { dadosPedidosCliente } from "src/api/dashboard";
|
|
|
import { getAddresses } from "src/api/address";
|
|
import { getAddresses } from "src/api/address";
|
|
|
import { getProfileMediaUrl } from "src/helpers/profileMedia";
|
|
import { getProfileMediaUrl } from "src/helpers/profileMedia";
|
|
|
import { useI18n } from "vue-i18n";
|
|
import { useI18n } from "vue-i18n";
|
|
|
import { usePaymentPlatformFees } from "src/composables/usePaymentPlatformFees";
|
|
import { usePaymentPlatformFees } from "src/composables/usePaymentPlatformFees";
|
|
|
|
|
+import { usePaymentStore } from "src/stores/payment";
|
|
|
import { useQuasar } from "quasar";
|
|
import { useQuasar } from "quasar";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
import { userStore } from "src/stores/user";
|
|
import { userStore } from "src/stores/user";
|
|
@@ -383,6 +385,7 @@ const router = useRouter();
|
|
|
const $q = useQuasar();
|
|
const $q = useQuasar();
|
|
|
const { platformFees, loadPlatformFees } = usePaymentPlatformFees();
|
|
const { platformFees, loadPlatformFees } = usePaymentPlatformFees();
|
|
|
|
|
|
|
|
|
|
+const paymentStore = usePaymentStore();
|
|
|
const servicePackage = useServicePackageStore();
|
|
const servicePackage = useServicePackageStore();
|
|
|
const store = userStore();
|
|
const store = userStore();
|
|
|
|
|
|
|
@@ -433,11 +436,14 @@ const hasPendingDefaultSchedules = computed(
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
const openServicePackagePaymentDialog = (packageToPay) => {
|
|
const openServicePackagePaymentDialog = (packageToPay) => {
|
|
|
|
|
+ paymentStore.setPackage(packageToPay);
|
|
|
|
|
+
|
|
|
$q.dialog({
|
|
$q.dialog({
|
|
|
component: ScheduleAcceptedDialog,
|
|
component: ScheduleAcceptedDialog,
|
|
|
- componentProps: { servicePackage: packageToPay },
|
|
|
|
|
}).onOk(() => {
|
|
}).onOk(() => {
|
|
|
loadOrders();
|
|
loadOrders();
|
|
|
|
|
+ }).onDismiss(() => {
|
|
|
|
|
+ paymentStore.clearPackage();
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|