Files
2024-10-28 16:53:18 +07:00

62 lines
1.7 KiB
JavaScript

const store = {
namespaced: true,
state() {
return {
date: new Date(),
patients: [
{
id: 1,
name: "Tn. COCOBA",
noreg: "055000035LA",
orderdate: "01-08-2024 15:02",
test: "USG UPP & LOW ABDOMEN",
doctorname: "-"
},
{
id: 2,
name: "Tn. YACOBA",
noreg: "055000036LA",
orderdate: "01-08-2024 15:10",
test: "USG UPP & LOW ABDOMEN",
doctorname: "A. A. AYU KUSUMAYANTI, dr."
}
],
selected_patient: {},
patientright: [
{
id: 1,
name: "Tn. COCOBA",
noreg: "055000035LA",
orderdate: "01-08-2024 15:02",
test: "USG UPP & LOW ABDOMEN",
doctorname: "-",
flag: true
},
],
selected_patientright: {},
};
},
mutations: {
setDate(state, data) {
state.date = data;
},
setPatients(state, data) {
state.patients = data
},
setSelectedPatient(state, data) {
state.selected_patient = data
},
setPatientRight(state, data) {
state.patientright = data
},
setSelectedPatientRight(state, data) {
state.selected_patientright = data
},
},
actions: {
}
};
export default store