|
|
@@ -69,6 +69,7 @@ import DashboardTodayServices from "src/components/dashboard/DashboardTodayServi
|
|
|
import NextSchedulesDetailsDialog from "src/components/dashboard/NextSchedulesDetailsDialog.vue";
|
|
|
import ScheduleRatingDialog from "src/components/dashboard/ScheduleRatingDialog.vue";
|
|
|
import SolicitationDetailsDialog from "src/components/dashboard/SolicitationDetailsDialog.vue";
|
|
|
+import ProposalAcceptedDialog from "src/components/dashboard/ProposalAcceptedDialog.vue";
|
|
|
import OpportunityDialog from "src/pages/opportunities/components/OpportunityDialog.vue";
|
|
|
import DashboardPendingConfirmation from "src/components/dashboard/DashboardPendingConfirmation.vue";
|
|
|
|
|
|
@@ -109,8 +110,6 @@ const handleScheduleAction = async (id, status, ids = [], servicePackageId = nul
|
|
|
|
|
|
const loadDashboard = async () => {
|
|
|
const response = await dadosDashboard();
|
|
|
- console.log(response);
|
|
|
-console.log(response.solicitations);
|
|
|
|
|
|
if (response) {
|
|
|
headerBar.value = response.headerBar;
|
|
|
@@ -138,13 +137,19 @@ const openDetailsDialog = (solicitation, initialView = "details") => {
|
|
|
component: SolicitationDetailsDialog,
|
|
|
componentProps: { initialView, solicitation },
|
|
|
}).onOk(async ({ action, id, ids, service_package_id }) => {
|
|
|
- await handleScheduleAction(
|
|
|
- id,
|
|
|
- action === "accept" ? "accepted" : "rejected",
|
|
|
- ids,
|
|
|
- service_package_id,
|
|
|
- );
|
|
|
- });
|
|
|
+ await handleScheduleAction(
|
|
|
+ id,
|
|
|
+ action === "accept" ? "accepted" : "rejected",
|
|
|
+ ids,
|
|
|
+ service_package_id,
|
|
|
+ );
|
|
|
+
|
|
|
+ if (action === "accept") {
|
|
|
+ $q.dialog({
|
|
|
+ component: ProposalAcceptedDialog,
|
|
|
+ });
|
|
|
+ }
|
|
|
+});
|
|
|
};
|
|
|
|
|
|
const openNextScheduleDialog = (schedule) => {
|