-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemeted Static UI for displaying parsed csv and Implemented logic … #5
Conversation
…to map parsed Csv and implemented order state(#22c8vf8)
.filters { | ||
grid-area: filters; | ||
} | ||
.list-item{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ok for now but add a note that this code needs to be updated to use universal list item class
@@ -0,0 +1,6 @@ | |||
export default interface OrderState { | |||
order: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have state like this
list: {
items: [],
original: []
},
import RootState from "../../RootState"; | ||
|
||
const getters: GetterTree<OrderState, RootState> = { | ||
getCsv(state){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getCsv(state){ | |
getOrdeItems(state){ |
import * as types from './mutation-types' | ||
|
||
const actions: ActionTree<OrderState, RootState> = { | ||
uploadCsv({commit}, payload){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uploadCsv({commit}, payload){ | |
updateOrderList({commit}, payload){ |
@@ -0,0 +1,2 @@ | |||
export const SN_ORDER = 'order' | |||
export const UPLOAD_CSV = SN_ORDER + '/UPLOAD_CSV' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const UPLOAD_CSV = SN_ORDER + '/UPLOAD_CSV' | |
export const ORDER_LIST_UPDATED = SN_ORDER + '/LIST_UPDATED' |
@@ -32,6 +33,12 @@ const routes: Array<RouteRecordRaw> = [ | |||
component: PurchaseOrder, | |||
beforeEnter: authGuard | |||
}, | |||
{ | |||
path: '/purchase-order-detail', | |||
name: 'Purchase Order Detail', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: 'Purchase Order Detail', | |
name: 'PurchaseOrderDetail', |
const actions: ActionTree<RootState, RootState> = {} | ||
const actions: ActionTree<RootState, RootState> = { | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these unwanted changes.
|
||
const actions: ActionTree<OrderState, RootState> = { | ||
uploadCsv({commit}, payload){ | ||
commit(types.UPLOAD_CSV, payload ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit(types.UPLOAD_CSV, payload ); | |
commit(types.UPLOAD_CSV, payload); |
} | ||
}, | ||
[types.PRODUCT_ADD_TO_CACHED_MULTIPLE] (state, payload) { | ||
// TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove these TODO.
<ion-select-option>Backorder</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
<ion-button expand="block" fill="outline">Apply</ion-button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internationalize text.
import { IonPage, IonHeader, IonToolbar, IonBackButton, IonTitle, IonContent, IonSearchbar, IonItem, IonThumbnail, IonLabel, IonInput, IonChip, IonIcon, IonButton, IonCheckbox, IonSelect, IonSelectOption } from '@ionic/vue' | ||
import { ellipsisVerticalOutline, sendOutline } from 'ionicons/icons' | ||
export default defineComponent({ | ||
components: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change indentation to 2 spaces.
Changes merged with #8. Closing |
…to map parsed Csv and implemented order state(#22c8vf8)