++GasOrdini
This commit is contained in:
@@ -36,6 +36,7 @@ const msg_website_it = {
|
|||||||
categories: 'Categorie',
|
categories: 'Categorie',
|
||||||
storehouses: 'Magazzino',
|
storehouses: 'Magazzino',
|
||||||
providers: 'Fornitori',
|
providers: 'Fornitori',
|
||||||
|
gasordine: 'Gas Ordine',
|
||||||
scontisticas: 'Scontistica',
|
scontisticas: 'Scontistica',
|
||||||
departments: 'Uffici',
|
departments: 'Uffici',
|
||||||
orders: 'Ordini Ricevuti',
|
orders: 'Ordini Ricevuti',
|
||||||
@@ -125,6 +126,7 @@ const msg_website_it = {
|
|||||||
only_residenti: 'Solo Residenti',
|
only_residenti: 'Solo Residenti',
|
||||||
only_consiglio: 'Solo Consiglieri',
|
only_consiglio: 'Solo Consiglieri',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
gasordini: 'Gas Ordini',
|
||||||
},
|
},
|
||||||
msg: {
|
msg: {
|
||||||
myAppName: 'Più che Buono',
|
myAppName: 'Più che Buono',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { IAction } from '@src/model/Projects'
|
import { IAction } from '@src/model/Projects'
|
||||||
import { IFriends, IGroupShort, IMyGroup, IPaymentType } from '@src/model/UserStore'
|
import { IFriends, IGroupShort, IMyGroup, IPaymentType } from '@src/model/UserStore'
|
||||||
import {
|
import {
|
||||||
IDepartment, IProducer, IShareWithUs, IStorehouse, IProvider, IScontistica, ICategory
|
IDepartment, IProducer, IShareWithUs, IStorehouse, IProvider, IScontistica, ICategory, IGasordine
|
||||||
} from '@src/model/Products'
|
} from '@src/model/Products'
|
||||||
|
|
||||||
import { IUserFields, IUserProfile } from '@src/model/UserStore'
|
import { IUserFields, IUserProfile } from '@src/model/UserStore'
|
||||||
@@ -442,6 +442,7 @@ export interface IGlobalState {
|
|||||||
calzoom: ICalZoom[],
|
calzoom: ICalZoom[],
|
||||||
producers: IProducer[],
|
producers: IProducer[],
|
||||||
providers: IProvider[],
|
providers: IProvider[],
|
||||||
|
gasordines: IGasordine[],
|
||||||
scontisticas: IScontistica[],
|
scontisticas: IScontistica[],
|
||||||
storehouses: IStorehouse[],
|
storehouses: IStorehouse[],
|
||||||
departments: IDepartment[],
|
departments: IDepartment[],
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export interface IOrder {
|
|||||||
idProduct?: string
|
idProduct?: string
|
||||||
idProducer?: string
|
idProducer?: string
|
||||||
idProvider?: string
|
idProvider?: string
|
||||||
|
idGasordine?: string
|
||||||
idStorehouse?: string
|
idStorehouse?: string
|
||||||
idScontisticas?: string[]
|
idScontisticas?: string[]
|
||||||
price: number
|
price: number
|
||||||
@@ -65,6 +66,7 @@ export interface IOrder {
|
|||||||
storehouse?: IStorehouse
|
storehouse?: IStorehouse
|
||||||
scontisticas?: IScontistica[]
|
scontisticas?: IScontistica[]
|
||||||
provider?: IProvider
|
provider?: IProvider
|
||||||
|
gasordine?: IGasordine
|
||||||
date_created?: Date
|
date_created?: Date
|
||||||
date_checkout?: Date
|
date_checkout?: Date
|
||||||
date_payment?: Date
|
date_payment?: Date
|
||||||
@@ -130,6 +132,19 @@ export interface IProvider {
|
|||||||
website?: string,
|
website?: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IGasordine {
|
||||||
|
_id?: any
|
||||||
|
idapp?: string
|
||||||
|
active: boolean
|
||||||
|
name?: string,
|
||||||
|
description?: string,
|
||||||
|
referent?: string,
|
||||||
|
city?: string,
|
||||||
|
img?: string,
|
||||||
|
dataora_chiusura?: Date,
|
||||||
|
dataora_ritiro?: Date,
|
||||||
|
}
|
||||||
|
|
||||||
export interface IScontistica {
|
export interface IScontistica {
|
||||||
_id?: any
|
_id?: any
|
||||||
idapp?: string
|
idapp?: string
|
||||||
|
|||||||
0
src/rootgen/admin/gasordini/gasordini.scss
Executable file
0
src/rootgen/admin/gasordini/gasordini.scss
Executable file
34
src/rootgen/admin/gasordini/gasordini.ts
Executable file
34
src/rootgen/admin/gasordini/gasordini.ts
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
import { colTableGasordine } from '@src/store/Modules/fieldsTable'
|
||||||
|
|
||||||
|
import { CImgText } from '../../../components/CImgText/index'
|
||||||
|
|
||||||
|
import { defineComponent } from 'vue'
|
||||||
|
import { CCard } from '../../../components/CCard'
|
||||||
|
import { CMyPage } from '../../../components/CMyPage'
|
||||||
|
import { CTitleBanner } from '../../../components/CTitleBanner'
|
||||||
|
import { CGridTableRec } from '../../../components/CGridTableRec'
|
||||||
|
|
||||||
|
import MixinMetaTags from '../../../mixins/mixin-metatags'
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
name: 'GasOrdini',
|
||||||
|
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec },
|
||||||
|
setup() {
|
||||||
|
const pagination = {
|
||||||
|
sortBy: 'name',
|
||||||
|
descending: false,
|
||||||
|
page: 2,
|
||||||
|
rowsPerPage: 5
|
||||||
|
// rowsNumber: xx if getting data from a server
|
||||||
|
}
|
||||||
|
|
||||||
|
const { setmeta } = MixinMetaTags()
|
||||||
|
|
||||||
|
return {
|
||||||
|
colTableGasordine,
|
||||||
|
setmeta,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
31
src/rootgen/admin/gasordini/gasordini.vue
Executable file
31
src/rootgen/admin/gasordini/gasordini.vue
Executable file
@@ -0,0 +1,31 @@
|
|||||||
|
<template>
|
||||||
|
<CMyPage title="Gas Ordini" imgbackground="images/fornitori.jpg" sizes="max-height: 120px">
|
||||||
|
<span>{{
|
||||||
|
setmeta({
|
||||||
|
title: 'Gas Ordini',
|
||||||
|
description: '',
|
||||||
|
keywords: '',
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||||
|
<CTitleBanner title="Gas Ordini"></CTitleBanner>
|
||||||
|
<CGridTableRec
|
||||||
|
prop_mytable="gasordines"
|
||||||
|
prop_mytitle="Lista Gas Ordini"
|
||||||
|
:prop_mycolumns="colTableGasordine"
|
||||||
|
prop_colkey="name"
|
||||||
|
nodataLabel="Nessun Gas Ordine"
|
||||||
|
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||||
|
|
||||||
|
</CGridTableRec>
|
||||||
|
</div>
|
||||||
|
</CMyPage>
|
||||||
|
</template>
|
||||||
|
<script lang="ts" src="./gasordini.ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import 'gasordini.scss';
|
||||||
|
</style>
|
||||||
@@ -125,6 +125,20 @@ function getRoutesEcomm(site: ISites) {
|
|||||||
onlyManager: true,
|
onlyManager: true,
|
||||||
onlyEditor: true
|
onlyEditor: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
active: true,
|
||||||
|
order: 30,
|
||||||
|
path: '/admin/ecommerce/gasordini',
|
||||||
|
materialIcon: 'fas fa-file-alt',
|
||||||
|
name: 'pages.gasordini',
|
||||||
|
component: () => import('@/rootgen/admin/gasordini/gasordini.vue'),
|
||||||
|
inmenu: true,
|
||||||
|
submenu: true,
|
||||||
|
level_parent: 0,
|
||||||
|
level_child: 0.5,
|
||||||
|
onlyManager: true,
|
||||||
|
onlyEditor: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 30,
|
order: 30,
|
||||||
|
|||||||
@@ -442,6 +442,18 @@ export const colTableProviders = [
|
|||||||
AddCol(DeleteRec),
|
AddCol(DeleteRec),
|
||||||
AddCol(DuplicateRec),
|
AddCol(DuplicateRec),
|
||||||
]
|
]
|
||||||
|
export const colTableGasordine = [
|
||||||
|
AddCol({ name: 'active', label_trans: 'sites.active', fieldtype: costanti.FieldType.boolean }),
|
||||||
|
AddCol({ name: 'name', label_trans: 'store.name' }),
|
||||||
|
AddCol({ name: 'description', label_trans: 'store.description' }),
|
||||||
|
AddCol({ name: 'referente', label_trans: 'store.referent' }),
|
||||||
|
AddCol({ name: 'city', label_trans: 'store.city' }),
|
||||||
|
AddCol({ name: 'img', label_trans: 'store.img' }),
|
||||||
|
AddCol({ name: 'dataora_chiusura', label_trans: 'gas.dataora_chiusura', fieldtype: costanti.FieldType.date }),
|
||||||
|
AddCol({ name: 'dataora_ritiro', label_trans: 'gas.dataora_ritiro', fieldtype: costanti.FieldType.date }),
|
||||||
|
AddCol(DeleteRec),
|
||||||
|
AddCol(DuplicateRec),
|
||||||
|
]
|
||||||
export const colTableScontistica = [
|
export const colTableScontistica = [
|
||||||
AddCol({ name: 'code', label_trans: 'scontistica.code' }),
|
AddCol({ name: 'code', label_trans: 'scontistica.code' }),
|
||||||
AddCol({ name: 'description', label_trans: 'scontistica.description' }),
|
AddCol({ name: 'description', label_trans: 'scontistica.description' }),
|
||||||
@@ -3573,6 +3585,13 @@ export const fieldsTable = {
|
|||||||
colkey: '_id',
|
colkey: '_id',
|
||||||
collabel: 'name',
|
collabel: 'name',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 'gasordines',
|
||||||
|
label: 'Gas Ordini',
|
||||||
|
columns: colTableGasordine,
|
||||||
|
colkey: '_id',
|
||||||
|
collabel: 'name',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 'scontisticas',
|
value: 'scontisticas',
|
||||||
label: 'Scontistica',
|
label: 'Scontistica',
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
storehouses: [],
|
storehouses: [],
|
||||||
scontisticas: [],
|
scontisticas: [],
|
||||||
providers: [],
|
providers: [],
|
||||||
|
gasordines: [],
|
||||||
departments: [],
|
departments: [],
|
||||||
categories: [],
|
categories: [],
|
||||||
sharewithus: [],
|
sharewithus: [],
|
||||||
@@ -309,6 +310,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
else if (table === 'producers') ris = state.producers
|
else if (table === 'producers') ris = state.producers
|
||||||
else if (table === 'storehouses') ris = state.storehouses
|
else if (table === 'storehouses') ris = state.storehouses
|
||||||
else if (table === 'providers') ris = state.providers
|
else if (table === 'providers') ris = state.providers
|
||||||
|
else if (table === 'gasordines') ris = state.gasordines
|
||||||
else if (table === 'scontisticas') ris = state.scontisticas
|
else if (table === 'scontisticas') ris = state.scontisticas
|
||||||
else if (table === 'groups') ris = state.groups
|
else if (table === 'groups') ris = state.groups
|
||||||
else if (table === 'resps') ris = state.resps
|
else if (table === 'resps') ris = state.resps
|
||||||
@@ -1537,6 +1539,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
this.producers = (res.data.producers) ? [...res.data.producers] : []
|
this.producers = (res.data.producers) ? [...res.data.producers] : []
|
||||||
this.storehouses = (res.data.storehouses) ? [...res.data.storehouses] : []
|
this.storehouses = (res.data.storehouses) ? [...res.data.storehouses] : []
|
||||||
this.providers = (res.data.providers) ? [...res.data.providers] : []
|
this.providers = (res.data.providers) ? [...res.data.providers] : []
|
||||||
|
this.gasordines = (res.data.gasordines) ? [...res.data.gasordines] : []
|
||||||
this.scontisticas = (res.data.scontisticas) ? [...res.data.scontisticas] : []
|
this.scontisticas = (res.data.scontisticas) ? [...res.data.scontisticas] : []
|
||||||
this.groups = (res.data.groups) ? [...res.data.groups] : []
|
this.groups = (res.data.groups) ? [...res.data.groups] : []
|
||||||
this.resps = (res.data.resps) ? [...res.data.resps] : []
|
this.resps = (res.data.resps) ? [...res.data.resps] : []
|
||||||
|
|||||||
Reference in New Issue
Block a user