diff --git a/src/assets/css/app.css b/src/assets/css/app.css index 088a3eb..21d4006 100644 --- a/src/assets/css/app.css +++ b/src/assets/css/app.css @@ -66,11 +66,12 @@ table tr.at_risk:hover { background:lightgrey; color: grey; } -.scroller { -} .scroller { height: 600px; } +.scroller.small { + height: 300px; +} .item { height: 138px; diff --git a/src/components/CustomerComments.vue b/src/components/CustomerComments.vue index 88e4a71..a31d337 100644 --- a/src/components/CustomerComments.vue +++ b/src/components/CustomerComments.vue @@ -9,7 +9,13 @@ - + + {{ item.comment }} + diff --git a/src/components/RecentOrders.vue b/src/components/RecentOrders.vue index aa28508..65b07e6 100644 --- a/src/components/RecentOrders.vue +++ b/src/components/RecentOrders.vue @@ -9,43 +9,67 @@ - - - - - - Order: {{ item.doc_no }} - - - {{ formatDate(item.doc_date,"DD/MM/YYYY") }} - - - {{ item.doc_status }} - - - - - - - - -
Items :
- - {{ i.code }} - {{ i.name }} - x {{ i.quantity }}
-
-
-
-
+ + -
+ + + + + Order: {{ item.doc_no }} + + + Order Date : {{ formatDate(item.doc_date,"DD/MM/YYYY") }}
+ Delivery Date : {{ formatDate(item.req_del_date,"DD/MM/YYYY") }}
+ + + {{ item.doc_status }} +
+ + + {{ item.print_status }} +
+ + {{ item.customer.acc_no }} - {{ item.customer.name }} + +
+ + + + + + + + +
Items :
+ + {{ i.code }} - {{ i.name }} + x {{ i.quantity }}
+
+
+
+ + + mdi-plus + mdi-exclamation + + +
+ +
+
@@ -58,7 +82,9 @@ import methods from '@/CommonMethods.vue' export default { props:{ customer: new Customer(), - doc_status: Number + doc_status: Number, + limit: Number, + size_small: Boolean }, watch: { customer() { @@ -101,7 +127,8 @@ export default { let url = this.$api_url + "/customers/" + this.customer.id + "/orders/recent" axios.get(url, { params: { - doc_status: this.doc_status + doc_status: this.doc_status, + limit: this.limit || 6 } }) .then(resp => { @@ -115,6 +142,11 @@ export default { }) } + }, + created() { + if (this.customer.id != "") { + this.getCustomerRecentOrders() + } } } diff --git a/src/router/index.js b/src/router/index.js index f063e94..e6b7840 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,7 @@ const CustomerList = () => import('../views/customers/CustomerList.vue') const ContractList = () => import('../views/contracts/ContractList.vue') const ComplaintsList = () => import('../views/complaints/ComplaintsList.vue') const MedFeedsList = () => import('../views/medfeeds/MedFeedsList.vue') +const OrderList = () => import('../views/salesorders/OrdersList.vue') const SOPPrintedList = () => import('../views/salesorders/SOPPrinted.vue') const routes = [ @@ -64,6 +65,16 @@ const routes = [ name: 'complaintslistid', component: ComplaintsList }, + { + path: '/customers/orders/list', + name: 'orderslist', + component: OrderList + }, + { + path: '/customers/orders/list/:id', + name: 'orderslistid', + component: OrderList + }, { path: '/sop/printed', name: 'sopprinted', diff --git a/src/views/customers/CustomerList.vue b/src/views/customers/CustomerList.vue index 2056329..878b0ed 100644 --- a/src/views/customers/CustomerList.vue +++ b/src/views/customers/CustomerList.vue @@ -57,12 +57,12 @@
- +
- +
@@ -128,7 +128,9 @@ export default { let url = this.$api_url + "/customers/list" axios .get(url,{ - params: { limit: this.limit, query: this.searchQuery }}) + params: { + limit: this.limit, + query: "" }}) .then(resp => { this.customer_list = resp.data this.listreceived = true diff --git a/src/views/salesorders/OrdersList.vue b/src/views/salesorders/OrdersList.vue index be0d458..f8060c3 100644 --- a/src/views/salesorders/OrdersList.vue +++ b/src/views/salesorders/OrdersList.vue @@ -2,10 +2,9 @@

Orders List

- +
-