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> <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-card-text>
<v-form @submit.prevent="submitForm"> <v-form @submit.prevent="submitForm">
<v-row> <v-row>
<v-col cols="12" md="6"> <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>
<v-col cols="12" md="6"> <v-col cols="12" md="6">
<v-text-field <v-text-field v-model="form.chequeNumber" label="شماره چک" :rules="[v => !!v || 'شماره چک الزامی است']"
v-model="form.chequeNumber" required></v-text-field>
label="شماره چک"
:rules="[v => !!v || 'شماره چک الزامی است']"
required
></v-text-field>
</v-col> </v-col>
<v-col cols="12" md="6"> <v-col cols="12" md="6">
<v-text-field <v-text-field v-model="form.bankName" label="نام بانک" :rules="[v => !!v || 'نام بانک الزامی است']"
v-model="form.bankName" required></v-text-field>
label="نام بانک"
:rules="[v => !!v || 'نام بانک الزامی است']"
required
></v-text-field>
</v-col> </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.amount" required></v-text-field>
label="مبلغ"
type="number"
:rules="[v => !!v || 'مبلغ الزامی است']"
required
></v-text-field>
</v-col> </v-col>
<v-col cols="12" md="6"> <v-col cols="12" md="6">
@ -67,16 +46,13 @@
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
<v-textarea <v-textarea v-model="form.description" label="توضیحات" rows="3"></v-textarea>
v-model="form.description"
label="توضیحات"
rows="3"
></v-textarea>
</v-col> </v-col>
</v-row> </v-row>
</v-form> </v-form>
</v-card-text> </v-col>
</v-card> </v-row>
</v-container>
</template> </template>
<script> <script>