Abilitazione del BOT
This commit is contained in:
@@ -91,7 +91,8 @@
|
|||||||
>
|
>
|
||||||
<q-icon name="fas fa-balance-scale" class="q-mr-xs" />
|
<q-icon name="fas fa-balance-scale" class="q-mr-xs" />
|
||||||
{{ t('products.weight') }}:
|
{{ t('products.weight') }}:
|
||||||
<span class="text-black q-ml-xs text-h8">
|
<span class="text-black q-ml-xs text-h8"
|
||||||
|
v-if="myproduct.unit">
|
||||||
{{ myproduct.weight }}
|
{{ myproduct.weight }}
|
||||||
{{ tools.getUnitsMeasure(myproduct.unit, true) }}</span
|
{{ tools.getUnitsMeasure(myproduct.unit, true) }}</span
|
||||||
>
|
>
|
||||||
@@ -135,7 +136,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
tools.isManager() && myproduct.QuantitaOrdinateInAttesa > 0
|
tools.isManager() && myproduct.QuantitaOrdinateInAttesa && myproduct.QuantitaOrdinateInAttesa > 0
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|||||||
@@ -305,6 +305,8 @@ export interface ISites {
|
|||||||
telegram_key?: string
|
telegram_key?: string
|
||||||
telegram_bot_name?: string
|
telegram_bot_name?: string
|
||||||
telegram_key_test?: string
|
telegram_key_test?: string
|
||||||
|
load_process_telegram_test?: string
|
||||||
|
load_process_telegram?: string
|
||||||
telegram_bot_name_test?: string
|
telegram_bot_name_test?: string
|
||||||
telegram_support_chat?: string
|
telegram_support_chat?: string
|
||||||
pathreg_add?: string
|
pathreg_add?: string
|
||||||
|
|||||||
@@ -1654,6 +1654,8 @@ export const colTableSites = [
|
|||||||
AddCol({ name: 'telegram_bot_name', label_trans: 'sites.telegram_bot_name', fieldtype: costanti.FieldType.string }),
|
AddCol({ name: 'telegram_bot_name', label_trans: 'sites.telegram_bot_name', fieldtype: costanti.FieldType.string }),
|
||||||
AddCol({ name: 'telegram_support_chat', label_trans: 'sites.telegram_support_chat', fieldtype: costanti.FieldType.string }),
|
AddCol({ name: 'telegram_support_chat', label_trans: 'sites.telegram_support_chat', fieldtype: costanti.FieldType.string }),
|
||||||
AddCol({ name: 'telegram_key_test', label_trans: 'sites.telegram_key_test', fieldtype: costanti.FieldType.string }),
|
AddCol({ name: 'telegram_key_test', label_trans: 'sites.telegram_key_test', fieldtype: costanti.FieldType.string }),
|
||||||
|
AddCol({ name: 'load_process_telegram_test', label_trans: 'sites.load_process_telegram_test', fieldtype: costanti.FieldType.boolean }),
|
||||||
|
AddCol({ name: 'load_process_telegramt', label_trans: 'sites.load_process_telegram', fieldtype: costanti.FieldType.boolean}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'telegram_bot_name_test',
|
name: 'telegram_bot_name_test',
|
||||||
label_trans: 'sites.telegram_bot_name_test',
|
label_trans: 'sites.telegram_bot_name_test',
|
||||||
|
|||||||
@@ -238,8 +238,10 @@ export const useProducts = defineStore('Products', {
|
|||||||
|
|
||||||
let ris = null
|
let ris = null
|
||||||
|
|
||||||
|
console.log('Ottieni Prodotti')
|
||||||
ris = await Api.SendReq('/products', 'POST', { userId: userStore.my._id })
|
ris = await Api.SendReq('/products', 'POST', { userId: userStore.my._id })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
console.log('Prodotti scaricati')
|
||||||
if (res.data.products) {
|
if (res.data.products) {
|
||||||
this.products = res.data.products
|
this.products = res.data.products
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -570,6 +570,14 @@
|
|||||||
></q-btn>
|
></q-btn>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<q-btn
|
||||||
|
label="generateBotMenuRecords"
|
||||||
|
color="primary"
|
||||||
|
@click="EseguiFunz('generateBotMenuRecords')"
|
||||||
|
></q-btn>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" src="./dbop.ts">
|
<script lang="ts" src="./dbop.ts">
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -35,6 +35,19 @@
|
|||||||
<q-item-label v-if="col.name === 'created_at'" caption
|
<q-item-label v-if="col.name === 'created_at'" caption
|
||||||
>{{ tools.getstrDateTime(col.value) }}
|
>{{ tools.getstrDateTime(col.value) }}
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
|
<q-item-label
|
||||||
|
v-else-if="col.name === 'nameSurname'"
|
||||||
|
caption
|
||||||
|
>
|
||||||
|
<span v-if="props.row.user">
|
||||||
|
<span
|
||||||
|
:class="
|
||||||
|
props.row.user.name !== 'TOTALI' ? '' : 'totali'
|
||||||
|
"
|
||||||
|
>{{ tools.getNomeUtenteByRecUser(props.row.user) }}
|
||||||
|
</span></span
|
||||||
|
>
|
||||||
|
</q-item-label>
|
||||||
<q-item-label v-else-if="col.name === 'items'" caption>
|
<q-item-label v-else-if="col.name === 'items'" caption>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) of props.row.items"
|
v-for="(item, index) of props.row.items"
|
||||||
@@ -58,6 +71,40 @@
|
|||||||
<q-item-label v-else-if="col.name === 'status'" caption>
|
<q-item-label v-else-if="col.name === 'status'" caption>
|
||||||
{{ shared_consts.getStatusStr(props.row.status) }}
|
{{ shared_consts.getStatusStr(props.row.status) }}
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
|
<q-item-label v-else-if="col.name === 'comandi'" caption>
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
tools.isManager() &&
|
||||||
|
props.row.user.name !== 'TOTALI'
|
||||||
|
"
|
||||||
|
class="q-pa-sm"
|
||||||
|
>
|
||||||
|
<q-btn-dropdown rounded dense label="Azioni">
|
||||||
|
<q-list class="text-primary">
|
||||||
|
<q-item
|
||||||
|
v-for="(
|
||||||
|
cmd, index
|
||||||
|
) of shared_consts.OrderCmdStr"
|
||||||
|
:key="index"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="clickFunz(props.row, cmd.value)"
|
||||||
|
>
|
||||||
|
<q-item-section avatar>
|
||||||
|
<q-avatar
|
||||||
|
:icon="cmd.icon"
|
||||||
|
:color="cmd.color"
|
||||||
|
text-color="white"
|
||||||
|
/>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{ cmd.label }}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-btn-dropdown>
|
||||||
|
</div>
|
||||||
|
</q-item-label>
|
||||||
<q-item-label v-else caption>{{
|
<q-item-label v-else caption>{{
|
||||||
col.value
|
col.value
|
||||||
}}</q-item-label>
|
}}</q-item-label>
|
||||||
@@ -79,8 +126,7 @@
|
|||||||
<span
|
<span
|
||||||
:class="props.row.user.name !== 'TOTALI' ? '' : 'totali'"
|
:class="props.row.user.name !== 'TOTALI' ? '' : 'totali'"
|
||||||
>{{ tools.getNomeUtenteByRecUser(props.row.user) }}
|
>{{ tools.getNomeUtenteByRecUser(props.row.user) }}
|
||||||
</span
|
</span></span
|
||||||
></span
|
|
||||||
>
|
>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td key="created_at" :props="props">
|
<q-td key="created_at" :props="props">
|
||||||
|
|||||||
Reference in New Issue
Block a user