Revenue/Payment js file enhancement and fixed show page delete button.
This commit is contained in:
parent
2507a86cb9
commit
de9a0603a7
@ -19,7 +19,7 @@ import BulkAction from './../../plugins/bulk-action';
|
||||
Vue.use(DashboardPlugin);
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
el: '#main-body',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
|
34
resources/assets/js/views/purchases/payments.js
vendored
34
resources/assets/js/views/purchases/payments.js
vendored
@ -1,34 +0,0 @@
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./../../bootstrap');
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
||||
|
||||
import Global from './../../mixins/global';
|
||||
|
||||
import Form from './../../plugins/form';
|
||||
import BulkAction from './../../plugins/bulk-action';
|
||||
|
||||
// plugin setup
|
||||
Vue.use(DashboardPlugin);
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
],
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
form: new Form('payment'),
|
||||
bulk_action: new BulkAction('payments'),
|
||||
}
|
||||
},
|
||||
});
|
34
resources/assets/js/views/sales/revenues.js
vendored
34
resources/assets/js/views/sales/revenues.js
vendored
@ -1,34 +0,0 @@
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./../../bootstrap');
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
||||
|
||||
import Global from './../../mixins/global';
|
||||
|
||||
import Form from './../../plugins/form';
|
||||
import BulkAction from './../../plugins/bulk-action';
|
||||
|
||||
// plugin setup
|
||||
Vue.use(DashboardPlugin);
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
],
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
form: new Form('revenue'),
|
||||
bulk_action: new BulkAction('revenues')
|
||||
}
|
||||
}
|
||||
});
|
@ -6,7 +6,7 @@
|
||||
<div class="card">
|
||||
{!! Form::open([
|
||||
'route' => 'payments.store',
|
||||
'id' => 'payment',
|
||||
'id' => 'transaction',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||
'files' => true,
|
||||
@ -56,5 +56,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
@ -27,7 +27,7 @@
|
||||
'files' => true,
|
||||
'route' => ['payments.update', $payment->id],
|
||||
'role' => 'form',
|
||||
'id' => 'payment',
|
||||
'id' => 'transaction',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||
'class' => 'form-loading-button',
|
||||
@ -80,5 +80,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
@ -125,5 +125,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/purchases/payments.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div class="card">
|
||||
{!! Form::open([
|
||||
'route' => 'revenues.store',
|
||||
'id' => 'revenue',
|
||||
'id' => 'transaction',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||
'files' => true,
|
||||
@ -56,5 +56,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
@ -27,7 +27,7 @@
|
||||
'files' => true,
|
||||
'route' => ['revenues.update', $revenue->id],
|
||||
'role' => 'form',
|
||||
'id' => 'revenue',
|
||||
'id' => 'transaction',
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||
'class' => 'form-loading-button',
|
||||
@ -80,5 +80,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
@ -125,5 +125,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts_start')
|
||||
<script src="{{ asset('public/js/sales/revenues.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/js/banking/transactions.js?v=' . version('short')) }}"></script>
|
||||
@endpush
|
||||
|
2
webpack.mix.js
vendored
2
webpack.mix.js
vendored
@ -46,11 +46,9 @@ mix
|
||||
.js('resources/assets/js/views/common/reports.js', 'public/js/common')
|
||||
|
||||
// Sales
|
||||
.js('resources/assets/js/views/sales/revenues.js', 'public/js/sales')
|
||||
.js('resources/assets/js/views/sales/customers.js', 'public/js/sales')
|
||||
|
||||
// Purchases
|
||||
.js('resources/assets/js/views/purchases/payments.js', 'public/js/purchases')
|
||||
.js('resources/assets/js/views/purchases/vendors.js', 'public/js/purchases')
|
||||
|
||||
// Install
|
||||
|
Loading…
x
Reference in New Issue
Block a user