changed order field to order_id
This commit is contained in:
@@ -9,7 +9,7 @@ import useUploadAttachment from "~/composables/api/tickets/useUploadAttachment";
|
||||
import { useToast } from "~/composables/global/useToast";
|
||||
import { QUERY_KEYS } from "~/constants";
|
||||
import useVuelidate from "@vuelidate/core";
|
||||
import { helpers, required, minLength, email } from "@vuelidate/validators";
|
||||
import { helpers, required, minLength } from "@vuelidate/validators";
|
||||
|
||||
// meta
|
||||
|
||||
@@ -66,7 +66,7 @@ const ticketCategories: TicketCategory[] = [
|
||||
|
||||
const ticketData = ref<CreateTicketRequest>({
|
||||
ticket_category: undefined,
|
||||
order: undefined,
|
||||
order_id: undefined,
|
||||
subject: "",
|
||||
content: "",
|
||||
attachments: [],
|
||||
@@ -234,21 +234,21 @@ const handleSubmit = async () => {
|
||||
<Select
|
||||
placeholder="انتخاب کنید"
|
||||
variant="outlined"
|
||||
v-model="ticketData.order"
|
||||
v-model="ticketData.order_id"
|
||||
:loading="ordersIsLoading"
|
||||
>
|
||||
<template #trigger>
|
||||
<SelectValue
|
||||
:class="
|
||||
ticketData.order
|
||||
ticketData.order_id
|
||||
? 'text-black'
|
||||
: 'text-slate-400'
|
||||
"
|
||||
class="font-iran-yekan-x text-sm text-start placeholder-slate-400"
|
||||
>
|
||||
{{
|
||||
ticketData.order
|
||||
? `شماره سفارش : ${ticketData.order}`
|
||||
ticketData.order_id
|
||||
? `شماره سفارش : ${ticketData.order_id}`
|
||||
: "وارد نشده"
|
||||
}}
|
||||
</SelectValue>
|
||||
@@ -338,6 +338,7 @@ const handleSubmit = async () => {
|
||||
<div class="w-full flex-center py-5">
|
||||
<Button
|
||||
@click="handleSubmit"
|
||||
:loading="createTicketIsPending || uploadAttachmentIsPending"
|
||||
class="rounded-full w-[14rem] h-11"
|
||||
size="md"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user