From 265ac073e30a1ab156db161eb7d45439b581480a Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Wed, 1 Jun 2022 11:01:37 +0800 Subject: [PATCH] fix --- resources/js/Permohonan/RekodMohon.vue | 2 +- resources/js/Permohonan/SenaraiMohon.vue | 28 ++++++++++++++++-- resources/js/Permohonan/StatusMohon.vue | 36 ++++++++++++++---------- resources/js/app.js | 6 ++-- resources/js/components/Cawangan.vue | 4 +-- 5 files changed, 52 insertions(+), 24 deletions(-) diff --git a/resources/js/Permohonan/RekodMohon.vue b/resources/js/Permohonan/RekodMohon.vue index e3a3f9d..7288fac 100644 --- a/resources/js/Permohonan/RekodMohon.vue +++ b/resources/js/Permohonan/RekodMohon.vue @@ -5,7 +5,7 @@ - +
diff --git a/resources/js/Permohonan/SenaraiMohon.vue b/resources/js/Permohonan/SenaraiMohon.vue index 1d3ad97..c7fa3c2 100644 --- a/resources/js/Permohonan/SenaraiMohon.vue +++ b/resources/js/Permohonan/SenaraiMohon.vue @@ -28,7 +28,13 @@ - PetiBesi (RM) + Baki Peti Besi (RM) + + + + + + Outstanding (RM) @@ -115,6 +121,22 @@ + + +
+ +
+ +

+ +

+ +
+ +
+ + +
@@ -271,7 +293,7 @@

- Telah Lulus + Telah disahkan

@@ -283,7 +305,7 @@

- DALAM PROCESS + DALAM PROSES

diff --git a/resources/js/Permohonan/StatusMohon.vue b/resources/js/Permohonan/StatusMohon.vue index 9f18c5d..3a155b3 100644 --- a/resources/js/Permohonan/StatusMohon.vue +++ b/resources/js/Permohonan/StatusMohon.vue @@ -2,7 +2,7 @@
- +
@@ -13,7 +13,7 @@
JUMLAH MOHON : RM {{ formatterfunction(this.permohonan.amaun_mohon) }}
- {{ this.permohonan.jenismohon }} + {{ (this.permohonan.jenismohon == 'permohonanwang') ? 'Permohonan Wang' : 'Bayaran Balik' }}
@@ -254,47 +254,46 @@

- {{ status.description }}
{{ 'NAMA PEMOHON : ' + status[0].nama_pemohon }} + {{ status.description }}
{{ 'Nama : ' + pembesarannama(status[0].nama_pemohon) }}

- {{ status.description }}
{{ 'NAMA OPERASI : ' + status[0].nama_operasi }} + {{ status.description }}
{{ 'Nama : ' + pembesarannama(status[0].nama_operasi) }}

- {{ status.description }}
{{ 'NAMA AKAUN : ' + status[0].nama_akaun }} + {{ status.description }}
{{ 'Nama : ' + pembesarannama(status[0].nama_akaun) }}

- {{ status.description }}
{{ 'JUMLAH DILULUSKAN : RM ' + formatterfunction(status[0].jumlah_diluluskan) }} + {{ status.description }}
{{ 'Jumlah Diluluskan : RM ' + formatterfunction(status[0].jumlah_diluluskan) }}

-
+
{{ status.description }}
- {{ 'JENIS BANK : ' + status[0].jenisbank }} - {{ 'JENIS CIT : ' + status[0].jeniscit }} + {{ 'Nama Bank : ' + status[0].jenisbank }} + {{ 'Kaedah Penghantaran : ' + status[0].jeniscit }}
-
- {{ 'NO RESIT :' + status[0].noresit }} - {{ 'NAMA SYARIKAT :' + status[0].namasyarikat }} + {{ 'No Rujukan :' + status[0].noresit }} + {{ 'Nota :' + status[0].namasyarikat }}

- {{ status.description }}
{{ 'NAMA PENERIMA : ' + status[0].nama_penerima }} + {{ status.description }}
{{ 'Nama : ' + pembesarannama(status[0].nama_penerima) }}

- {{ status.description }}
{{ 'KOMEN : ' + status[0].komen }} + {{ status.description }}
{{ 'Komen : ' + status[0].komen }}

- {{ status.description }}
{{ 'JENIS BANK : ' + status[0].jenisbank }} + {{ status.description }}
{{ 'Nama Bank : ' + status[0].jenisbank }}
@@ -480,6 +479,13 @@ export default { }, downloadpb(pbid) { window.open('/api/check/muatturun?files_id=' + pbid, '_blank'); + }, + pembesarannama(value){ + const str = value.toLowerCase().replace(/\b[a-z]/g, function(response) { + return response.toUpperCase(); + }); + + return str; } } } diff --git a/resources/js/app.js b/resources/js/app.js index 5e87610..39b04f7 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -119,18 +119,18 @@ Vue.use(require('vue-pusher'), { } }); -Vue.prototype.$api1 = 'http://api.arrahn' +Vue.prototype.$api1 = 'http://localhost:8000' Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content'); Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content'); let initial = 'KB2'; -let initialhostname = 'http://api.arrahn'; +let initialhostname = 'http://localhost:8000'; const store = new Vuex.Store({ state: { $kodcaw: 'KB2', - $hostname: 'http://api.arrahn' + $hostname: 'http://localhost:8000' }, plugins: [createPersistedState()], mutations: { diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue index 2f4c63a..30ff797 100644 --- a/resources/js/components/Cawangan.vue +++ b/resources/js/components/Cawangan.vue @@ -84,7 +84,7 @@ case 'JLI': case 'ARP': case '020303':{ - this.sethostname('http://api.arrahn') + this.sethostname('http://localhost:8000') break; } case '010621': @@ -114,7 +114,7 @@ this.sethostname('http://api3.arrahn') break; } - default: this.sethostname('http://api.arrahn') + default: this.sethostname('http://localhost:8000') break; } }