From d1c2677c55582cb137b7c803f816d73db39449ba Mon Sep 17 00:00:00 2001 From: anju j Date: Wed, 2 Feb 2022 14:03:21 +0530 Subject: [PATCH] changes in BoxedOrderHistoryPage's path and added fetch api --- git_info.json | 2 +- src/multipages/retailer.routes.js | 2 +- src/routes/retailer/account_dashboard.vue | 2 +- src/routes/retailer/boxed_order_history.vue | 7 ++++- src/services/auth.js | 2 +- src/services/product.service.js | 18 ++++++++++-- src/stores/retailer/orderlist.js | 32 +++++++++++++++------ 7 files changed, 50 insertions(+), 15 deletions(-) diff --git a/git_info.json b/git_info.json index 921358c..b849151 100644 --- a/git_info.json +++ b/git_info.json @@ -1 +1 @@ -{"branch_name":"dev","last_commit_date":"2022-01-28T12:02:56.000Z","last_commit_author":"anju j","last_commit_hash":"defccce1421feadd75a814a2194b959e791fc6ee"} \ No newline at end of file +{"branch_name":"dev","last_commit_date":"2022-01-31T07:37:00.000Z","last_commit_author":"anju j","last_commit_hash":"ce10ce4d3c26014ce905b601c5f23e67e91887b5"} \ No newline at end of file diff --git a/src/multipages/retailer.routes.js b/src/multipages/retailer.routes.js index 21ccef0..b0ceb67 100644 --- a/src/multipages/retailer.routes.js +++ b/src/multipages/retailer.routes.js @@ -16,7 +16,7 @@ export default [ children: [ { - path: 'order', + path: '/b2b/:id', name: 'BoxedOrderHistoryPage', component: () => import(/* webpackChunkName: "meModule" */ '@/routes/retailer/boxed_order_history.vue'), meta: { diff --git a/src/routes/retailer/account_dashboard.vue b/src/routes/retailer/account_dashboard.vue index 516a2b7..966f1fb 100644 --- a/src/routes/retailer/account_dashboard.vue +++ b/src/routes/retailer/account_dashboard.vue @@ -34,7 +34,7 @@
+

{{OrderHistory}}

@@ -205,6 +206,8 @@ export default { // // "createdDate", // // "toDate", // "purchaseOrderNumber" + "OrderHistory" + ]) }, @@ -224,9 +227,11 @@ export default { }, searchOrder(value){ value.preventDeafult(); - } }, + created(){ + this.$store.dispatch("orderlist/fetchOrderList") + } };