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
+10483 -35
View File
File diff suppressed because it is too large Load Diff
+33 -58
View File
@@ -19325,6 +19325,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
//
//
//
//
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
name: "modal",
@@ -19334,7 +19335,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
data: function data() {
return {
showModal: false,
referencestatus: 'NOT PAID',
referencestatus: 'PAID',
status: ['PAID', 'UNSUCCESSFUL', 'NOT PAID'],
statusid: 0,
datepaidat: ''
@@ -19753,7 +19754,6 @@ __webpack_require__.r(__webpack_exports__);
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
@@ -19764,6 +19764,20 @@ __webpack_require__.r(__webpack_exports__);
_this4.$toast.success('Berjaya dikemaskini!');
}, 500);
}
},
PostData: function 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: {
@@ -19823,7 +19837,6 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! jw-vue-pagination */ "./node_modules/jw-vue-pagination/lib/JwPagination.js");
/* harmony import */ var jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @popperjs/core */ "./node_modules/@popperjs/core/lib/popper.js");
/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/esm/index.js");
/* harmony import */ var vue_toastification_dist_index_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-toastification/dist/index.css */ "./node_modules/vue-toastification/dist/index.css");
/* harmony import */ var _routes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./routes */ "./resources/js/routes.js");
@@ -19871,8 +19884,8 @@ vue__WEBPACK_IMPORTED_MODULE_9__["default"].use((vue_apexcharts__WEBPACK_IMPORTE
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"]);
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(_vue_composition_api__WEBPACK_IMPORTED_MODULE_11__["default"]);
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vue_axios__WEBPACK_IMPORTED_MODULE_2__["default"], (axios__WEBPACK_IMPORTED_MODULE_3___default()));
vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('jw-pagination', (jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default()));
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(_popperjs_core__WEBPACK_IMPORTED_MODULE_12__.createPopper);
vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('jw-pagination', (jw_vue_pagination__WEBPACK_IMPORTED_MODULE_4___default())); // Vue.use(createPopper)
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vue_toastification__WEBPACK_IMPORTED_MODULE_5__["default"], options);
vue__WEBPACK_IMPORTED_MODULE_9__["default"].use(vuejs_datetimepicker__WEBPACK_IMPORTED_MODULE_8__["default"]);
alpinejs__WEBPACK_IMPORTED_MODULE_1__["default"].start();
@@ -71531,7 +71544,7 @@ var render = function () {
attrs: {
id: "frminput",
type: "text",
placeholder: "Masukkan IC atau Nama",
placeholder: "Norujukan",
},
}),
]),
@@ -74884,9 +74897,7 @@ var render = function () {
),
_vm._v(" "),
_c("div", { staticClass: "relative" }, [
_c(
"select",
{
_c("input", {
directives: [
{
name: "model",
@@ -74896,58 +74907,22 @@ var render = function () {
},
],
staticClass:
"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",
"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",
attrs: {
readonly: "",
type: "text",
placeholder: "Paid",
},
domProps: { value: _vm.referencestatus },
on: {
change: function ($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function (o) {
return o.selected
})
.map(function (o) {
var val =
"_value" in o ? o._value : o.value
return val
})
_vm.referencestatus = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
input: function ($event) {
if ($event.target.composing) {
return
}
_vm.referencestatus = $event.target.value
},
},
},
_vm._l(_vm.status, function (stat, i) {
return _c("option", { key: i }, [
_vm._v(_vm._s(stat)),
])
}),
0
),
_vm._v(" "),
_c(
"div",
{
staticClass:
"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",
},
[
_c(
"svg",
{
staticClass: "fill-current h-4 w-4",
attrs: {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
},
},
[
_c("path", {
attrs: {
d: "M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z",
},
}),
]
),
]
),
]),
_vm._v(" "),
_c(
@@ -98543,7 +98518,7 @@ if (typeof window !== 'undefined' && window.Vue) {
/***/ ((module) => {
"use strict";
module.exports = JSON.parse('{"_from":"axios@^0.21","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21","name":"axios","escapedName":"axios","rawSpec":"^0.21","saveSpec":null,"fetchSpec":"^0.21"},"_requiredBy":["#DEV:/","#USER"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21","_where":"C:\\\\laragon\\\\www\\\\adminpkb","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
module.exports = JSON.parse('{"_args":[["axios@0.21.4","C:\\\\laragon\\\\www\\\\adminpkb"]],"_development":true,"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["#DEV:/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"C:\\\\laragon\\\\www\\\\adminpkb","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
/***/ })
+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