From ac77c0e0fcd1e9ded83727bb9f07a383df706dfd Mon Sep 17 00:00:00 2001 From: lonetrinity Date: Tue, 31 Jul 2018 11:46:00 +0800 Subject: [PATCH 01/10] fix/notification/admin/mobileView --- public/mix-manifest.json | 6 +- resources/assets/js/app.js | 34 +- .../js/components/AdminProgressTrack.vue | 4 +- .../assets/js/components/LocaleDropdown.vue | 212 +++--- resources/assets/js/components/Navbar.vue | 2 +- .../assets/js/components/ProgressTrack.vue | 6 +- .../js/pages/admin/booking/bookingDetail.vue | 117 ++-- .../js/pages/admin/booking/completed.vue | 84 +-- .../pages/admin/booking/supplierBooking.vue | 247 ++++--- .../js/pages/admin/booking/supplierReport.vue | 627 +++++++++--------- .../admin/booking/uploadChinaBankslip.vue | 324 ++++----- .../js/pages/admin/booking/uploadInvoice.vue | 274 ++++---- .../js/pages/admin/booking/verification.vue | 266 ++++---- .../assets/js/pages/admin/complete-orders.vue | 184 ++--- resources/assets/js/pages/admin/home.vue | 121 ++-- .../js/pages/admin/transaction-history.vue | 36 +- .../pages/admin/upload-supplier-bank-slip.vue | 92 +-- resources/assets/js/pages/auth/register.vue | 267 ++++---- .../assets/js/pages/booking/completed.vue | 71 +- .../assets/js/pages/booking/confirmation.vue | 55 +- resources/assets/js/pages/booking/po.vue | 61 +- .../assets/js/pages/booking/poComplete.vue | 46 +- .../assets/js/pages/booking/transfer.vue | 53 +- .../assets/js/pages/booking/uploadPo.vue | 215 +++--- .../js/pages/booking/uploadUserBankSlip.vue | 511 +++++++------- resources/assets/js/pages/home.vue | 251 ++++--- .../js/pages/settings/admin-bank-setting.vue | 288 ++++---- .../settings/admin-billing-charge-setting.vue | 122 ++-- .../js/pages/settings/admin-china-bank.vue | 542 ++++++++------- .../pages/settings/admin-credit-setting.vue | 155 +++-- .../js/pages/settings/admin-malaysia-bank.vue | 551 ++++++++------- .../pages/settings/admin-marking-setting.vue | 397 ++++++----- .../js/pages/settings/admin-supplier.vue | 428 ++++++------ .../js/pages/settings/admin-tax-setting.vue | 124 ++-- resources/assets/js/pages/settings/index.vue | 145 ++-- resources/assets/js/pages/welcome.vue | 28 +- resources/assets/js/router/routes.js | 2 +- 37 files changed, 3448 insertions(+), 3500 deletions(-) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 06915eec..774f9597 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,7 +1,7 @@ { - "/js/lang-zh-CN.489521629fd49ac7628e.js": "/js/lang-zh-CN.489521629fd49ac7628e.js", - "/js/lang-es.459dcb868aa54d488979.js": "/js/lang-es.459dcb868aa54d488979.js", - "/js/lang-en.31386792460363b93c17.js": "/js/lang-en.31386792460363b93c17.js", + "/js/lang-zh-CN.c0da3973e52421a8cfe5.js": "/js/lang-zh-CN.c0da3973e52421a8cfe5.js", + "/js/lang-es.f4a1a5b4a30e92527b46.js": "/js/lang-es.f4a1a5b4a30e92527b46.js", + "/js/lang-en.0f790217417404ecc662.js": "/js/lang-en.0f790217417404ecc662.js", "/js/app.js": "/js/app.js", "/css/app.css": "/css/app.css" } \ No newline at end of file diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index e0e5bcc2..9509ac12 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -11,23 +11,23 @@ import '~/plugins' import '~/components' const config = { - errorBagName: 'errors', // change if property conflicts. - fieldsBagName: 'fields', - delay: 0, - // locale: 'zh_CN', - strict: true, - enableAutoClasses: false, - classNames: { - touched: 'touched', // the control has been blurred - untouched: 'untouched', // the control hasn't been blurred - valid: 'valid', // model is valid - invalid: 'invalid', // model is invalid - pristine: 'pristine', // control has not been interacted with - dirty: 'dirty' // control has been interacted with - }, - events: 'blur', - inject: true -}; + errorBagName: 'errors', // change if property conflicts. + fieldsBagName: 'fields', + delay: 0, + // locale: 'zh_CN', + strict: true, + enableAutoClasses: false, + classNames: { + touched: 'touched', // the control has been blurred + untouched: 'untouched', // the control hasn't been blurred + valid: 'valid', // model is valid + invalid: 'invalid', // model is invalid + pristine: 'pristine', // control has not been interacted with + dirty: 'dirty' // control has been interacted with + }, + events: 'blur', + inject: true +} Vue.config.productionTip = false diff --git a/resources/assets/js/components/AdminProgressTrack.vue b/resources/assets/js/components/AdminProgressTrack.vue index 3a0a6507..2b97fa9c 100644 --- a/resources/assets/js/components/AdminProgressTrack.vue +++ b/resources/assets/js/components/AdminProgressTrack.vue @@ -3,8 +3,8 @@ - - + + diff --git a/resources/assets/js/components/LocaleDropdown.vue b/resources/assets/js/components/LocaleDropdown.vue index b4a2e143..e3911121 100644 --- a/resources/assets/js/components/LocaleDropdown.vue +++ b/resources/assets/js/components/LocaleDropdown.vue @@ -1,7 +1,7 @@ diff --git a/resources/assets/js/components/Navbar.vue b/resources/assets/js/components/Navbar.vue index aa7ab426..4cbf64a2 100644 --- a/resources/assets/js/components/Navbar.vue +++ b/resources/assets/js/components/Navbar.vue @@ -23,7 +23,7 @@
-
+
diff --git a/resources/assets/js/components/ProgressTrack.vue b/resources/assets/js/components/ProgressTrack.vue index 21241dfb..d5862b55 100644 --- a/resources/assets/js/components/ProgressTrack.vue +++ b/resources/assets/js/components/ProgressTrack.vue @@ -1,6 +1,6 @@ \ No newline at end of file +} + diff --git a/resources/assets/js/pages/admin/complete-orders.vue b/resources/assets/js/pages/admin/complete-orders.vue index 9ed8dac5..91bfdf16 100644 --- a/resources/assets/js/pages/admin/complete-orders.vue +++ b/resources/assets/js/pages/admin/complete-orders.vue @@ -6,107 +6,107 @@

