Flatten nested repos
This commit is contained in:
132
test/vuex/one-fo-verification-simple/modules/verification.js
Normal file
132
test/vuex/one-fo-verification-simple/modules/verification.js
Normal file
@@ -0,0 +1,132 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
//import * as api from "../api/patient.js"
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
dialog_delivery_is_active: false,
|
||||
verification_patient: [
|
||||
{ 'id': 1, 'chex': false, 'note': '', 'label': 'Nama sudah sesuai' },
|
||||
{ 'id': 2, 'chex': false, 'note': '', 'label': 'No RM sudah sesuai' },
|
||||
{ 'id': 3, 'chex': false, 'note': '', 'label': 'Alamat sudah sesuai' },
|
||||
{ 'id': 4, 'chex': false, 'note': '', 'label': 'No HP sudah sesuai' },
|
||||
{ 'id': 5, 'chex': false, 'note': '', 'label': 'DOB sudah sesuai' },
|
||||
{ 'id': 6, 'chex': false, 'note': '', 'label': 'Umur sudah sesuai' }
|
||||
],
|
||||
verification_doctor: [
|
||||
{ 'id': 1, 'chex': false, 'note': '', 'label': 'Nama dokter sudah sesuai' },
|
||||
{ 'id': 2, 'chex': false, 'note': '', 'label': 'Alamat sudah sesuai' }
|
||||
],
|
||||
verification_delivery: [
|
||||
{ 'id': 1, 'chex': false, 'note': '', 'vilageid': 0, 'type': 'reguler', 'label': 'Email ke Dokter : emaildoctor@email.com' },
|
||||
{ 'id': 2, 'chex': false, 'note': '', 'vilageid': 2, 'type': 'indigo', 'label': 'Kirim ke Pasien : Jl. Padepokan Rindu No. 99 Tegal Barat' }
|
||||
],
|
||||
verification_payment: [
|
||||
{ 'id': 1, 'chex': false, 'note': '', 'type': 'reguler', 'label': 'Minimum pembayaran terpenuhi' }
|
||||
],
|
||||
verification_supplies: [
|
||||
{ 'id': 1, 'chex': false, 'qty': '', 'name': '-' }
|
||||
],
|
||||
verification_barcode: [
|
||||
{ 'id': 1, 'chex': false, 'qty': '', 'samplename': '-', 'barcodenumber': '-', 'qty': 1 }
|
||||
],
|
||||
verification_companymou: [
|
||||
{ 'id': 1, 'chex': false, 'note': '', 'label': 'Nama comany sudah sesuai' },
|
||||
{ 'id': 2, 'chex': false, 'note': '', 'label': 'Mou sudah sesuai' }
|
||||
],
|
||||
verification_px: [
|
||||
{ 'id': 1, 'chex': false, 'pxname': '', 'bruto': '-', 'discount': '-', 'total': 1, 'addon': false }
|
||||
],
|
||||
verification_info: [
|
||||
{ 'id': 6, 'chex': false, 'note': '', 'label': 'Receive sample only' }
|
||||
]
|
||||
},
|
||||
mutations: {
|
||||
update_dialog_delivery_is_active(state, status) {
|
||||
state.dialog_delivery_is_active = status
|
||||
},
|
||||
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].chex = data.val
|
||||
},
|
||||
update_verification_patient(state, data) {
|
||||
state.verification_patient = data
|
||||
},
|
||||
update_verification_doctor(state, data) {
|
||||
state.verification_doctor = data
|
||||
},
|
||||
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].chex = data.val
|
||||
},
|
||||
update_verification_delivery(state, data) {
|
||||
state.verification_delivery = data
|
||||
},
|
||||
update_testing_txt_parent_delivery(state, data) {
|
||||
state.verification_delivery[data.idx].note = data.val
|
||||
},
|
||||
update_testing_cbx_parent_delivery(state, data) {
|
||||
state.verification_delivery[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_payment(state, data) {
|
||||
state.verification_payment = data
|
||||
},
|
||||
update_testing_txt_parent_payment(state, data) {
|
||||
state.verification_payment[data.idx].note = data.val
|
||||
},
|
||||
update_testing_cbx_parent_payment(state, data) {
|
||||
state.verification_payment[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_supplies(state, data) {
|
||||
state.verification_supplies = data
|
||||
},
|
||||
update_testing_txt_parent_supplies(state, data) {
|
||||
state.verification_supplies[data.idx].qty = data.val
|
||||
},
|
||||
update_testing_cbx_parent_supplies(state, data) {
|
||||
state.verification_supplies[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_barcode(state, data) {
|
||||
state.verification_barcode = data
|
||||
},
|
||||
update_testing_qty_parent_barcode(state, data) {
|
||||
state.verification_barcode[data.idx].qty = data.val
|
||||
},
|
||||
update_testing_cbx_parent_barcode(state, data) {
|
||||
state.verification_barcode[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_company_mou(state, data) {
|
||||
state.verification_companymou = data
|
||||
},
|
||||
update_testing_txt_parent_company_mou(state, data) {
|
||||
state.verification_companymou[data.idx].note = data.val
|
||||
},
|
||||
update_testing_cbx_parent_company_mou(state, data) {
|
||||
state.verification_companymou[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_px(state, data) {
|
||||
state.verification_px = data
|
||||
},
|
||||
update_testing_cbx_parent_px(state, data) {
|
||||
state.verification_px[data.idx].chex = data.val
|
||||
},
|
||||
update_verification_info(state, data) {
|
||||
state.verification_info = data
|
||||
},
|
||||
update_testing_txt_parent_info(state, data) {
|
||||
state.verification_info[data.idx].note = data.val
|
||||
},
|
||||
update_testing_cbx_parent_info(state, data) {
|
||||
state.verification_info[data.idx].chex = data.val
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user