fix conferma ricetta

This commit is contained in:
=
2020-10-01 11:00:19 +02:00
parent 9e4188bf90
commit d58aae4e61
11 changed files with 53 additions and 42 deletions
@@ -83,9 +83,10 @@ export default class ShowCicloInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -98,9 +98,10 @@ export default class ShowControstampoInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -70,9 +70,10 @@ export default class ShowEstrazioneInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -97,9 +97,10 @@ export default class ShowFormatoInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -79,9 +79,10 @@ export default class ShowImbutituraInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -42,25 +42,25 @@ export default class ShowOpzioniInfo extends Vue {
this.debouncedRecipeSave()
};
thermoregolatoriAreVisible(){
for(var i = 1; i<= 10; i++){
if(this.recipe['options_thermoregulator_'+i+'_enabled'] && this.recipe['options_thermoregulator_'+i+'_enabled'].status.visible)
thermoregolatoriAreVisible() {
for (var i = 1; i <= 10; i++) {
if (this.recipe['options_thermoregulator_' + i + '_enabled'] && this.recipe['options_thermoregulator_' + i + '_enabled'].status.visible)
return true;
}
return false;
}
sottosquadraStampoAreVisible(){
for(var i = 1; i<= 10; i++){
if(this.recipe['options_undercutmould_'+i+'_mode'] && this.recipe['options_undercutmould_'+i+'_mode'].status.visible)
sottosquadraStampoAreVisible() {
for (var i = 1; i <= 10; i++) {
if (this.recipe['options_undercutmould_' + i + '_mode'] && this.recipe['options_undercutmould_' + i + '_mode'].status.visible)
return true;
}
return false;
}
sottosquadraControstampoAreVisible(){
for(var i = 1; i<= 10; i++){
if(this.recipe['options_undercutupperplate_'+i+'_mode'] && this.recipe['options_undercutupperplate_'+i+'_mode'].status.visible)
sottosquadraControstampoAreVisible() {
for (var i = 1; i <= 10; i++) {
if (this.recipe['options_undercutupperplate_' + i + '_mode'] && this.recipe['options_undercutupperplate_' + i + '_mode'].status.visible)
return true;
}
return false;
@@ -186,9 +186,10 @@ export default class ShowOpzioniInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -79,9 +79,10 @@ export default class ShowPirometroInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -93,9 +93,10 @@ export default class ShowQuoteVelocitaInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -102,9 +102,10 @@ export default class Raffreddamento extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -76,9 +76,10 @@ export default class ShowRiscaldamentoSuperioreInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];
@@ -96,9 +96,10 @@ export default class ShowVuotoInfo extends Vue {
hasChanges() {
let result = false;
for (const key in this.payload) {
const el = this.payload[key] as Recipe.IValue;
if (el.setpointHMI != el.setpointPLC) result = true;
for (const key in this.recipe) {
const el = this.recipe[key] as Recipe.IValue;
if (el.status.visible && el.status.enabled)
if (el.setpointHMI != el.setpointPLC) result = true;
}
for (const key in store.state.warmers.channels) {
const el = store.state.warmers.channels[key];