init crater

This commit is contained in:
Mohit Panjwani
2019-11-11 12:16:00 +05:30
commit bdf2ba51d6
668 changed files with 158503 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import * as types from './mutation-types'
export const loadLinkByCustomer = ({ commit, dispatch, state }, url) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/reports/sales/customers/link`).then((response) => {
resolve(response)
}).catch((err) => {
reject(err)
})
})
}
export const loadLinkByItems = ({ commit, dispatch, state }, url) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/reports/sales/items/link`).then((response) => {
resolve(response)
}).catch((err) => {
reject(err)
})
})
}

View File

@ -0,0 +1,19 @@
import mutations from './mutations'
import * as actions from './actions'
import * as getters from './getters'
const initialState = {
report: null
}
export default {
namespaced: true,
state: initialState,
getters: getters,
actions: actions,
mutations: mutations
}

View File

@ -0,0 +1,5 @@
import * as types from './mutation-types'
export default {
}