Poter modificare i limiti min e max su di 1 circuito specifico
This commit is contained in:
@@ -7,6 +7,7 @@ import { useQuasar } from 'quasar'
|
|||||||
import { useI18n } from '@/boot/i18n'
|
import { useI18n } from '@/boot/i18n'
|
||||||
import { useUserStore } from '@store/UserStore'
|
import { useUserStore } from '@store/UserStore'
|
||||||
import { useGlobalStore } from '@store/globalStore'
|
import { useGlobalStore } from '@store/globalStore'
|
||||||
|
import { useCircuitStore } from '@store/CircuitStore'
|
||||||
import { tools } from '@store/Modules/tools'
|
import { tools } from '@store/Modules/tools'
|
||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
import { shared_consts } from '@src/common/shared_vuejs'
|
import { shared_consts } from '@src/common/shared_vuejs'
|
||||||
@@ -18,6 +19,7 @@ export default defineComponent({
|
|||||||
setup() {
|
setup() {
|
||||||
const $q = useQuasar()
|
const $q = useQuasar()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
const circuitStore = useCircuitStore()
|
||||||
|
|
||||||
const ris = ref('')
|
const ris = ref('')
|
||||||
const riga = ref(0)
|
const riga = ref(0)
|
||||||
@@ -26,6 +28,7 @@ export default defineComponent({
|
|||||||
const col = ref(0)
|
const col = ref(0)
|
||||||
const placca = ref('')
|
const placca = ref('')
|
||||||
const valmin = ref(200)
|
const valmin = ref(200)
|
||||||
|
const circuitId = ref('')
|
||||||
const valmax = ref(400)
|
const valmax = ref(400)
|
||||||
const defmin = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP)
|
const defmin = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP)
|
||||||
const defmax = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP)
|
const defmax = ref(shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP)
|
||||||
@@ -35,7 +38,7 @@ export default defineComponent({
|
|||||||
const replace_username = ref('')
|
const replace_username = ref('')
|
||||||
const incaricamento = ref(false)
|
const incaricamento = ref(false)
|
||||||
|
|
||||||
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string, valmin?: number, valmax?: number) {
|
function EseguiFunz(miafunz: string, search_username?: string, replace_username?: string, valmin?: number, valmax?: number, circuitId?: string) {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
@@ -60,6 +63,7 @@ export default defineComponent({
|
|||||||
replace_username,
|
replace_username,
|
||||||
valmin: valmin,
|
valmin: valmin,
|
||||||
valmax: valmax,
|
valmax: valmax,
|
||||||
|
circuitId,
|
||||||
}
|
}
|
||||||
|
|
||||||
incaricamento.value = true
|
incaricamento.value = true
|
||||||
@@ -98,6 +102,8 @@ export default defineComponent({
|
|||||||
defmax,
|
defmax,
|
||||||
defpersmin,
|
defpersmin,
|
||||||
defpersmax,
|
defpersmax,
|
||||||
|
circuitId,
|
||||||
|
circuitStore,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -339,9 +339,7 @@
|
|||||||
<q-btn
|
<q-btn
|
||||||
label="Replace All Circuits with 'Circuito RIS nomeprovincia'"
|
label="Replace All Circuits with 'Circuito RIS nomeprovincia'"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="
|
@click="EseguiFunz('ReplaceAllCircuits')"
|
||||||
EseguiFunz('ReplaceAllCircuits')
|
|
||||||
"
|
|
||||||
></q-btn>
|
></q-btn>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
@@ -360,6 +358,32 @@
|
|||||||
@click="EseguiFunz('ImpostaMinMaxPersonali', '', '', valmin, valmax)"
|
@click="EseguiFunz('ImpostaMinMaxPersonali', '', '', valmin, valmax)"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<q-select
|
||||||
|
rounded
|
||||||
|
outlined
|
||||||
|
v-model="circuitId"
|
||||||
|
:options="circuitStore.getCircuitsLabelValue()"
|
||||||
|
label="Circuiti"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
<q-btn
|
||||||
|
label="Imposta Min e Max per TUTTI i Conti Personali di un Circuito"
|
||||||
|
color="primary"
|
||||||
|
@click="
|
||||||
|
EseguiFunz(
|
||||||
|
'ImpostaMinMaxPersonaliCircuito',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
valmin,
|
||||||
|
valmax,
|
||||||
|
circuitId
|
||||||
|
)
|
||||||
|
"
|
||||||
|
></q-btn>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="Imposta Min e Max per TUTTI i Conti Comunitari"
|
label="Imposta Min e Max per TUTTI i Conti Comunitari"
|
||||||
@@ -381,13 +405,25 @@
|
|||||||
label="DEFAULT Fiducia Concessa"
|
label="DEFAULT Fiducia Concessa"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-input v-model="defpersmax" label="DEFAULT Max Qta" style="width: 300px"></q-input>
|
<q-input
|
||||||
|
v-model="defpersmax"
|
||||||
|
label="DEFAULT Max Qta"
|
||||||
|
style="width: 300px"
|
||||||
|
></q-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="Imposta Min e Max per i Circuiti Personali di DEFAULT"
|
label="Imposta Min e Max per i Circuiti Personali di DEFAULT"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="EseguiFunz('ImpostaDefMinMaxPersonali', '', '', defpersmin, defpersmax)"
|
@click="
|
||||||
|
EseguiFunz(
|
||||||
|
'ImpostaDefMinMaxPersonali',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
defpersmin,
|
||||||
|
defpersmax
|
||||||
|
)
|
||||||
|
"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -396,13 +432,19 @@
|
|||||||
label="DEFAULT Fiducia Concessa"
|
label="DEFAULT Fiducia Concessa"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-input v-model="defmax" label="DEFAULT Max Qta" style="width: 300px"></q-input>
|
<q-input
|
||||||
|
v-model="defmax"
|
||||||
|
label="DEFAULT Max Qta"
|
||||||
|
style="width: 300px"
|
||||||
|
></q-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<q-btn
|
<q-btn
|
||||||
label="Imposta Min e Max per i Circuiti Collettivi di DEFAULT"
|
label="Imposta Min e Max per i Circuiti Collettivi di DEFAULT"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="EseguiFunz('ImpostaDefMinMaxCollettivi', '', '', defmin, defmax)"
|
@click="
|
||||||
|
EseguiFunz('ImpostaDefMinMaxCollettivi', '', '', defmin, defmax)
|
||||||
|
"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user