Completed Orders

- - - - - - - - - - - View Status - + + + + + + + + + + + View Status +
\ No newline at end of file +} + diff --git a/resources/assets/js/pages/admin/home.vue b/resources/assets/js/pages/admin/home.vue index da9b88cc..69fd9697 100644 --- a/resources/assets/js/pages/admin/home.vue +++ b/resources/assets/js/pages/admin/home.vue @@ -1,56 +1,56 @@ + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/booking/completed.vue b/resources/assets/js/pages/admin/booking/completed.vue index d4eca8d9..e3f14b71 100644 --- a/resources/assets/js/pages/admin/booking/completed.vue +++ b/resources/assets/js/pages/admin/booking/completed.vue @@ -20,8 +20,8 @@
- - + +

Download

@@ -37,11 +37,11 @@ -
- - + @@ -56,8 +56,8 @@
- - + +

Download

@@ -66,7 +66,7 @@

- + @@ -91,7 +91,7 @@
- +
@@ -136,7 +136,7 @@
Beneficiary Account :
@@ -144,7 +144,7 @@
Beneficiary Account Number :
@@ -157,14 +157,14 @@ -
-
-
+
+
@@ -200,7 +200,7 @@
--> @@ -240,7 +240,7 @@ - @@ -270,8 +270,8 @@ - - + +

Download

