adding serahmarhun dan serahpetibesi
This commit is contained in:
@@ -128,6 +128,16 @@
|
||||
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Akru Bulanan</h2>
|
||||
</router-link>
|
||||
</div>
|
||||
<div class="bg-white ml-2 shadow border border-solid px-6 py-4 rounded-lg hover:bg-yellow-300 hover:transition-all mb-2 cursor-pointer">
|
||||
<router-link to="/akaunhome/serahgadai">
|
||||
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Serah Marhun Gadai </h2>
|
||||
</router-link>
|
||||
</div>
|
||||
<div class="bg-white ml-2 shadow border border-solid px-6 py-4 rounded-lg hover:bg-yellow-300 hover:transition-all mb-2 cursor-pointer">
|
||||
<router-link to="/akaunhome/serahtebus">
|
||||
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Serah Marhun Tebus</h2>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
|
||||
<div class="flex w-full">
|
||||
<div class="xl:w-2/3 2xl:w-1/2 p-8 mx-auto">
|
||||
<div class="bg-yellow-600 text-gray-200 text-lg px-6 py-4 rounded-t-lg">
|
||||
<router-link to="/akaunhome">
|
||||
<i class="fas fa-backspace text-white"></i>
|
||||
</router-link>
|
||||
|
||||
<span class="text-center mx-auto text-white font-bold">Laporan Serahan Gadai</span>
|
||||
</div>
|
||||
<form method="get" id="formserahgadai" :action="Urlredirect()" target="_blank">
|
||||
<div class="rounded bg-white shadow p-6">
|
||||
<div class="pb-6">
|
||||
<div class="flex justify-center mb-4">
|
||||
<input :value="jenisgenerate" type="hidden" name="jenis" />
|
||||
<input :value="$kodcaw" name="kodcaw" hidden/>
|
||||
<input :value="$hostname" name="hostname" hidden/>
|
||||
<span style="background-color: #F9FAFB" class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap">Mula</span>
|
||||
<input id="tarikhmula" name="datemula" class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2" type="date" />
|
||||
<span style="background-color: #F9FAFB" class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap">Hingga</span>
|
||||
<input id="tarikhhingga" name="datehingga" class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2" type="date" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-10">
|
||||
<button @click.prevent="generatepdf" class=" mr-2 border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300"><i class="fas fa-file-pdf mr-2"></i>PDF</button>
|
||||
<button @click.prevent="generateview" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300"><i class="fas fa-eye mr-2"></i>View</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
jenisgenerate:'none',
|
||||
kodcaw:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async generatepdf(){
|
||||
await this.setJenis('pdf');
|
||||
|
||||
|
||||
Vue.swal({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
timer: 8000,
|
||||
});
|
||||
|
||||
document.getElementById("formserahgadai").submit();
|
||||
},
|
||||
async generateview(){
|
||||
await this.setJenis('view');
|
||||
|
||||
|
||||
Vue.swal({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
timer: 8000,
|
||||
});
|
||||
|
||||
document.getElementById("formserahgadai").submit();
|
||||
},
|
||||
Urlredirect: function() {
|
||||
return window.route('cetak.serahgadai')
|
||||
},
|
||||
setJenis: function(value){
|
||||
return this.jenisgenerate = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,86 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
|
||||
<div class="flex w-full">
|
||||
<div class="xl:w-2/3 2xl:w-1/2 p-8 mx-auto">
|
||||
<div class="bg-yellow-600 text-gray-200 text-lg px-6 py-4 rounded-t-lg">
|
||||
<router-link to="/akaunhome">
|
||||
<i class="fas fa-backspace text-white"></i>
|
||||
</router-link>
|
||||
|
||||
<span class="text-center mx-auto text-white font-bold">Laporan Serahan Tebus</span>
|
||||
</div>
|
||||
<form method="get" id="formserahtebus" :action="Urlredirect()" target="_blank">
|
||||
<div class="rounded bg-white shadow p-6">
|
||||
<div class="pb-6">
|
||||
<div class="flex justify-center mb-4">
|
||||
<input :value="jenisgenerate" type="hidden" name="jenis" />
|
||||
<input :value="$kodcaw" name="kodcaw" hidden/>
|
||||
<input :value="$hostname" name="hostname" hidden/>
|
||||
<span style="background-color: #F9FAFB" class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap">Mula</span>
|
||||
<input id="tarikhmula" name="datemula" class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2" type="date" />
|
||||
<span style="background-color: #F9FAFB" class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap">Hingga</span>
|
||||
<input id="tarikhhingga" name="datehingga" class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2" type="date" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-10">
|
||||
<button @click.prevent="generatepdf" class=" mr-2 border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300"><i class="fas fa-file-pdf mr-2"></i>PDF</button>
|
||||
<button @click.prevent="generateview" class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300"><i class="fas fa-eye mr-2"></i>View</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
jenisgenerate:'none',
|
||||
kodcaw:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async generatepdf(){
|
||||
await this.setJenis('pdf');
|
||||
|
||||
|
||||
Vue.swal({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
timer: 8000,
|
||||
});
|
||||
|
||||
document.getElementById("formserahtebus").submit();
|
||||
},
|
||||
async generateview(){
|
||||
await this.setJenis('view');
|
||||
|
||||
|
||||
Vue.swal({
|
||||
title: 'Memuatkan...',
|
||||
allowEscapeKey : false,
|
||||
allowOutsideClick: false,
|
||||
showCancelButton: false,
|
||||
showConfirmButton: false,
|
||||
timer: 8000,
|
||||
});
|
||||
|
||||
document.getElementById("formserahtebus").submit();
|
||||
},
|
||||
Urlredirect: function() {
|
||||
return window.route('cetak.serahtebus')
|
||||
},
|
||||
setJenis: function(value){
|
||||
return this.jenisgenerate = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -608,7 +608,13 @@ export default {
|
||||
confirmButtonText: 'Hantar',
|
||||
showCancelButton: true,
|
||||
cancelButtonText: 'Batal',
|
||||
allowOutsideClick: false
|
||||
allowOutsideClick: false,
|
||||
inputValidator: (value) => {
|
||||
|
||||
if (!value) {
|
||||
return 'Isikan tempat kosong diatas!'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (katalaluan !== undefined)
|
||||
@@ -626,6 +632,21 @@ export default {
|
||||
confirmButtonText: 'Muat Naik',
|
||||
input: 'file',
|
||||
allowOutsideClick: false,
|
||||
inputValidator: (value) => {
|
||||
|
||||
var fileTypes = ['jpg', 'jpeg', 'png'];
|
||||
|
||||
if (value) {
|
||||
var extension = value.name.split('.').pop().toLowerCase(),
|
||||
isSuccess = fileTypes.indexOf(extension) > -1;
|
||||
if(!isSuccess){
|
||||
return 'file hanya boleh diupload untuk jpg,jpeg,png dan pdf sahaja!'
|
||||
}
|
||||
}else{
|
||||
return 'masukkan file upload!'
|
||||
|
||||
}
|
||||
},
|
||||
willOpen: () => {
|
||||
$(".swal2-file").change(function () {
|
||||
var reader = new FileReader();
|
||||
@@ -719,7 +740,7 @@ export default {
|
||||
text: 'Kata Laluan Yang Dimasukkan Salah!!',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
getSenaraiMohon(this.currentPage);
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -729,7 +750,6 @@ export default {
|
||||
let refer = this;
|
||||
|
||||
this.axios.get(this.$hostname + '/admin/permohonan/get/' + caw + '/' + mid).then(response => {
|
||||
console.log(response.data.tagprint);
|
||||
if (response.data.tagprint !== 1) {
|
||||
this.axios.put(this.$hostname + '/admin/permohonan/updatecetak', {
|
||||
mohonid: mid,
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
</li>
|
||||
</ul> -->
|
||||
|
||||
<h1 class="font-bold p-2">Tetapan Semakan Barcode</h1>
|
||||
|
||||
<div id="tabs-1" v-if="this.showprofile">
|
||||
|
||||
<table class="min-w-full leading-normal">
|
||||
@@ -22,13 +24,13 @@
|
||||
Norujukan
|
||||
</th>
|
||||
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
||||
Pembiayaan
|
||||
Pembiayaan (RM)
|
||||
</th>
|
||||
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
||||
Cetak
|
||||
Tarikh Gadai
|
||||
</th>
|
||||
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
||||
Serah
|
||||
Cetakan Penilai
|
||||
</th>
|
||||
<th class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
|
||||
Semak Barcode
|
||||
@@ -70,7 +72,7 @@
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="ml-3">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="barcode.pinjaman">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="formatexchange(barcode.pinjaman)">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,7 +80,7 @@
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="ml-3">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="barcode.cetak">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="barcode.t_gadai">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,7 +88,7 @@
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="ml-3">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="barcode.tagserah">
|
||||
<p class="font-bold whitespace-no-wrap p-2 rounded-lg" :class="{ 'text-green-600 bg-green-200': barcode.cetak == 1, 'text-red-600 bg-red-200': barcode.cetak == 0 }" v-text="(barcode.cetak == 1) ? 'Telah Dicetak' : 'Belum Dicetak'">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,7 +96,7 @@
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="ml-3">
|
||||
<p class="text-gray-900 whitespace-no-wrap" v-text="barcode.semakbarcode">
|
||||
<p class="font-bold whitespace-no-wrap p-2 rounded-lg" :class="{ 'text-green-600 bg-green-200': barcode.semakbarcode == 'Lulus', 'text-red-600 bg-red-200': barcode.semakbarcode == 'Tidak Lulus' }" v-text="(barcode.semakbarcode == 'Lulus') ? 'Telah Scan' : 'Belum Scan'">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,6 +129,10 @@
|
||||
<script>
|
||||
import pagination from '../components/pagination.vue'
|
||||
|
||||
const formatter = new Intl.NumberFormat('en-US', {
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
|
||||
export default {
|
||||
components: {
|
||||
pagination,
|
||||
@@ -143,6 +149,9 @@ export default {
|
||||
this.getBarcodeData(this.currentPage);
|
||||
},
|
||||
methods: {
|
||||
formatexchange: function(value){
|
||||
return formatter.format(value)
|
||||
},
|
||||
getBarcodeData: function (pageNumber) {
|
||||
this.axios.get(this.$hostname + '/admin/tetapan/listbarcode/', {
|
||||
params: {
|
||||
@@ -181,8 +190,13 @@ export default {
|
||||
confirmButtonText: 'Hantar',
|
||||
showCancelButton: true,
|
||||
cancelButtonText: 'Batal',
|
||||
allowOutsideClick: false
|
||||
})
|
||||
allowOutsideClick: false,
|
||||
inputValidator: (value) => {
|
||||
if (!value) {
|
||||
return 'Isikan tempat kosong diatas!'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (katalaluan !== undefined) {
|
||||
await this.axios.get('/mintasemulakelulusan', {
|
||||
@@ -210,11 +224,17 @@ export default {
|
||||
|
||||
});
|
||||
} else {
|
||||
|
||||
this.$swal({
|
||||
icon: 'error',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Kata Laluan dimasukkan Salah!',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getBarcodeData(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Vendored
+5
@@ -22,6 +22,9 @@ import Aging from './Akaun/Aging'
|
||||
import PetiBesi from './Akaun/PetiBesi'
|
||||
import AkruBulan from './Akaun/AkruBulan'
|
||||
import Prestasi from './Akaun/Prestasi'
|
||||
import SerahGadai from './Akaun/SerahGadai'
|
||||
import SerahTebus from './Akaun/SerahTebus'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -77,6 +80,8 @@ export default new VueRouter({
|
||||
{ path: '/akaunhome/PetiBesi', component: PetiBesi },
|
||||
{ path: '/akaunhome/prestasi', component: Prestasi },
|
||||
{ path: '/akaunhome/akrubulan', component: AkruBulan },
|
||||
{ path: '/akaunhome/serahgadai', component: SerahGadai },
|
||||
{ path: '/akaunhome/serahtebus', component: SerahTebus },
|
||||
|
||||
|
||||
{ path: '/bajet/kemaskini', component: SenaraiBajet },
|
||||
|
||||
Reference in New Issue
Block a user