Files
FE_CPONE/test/vuex/one-system-clinic-conf/modules/conf.js
2026-04-27 10:13:31 +07:00

46 lines
1.0 KiB
JavaScript

// 1 => LOADING
// 2 => DONE
// 3 => ERROR
// import * as api from "../api/patient.js"
// window.api = api
export default {
namespaced: true,
state: {
conf_company_id: 0,
conf_mou_id: 0,
conf_lab_is_disc: "N",
conf_lab_disc: 50000,
selected_company: {id: 0, name: "Pasien Mandiri"},
selected_mou: {id:0, name: "Mandiri Normal"}
},
mutations: {
update_conf_company_id (state, v) {
state.conf_company_id = v
},
update_conf_mou_id (state, v) {
state.conf_mou_id = v
},
update_conf_lab_is_disc (state, v) {
state.conf_lab_is_disc = v
},
update_conf_lab_disc (state, v) {
state.conf_lab_disc = v
},
update_selected_company (state, v) {
state.selected_company = v
},
update_selected_mou (state, v) {
state.selected_mou = v
}
},
actions: {
}
}