update stokaudit
This commit is contained in:
@@ -36,10 +36,18 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-end mt-10">
|
<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="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">
|
||||||
<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>
|
<i class="fas fa-file-pdf mr-2"></i>PDF
|
||||||
|
</button>
|
||||||
|
<button @click.prevent="generateview" 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-eye mr-2"></i>View
|
||||||
|
</button>
|
||||||
|
<button @click.prevent="generateexcel" class="border border-green-600 text-green-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-green-600 hover:text-white transition-all duration-300">
|
||||||
|
<i class="fas fa-file-excel mr-2"></i>Excel
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -67,40 +75,50 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async generatepdf(){
|
async generatepdf(){
|
||||||
await this.setJenis('pdf');
|
await this.setJenis('pdf');
|
||||||
|
Vue.swal({
|
||||||
Vue.swal({
|
title: 'Memuatkan...',
|
||||||
title: 'Memuatkan...',
|
allowEscapeKey : false,
|
||||||
allowEscapeKey : false,
|
allowOutsideClick: false,
|
||||||
allowOutsideClick: false,
|
showCancelButton: false,
|
||||||
showCancelButton: false,
|
showConfirmButton: false,
|
||||||
showConfirmButton: false,
|
timer: 8000,
|
||||||
timer: 8000,
|
});
|
||||||
});
|
document.getElementById("formstokaudit").submit();
|
||||||
document.getElementById("formstokaudit").submit();
|
},
|
||||||
},
|
async generateview(){
|
||||||
async generateview(){
|
await this.setJenis('view');
|
||||||
await this.setJenis('view');
|
Vue.swal({
|
||||||
|
title: 'Memuatkan...',
|
||||||
Vue.swal({
|
allowEscapeKey : false,
|
||||||
title: 'Memuatkan...',
|
allowOutsideClick: false,
|
||||||
allowEscapeKey : false,
|
showCancelButton: false,
|
||||||
allowOutsideClick: false,
|
showConfirmButton: false,
|
||||||
showCancelButton: false,
|
timer: 8000,
|
||||||
showConfirmButton: false,
|
});
|
||||||
timer: 8000,
|
document.getElementById("formstokaudit").submit();
|
||||||
|
},
|
||||||
});
|
async generateexcel(){
|
||||||
document.getElementById("formstokaudit").submit();
|
await this.setJenis('excel');
|
||||||
},
|
Vue.swal({
|
||||||
Urlredirect: function() {
|
title: 'Memuatkan...',
|
||||||
return window.route('cetak.stokaudit')
|
allowEscapeKey : false,
|
||||||
},
|
allowOutsideClick: false,
|
||||||
setJenis: function(value){
|
showCancelButton: false,
|
||||||
return this.jenisgenerate = value;
|
showConfirmButton: false,
|
||||||
}
|
timer: 8000,
|
||||||
|
});
|
||||||
|
document.getElementById("formstokaudit").submit();
|
||||||
|
},
|
||||||
|
Urlredirect: function() {
|
||||||
|
return window.route('cetak.stokaudit');
|
||||||
|
},
|
||||||
|
setJenis: function(value){
|
||||||
|
return this.jenisgenerate = value;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user