diff --git a/components.d.ts b/components.d.ts index f9567c0..4690207 100644 --- a/components.d.ts +++ b/components.d.ts @@ -46,7 +46,6 @@ declare module '@vue/runtime-core' { ATable: typeof import('ant-design-vue/es')['Table'] ATabPane: typeof import('ant-design-vue/es')['TabPane'] ATabs: typeof import('ant-design-vue/es')['Tabs'] - ATag: typeof import('ant-design-vue/es')['Tag'] ATextarea: typeof import('ant-design-vue/es')['Textarea'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] AUpload: typeof import('ant-design-vue/es')['Upload'] diff --git a/src/model/configuration.ts b/src/model/configuration.ts new file mode 100644 index 0000000..d2f4567 --- /dev/null +++ b/src/model/configuration.ts @@ -0,0 +1,26 @@ +export interface Const { + id?: number | undefined + key?: string + value?: string | undefined + description?: string + type: string + title_fa: string +} + +export interface SupportLink { + show_to_users_goftino: string + show_to_users_eitaa: string + show_to_users_telegram: string + show_to_users_whatsapp: string + show_to_users_bale: string + show_to_users_phone: string +} + +export interface itemConfig { + id: number | string + name: string + value: string + key: string + type: string + list: [] +} \ No newline at end of file diff --git a/src/pages/menuPages/configuration/components/LongtextConfigs.vue b/src/pages/menuPages/configuration/components/LongtextConfigs.vue new file mode 100644 index 0000000..560a32c --- /dev/null +++ b/src/pages/menuPages/configuration/components/LongtextConfigs.vue @@ -0,0 +1,83 @@ + + + + {{ item.name }} + کلید: {{ item.key }} + + + + + + + + + + + + + + + + + diff --git a/src/pages/menuPages/configuration/components/SwitchConfigs.vue b/src/pages/menuPages/configuration/components/SwitchConfigs.vue new file mode 100644 index 0000000..e19ab51 --- /dev/null +++ b/src/pages/menuPages/configuration/components/SwitchConfigs.vue @@ -0,0 +1,52 @@ + + + + {{ item.name }} + کلید: {{ item.key }} + + + + + + + + + diff --git a/src/pages/menuPages/configuration/components/TextConfigs.vue b/src/pages/menuPages/configuration/components/TextConfigs.vue new file mode 100644 index 0000000..2b36710 --- /dev/null +++ b/src/pages/menuPages/configuration/components/TextConfigs.vue @@ -0,0 +1,80 @@ + + + + {{ item.name }} + کلید: {{ item.key }} + + + + + + + + + + + + diff --git a/src/pages/menuPages/configuration/index.vue b/src/pages/menuPages/configuration/index.vue index 7582b24..5eceed4 100644 --- a/src/pages/menuPages/configuration/index.vue +++ b/src/pages/menuPages/configuration/index.vue @@ -1,24 +1,69 @@ - + + افزودن + + + + + + + + + + + + + + + + + + + (item.value = val)" + /> + + + - + + وضعیت : {{ !form.is_active ? 'غیرفعال' : 'فعال' }} - + + + + - + + + + - - + + @@ -28,106 +73,252 @@ + + \ No newline at end of file diff --git a/src/pages/menuPages/customers/authentication/index.vue b/src/pages/menuPages/customers/authentication/index.vue index 52a0ac7..7d4be0c 100644 --- a/src/pages/menuPages/customers/authentication/index.vue +++ b/src/pages/menuPages/customers/authentication/index.vue @@ -22,17 +22,17 @@ @finish="handleSubmit" class="rtl-form" > - - --> + + + + + + + - /> - + + - - - + تأیید و ادامه @@ -94,9 +92,10 @@ import type { FormRules } from 'ant-design-vue/es/form' import type { CheckCardRequest } from "@/model/user" import { checkCard } from "@/api/customer" import DatePicker from "@core/components/_sample/components/datePicker.vue"; +import Icon from "@core/components/BaseIcon/src/Icon.vue"; const formState = reactive({ - birth_date: '', + // birth_date: '', national_code: '', cart_number: '' }) @@ -105,9 +104,9 @@ const loading = ref(false) // Validation rules const rules: FormRules = { - birth_date: [ - { required: true, message: 'لطفاً تاریخ تولد را انتخاب کنید', trigger: 'change' } - ], + // birth_date: [ + // { required: true, message: 'لطفاً تاریخ تولد را انتخاب کنید', trigger: 'change' } + // ], national_code: [ { required: true, message: 'لطفاً کد ملی را وارد کنید', trigger: 'blur' }, { len: 10, message: 'کد ملی باید ۱۰ رقم باشد', trigger: 'blur' }, @@ -240,10 +239,10 @@ function showSuccessModal(owners: any[], cartNumber: string, bankName: string) { // Submit form async function handleSubmit() { - if (!formState.birth_date) { - message.warning('لطفاً تاریخ تولد را انتخاب کنید') - return - } + // if (!formState.birth_date) { + // message.warning('لطفاً تاریخ تولد را انتخاب کنید') + // return + // } loading.value = true