You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Common/components/Transaction/Add.vue

144 lines
8.1 KiB

<!-- --------------------------------------------------------------------
Add Event Modal
-------------------------------------------------------------------- -->
<template>
<v-dialog v-model="$store.state.TransactionAdd" width="60%" transition="slide-x-transition">
<v-card class="RTL">
<v-card-title class=" grey lighten-3" primary-title>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" افزودن تراکنش مالی " TitleEn=" Add a Transaction " Color="black"></WM-PartTitle>
</v-card-title>
<v-card-text>
<v-layout row wrap class="WM-Section" style="border-right-color: #000;">
<v-flex lg3>
5 years ago
<v-card-text class="hasConfig">
<v-autocomplete prepend-icon="fas fa-align-right" :items="transactionTypes" color="black" item-text="name" label=" عنوان تراکنش "></v-autocomplete>
5 years ago
<v-tooltip bottom color="black">
<v-btn class="XS" @click.native="$store.state.ConfigTrasnactionTypeList = true" slot="activator" outline fab color="black" dark>
<v-icon dark>fas fa-pencil-alt</v-icon>
</v-btn>
<span> ویرایش دسته ها </span>
</v-tooltip>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field class="LTR" :mask="mask" label=" مبلغ پرداختی - تومان" color="cyan" prepend-icon="fas fa-credit-card" ></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-card-text>
<v-text-field class="LTR" :mask="mask" label=" مبلغ بدهی - تومان " color="red" prepend-icon="fas fa-credit-card" ></v-text-field>
</v-card-text>
</v-flex>
<v-flex lg3>
<v-radio-group row>
<v-radio class="Fa" color="red" label=" نقدی " value="cash"></v-radio>
<v-radio class="Fa" color="red" label=" کارت خوان " value="pos"></v-radio>
<v-radio class="Fa" color="red" label=" کارت به کارت " value="transfer"></v-radio>
<v-radio class="Fa" color="red" label=" چک " value="check"></v-radio>
</v-radio-group>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #BDBDBD;">
<v-flex xs12 sm4 md2>
<v-card-text>
<v-menu :close-on-content-click="false" v-model="transactionDate" :nudge-right="40" lazy transition="slide-y-transition" offset-y full-width min-width="290px">
<v-text-field slot="activator" v-model="date" label=" تاریخ انجام تراکنش " prepend-icon="fas fa-calendar-alt" color="black" readonly></v-text-field>
<v-date-picker v-model="date" @input="transactionDate = false" color="black" locale="fa-ir"></v-date-picker>
</v-menu>
</v-card-text>
</v-flex>
<v-flex xs12 sm4 md2>
<v-card-text>
<v-menu ref="clientTimeMenu" v-model="transactionTimeMenu" :close-on-content-click="false" :nudge-right="40" :return-value.sync="transactionTime" lazy transition="slide-y-transition" offset-y full-width max-width="290px" min-width="290px">
<template v-slot:activator="{ on }">
<v-text-field v-model="transactionTime" label=" ساعت انجام تراکنش " prepend-icon="fas fa-clock" class="text-lg-center" readonly color="black" v-on="on"></v-text-field>
</template>
<v-time-picker class="LTR" v-if="transactionTimeMenu" v-model="transactionTime" color="black" full-width @click:minute="$refs.transactionTimeMenu.save(transactionTime)" locale="fa-ir"></v-time-picker>
</v-menu>
</v-card-text>
</v-flex>
<v-flex md12>
<v-textarea name="input-7-1" label=" توضیحات تراکنش " value="" hint="حداکثر 2500 کاراکتر " color="black" prepend-icon="fas fa-quote-right"></v-textarea>
</v-flex>
</v-layout>
<v-layout row wrap class="WM-Section" style="border-right-color: #E0E0E0; position:relative; padding: 0px 15px;">
<v-flex md12 class="text-lg-right" mt-2> اگر مایل هستید، آیتم های دریافت شده توسط مشتری به ازای مبلغ پرداخت شده را، لیست کنید </v-flex>
<v-card-text class="Duplicate">
<v-layout row wrap pl-2>
<v-flex lg3>
<v-text-field label=" نام آیتم " color="cyan" prepend-icon="fas fa-info"></v-text-field>
</v-flex>
<v-flex lg2>
<v-text-field label=" تعداد " color="cyan" prepend-icon="fas fa-sort-numeric-up"></v-text-field>
</v-flex>
<v-flex lg2>
<v-text-field label=" قیمت " color="cyan" prepend-icon="fas fa-credit-card"></v-text-field>
</v-flex>
<v-flex lg5>
<v-text-field label=" توضیحات " color="cyan" prepend-icon="fas fa-quote-right"></v-text-field>
</v-flex>
<v-btn fab color="cyan" fixed bottom left dark style="left:15px; bottom:-25px; position:absolute"><v-icon dark>fas fa-plus</v-icon></v-btn>
<v-btn fab small color="red" fixed bottom left dark style="left:-5px; top:-20px; position:absolute"><v-icon dark>fas fa-times</v-icon></v-btn>
</v-layout>
</v-card-text>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="black" depressed dark @click="$store.state.TransactionAdd = false">
<v-icon dark right>fas fa-plus</v-icon> ثبت تراکنش
</v-btn>
</v-card-actions>
</v-card>
5 years ago
<!-- --------------------------------------------------------------------
Modals :: BEGIN
-------------------------------------------------------------------- -->
<template>
<div class="text-xs-center">
<wm-transaction-types-edit></wm-transaction-types-edit>
</div>
</template>
<!-- --------------------------------------------------------------------
Modals :: END
-------------------------------------------------------------------- -->
</v-dialog>
</template>
<script>
5 years ago
import TypesEdit from "@Common/components/Transaction/Config/Type/Modal-Layout.vue";
export default {
5 years ago
components: {
'wm-transaction-types-edit' : TypesEdit,
},
props: {
Color: { default: 'grey darken-4' },
},
data () {
return {
mask: '###,###,###,###',
transactionTypes: [
{ name: ' حق ویزیت ', id: 1 },
{ name: ' بوتاکس ', id: 2 },
{ name: ' لایه برداری ', id: 3 },
],
date: new Date().toISOString().substr(0, 10),
transactionDate: false,
transactionTime: '12:00',
transactionTimeMenu: false,
}
}
};
</script>