writing data server side (other modals)
This commit is contained in:
+29
-1
@@ -9,6 +9,7 @@ import Caricatore from "./base-components/caricatore.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from '@/services';
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({ components: { modal: Modal, stepfooter: StepFooter, caricatore: Caricatore, cicloformatura: CicloFormatura } })
|
||||
export default class ShowCicloInfo extends Vue {
|
||||
@@ -24,8 +25,35 @@ export default class ShowCicloInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
cycle_forming_type: this.recipe.cycle_forming_type,
|
||||
cycle_forming_pause_cycle: this.recipe.cycle_forming_pause_cycle,
|
||||
cycle_forming_cooling_enabled: this.recipe.cycle_forming_cooling_enabled,
|
||||
cycle_forming_blowingbox_enabled: this.recipe.cycle_forming_blowingbox_enabled,
|
||||
cycle_acrylicframe_enabled: this.recipe.cycle_acrylicframe_enabled,
|
||||
cycle_acrylicframe_time: this.recipe.cycle_acrylicframe_time,
|
||||
cycle_upperoverheating_enabled: this.recipe.cycle_upperoverheating_enabled,
|
||||
cycle_upperoverheating_time: this.recipe.cycle_upperoverheating_time,
|
||||
cycle_crystallisation_type: this.recipe.cycle_crystallisation_type,
|
||||
cycle_crystallisation_time: this.recipe.cycle_crystallisation_time,
|
||||
cycle_loader_enable: this.recipe.cycle_loader_enable,
|
||||
cycle_loader_lifter_lowerposition_delay: this.recipe.cycle_loader_lifter_lowerposition_delay,
|
||||
cycle_loader_lifter_upperposition_delay: this.recipe.cycle_loader_lifter_upperposition_delay,
|
||||
cycle_loader_split_sheet_time: this.recipe.cycle_loader_split_sheet_time,
|
||||
cycle_loader_ejector_position: this.recipe.cycle_loader_ejector_position,
|
||||
cycle_loader_pallet_height: this.recipe.cycle_loader_pallet_height,
|
||||
cycle_loader_center_x: this.recipe.cycle_loader_center_x,
|
||||
cycle_loader_center_y: this.recipe.cycle_loader_center_y,
|
||||
cycle_loader_checktichness_enabled: this.recipe.cycle_loader_checktichness_enabled,
|
||||
cycle_loader_suckers_vacuum: this.recipe.cycle_loader_suckers_vacuum,
|
||||
cycle_loader_ionizer_enabled: this.recipe.cycle_loader_ionizer_enabled,
|
||||
cycle_loader_manualunloading_enabled: this.recipe.cycle_loader_manualunloading_enabled,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+45
-2
@@ -11,8 +11,18 @@ import EstrazioneControstampo from "./base-components/estrazione-controstampo.vu
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from '@/services';
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({ components: { modal: Modal, stepfooter: StepFooter, ciclocontrostampo: CicloControstampo, ariacontrostampo: AriaControstampo, vuotocontrostampo: VuotoControstampo, estrazionecontrostampo: EstrazioneControstampo } })
|
||||
@Component({
|
||||
components: {
|
||||
modal: Modal,
|
||||
stepfooter: StepFooter,
|
||||
ciclocontrostampo: CicloControstampo,
|
||||
ariacontrostampo: AriaControstampo,
|
||||
vuotocontrostampo: VuotoControstampo,
|
||||
estrazionecontrostampo: EstrazioneControstampo
|
||||
}
|
||||
})
|
||||
export default class ShowControstampoInfo extends Vue {
|
||||
|
||||
recipe: Recipe.IRecipe = this.$store.getters.getCurrent();
|
||||
@@ -26,8 +36,41 @@ export default class ShowControstampoInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
upperplate_cycle_type: this.recipe.upperplate_cycle_type,
|
||||
upperplate_cycle_delay: this.recipe.upperplate_cycle_delay,
|
||||
upperplate_cycle_time: this.recipe.upperplate_cycle_time,
|
||||
upperplate_air_enable: this.recipe.upperplate_air_enable,
|
||||
upperplate_air_delay: this.recipe.upperplate_air_delay,
|
||||
upperplate_air_max_time: this.recipe.upperplate_air_max_time,
|
||||
upperplate_air_1_chart_setpointx: this.recipe.upperplate_air_1_chart_setpointx,
|
||||
upperplate_air_1_chart_setpointy: this.recipe.upperplate_air_1_chart_setpointy,
|
||||
upperplate_air_2_chart_setpointx: this.recipe.upperplate_air_2_chart_setpointx,
|
||||
upperplate_air_2_chart_setpointy: this.recipe.upperplate_air_2_chart_setpointy,
|
||||
upperplate_air_3_chart_setpointx: this.recipe.upperplate_air_3_chart_setpointx,
|
||||
upperplate_air_3_chart_setpointy: this.recipe.upperplate_air_3_chart_setpointy,
|
||||
upperplate_air_manual: this.recipe.upperplate_air_manual,
|
||||
upperplate_vacuum_enable: this.recipe.upperplate_vacuum_enable,
|
||||
upperplate_vacuum_delay: this.recipe.upperplate_vacuum_delay,
|
||||
upperplate_vacuum_max_time: this.recipe.upperplate_vacuum_max_time,
|
||||
upperplate_vacuum_1_chart_setpointx: this.recipe.upperplate_vacuum_1_chart_setpointx,
|
||||
upperplate_vacuum_1_chart_setpointy: this.recipe.upperplate_vacuum_1_chart_setpointy,
|
||||
upperplate_vacuum_2_chart_setpointx: this.recipe.upperplate_vacuum_2_chart_setpointx,
|
||||
upperplate_vacuum_2_chart_setpointy: this.recipe.upperplate_vacuum_2_chart_setpointy,
|
||||
upperplate_vacuum_3_chart_setpointx: this.recipe.upperplate_vacuum_3_chart_setpointx,
|
||||
upperplate_vacuum_3_chart_setpointy: this.recipe.upperplate_vacuum_3_chart_setpointy,
|
||||
upperplate_vacuum_manual: this.recipe.upperplate_vacuum_manual,
|
||||
upperplate_extraction_enable: this.recipe.upperplate_extraction_enable,
|
||||
upperplate_extraction_delay: this.recipe.upperplate_extraction_delay,
|
||||
upperplate_extraction_1_chart_setpointx: this.recipe.upperplate_extraction_1_chart_setpointx,
|
||||
upperplate_extraction_1_chart_setpointy: this.recipe.upperplate_extraction_1_chart_setpointy,
|
||||
upperplate_extraction_manual: this.recipe.upperplate_extraction_manual,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+19
-1
@@ -9,6 +9,8 @@ import EstrazioneSecondaria from "./base-components/estrazione-secondaria.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from '@/services';
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({
|
||||
components:
|
||||
{
|
||||
@@ -31,8 +33,24 @@ export default class ShowEstrazioneInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
extraction_main_type: this.recipe.extraction_main_type,
|
||||
extraction_main_mould_dw_delay: this.recipe.extraction_main_mould_dw_delay,
|
||||
extraction_main_delay: this.recipe.extraction_main_delay,
|
||||
extraction_main_1_chart_setpointx: this.recipe.extraction_main_1_chart_setpointx,
|
||||
extraction_main_1_chart_setpointy: this.recipe.extraction_main_1_chart_setpointy,
|
||||
extraction_main_manual: this.recipe.extraction_main_manual,
|
||||
extraction_aux_enabled: this.recipe.extraction_aux_enabled,
|
||||
extraction_aux_delay: this.recipe.extraction_aux_delay,
|
||||
extraction_aux_1_chart_setpointx: this.recipe.extraction_aux_1_chart_setpointx,
|
||||
extraction_aux_1_chart_setpointy: this.recipe.extraction_aux_1_chart_setpointy,
|
||||
extraction_aux_manual: this.recipe.extraction_aux_manual,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+6
@@ -60,15 +60,21 @@ export default class ShowFormatoInfo extends Vue {
|
||||
{
|
||||
general_sizes_mould_dim_x: this.recipe.general_sizes_mould_dim_x,
|
||||
general_sizes_mould_dim_y: this.recipe.general_sizes_mould_dim_y,
|
||||
general_sizes_mould_max_height : this.recipe.general_sizes_mould_max_height,
|
||||
general_sizes_mould_min_height : this.recipe.general_sizes_mould_min_height,
|
||||
general_sizes_mould_base_height: this.recipe.general_sizes_mould_base_height,
|
||||
general_sizes_sheet_material : this.recipe.general_sizes_sheet_material,
|
||||
general_sizes_sheet_dim_x: this.recipe.general_sizes_sheet_dim_x,
|
||||
general_sizes_sheet_dim_y: this.recipe.general_sizes_sheet_dim_y,
|
||||
general_sizes_sheet_thickness: this.recipe.general_sizes_sheet_thickness,
|
||||
general_sizes_plate_type :this.recipe.general_sizes_plate_type,
|
||||
general_sizes_plate_dim_x: this.recipe.general_sizes_plate_dim_x,
|
||||
general_sizes_plate_dim_y: this.recipe.general_sizes_plate_dim_y,
|
||||
general_sizes_frame_traverses: this.recipe.general_sizes_frame_traverses,
|
||||
general_sizes_frame_dim_x: this.recipe.general_sizes_frame_dim_x,
|
||||
general_sizes_frame_dim_y: this.recipe.general_sizes_frame_dim_y,
|
||||
general_sizes_upperplate_max_height: this.recipe.general_sizes_upperplate_max_height,
|
||||
general_area_working_dxsx:this.recipe.general_area_working_dxsx,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
|
||||
+16
-1
@@ -9,6 +9,7 @@ import Scheda from "@/app_modules_thermo/components/scheda.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -30,8 +31,22 @@ export default class ShowImbutituraInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma(name: string) {
|
||||
async conferma(name: string) {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
drawing_type: this.recipe.drawing_type,
|
||||
drawing_height: this.recipe.drawing_height,
|
||||
drawing_delay: this.recipe.drawing_delay,
|
||||
drawing_1_chart_setpointx: this.recipe.drawing_1_chart_setpointx,
|
||||
drawing_1_chart_setpointy: this.recipe.drawing_1_chart_setpointy,
|
||||
drawing_photocell: this.recipe.drawing_photocell,
|
||||
drawing_mantaining_flow: this.recipe.drawing_mantaining_flow,
|
||||
drawing_manual: this.recipe.drawing_manual,
|
||||
drawing_mould_up_delay: this.recipe.drawing_mould_up_delay,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Prop } from "vue-property-decorator";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -33,8 +34,113 @@ export default class ShowOpzioniInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
options_undercutmould_1_mode: this.recipe.options_undercutmould_1_mode,
|
||||
options_undercutmould_1_position: this.recipe.options_undercutmould_1_position,
|
||||
options_undercutmould_1_delay_acti: this.recipe.options_undercutmould_1_delay_acti,
|
||||
options_undercutmould_1_delay_dis: this.recipe.options_undercutmould_1_delay_dis,
|
||||
options_undercutmould_2_mode: this.recipe.options_undercutmould_2_mode,
|
||||
options_undercutmould_2_position: this.recipe.options_undercutmould_2_position,
|
||||
options_undercutmould_2_delay_acti: this.recipe.options_undercutmould_2_delay_acti,
|
||||
options_undercutmould_2_delay_dis: this.recipe.options_undercutmould_2_delay_dis,
|
||||
options_undercutmould_3_mode: this.recipe.options_undercutmould_3_mode,
|
||||
options_undercutmould_3_position: this.recipe.options_undercutmould_3_position,
|
||||
options_undercutmould_3_delay_acti: this.recipe.options_undercutmould_3_delay_acti,
|
||||
options_undercutmould_3_delay_dis: this.recipe.options_undercutmould_3_delay_dis,
|
||||
options_undercutmould_4_mode: this.recipe.options_undercutmould_4_mode,
|
||||
options_undercutmould_4_position: this.recipe.options_undercutmould_4_position,
|
||||
options_undercutmould_4_delay_acti: this.recipe.options_undercutmould_4_delay_acti,
|
||||
options_undercutmould_4_delay_dis: this.recipe.options_undercutmould_4_delay_dis,
|
||||
options_undercutmould_5_mode: this.recipe.options_undercutmould_5_mode,
|
||||
options_undercutmould_5_position: this.recipe.options_undercutmould_5_position,
|
||||
options_undercutmould_5_delay_acti: this.recipe.options_undercutmould_5_delay_acti,
|
||||
options_undercutmould_5_delay_dis: this.recipe.options_undercutmould_5_delay_dis,
|
||||
options_undercutmould_6_mode: this.recipe.options_undercutmould_6_mode,
|
||||
options_undercutmould_6_position: this.recipe.options_undercutmould_6_position,
|
||||
options_undercutmould_6_delay_acti: this.recipe.options_undercutmould_6_delay_acti,
|
||||
options_undercutmould_6_delay_dis: this.recipe.options_undercutmould_6_delay_dis,
|
||||
options_undercutmould_7_mode: this.recipe.options_undercutmould_7_mode,
|
||||
options_undercutmould_7_position: this.recipe.options_undercutmould_7_position,
|
||||
options_undercutmould_7_delay_acti: this.recipe.options_undercutmould_7_delay_acti,
|
||||
options_undercutmould_7_delay_dis: this.recipe.options_undercutmould_7_delay_dis,
|
||||
options_undercutmould_8_mode: this.recipe.options_undercutmould_8_mode,
|
||||
options_undercutmould_8_position: this.recipe.options_undercutmould_8_position,
|
||||
options_undercutmould_8_delay_acti: this.recipe.options_undercutmould_8_delay_acti,
|
||||
options_undercutmould_8_delay_dis: this.recipe.options_undercutmould_8_delay_dis,
|
||||
options_undercutmould_9_mode: this.recipe.options_undercutmould_9_mode,
|
||||
options_undercutmould_9_position: this.recipe.options_undercutmould_9_position,
|
||||
options_undercutmould_9_delay_acti: this.recipe.options_undercutmould_9_delay_acti,
|
||||
options_undercutmould_9_delay_dis: this.recipe.options_undercutmould_9_delay_dis,
|
||||
options_undercutmould_10_mode: this.recipe.options_undercutmould_10_mode,
|
||||
options_undercutmould_10_position: this.recipe.options_undercutmould_10_position,
|
||||
options_undercutmould_10_delay_acti: this.recipe.options_undercutmould_10_delay_acti,
|
||||
options_undercutmould_10_delay_dis: this.recipe.options_undercutmould_10_delay_dis,
|
||||
options_undercutupperplate_1_mode:this.recipe.options_undercutupperplate_1_mode,
|
||||
options_undercutupperplate_1_position:this.recipe.options_undercutupperplate_1_position,
|
||||
options_undercutupperplate_1_delay_acti:this.recipe.options_undercutupperplate_1_delay_acti,
|
||||
options_undercutupperplate_1_delay_dis:this.recipe.options_undercutupperplate_1_delay_dis,
|
||||
options_undercutupperplate_2_mode:this.recipe.options_undercutupperplate_2_mode,
|
||||
options_undercutupperplate_2_position:this.recipe.options_undercutupperplate_2_position,
|
||||
options_undercutupperplate_2_delay_acti:this.recipe.options_undercutupperplate_2_delay_acti,
|
||||
options_undercutupperplate_2_delay_dis:this.recipe.options_undercutupperplate_2_delay_dis,
|
||||
options_undercutupperplate_3_mode:this.recipe.options_undercutupperplate_3_mode,
|
||||
options_undercutupperplate_3_position:this.recipe.options_undercutupperplate_3_position,
|
||||
options_undercutupperplate_3_delay_acti:this.recipe.options_undercutupperplate_3_delay_acti,
|
||||
options_undercutupperplate_3_delay_dis:this.recipe.options_undercutupperplate_3_delay_dis,
|
||||
options_undercutupperplate_4_mode:this.recipe.options_undercutupperplate_4_mode,
|
||||
options_undercutupperplate_4_position:this.recipe.options_undercutupperplate_4_position,
|
||||
options_undercutupperplate_4_delay_acti:this.recipe.options_undercutupperplate_4_delay_acti,
|
||||
options_undercutupperplate_4_delay_dis:this.recipe.options_undercutupperplate_4_delay_dis,
|
||||
options_undercutupperplate_5_mode:this.recipe.options_undercutupperplate_5_mode,
|
||||
options_undercutupperplate_5_position:this.recipe.options_undercutupperplate_5_position,
|
||||
options_undercutupperplate_5_delay_acti:this.recipe.options_undercutupperplate_5_delay_acti,
|
||||
options_undercutupperplate_5_delay_dis:this.recipe.options_undercutupperplate_5_delay_dis,
|
||||
options_undercutupperplate_6_mode:this.recipe.options_undercutupperplate_6_mode,
|
||||
options_undercutupperplate_6_position:this.recipe.options_undercutupperplate_6_position,
|
||||
options_undercutupperplate_6_delay_acti:this.recipe.options_undercutupperplate_6_delay_acti,
|
||||
options_undercutupperplate_6_delay_dis:this.recipe.options_undercutupperplate_6_delay_dis,
|
||||
options_undercutupperplate_7_mode:this.recipe.options_undercutupperplate_7_mode,
|
||||
options_undercutupperplate_7_position:this.recipe.options_undercutupperplate_7_position,
|
||||
options_undercutupperplate_7_delay_acti:this.recipe.options_undercutupperplate_7_delay_acti,
|
||||
options_undercutupperplate_7_delay_dis:this.recipe.options_undercutupperplate_7_delay_dis,
|
||||
options_undercutupperplate_8_mode:this.recipe.options_undercutupperplate_8_mode,
|
||||
options_undercutupperplate_8_position:this.recipe.options_undercutupperplate_8_position,
|
||||
options_undercutupperplate_8_delay_acti:this.recipe.options_undercutupperplate_8_delay_acti,
|
||||
options_undercutupperplate_8_delay_dis:this.recipe.options_undercutupperplate_8_delay_dis,
|
||||
options_undercutupperplate_9_mode:this.recipe.options_undercutupperplate_9_mode,
|
||||
options_undercutupperplate_9_position:this.recipe.options_undercutupperplate_9_position,
|
||||
options_undercutupperplate_9_delay_acti:this.recipe.options_undercutupperplate_9_delay_acti,
|
||||
options_undercutupperplate_9_delay_dis:this.recipe.options_undercutupperplate_9_delay_dis,
|
||||
options_undercutupperplate_10_mode:this.recipe.options_undercutupperplate_10_mode,
|
||||
options_undercutupperplate_10_position:this.recipe.options_undercutupperplate_10_position,
|
||||
options_undercutupperplate_10_delay_acti:this.recipe.options_undercutupperplate_10_delay_acti,
|
||||
options_undercutupperplate_10_delay_dis:this.recipe.options_undercutupperplate_10_delay_dis,
|
||||
options_thermoregulator_1_enabled:this.recipe.options_thermoregulator_1_enabled,
|
||||
options_thermoregulator_1_setpoint:this.recipe.options_thermoregulator_1_setpoint,
|
||||
options_thermoregulator_2_enabled:this.recipe.options_thermoregulator_2_enabled,
|
||||
options_thermoregulator_2_setpoint:this.recipe.options_thermoregulator_2_setpoint,
|
||||
options_thermoregulator_3_enabled:this.recipe.options_thermoregulator_3_enabled,
|
||||
options_thermoregulator_3_setpoint:this.recipe.options_thermoregulator_3_setpoint,
|
||||
options_thermoregulator_4_enabled:this.recipe.options_thermoregulator_4_enabled,
|
||||
options_thermoregulator_4_setpoint:this.recipe.options_thermoregulator_4_setpoint,
|
||||
options_thermoregulator_5_enabled:this.recipe.options_thermoregulator_5_enabled,
|
||||
options_thermoregulator_5_setpoint:this.recipe.options_thermoregulator_5_setpoint,
|
||||
options_thermoregulator_6_enabled:this.recipe.options_thermoregulator_6_enabled,
|
||||
options_thermoregulator_6_setpoint:this.recipe.options_thermoregulator_6_setpoint,
|
||||
options_thermoregulator_7_enabled:this.recipe.options_thermoregulator_7_enabled,
|
||||
options_thermoregulator_7_setpoint:this.recipe.options_thermoregulator_7_setpoint,
|
||||
options_thermoregulator_8_enabled:this.recipe.options_thermoregulator_8_enabled,
|
||||
options_thermoregulator_8_setpoint:this.recipe.options_thermoregulator_8_setpoint,
|
||||
options_thermoregulator_9_enabled:this.recipe.options_thermoregulator_9_enabled,
|
||||
options_thermoregulator_9_setpoint:this.recipe.options_thermoregulator_9_setpoint,
|
||||
options_thermoregulator_10_enabled:this.recipe.options_thermoregulator_10_enabled,
|
||||
options_thermoregulator_10_setpoint:this.recipe.options_thermoregulator_10_setpoint,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+26
-1
@@ -10,6 +10,7 @@ import StepFooter from "@/app_modules_thermo/setup/components/step-footer.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({ components: { modal: Modal, pirometro: Pirometro, stepfooter: StepFooter, termosuperiore: TermoregolazioneSuperiore, termoinferiore: TermoregolazioneInferiore } })
|
||||
export default class ShowPirometroInfo extends Vue {
|
||||
@@ -25,8 +26,32 @@ export default class ShowPirometroInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
pyrometer_pyrometer_enabled: this.recipe.pyrometer_pyrometer_enabled,
|
||||
pyrometer_pyrometer_setpoint: this.recipe.pyrometer_pyrometer_setpoint,
|
||||
pyrometer_pyrometer_delay: this.recipe.pyrometer_pyrometer_delay,
|
||||
pyrometer_upperthermoregulator_start_adjustment: this.recipe.pyrometer_upperthermoregulator_start_adjustment,
|
||||
pyrometer_upperthermoregulator_end_adjustment: this.recipe.pyrometer_upperthermoregulator_end_adjustment,
|
||||
pyrometer_upperthermoregulator_min_percentage: this.recipe.pyrometer_upperthermoregulator_min_percentage,
|
||||
pyrometer_upperthermoregulator_max_percentage: this.recipe.pyrometer_upperthermoregulator_max_percentage,
|
||||
pyrometer_upperthermoregulator_sleep_enabled: this.recipe.pyrometer_upperthermoregulator_sleep_enabled,
|
||||
pyrometer_upperthermoregulator_sleep_percentage: this.recipe.pyrometer_upperthermoregulator_sleep_percentage,
|
||||
pyrometer_lowerthermoregulator_start_adjustment: this.recipe.pyrometer_lowerthermoregulator_start_adjustment,
|
||||
pyrometer_lowerthermoregulator_end_adjustment: this.recipe.pyrometer_lowerthermoregulator_end_adjustment,
|
||||
pyrometer_lowerthermoregulator_min_percentage: this.recipe.pyrometer_lowerthermoregulator_min_percentage,
|
||||
pyrometer_lowerthermoregulator_max_percentage: this.recipe.pyrometer_lowerthermoregulator_max_percentage,
|
||||
pyrometer_lowerthermoregulator_sleep_enabled: this.recipe.pyrometer_lowerthermoregulator_sleep_enabled,
|
||||
pyrometer_lowerthermoregulator_sleep_percentage: this.recipe.pyrometer_lowerthermoregulator_sleep_percentage,
|
||||
pyrometer_upperthermoregulator_sleep_temperature: this.recipe.pyrometer_upperthermoregulator_sleep_temperature,
|
||||
pyrometer_upperthermoregulator_working_temperature: this.recipe.pyrometer_upperthermoregulator_working_temperature,
|
||||
pyrometer_lowerthermoregulator_sleep_temperature: this.recipe.pyrometer_lowerthermoregulator_sleep_temperature,
|
||||
pyrometer_lowerthermoregulator_working_temperature: this.recipe.pyrometer_lowerthermoregulator_working_temperature,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+31
-1
@@ -10,6 +10,7 @@ import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Prop } from "vue-property-decorator";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -33,8 +34,37 @@ export default class ShowQuoteVelocitaInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
positions_mould_lower_position: this.recipe.positions_mould_lower_position,
|
||||
positions_mould_lower_speed: this.recipe.positions_mould_lower_speed,
|
||||
positions_mould_intermediate_position: this.recipe.positions_mould_intermediate_position,
|
||||
positions_mould_upper_position: this.recipe.positions_mould_upper_position,
|
||||
positions_mould_upper_speed: this.recipe.positions_mould_upper_speed,
|
||||
positions_mould_upperdeceleration_position: this.recipe.positions_mould_upperdeceleration_position,
|
||||
positions_mould_upperdeceleration_speed: this.recipe.positions_mould_upperdeceleration_speed,
|
||||
positions_mould_lowerdeceleration_position: this.recipe.positions_mould_lowerdeceleration_position,
|
||||
positions_mould_lowerdeceleration_speed: this.recipe.positions_mould_lowerdeceleration_speed,
|
||||
positions_frame_lower_position: this.recipe.positions_frame_lower_position,
|
||||
positions_frame_lower_speed: this.recipe.positions_frame_lower_speed,
|
||||
positions_frame_upper_position: this.recipe.positions_frame_upper_position,
|
||||
positions_frame_upper_speed: this.recipe.positions_frame_upper_speed,
|
||||
positions_frame_intermediate_position: this.recipe.positions_frame_intermediate_position,
|
||||
positions_frame_intermediate_speed: this.recipe.positions_frame_intermediate_speed,
|
||||
positions_frame_unload_position: this.recipe.positions_frame_unload_position,
|
||||
positions_upperplate_lower_position: this.recipe.positions_upperplate_lower_position,
|
||||
positions_upperplate_lower_speed: this.recipe.positions_upperplate_lower_speed,
|
||||
positions_upperplate_upper_position: this.recipe.positions_upperplate_upper_position,
|
||||
positions_upperplate_upper_speed: this.recipe.positions_upperplate_upper_speed,
|
||||
positions_upperplate_upperdeceleration_position: this.recipe.positions_upperplate_upperdeceleration_position,
|
||||
positions_upperplate_upperdeceleration_speed: this.recipe.positions_upperplate_upperdeceleration_speed,
|
||||
positions_upperplate_lowerdeceleration_position: this.recipe.positions_upperplate_lowerdeceleration_position,
|
||||
positions_upperplate_lowerdeceleration_speed: this.recipe.positions_upperplate_lowerdeceleration_speed,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+36
-1
@@ -12,6 +12,7 @@ import Otturatori from "./base-components/otturatori.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from '@/services';
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -37,8 +38,42 @@ export default class Raffreddamento extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
cooling_blowing_type: this.recipe.cooling_blowing_type,
|
||||
cooling_blowing_delay: this.recipe.cooling_blowing_delay,
|
||||
cooling_blowing_time: this.recipe.cooling_blowing_time,
|
||||
cooling_pyrometer_enabled: this.recipe.cooling_pyrometer_enabled,
|
||||
cooling_pyrometer_setpoint: this.recipe.cooling_pyrometer_setpoint,
|
||||
cooling_pyrometer_delay: this.recipe.cooling_pyrometer_delay,
|
||||
cooling_nebulizer_type: this.recipe.cooling_nebulizer_type,
|
||||
cooling_nebulizer_delay: this.recipe.cooling_nebulizer_delay,
|
||||
cooling_nebulizer_time: this.recipe.cooling_nebulizer_time,
|
||||
cooling_telescopic_enable: this.recipe.cooling_telescopic_enable,
|
||||
cooling_telescopic_position: this.recipe.cooling_telescopic_position,
|
||||
cooling_telescopic_swing_enable: this.recipe.cooling_telescopic_swing_enable,
|
||||
cooling_telescopic_swing_stroke: this.recipe.cooling_telescopic_swing_stroke,
|
||||
cooling_shutter_1_opening_perc: this.recipe.cooling_shutter_1_opening_perc,
|
||||
cooling_shutter_2_opening_perc: this.recipe.cooling_shutter_2_opening_perc,
|
||||
cooling_shutter_3_opening_perc: this.recipe.cooling_shutter_3_opening_perc,
|
||||
cooling_shutter_4_opening_perc: this.recipe.cooling_shutter_4_opening_perc,
|
||||
cooling_shutter_5_opening_perc: this.recipe.cooling_shutter_5_opening_perc,
|
||||
cooling_shutter_6_opening_perc: this.recipe.cooling_shutter_6_opening_perc,
|
||||
cooling_shutter_7_opening_perc: this.recipe.cooling_shutter_7_opening_perc,
|
||||
cooling_shutter_8_opening_perc: this.recipe.cooling_shutter_8_opening_perc,
|
||||
cooling_shutter_9_opening_perc: this.recipe.cooling_shutter_9_opening_perc,
|
||||
cooling_shutter_10_opening_perc: this.recipe.cooling_shutter_10_opening_perc,
|
||||
cooling_shutter_11_opening_perc: this.recipe.cooling_shutter_11_opening_perc,
|
||||
cooling_shutter_12_opening_perc: this.recipe.cooling_shutter_12_opening_perc,
|
||||
cooling_shutter_13_opening_perc: this.recipe.cooling_shutter_13_opening_perc,
|
||||
cooling_shutter_14_opening_perc: this.recipe.cooling_shutter_14_opening_perc,
|
||||
cooling_shutter_15_opening_perc: this.recipe.cooling_shutter_15_opening_perc,
|
||||
cooling_shutter_16_opening_perc: this.recipe.cooling_shutter_16_opening_perc,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
+23
-2
@@ -10,8 +10,9 @@ import SostDecomp from "./base-components/sostentamento-decompressione.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({ components: { modal: Modal, stepfooter: StepFooter, riscaldiinf: RiscaldiInf,riscaldisup: RiscaldiSup, sostdecomp: SostDecomp } })
|
||||
@Component({ components: { modal: Modal, stepfooter: StepFooter, riscaldiinf: RiscaldiInf, riscaldisup: RiscaldiSup, sostdecomp: SostDecomp } })
|
||||
export default class ShowRiscaldamentoSuperioreInfo extends Vue {
|
||||
|
||||
recipe: Recipe.IRecipe = this.$store.getters.getCurrent();
|
||||
@@ -25,8 +26,28 @@ export default class ShowRiscaldamentoSuperioreInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma(name: string) {
|
||||
async conferma(name: string) {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
heats_lowerheaters_max_time: this.recipe.heats_lowerheaters_max_time,
|
||||
heats_lowerheaters_movement_enabled: this.recipe.heats_lowerheaters_movement_enabled,
|
||||
heats_lowerheaters_enabled: this.recipe.heats_lowerheaters_enabled,
|
||||
heats_lowerheaters_oscillation: this.recipe.heats_lowerheaters_oscillation,
|
||||
heats_upperheaters_max_time: this.recipe.heats_upperheaters_max_time,
|
||||
heats_upperheaters_movement_enabled: this.recipe.heats_upperheaters_movement_enabled,
|
||||
heats_upperheaters_enabled: this.recipe.heats_upperheaters_enabled,
|
||||
heats_upperheaters_oscillation: this.recipe.heats_upperheaters_oscillation,
|
||||
heats_decomsustain_type: this.recipe.heats_decomsustain_type,
|
||||
heats_decomsustain_decompression_flow: this.recipe.heats_decomsustain_decompression_flow,
|
||||
heats_decomsustain_min_blowing_time: this.recipe.heats_decomsustain_min_blowing_time,
|
||||
heats_decomsustain_sustain_delay: this.recipe.heats_decomsustain_sustain_delay,
|
||||
heats_decomsustain_decompression_delay: this.recipe.heats_decomsustain_decompression_delay,
|
||||
heats_decomsustain_decompression_duration: this.recipe.heats_decomsustain_decompression_duration,
|
||||
heats_decomsustain_smoke_function_enabled: this.recipe.heats_decomsustain_smoke_function_enabled,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
@@ -11,16 +11,19 @@ import Prevuoto from "./base-components/prevuoto.vue";
|
||||
import { recipeActions } from "@/store/recipe.store";
|
||||
import { store } from "@/store";
|
||||
import { Deferred } from "@/services";
|
||||
import { recipeService } from "@/services/recipeService";
|
||||
|
||||
@Component({ components:
|
||||
{
|
||||
modal: Modal,
|
||||
@Component({
|
||||
components:
|
||||
{
|
||||
modal: Modal,
|
||||
vuotoprincipale: VuotoPrincipale,
|
||||
vuotodiretto: VuotoDiretto,
|
||||
vuotoausiliario: VuotoAusiliario,
|
||||
vuotoausiliario: VuotoAusiliario,
|
||||
prevuoto: Prevuoto,
|
||||
stepfooter: StepFooter
|
||||
} })
|
||||
stepfooter: StepFooter
|
||||
}
|
||||
})
|
||||
export default class ShowVuotoInfo extends Vue {
|
||||
|
||||
recipe: Recipe.IRecipe = this.$store.getters.getCurrent();
|
||||
@@ -34,8 +37,45 @@ export default class ShowVuotoInfo extends Vue {
|
||||
this.deferred.resolve(-1);
|
||||
};
|
||||
|
||||
conferma() {
|
||||
async conferma() {
|
||||
recipeActions.setCurrent(store, this.recipe);
|
||||
await recipeService.Update(
|
||||
{
|
||||
vacuum_main_start: this.recipe.vacuum_main_start,
|
||||
vacuum_main_delay: this.recipe.vacuum_main_delay,
|
||||
vacuum_main_max_time: this.recipe.vacuum_main_max_time,
|
||||
vacuum_main_1_chart_setpointx: this.recipe.vacuum_main_1_chart_setpointx,
|
||||
vacuum_main_1_chart_setpointy: this.recipe.vacuum_main_1_chart_setpointy,
|
||||
vacuum_main_2_chart_setpointx: this.recipe.vacuum_main_2_chart_setpointx,
|
||||
vacuum_main_2_chart_setpointy: this.recipe.vacuum_main_2_chart_setpointy,
|
||||
vacuum_main_3_chart_setpointx: this.recipe.vacuum_main_3_chart_setpointx,
|
||||
vacuum_main_3_chart_setpointy: this.recipe.vacuum_main_3_chart_setpointy,
|
||||
vacuum_main_manual: this.recipe.vacuum_main_manual,
|
||||
vacuum_direct_enabled: this.recipe.vacuum_direct_enabled,
|
||||
vacuum_direct_delay: this.recipe.vacuum_direct_delay,
|
||||
vacuum_direct_time: this.recipe.vacuum_direct_time,
|
||||
vacuum_aux_enabled: this.recipe.vacuum_aux_enabled,
|
||||
vacuum_aux_delay: this.recipe.vacuum_aux_delay,
|
||||
vacuum_aux_max_time: this.recipe.vacuum_aux_max_time,
|
||||
vacuum_aux_1_chart_setpointx: this.recipe.vacuum_aux_1_chart_setpointx,
|
||||
vacuum_aux_1_chart_setpointy: this.recipe.vacuum_aux_1_chart_setpointy,
|
||||
vacuum_aux_2_chart_setpointx: this.recipe.vacuum_aux_2_chart_setpointx,
|
||||
vacuum_aux_2_chart_setpointy: this.recipe.vacuum_aux_2_chart_setpointy,
|
||||
vacuum_aux_3_chart_setpointx: this.recipe.vacuum_aux_3_chart_setpointx,
|
||||
vacuum_aux_3_chart_setpointy: this.recipe.vacuum_aux_3_chart_setpointy,
|
||||
vacuum_aux_manual: this.recipe.vacuum_aux_manual,
|
||||
vacuum_pre_enabled: this.recipe.vacuum_pre_enabled,
|
||||
vacuum_pre_delay: this.recipe.vacuum_pre_delay,
|
||||
vacuum_pre_max_time: this.recipe.vacuum_pre_max_time,
|
||||
vacuum_pre_1_chart_setpointx: this.recipe.vacuum_pre_1_chart_setpointx,
|
||||
vacuum_pre_1_chart_setpointy: this.recipe.vacuum_pre_1_chart_setpointy,
|
||||
vacuum_pre_2_chart_setpointx: this.recipe.vacuum_pre_2_chart_setpointx,
|
||||
vacuum_pre_2_chart_setpointy: this.recipe.vacuum_pre_2_chart_setpointy,
|
||||
vacuum_pre_3_chart_setpointx: this.recipe.vacuum_pre_3_chart_setpointx,
|
||||
vacuum_pre_3_chart_setpointy: this.recipe.vacuum_pre_3_chart_setpointy,
|
||||
}
|
||||
);
|
||||
await recipeService.Confirm();
|
||||
ModalHelper.HideModal();
|
||||
this.deferred.resolve(1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user