40 lines
883 B
JavaScript
40 lines
883 B
JavaScript
// State
|
|
// data ...
|
|
// Mutations
|
|
//
|
|
//
|
|
// Actions
|
|
import patient from "./modules/patient.js";
|
|
import patientaddress from "./modules/patientaddress.js";
|
|
import doctor from "./modules/doctor.js";
|
|
import language from "./modules/language.js";
|
|
import order from "./modules/order.js";
|
|
import delivery from "./modules/delivery.js";
|
|
import company from "./modules/company.js";
|
|
import px from "./modules/px.js";
|
|
import payment from "./modules/payment.js";
|
|
|
|
export const store = new Vuex.Store({
|
|
state : {
|
|
tab_active : '01'
|
|
},
|
|
|
|
mutations : {
|
|
change_tab(state, tab) {
|
|
state.tab_active = tab;
|
|
}
|
|
},
|
|
|
|
modules : {
|
|
patient: patient,
|
|
patientaddress: patientaddress,
|
|
doctor: doctor,
|
|
language: language,
|
|
order: order,
|
|
delivery: delivery,
|
|
company: company,
|
|
px:px,
|
|
payment:payment
|
|
}
|
|
});
|