Initial import
This commit is contained in:
269
one-ui/masterdata/one-md-nonlab-template-v3/modules/detail.js
Normal file
269
one-ui/masterdata/one-md-nonlab-template-v3/modules/detail.js
Normal file
@@ -0,0 +1,269 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/detail.js"
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
lookup_search: 0,
|
||||
nonlabdetails: [],
|
||||
total_nonlabdetail: 0,
|
||||
error_message: "",
|
||||
selected_nonlabdetail: {},
|
||||
last_id: -1,
|
||||
current_page: 1,
|
||||
x_search: "",
|
||||
selected_nonlabtemplate_id: '0',
|
||||
dialog_form: false,
|
||||
act: 'new',
|
||||
loading_save: false,
|
||||
save_status: 2,
|
||||
alert_error: false,
|
||||
dialog_error: false,
|
||||
msg_success: "",
|
||||
alert_success: false,
|
||||
units: [],
|
||||
dialog_form_detail: false,
|
||||
},
|
||||
mutations: {
|
||||
update_lookup_search(state, val) {
|
||||
state.lookup_search = val
|
||||
},
|
||||
update_units(state, val) {
|
||||
state.units = val
|
||||
},
|
||||
update_dialog_form_detail(state, val) {
|
||||
state.dialog_form_detail = val
|
||||
},
|
||||
update_nonlabdetails(state, val) {
|
||||
state.nonlabdetails = val
|
||||
},
|
||||
update_total_nonlabdetail(state, val) {
|
||||
state.total_nonlabdetail = val
|
||||
},
|
||||
update_error_message(state, val) {
|
||||
state.error_message = val
|
||||
},
|
||||
update_selected_nonlabdetail(state, val) {
|
||||
state.selected_nonlabdetail = val
|
||||
},
|
||||
update_last_id(state, val) {
|
||||
state.last_id = val
|
||||
},
|
||||
update_current_page(state, val) {
|
||||
state.current_page = val
|
||||
},
|
||||
update_x_search(state, val) {
|
||||
state.x_search = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_selected_nonlabtemplate_id(state, val) {
|
||||
state.selected_nonlabtemplate_id = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_dialog_form(state, val) {
|
||||
state.dialog_form = val
|
||||
},
|
||||
update_act(state, val) {
|
||||
state.act = val
|
||||
},
|
||||
update_loading_save(state, val) {
|
||||
state.loading_save = val
|
||||
},
|
||||
update_save_status(state, val) {
|
||||
state.save_status = val
|
||||
},
|
||||
update_alert_error(state, val) {
|
||||
state.alert_error = val
|
||||
},
|
||||
update_dialog_error(state, val) {
|
||||
state.dialog_error = val
|
||||
},
|
||||
update_msg_success(state, val) {
|
||||
state.msg_success = val
|
||||
},
|
||||
update_alert_success(state, val) {
|
||||
state.alert_success = val
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
async getunits(context) {
|
||||
let resp = await api.getunits()
|
||||
context.commit("update_units", resp.data)
|
||||
},
|
||||
async searchdetail(context, prm) {
|
||||
context.commit("update_lookup_search", 1)
|
||||
try {
|
||||
var prm = {
|
||||
token: one_token(),
|
||||
search: context.state.x_search,
|
||||
current_page: context.state.current_page,
|
||||
last_id: context.state.last_id,
|
||||
nonlabID: context.state.selected_nonlabtemplate_id
|
||||
}
|
||||
let resp = await api.searchdetail(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_lookup_search", 3)
|
||||
} else {
|
||||
context.commit("update_lookup_search", 2)
|
||||
context.commit("update_error_message", "")
|
||||
let data = {
|
||||
records: resp.data.records,
|
||||
total: resp.data.total_page,
|
||||
total_filter: resp.data.total_filter
|
||||
}
|
||||
context.commit("update_nonlabdetails", data.records)
|
||||
context.commit("update_total_nonlabdetail", data.total)
|
||||
|
||||
if (context.state.last_id == -1) {
|
||||
if (resp.data && resp.data.records > 0) {
|
||||
context.commit("update_selected_nonlabdetail", resp.data.records[0])
|
||||
}
|
||||
} else {
|
||||
let idx = _.findIndex(resp.data.records, function(o) {
|
||||
return o.NonlabTemplateDetailID == context.state.selected_nonlabdetail.NonlabTemplateDetailID
|
||||
});
|
||||
if (idx >= 0) {
|
||||
context.commit("update_selected_nonlabdetail", resp.data.records[idx]);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_lookup_search", 3)
|
||||
context.commit("update_error_message", e.message)
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async adddetail(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.nonlabid = context.state.selected_nonlabtemplate_id
|
||||
prm.token = one_token()
|
||||
let resp = await api.adddetail(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_dialog_form", false)
|
||||
context.commit("update_dialog_form_detail", false)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_dialog_form", false)
|
||||
context.commit("update_dialog_form_detail", false)
|
||||
let data = resp.data
|
||||
var msg = prm.name + " berhasil disimpan"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("searchdetail")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
}
|
||||
},
|
||||
|
||||
async deletedetail(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.deletedetail(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
var msg = prm.name + " berhasil dihapus"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("searchdetail")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
}
|
||||
},
|
||||
|
||||
async saveeditflag(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
prm.token = one_token()
|
||||
let resp = await api.saveeditflag(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
var msg = ""
|
||||
if(prm.flagstatus == "Y") {
|
||||
var msg = prm.name + " di aktifkan"
|
||||
} else {
|
||||
var msg = prm.name + " di nonaktifkan"
|
||||
}
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("searchdetail")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
}
|
||||
},
|
||||
|
||||
async editdetail(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.editdetail(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_dialog_form", false)
|
||||
context.commit("update_dialog_form_detail", false)
|
||||
let data = resp.data
|
||||
var msg = prm.name + " berhasil di edit"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("searchdetail")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
216
one-ui/masterdata/one-md-nonlab-template-v3/modules/nonlab.js
Normal file
216
one-ui/masterdata/one-md-nonlab-template-v3/modules/nonlab.js
Normal file
@@ -0,0 +1,216 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/nonlab.js"
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
lookup_search: 0,
|
||||
nonlabtemplates: [],
|
||||
total_nonlabtemplate: 0,
|
||||
error_message: "",
|
||||
selected_nonlabtemplate: {},
|
||||
last_id: -1,
|
||||
current_page: 1,
|
||||
x_search: "",
|
||||
dialog_form: false,
|
||||
act: 'new',
|
||||
loading_save: false,
|
||||
save_status: 2,
|
||||
alert_error: false,
|
||||
dialog_error: false,
|
||||
msg_success: "",
|
||||
alert_success: false
|
||||
},
|
||||
mutations: {
|
||||
update_lookup_search(state, val) {
|
||||
state.lookup_search = val
|
||||
},
|
||||
update_nonlabtemplates(state, val) {
|
||||
state.nonlabtemplates = val
|
||||
},
|
||||
update_total_nonlabtemplate(state, val) {
|
||||
state.total_nonlabtemplate = val
|
||||
},
|
||||
update_error_message(state, val) {
|
||||
state.error_message = val
|
||||
},
|
||||
update_selected_nonlabtemplate(state, val) {
|
||||
state.selected_nonlabtemplate = val
|
||||
},
|
||||
update_last_id(state, val) {
|
||||
state.last_id = val
|
||||
},
|
||||
update_current_page(state, val) {
|
||||
state.current_page = val
|
||||
},
|
||||
update_x_search(state, val) {
|
||||
state.x_search = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_dialog_form(state, val) {
|
||||
state.dialog_form = val
|
||||
},
|
||||
update_act(state, val) {
|
||||
state.act = val
|
||||
},
|
||||
update_loading_save(state, val) {
|
||||
state.loading_save = val
|
||||
},
|
||||
update_save_status(state, val) {
|
||||
state.save_status = val
|
||||
},
|
||||
update_alert_error(state, val) {
|
||||
state.alert_error = val
|
||||
},
|
||||
update_dialog_error(state, val) {
|
||||
state.dialog_error = val
|
||||
},
|
||||
update_msg_success(state, val) {
|
||||
state.msg_success = val
|
||||
},
|
||||
update_alert_success(state, val) {
|
||||
state.alert_success = val
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
async search(context, prm) {
|
||||
context.commit("update_lookup_search", 1)
|
||||
try {
|
||||
var prm = {
|
||||
token: one_token(),
|
||||
search: context.state.x_search,
|
||||
current_page: context.state.current_page,
|
||||
last_id: context.state.last_id,
|
||||
}
|
||||
let resp = await api.search(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_lookup_search", 3)
|
||||
} else {
|
||||
context.commit("update_lookup_search", 2)
|
||||
context.commit("update_error_message", "")
|
||||
let data = {
|
||||
records: resp.data.records,
|
||||
total: resp.data.total_page,
|
||||
total_filter: resp.data.total_filter
|
||||
}
|
||||
context.commit("update_nonlabtemplates", data.records)
|
||||
context.commit("update_total_nonlabtemplate", data.total)
|
||||
|
||||
if (context.state.last_id == -1) {
|
||||
if (resp.data && resp.data.records > 0) {
|
||||
context.commit("update_selected_nonlabtemplate", resp.data.records[0])
|
||||
}
|
||||
} else {
|
||||
let idx = _.findIndex(resp.data.records, function(o) {
|
||||
return o.NonlabTemplateID == context.state.selected_nonlabtemplate.NonlabTemplateID
|
||||
});
|
||||
if (idx >= 0) {
|
||||
context.commit("update_selected_nonlabtemplate", resp.data.records[idx]);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_lookup_search", 3)
|
||||
context.commit("update_error_message", e.message)
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async addnonlab(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.addnonlab(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_dialog_form", false)
|
||||
let data = resp.data
|
||||
var msg = prm.name + " berhasil disimpan"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
}
|
||||
},
|
||||
|
||||
async editnonlab(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.editnonlab(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_dialog_form", false)
|
||||
let data = resp.data
|
||||
var msg = prm.name + " berhasil di edit"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
}
|
||||
},
|
||||
|
||||
async deletenonlab(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.deletenonlab(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", "")
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_dialog_form", false)
|
||||
var msg = prm.name + " berhasil dihapus"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_alert_error", true)
|
||||
context.commit("update_dialog_error", true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/nonlabtest.js"
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
lookup_search: 0,
|
||||
nonlabtests: [],
|
||||
total_nonlabtest: 0,
|
||||
error_message: "",
|
||||
selected_nonlabtest: {},
|
||||
last_id: -1,
|
||||
current_page: 1,
|
||||
x_search: "",
|
||||
selected_nonlabtemplatetestid: 0,
|
||||
dialog_form: false,
|
||||
act: 'new',
|
||||
loading_save: false,
|
||||
save_status: 2,
|
||||
alert_error: false,
|
||||
dialog_error: false,
|
||||
msg_success: "",
|
||||
alert_success: false,
|
||||
statuss: [{"M_StatusID": "A", "M_StatusName": "Semua"},{"M_StatusID": "Y", "M_StatusName": "Terpilih"},{"M_StatusID": "N", "M_StatusName": "Belum terpilih"}],
|
||||
selected_statuss: {"M_StatusID": "A", "M_StatusName": "Semua"}
|
||||
},
|
||||
mutations: {
|
||||
update_lookup_search(state, val) {
|
||||
state.lookup_search = val
|
||||
},
|
||||
update_nonlabtests(state, val) {
|
||||
state.nonlabtests = val
|
||||
},
|
||||
update_total_nonlabtest(state, val) {
|
||||
state.total_nonlabtest = val
|
||||
},
|
||||
update_error_message(state, val) {
|
||||
state.error_message = val
|
||||
},
|
||||
update_selected_nonlabtest(state, val) {
|
||||
state.selected_nonlabtest = val
|
||||
},
|
||||
update_last_id(state, val) {
|
||||
state.last_id = val
|
||||
},
|
||||
update_current_page(state, val) {
|
||||
state.current_page = val
|
||||
},
|
||||
update_x_search(state, val) {
|
||||
state.x_search = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_selected_nonlabtemplatetestid(state, val) {
|
||||
state.selected_nonlabtemplatetestid = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_dialog_form(state, val) {
|
||||
state.dialog_form = val
|
||||
},
|
||||
update_act(state, val) {
|
||||
state.act = val
|
||||
},
|
||||
update_loading_save(state, val) {
|
||||
state.loading_save = val
|
||||
},
|
||||
update_save_status(state, val) {
|
||||
state.save_status = val
|
||||
},
|
||||
update_alert_error(state, val) {
|
||||
state.alert_error = val
|
||||
},
|
||||
update_dialog_error(state, val) {
|
||||
state.dialog_error = val
|
||||
},
|
||||
update_msg_success(state, val) {
|
||||
state.msg_success = val
|
||||
},
|
||||
update_alert_success(state, val) {
|
||||
state.alert_success = val
|
||||
},
|
||||
update_statuss(state, val) {
|
||||
state.statuss = val
|
||||
},
|
||||
update_selected_statuss(state, val) {
|
||||
state.selected_statuss = val
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async lookuptest(context, prm) {
|
||||
context.commit("update_lookup_search", 1)
|
||||
try {
|
||||
var prm = {
|
||||
token: one_token(),
|
||||
search: context.state.x_search,
|
||||
current_page: context.state.current_page,
|
||||
last_id: context.state.last_id,
|
||||
nonlabtemplate_id: context.state.selected_nonlabtemplatetestid,
|
||||
status: context.state.selected_statuss.M_StatusID
|
||||
}
|
||||
let resp = await api.lookuptest(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_lookup_search", 3)
|
||||
} else {
|
||||
context.commit("update_lookup_search", 2)
|
||||
context.commit("update_error_message", "")
|
||||
let data = {
|
||||
records: resp.data.records,
|
||||
total: resp.data.total,
|
||||
total_filter: resp.data.total_filter
|
||||
}
|
||||
context.commit("update_nonlabtests", data.records)
|
||||
context.commit("update_total_nonlabtest", data.total)
|
||||
|
||||
if (context.state.last_id == -1) {
|
||||
if (resp.data && resp.data.records > 0) {
|
||||
context.commit("update_selected_nonlabtest", resp.data.records[0])
|
||||
}
|
||||
} else {
|
||||
let idx = _.findIndex(resp.data.records, function(o) {
|
||||
return o.Nat_TestID == context.state.selected_nonlabtest.Nat_TestID
|
||||
});
|
||||
if (idx >= 0) {
|
||||
context.commit("update_selected_nonlabtest", resp.data.records[idx]);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_lookup_search", 3)
|
||||
context.commit("update_error_message", e.message)
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async saveedittestmap(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
prm.token = one_token()
|
||||
let resp = await api.saveedittestmap(prm)
|
||||
if (resp.status != 'OK') {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_alert_error", true)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
let data = resp.data
|
||||
var msg = ''
|
||||
if (prm.status === 'N') {
|
||||
msg = "Pemeriksaan " + prm.name + " batal dipilih"
|
||||
} else {
|
||||
msg = "Pemeriksaan " + prm.name + " berhasil dipilih"
|
||||
}
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("lookuptest")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_alert_error", true)
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user