progress in cheque

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

View file

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