@@ -307,17 +307,17 @@ export default { }, data () { return { - trackerConfig: { - status: 8, - term: null - }, + trackerConfig :{ + status: 8, + term: null + }, loading_btn: false, - booking_details: { - id: null, - amount: null, - bia: null, - user_bankslip_path: null - } + booking_details:{ + id: null, + amount: null, + bia: null, + user_bankslip_path: null, + } } }, beforeCreate () { @@ -332,7 +332,7 @@ export default { .get('/api/admin/booking/' + this.$route.params.id) .then((response) => { this.booking_details = response.data - this.trackerConfig.term = response.data.term + this.trackerConfig.term = response.data.term; loading.close() }).catch((error) => { console.log(error) @@ -343,17 +343,17 @@ export default { }) }, methods: { - getExtension (path) { - return path.slice(-3) + getExtension(path){ + return path.slice(-3); }, - isImage (path) { - var ext = this.getExtension(path) - return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png' + isImage(path){ + var ext = this.getExtension(path); + return ext === 'jpg' || ext === 'jpeg' || ext === 'bmp' || ext === 'png'; }, - getURL (path) { - var getUrl = window.location - var baseUrl = getUrl.protocol + '//' + getUrl.host - return baseUrl + path + getURL(path){ + var getUrl = window.location; + var baseUrl = getUrl.protocol + "//" + getUrl.host; + return baseUrl + path; } } } diff --git a/resources/assets/js/pages/admin/booking/supplierBooking.vue b/resources/assets/js/pages/admin/booking/supplierBooking.vue index 996c9195..c4490a78 100644 --- a/resources/assets/js/pages/admin/booking/supplierBooking.vue +++ b/resources/assets/js/pages/admin/booking/supplierBooking.vue @@ -3,7 +3,7 @@
-

+


Supplier Booking

@@ -64,7 +64,7 @@
Beneficiary Account :
@@ -72,7 +72,7 @@
Beneficiary Account Number :
@@ -85,14 +85,14 @@ -
-
-
+
+
@@ -128,7 +128,7 @@
--> @@ -170,7 +170,7 @@ - @@ -204,8 +204,9 @@
- - + + + @@ -235,133 +236,137 @@ } + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/booking/supplierReport.vue b/resources/assets/js/pages/admin/booking/supplierReport.vue index 36778b00..72705c4a 100644 --- a/resources/assets/js/pages/admin/booking/supplierReport.vue +++ b/resources/assets/js/pages/admin/booking/supplierReport.vue @@ -3,7 +3,7 @@
-

+


Supplier Report

@@ -64,7 +64,7 @@
Beneficiary Account :
@@ -72,7 +72,7 @@
Beneficiary Account Number :
@@ -85,14 +85,14 @@ -
-
-
+
+
@@ -128,7 +128,7 @@
--> @@ -170,7 +170,7 @@ - @@ -200,9 +200,9 @@ - +
- Download Now + Download Now
@@ -214,8 +214,8 @@ - - + +

Download

@@ -225,8 +225,8 @@ - Edit - Done + Edit + Done @@ -250,308 +250,313 @@ } + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/booking/uploadChinaBankslip.vue b/resources/assets/js/pages/admin/booking/uploadChinaBankslip.vue index 3afaf10f..5b66d902 100644 --- a/resources/assets/js/pages/admin/booking/uploadChinaBankslip.vue +++ b/resources/assets/js/pages/admin/booking/uploadChinaBankslip.vue @@ -3,7 +3,7 @@
-

+


Upload China Bankslip To Customer

@@ -64,7 +64,7 @@
Beneficiary Account :
@@ -72,7 +72,7 @@
Beneficiary Account Number :
@@ -85,14 +85,14 @@ -
-
-
+
+
@@ -128,7 +128,7 @@
--> @@ -170,7 +170,7 @@ - @@ -205,18 +205,18 @@
- + Click to upload
bmp/jpeg/jpg/png/pdf/xls/xlxs/doc/docx files with a size less than 3MB

- @@ -244,52 +244,9 @@ } + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/booking/uploadInvoice.vue b/resources/assets/js/pages/admin/booking/uploadInvoice.vue index fa82ccb6..13c9016d 100644 --- a/resources/assets/js/pages/admin/booking/uploadInvoice.vue +++ b/resources/assets/js/pages/admin/booking/uploadInvoice.vue @@ -3,7 +3,7 @@
-

+


Upload Invoice

@@ -71,7 +71,7 @@
Beneficiary Account :
@@ -79,7 +79,7 @@
Beneficiary Account Number :
@@ -92,14 +92,14 @@ -
-
-
+
+
@@ -135,7 +135,7 @@
--> @@ -173,7 +173,7 @@ - @@ -183,7 +183,7 @@ - +
Upload Invoice @@ -221,8 +221,8 @@
- - + +

Download

@@ -249,102 +249,102 @@ } + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/booking/verification.vue b/resources/assets/js/pages/admin/booking/verification.vue index 07670115..39b2f2b3 100644 --- a/resources/assets/js/pages/admin/booking/verification.vue +++ b/resources/assets/js/pages/admin/booking/verification.vue @@ -3,7 +3,7 @@
-

+


Verify User Bankslip

@@ -66,7 +66,7 @@
Beneficiary Account :
@@ -74,7 +74,7 @@
Beneficiary Account Number :
@@ -87,14 +87,14 @@ -
-
-
+
+
@@ -130,7 +130,7 @@
--> @@ -172,7 +172,7 @@ - @@ -202,8 +202,8 @@ - - + +

Download

@@ -213,27 +213,29 @@ - Approve - Reject + Approve + Reject
- + + :rows="2" + placeholder="Please input the reason" + v-model="reject_reason"> + Cancel - Submit + Submit + + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/complete-orders.vue b/resources/assets/js/pages/admin/complete-orders.vue index 91bfdf16..9ed8dac5 100644 --- a/resources/assets/js/pages/admin/complete-orders.vue +++ b/resources/assets/js/pages/admin/complete-orders.vue @@ -6,107 +6,107 @@

Completed Orders

- - - - - - - - - - - View Status - + + + + + + + + + + + View Status + + \ No newline at end of file diff --git a/resources/assets/js/pages/admin/home.vue b/resources/assets/js/pages/admin/home.vue index 27878a3c..2a7ae9b5 100644 --- a/resources/assets/js/pages/admin/home.vue +++ b/resources/assets/js/pages/admin/home.vue @@ -1,56 +1,56 @@
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -216,7 +216,7 @@
-
+
MYR {{ booking_details.bia }}
@@ -224,10 +224,10 @@
-
+
-
+
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -144,7 +144,7 @@
-
+
@@ -154,10 +154,10 @@
-
+
-
+
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -144,7 +144,7 @@
-
+
@@ -154,10 +154,10 @@
-
+
-
+
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -144,7 +144,7 @@
-
+
@@ -154,10 +154,10 @@
-
+
-
+
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -151,7 +151,7 @@
-
+
@@ -161,10 +161,10 @@
-
+
-
+
-
{{ booking_details.account_name }}
+
{{booking_details.account_name}}
-
{{ booking_details.account_num }}
+
{{booking_details.account_num}}
-
+
MYR {{ booking_details.bia }}
@@ -146,7 +146,7 @@
-
+
@@ -156,10 +156,10 @@
-
+
-
+