fix skit2

This commit is contained in:
hafifierahman
2021-12-16 22:25:18 +08:00
parent 162800ae8c
commit c4b893d809
9 changed files with 10554 additions and 112 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<div class="flex flex-row w-96 mx-auto">
<div class="flex flex-col w-96">
<input id="frminput" type="text" ref="btnDropdownRef" placeholder="Masukkan IC atau Nama" class="mr-2 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500" />
<input id="frminput" type="text" ref="btnDropdownRef" placeholder="Norujukan" class="mr-2 bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-blue-500" />
</div>
<button id="buttonsearch" class="px-4 py-2 bg-blue-600 rounded ml-2" v-on:click="toggleTable()"><i class="fas fa-search text-white"></i></button>
+1 -1
View File
@@ -45,7 +45,7 @@ Vue.use (Alpine)
Vue.use(VueCompositionAPI)
Vue.use(VueAxios, axios)
Vue.component('jw-pagination', JwPagination)
Vue.use(createPopper)
// Vue.use(createPopper)
Vue.use(Toast, options)
Vue.use(datetime)
Alpine.start()
@@ -22,12 +22,13 @@
Status
</label>
<div class="relative">
<select v-model="referencestatus" class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500">
<!-- <select v-model="referencestatus" class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500">
<option v-for="(stat,i) in status" :key="i">{{ stat }}</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
</div>
</div> -->
<input readonly class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:border-gray-500" v-model="referencestatus" type="text" placeholder="Paid">
</div>
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2 mt-3">
@@ -64,7 +65,7 @@ export default {
data() {
return {
showModal: false,
referencestatus: 'NOT PAID',
referencestatus: 'PAID',
status: [
'PAID',
'UNSUCCESSFUL',
+15 -1
View File
@@ -149,7 +149,6 @@ export default {
console.log('submit!')
this.$v.$touch()
if (this.$v.$invalid) {
// this.submitStatus = 'ERROR'
this.$toast.error('Sila isi butiran yang disediakan dengan betul!')
} else {
// do your submit logic here
@@ -159,6 +158,21 @@ export default {
this.$toast.success('Berjaya dikemaskini!')
}, 500)
}
},
PostData(){
this.axios.post('http://localhost:8000/api/customers/information/update/admin',
{
icno: icno,
ic_asal: ic_asal,
telefon1: telefon1,
telefon2: telefon2,
kodbank: kodbank,
noakaun: noakaun,
nota: nota,
nama: nama,
alamat: alamat,
poskod: poskod
});
}
},
validations: {
+3 -1
View File
@@ -15,5 +15,7 @@
</div>
</main>
</div>
@include('layouts.footer')
</div>
@endsection
@@ -3,7 +3,7 @@
@section('content')
<div class="bg-gray-900 opacity-50 hidden fixed inset-0 z-10" id="sidebarBackdrop"></div>
<div id="main-content" class="h-full w-full bg-gray-50 relative overflow-y-auto">
<main class="h-screen">
<main class="h-96">
<div class="pt-6 px-4">
@@ -9,6 +9,8 @@
<petibesi-component :petibesi="{{ json_encode($petibesi) }}"></petibesi-component>
</div>
</main>
@include('layouts.footer')
</div>
@endsection