Files
FE_CPONE/test/vuex/one-fo-verification/modules/deliverypayment.js
2026-04-27 10:13:31 +07:00

43 lines
1.4 KiB
JavaScript

// 1 => LOADING
// 2 => DONE
// 3 => ERROR
//import * as api from "../api/patient.js"
export default {
namespaced: true,
state: {
verification_delivery:[
{'id':1,'check':false,'note':'','label':'Email ke Dokter : emaildoctor@email.com'},
{'id':2,'check':false,'note':'','label':'Kirim ke Pasien : Jl. Padepokan Rindu No. 99 Tegal Barat'}
],
verification_payment:[
{'id':1,'check':false,'note':'','label':'Minimum pembayaran terpenuhi'}
]
},
mutations: {
update_testing_txt_parent_patient(state,data) {
state.verification_patient[data.idx].note = data.val
},
update_testing_cbx_parent_patient(state,data) {
state.verification_patient[data.idx].check = data.val
},
update_verification_patient(state,data){
state.verification_patient = data.verification_patient
},
update_verification_doctor(state,data){
state.verification_doctor = data.verification_doctor
},
update_testing_txt_parent_doctor(state,data) {
state.verification_doctor[data.idx].note = data.val
},
update_testing_cbx_parent_doctor(state,data) {
state.verification_doctor[data.idx].check = data.val
}
},
actions: {
}
}