diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index fce41ef99..c2011639f 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -181,12 +181,21 @@ function copyUserToken() { /> + > + + +import VnPaginate from 'src/components/ui/VnPaginate.vue'; +import CardList from 'src/components/ui/CardList.vue'; +import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; +import { useStateStore } from 'stores/useStateStore'; +import { useRouter } from 'vue-router'; +import { useI18n } from 'vue-i18n'; + +const { t } = useI18n(); +const router = useRouter(); +const stateStore = useStateStore(); +function navigate(id) { + router.push({ path: `/agency/${id}` }); +} +function exprBuilder(param, value) { + if (!value) return; + if (param !== 'search') return; + + if (!isNaN(value)) return { id: value }; + + return { name: { like: `%${value}%` } }; +} + + + + es: + isOwn: Tiene propietario + isAnyVolumeAllowed: Permite cualquier volumen + Search agency: Buscar agencia + You can search by name: Puedes buscar por nombre + en: + isOwn: Has owner + isAnyVolumeAllowed: Allows any volume + diff --git a/src/pages/Agency/Card/AgencyBasicData.vue b/src/pages/Agency/Card/AgencyBasicData.vue new file mode 100644 index 000000000..5999f853b --- /dev/null +++ b/src/pages/Agency/Card/AgencyBasicData.vue @@ -0,0 +1,52 @@ + + diff --git a/src/pages/Agency/Card/AgencyCard.vue b/src/pages/Agency/Card/AgencyCard.vue new file mode 100644 index 000000000..e78d1cc55 --- /dev/null +++ b/src/pages/Agency/Card/AgencyCard.vue @@ -0,0 +1,35 @@ + + diff --git a/src/pages/Agency/Card/AgencyDescriptor.vue b/src/pages/Agency/Card/AgencyDescriptor.vue new file mode 100644 index 000000000..0fa89d07d --- /dev/null +++ b/src/pages/Agency/Card/AgencyDescriptor.vue @@ -0,0 +1,35 @@ + + diff --git a/src/pages/Agency/Card/AgencyLog.vue b/src/pages/Agency/Card/AgencyLog.vue new file mode 100644 index 000000000..d4769a676 --- /dev/null +++ b/src/pages/Agency/Card/AgencyLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Agency/Card/AgencyModes.vue b/src/pages/Agency/Card/AgencyModes.vue new file mode 100644 index 000000000..4fb81914a --- /dev/null +++ b/src/pages/Agency/Card/AgencyModes.vue @@ -0,0 +1,60 @@ + + + + es: + isOwn: Tiene propietario + isAnyVolumeAllowed: Permite cualquier volumen + Search agency: Buscar agencia + You can search by name: Puedes buscar por nombre + deliveryMethod: Método de entrega + inflation: Inflación + en: + isOwn: Has owner + isAnyVolumeAllowed: Allows any volume + diff --git a/src/pages/Agency/Card/AgencySummary.vue b/src/pages/Agency/Card/AgencySummary.vue new file mode 100644 index 000000000..0e80813aa --- /dev/null +++ b/src/pages/Agency/Card/AgencySummary.vue @@ -0,0 +1,55 @@ + + + diff --git a/src/pages/Agency/Card/AgencyWorkcenter.vue b/src/pages/Agency/Card/AgencyWorkcenter.vue new file mode 100644 index 000000000..31be90af4 --- /dev/null +++ b/src/pages/Agency/Card/AgencyWorkcenter.vue @@ -0,0 +1,136 @@ + + + + + es: + workCenter removed successfully: Centro de trabajo eliminado correctamente + This workCenter is already assigned to this agency: Este workCenter ya está asignado a esta agencia + Add work center: Añadir centro de trabajo + workCenter: Centro de trabajo + diff --git a/src/pages/Agency/locale/en.yml b/src/pages/Agency/locale/en.yml new file mode 100644 index 000000000..3cc3d69e8 --- /dev/null +++ b/src/pages/Agency/locale/en.yml @@ -0,0 +1,11 @@ +agency: + isOwn: Own + isAnyVolumeAllowed: Any volume allowed + notification: + removeItemError: Error removing agency + removeItem: WorkCenter removed successfully + pageTitles: + agency: Agency + searchBar: + info: You can search by agency code + label: Search agency... diff --git a/src/pages/Agency/locale/es.yml b/src/pages/Agency/locale/es.yml new file mode 100644 index 000000000..2607472bd --- /dev/null +++ b/src/pages/Agency/locale/es.yml @@ -0,0 +1,12 @@ +agency: + isOwn: Propio + isAnyVolumeAllowed: Cualquier volumen + removeItem: Agencia eliminada correctamente + notification: + removeItemError: Error al eliminar la agencia + removeItem: Centro de trabajo eliminado correctamente + pageTitles: + agency: Agencia + searchBar: + info: Puedes buscar por nombre o id + label: Buscar agencia... diff --git a/src/pages/Customer/components/CustomerCreditCreate.vue b/src/pages/Customer/components/CustomerCreditCreate.vue index ae6d4de89..729deb258 100644 --- a/src/pages/Customer/components/CustomerCreditCreate.vue +++ b/src/pages/Customer/components/CustomerCreditCreate.vue @@ -13,7 +13,6 @@ const router = useRouter(); const initialData = ref({}); const setClient = (data) => { - console.log(data.credit); initialData.value.credit = data.credit; }; diff --git a/src/pages/Supplier/Card/SupplierConsumption.vue b/src/pages/Supplier/Card/SupplierConsumption.vue index 8011741ef..8dbb87529 100644 --- a/src/pages/Supplier/Card/SupplierConsumption.vue +++ b/src/pages/Supplier/Card/SupplierConsumption.vue @@ -1,9 +1,8 @@