diff --git a/quasar.config.js b/quasar.config.js index dd7a91002..b59c62eeb 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -29,7 +29,7 @@ module.exports = configure(function (/* ctx */) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli/boot-files - boot: ['i18n', 'axios', 'vnDate', 'validations', 'quasar.defaults'], + boot: ['i18n', 'axios', 'vnDate', 'validations', 'quasar', 'quasar.defaults'], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css css: ['app.scss'], diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index fd8570176..064ad1631 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -127,9 +127,10 @@ const onProvinceCreated = async ({ name }, formData) => { - - - + import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; - +import { ref } from 'vue'; import FetchData from 'components/FetchData.vue'; import FormModel from 'src/components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; import { QCheckbox } from 'quasar'; +import VnInputTime from 'src/components/common/VnInputTime.vue'; +import VnSelect from 'src/components/common/VnSelect.vue'; const route = useRoute(); const { t } = useI18n(); -const zoneFilter = { - include: [ - { - relation: 'agency', - scope: { - fields: ['name'], - include: { relation: 'agencyModeFk', scope: { fields: ['id'] } }, - }, - }, - { relation: 'sip', scope: { fields: ['extension', 'secret'] } }, - { relation: 'department', scope: { include: { relation: 'department' } } }, - { relation: 'client', scope: { fields: ['phone'] } }, - ], -}; + const agencyFilter = { fields: ['id', 'name'], order: 'name ASC', limit: 30, }; +const agencyOptions = ref([]); - +