progress in cheque

This commit is contained in:
Hesabix 2025-04-05 22:25:49 +00:00
parent 98785231a7
commit 3908830417

View file

@ -1,5 +1,5 @@
<template> <template>
<v-toolbar color="toolbar" :title="$route.params.id ? 'ویرایش چک دریافتی' : 'ثبت چک دریافتی'"> <v-toolbar color="toolbar" :title="$route.params.id ? 'ویرایش چک دریافتی' : 'ثبت چک دریافتی'">
<template v-slot:prepend> <template v-slot:prepend>
<v-tooltip :text="$t('dialog.back')" location="bottom"> <v-tooltip :text="$t('dialog.back')" location="bottom">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
@ -11,72 +11,48 @@
<template v-slot:append> <template v-slot:append>
<v-tooltip :text="$route.params.id ? 'ویرایش' : 'ثبت'" location="bottom"> <v-tooltip :text="$route.params.id ? 'ویرایش' : 'ثبت'" location="bottom">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<v-btn <v-btn v-bind="props" color="success" @click="submitForm" :loading="loading" icon="mdi-content-save" />
v-bind="props"
color="success"
@click="submitForm"
:loading="loading"
icon="mdi-content-save"
/>
</template> </template>
</v-tooltip> </v-tooltip>
</template> </template>
</v-toolbar> </v-toolbar>
<v-card> <v-container>
<v-card-title class="text-h5"> <v-row>
{{ $route.params.id ? 'ویرایش چک دریافتی' : 'ثبت چک دریافتی' }} <v-col cols="12">
</v-card-title> <v-form @submit.prevent="submitForm">
<v-row>
<v-col cols="12" md="6">
<Hpersonsearch v-model="form.personId" label="شخص" :rules="[v => !!v || 'شخص الزامی است']" required>
</Hpersonsearch>
</v-col>
<v-col cols="12" md="6">
<v-text-field v-model="form.chequeNumber" label="شماره چک" :rules="[v => !!v || 'شماره چک الزامی است']"
required></v-text-field>
</v-col>
<v-card-text> <v-col cols="12" md="6">
<v-form @submit.prevent="submitForm"> <v-text-field v-model="form.bankName" label="نام بانک" :rules="[v => !!v || 'نام بانک الزامی است']"
<v-row> required></v-text-field>
<v-col cols="12" md="6"> </v-col>
<Hpersonsearch v-model="form.personId" label="شخص" :rules="[v => !!v || 'شخص الزامی است']" required></Hpersonsearch>
</v-col>
<v-col cols="12" md="6">
<v-text-field
v-model="form.chequeNumber"
label="شماره چک"
:rules="[v => !!v || 'شماره چک الزامی است']"
required
></v-text-field>
</v-col>
<v-col cols="12" md="6"> <v-col cols="12" md="6">
<v-text-field <v-text-field v-model="form.amount" label="مبلغ" type="number" :rules="[v => !!v || 'مبلغ الزامی است']"
v-model="form.bankName" required></v-text-field>
label="نام بانک" </v-col>
:rules="[v => !!v || 'نام بانک الزامی است']"
required
></v-text-field>
</v-col>
<v-col cols="12" md="6"> <v-col cols="12" md="6">
<v-text-field <Hdatepicker v-model="form.dueDate" label="تاریخ سررسید" :rules="[v => !!v || 'تاریخ سررسید الزامی است']"
v-model="form.amount" required></Hdatepicker>
label="مبلغ" </v-col>
type="number"
:rules="[v => !!v || 'مبلغ الزامی است']"
required
></v-text-field>
</v-col>
<v-col cols="12" md="6"> <v-col cols="12">
<Hdatepicker v-model="form.dueDate" label="تاریخ سررسید" :rules="[v => !!v || 'تاریخ سررسید الزامی است']" <v-textarea v-model="form.description" label="توضیحات" rows="3"></v-textarea>
required></Hdatepicker> </v-col>
</v-col> </v-row>
</v-form>
<v-col cols="12"> </v-col>
<v-textarea </v-row>
v-model="form.description" </v-container>
label="توضیحات"
rows="3"
></v-textarea>
</v-col>
</v-row>
</v-form>
</v-card-text>
</v-card>
</template> </template>
<script> <script>