coba add store

This commit is contained in:
2024-08-16 15:36:45 +07:00
parent 13e203fb57
commit 7b1526e06b
8 changed files with 719 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
const store = {
state() {
return {
patients: [
{
tanggal: "31-07-2024",
noreg: "055000037LA",
kelpelanggan: "PASIEN MANDIRI",
nama: "Tn. Alpha",
status: "New",
},
{
tanggal: "31-07-2024",
noreg: "055000036LA",
kelpelanggan: "PASIEN KLINISI",
nama: "Tn. Beta",
status: "New",
},
{
tanggal: "30-07-2024",
noreg: "055000035LA",
kelpelanggan: "PASIEN KLINISI",
nama: "Tn. Gamma",
status: "New",
},
],
selected_patients: {
},
};
},
mutations: {
setPatients(state, data) {
state.patients = data
},
setSelectedPatients(state, data) {
state.selected_patients = data
},
},
actions: {
selectPatient({ commit, data }) {
commit('setSelectedPatients', data);
}
}
}
export default store