diff --git a/test/vuex/one-mcu-resume-individu-cponev8/api/price.js b/test/vuex/one-mcu-resume-individu-cponev8/api/price.js
new file mode 100644
index 0000000..184e956
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/api/price.js
@@ -0,0 +1,187 @@
+const URL = "/one-api/mockup/mdprice/mdprice/";
+
+// https://devcpone.aplikasi.web.id/one-api/mockup/mdprice/mdprice/searchpriceheader/
+
+export async function search(prm) {
+ try {
+ var resp = await axios.post(URL + 'searchpriceheader', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function insertheader(prm) {
+ try {
+ var resp = await axios.post(URL + 'insertpriceheader', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function editheader(prm) {
+ try {
+ var resp = await axios.post(URL + 'editpriceheader', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function deleteheader(prm) {
+ try {
+ var resp = await axios.post(URL + 'deletepriceheader', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function getfilterprice(prm) {
+ try {
+ var resp = await axios.post(URL + 'getfilterprice', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function searchpricetest(prm) {
+ try {
+ var resp = await axios.post(URL + 'searchpricetest', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function savetest(prm) {
+ try {
+ var resp = await axios.post(URL + 'savetest', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function searchpricetestautocomplete(prm) {
+ try {
+ var resp = await axios.post(URL + 'searchpriceheaderautocomplete', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function copyharga(prm) {
+ try {
+ var resp = await axios.post(URL + 'copyharga', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function validateheader(prm) {
+ try {
+ var resp = await axios.post(URL + 'validateheader', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/api/resume.js b/test/vuex/one-mcu-resume-individu-cponev8/api/resume.js
new file mode 100644
index 0000000..bc57fcf
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/api/resume.js
@@ -0,0 +1,148 @@
+const URL = "/one-api/mockup/mcuoffline/Resumeindividucponev8/";
+
+// https://devcpone.aplikasi.web.id/one-api/mockup/mdprice/mdprice/searchpriceheader/
+
+export async function getsetup(prm) {
+ try {
+ var resp = await axios.post(URL + 'getsetup', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function search(prm) {
+ try {
+ var resp = await axios.post(URL + 'search', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function getdetail(prm) {
+ try {
+ var resp = await axios.post(URL + 'getdetail', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function getdoctor(prm) {
+ try {
+ var resp = await axios.post(URL + 'getdoctor', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function getFitnessCategory(prm) {
+ try {
+ var resp = await axios.post(URL + 'getFitnessCategory', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function generateFitnessCategory(prm) {
+ try {
+ var resp = await axios.post(URL + 'generateFitnessCategory', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function save(prm) {
+ try {
+ var resp = await axios.post(URL + 'save', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
+export async function savedoctor(prm) {
+ try {
+ var resp = await axios.post(URL + 'savedoctor', prm);
+ if (resp.status != 200) {
+ return {
+ status: "ERR",
+ message: resp.statusText
+ };
+ }
+ let data = resp.data;
+ return data;
+ } catch (e) {
+ return {
+ status: "ERR",
+ message: e.message
+ };
+ }
+}
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceHeader.vue b/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceHeader.vue
new file mode 100644
index 0000000..46b96e1
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceHeader.vue
@@ -0,0 +1,1001 @@
+a
+
+
+ {{ successMsg }}
+ Close
+
+
+ {{ errorMsg }}
+ Close
+
+
+
+
+
+
+ FORM HARGA
+ {{
+ selectedPriceHeader.headerCode
+ }}
+ CODE
+
+
+
+
+
+
+
+
+
+
+ BATAL
+
+
+ SIMPAN
+
+
+
+
+
+
+
+
+ KONFIRMASI
+
+
+ Apakah anda yakin akan menghapus harga
+ {{ selectedPriceHeader.headerCode }}
+ {{ selectedPriceHeader.headerName }} ?
+
+
+
+
+
+ BATAL
+
+
+ YAKIN
+
+
+
+
+
+
+
+
+ FORM COPY HARGA
+
+ CODE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BATAL
+
+
+ SIMPAN
+
+
+
+
+
+
+
+ HARGA
+
+
+ add_box
+
+
+ content_copy
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ check_circle
+
+
+
+
+
+
+ info
+
+
+
+
+
+ error
+
+
+
+
+
+ {{ props.item.headerCode }}
+
+ {{ props.item.headerName }}
+
+
+
+
+ |
+
+
+
+
+ edit
+
+
+ delete
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceList.vue b/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceList.vue
new file mode 100644
index 0000000..a5b5cc8
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/components/onePriceList.vue
@@ -0,0 +1,992 @@
+
+
+
+
+
+
+ KONFIRMASI
+
+
+ Apakah anda yakin akan mevalidasi
+ {{ selectedPriceHeader.headerCode }}
+ {{ selectedPriceHeader.headerName }} ?
+
+
+
+
+
+ BATAL
+
+
+ YAKIN
+
+
+
+
+
+
+
+
+ {{ this.selectedPriceHeader.headerCode }}
+ {{ this.selectedPriceHeader.headerName }}
+
+
+ Simpan
+
+ Validasi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+
+ |
+
+
+ check
+
+
+ close
+
+
+ |
+
+
+
+ {{ props.item.testCode }}
+
+ {{ props.item.testName }}
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeLeft.vue b/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeLeft.vue
new file mode 100644
index 0000000..19c0967
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeLeft.vue
@@ -0,0 +1,646 @@
+
+
+
+
+
+
+ Cetak Label
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tutup
+
+
+
+
+ {{ successMsg }}
+ Close
+
+
+ {{ warningMsg }}
+ Close
+
+
+ {{ errorMsg }}
+ Close
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cetak Label
+
+
+
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+
+
+ |
+
+
+ {{ props.item.labNumber }}
+
+ |
+
+ {{ props.item.orderDate }}
+ |
+
+ {{ props.item.patientFullname }}
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeRight.vue b/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeRight.vue
new file mode 100644
index 0000000..fce800d
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/components/oneResumeRight.vue
@@ -0,0 +1,1392 @@
+
+
+
+
+
+ Hasil Generate Kategori Fitness
+
+
+
+
+ Kismpulan :
+
+ {{ dataFitness.status.name }} ({{ dataFitness.status.name_eng }})
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+ {{ props.item.type }} |
+ {{ props.item.Nat_TestName }} |
+ {{ props.item.Mcu_KelainanName }} |
+
+ {{ props.item.Mcu_FitnessCategoryName }} ({{
+ props.item.Mcu_FitnessCategoryEng
+ }})
+ |
+
+
+
+
+
+
+
+
+
+ Tutup
+
+
+
+
+
+
+
+
+
+ Pilih Dokter
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tutup
+ Simpan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ selectedPatient.labNumber }}
+
+
+
+ refresh
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ labelRESUME
+
+
+ assignment_ind
+ {{ getDoctorName(patientDetail.doctorName) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ NONLAB
+
+
+
+
+
+
+ FISIK
+
+
+
+
+
+
+ LABORATORIUM
+
+
+
+
+
+ {{ dtl.testName }} :
+
+
+
+
+
+
+
+
+
+
+ PUASA / TIDAK PUASA
+
+
+
+
+
+
+
+
+
+
+
+ KATEGORI FITNESS
+
+
+
+
+
+ Generate
+
+ KESIMPULAN
+
+
+
+
+
+
+ REKOMENDASI
+
+
+
+
+
+
+ SARAN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Belum ada hasil
+
+
+
+
+
+
+
+
+
+
+ Menanti sejenak janganlah gusar,
+ Loading sebentar pasti kelar,
+ Sabar menunggu, tenang di hati,
+ Sebentar lagi akan puas hati!
+
+
+
+
+
+
+
+
+
+ Menanti sejenak janganlah gusar,
+ Loading sebentar pasti kelar,
+ Sabar menunggu, tenang di hati,
+ Sebentar lagi akan puas hati!
+
+
+
+
+
+
+
+ {{ printtitle }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tutup
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/index.php b/test/vuex/one-mcu-resume-individu-cponev8/index.php
new file mode 100644
index 0000000..6f59750
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/index.php
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+ CPOne
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceHeader.vue b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceHeader.vue
new file mode 100644
index 0000000..5035b73
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceHeader.vue
@@ -0,0 +1,1001 @@
+
+
+
+ {{ successMsg }}
+ Close
+
+
+ {{ errorMsg }}
+ Close
+
+
+
+
+
+
+ FORM HARGA
+ {{
+ selectedPriceHeader.headerCode
+ }}
+ CODE
+
+
+
+
+
+
+
+
+
+
+ BATAL
+
+
+ SIMPAN
+
+
+
+
+
+
+
+
+ KONFIRMASI
+
+
+ Apakah anda yakin akan menghapus harga
+ {{ selectedPriceHeader.headerCode }}
+ {{ selectedPriceHeader.headerName }} ?
+
+
+
+
+
+ BATAL
+
+
+ YAKIN
+
+
+
+
+
+
+
+
+ FORM COPY HARGA
+
+ CODE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BATAL
+
+
+ SIMPAN
+
+
+
+
+
+
+
+ HARGA
+
+
+ add_box
+
+
+ content_copy
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ check_circle
+
+
+
+
+
+
+ info
+
+
+
+
+
+ error
+
+
+
+
+
+ {{ props.item.headerCode }}
+
+ {{ props.item.headerName }}
+
+
+
+
+ |
+
+
+
+
+ edit
+
+
+ delete
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceList.vue b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceList.vue
new file mode 100644
index 0000000..a5b5cc8
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/onePriceList.vue
@@ -0,0 +1,992 @@
+
+
+
+
+
+
+ KONFIRMASI
+
+
+ Apakah anda yakin akan mevalidasi
+ {{ selectedPriceHeader.headerCode }}
+ {{ selectedPriceHeader.headerName }} ?
+
+
+
+
+
+ BATAL
+
+
+ YAKIN
+
+
+
+
+
+
+
+
+ {{ this.selectedPriceHeader.headerCode }}
+ {{ this.selectedPriceHeader.headerName }}
+
+
+ Simpan
+
+ Validasi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+
+ |
+
+
+ check
+
+
+ close
+
+
+ |
+
+
+
+ {{ props.item.testCode }}
+
+ {{ props.item.testName }}
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeLeft.vue b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeLeft.vue
new file mode 100644
index 0000000..5c83e3c
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeLeft.vue
@@ -0,0 +1,624 @@
+
+
+
+
+
+
+ Cetak Label
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tutup
+
+
+
+
+ {{ successMsg }}
+ Close
+
+
+ {{ warningMsg }}
+ Close
+
+
+ {{ errorMsg }}
+ Close
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cetak Label
+
+
+
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+
+
+ |
+
+
+ {{ props.item.labNumber }}
+
+ |
+
+ {{ props.item.orderDate }}
+ |
+
+ {{ props.item.patientFullname }}
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeRight.vue b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeRight.vue
new file mode 100644
index 0000000..15547bd
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/components/oneResumeRight.vue
@@ -0,0 +1,1183 @@
+
+
+
+
+
+ Hasil Generate Kategori Fitness
+
+
+
+
+ Kismpulan :
+
+ {{ dataFitness.status.name }} ({{ dataFitness.status.name_eng }})
+
+
+
+
+
+ |
+ {{ header.text }}
+ |
+
+
+
+
+ {{ props.item.type }} |
+ {{ props.item.Nat_TestName }} |
+ {{ props.item.Mcu_KelainanName }} |
+
+ {{ props.item.Mcu_FitnessCategoryName }} ({{
+ props.item.Mcu_FitnessCategoryEng
+ }})
+ |
+
+
+
+
+
+
+
+
+
+ Tutup
+
+
+
+
+
+
+
+
+
+ Pilih Dokter
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tutup
+ Simpan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ selectedPatient.labNumber }}
+
+
+
+ refresh
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ labelRESUME
+
+
+ assignment_ind
+ {{ getDoctorName(patientDetail.doctorName) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ NONLAB
+
+
+
+
+
+
+ FISIK
+
+
+
+
+
+
+ LABORATORIUM
+
+
+
+
+
+ {{ dtl.testName }} :
+
+
+
+
+
+
+
+
+
+ KATEGORI FITNESS
+
+
+
+
+
+ Generate
+
+ KESIMPULAN
+
+
+
+
+
+
+ REKOMENDASI
+
+
+
+
+
+
+ SARAN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Belum ada hasil
+
+
+
+
+
+
+
+
+
+
+ Menanti sejenak janganlah gusar,
+ Loading sebentar pasti kelar,
+ Sabar menunggu, tenang di hati,
+ Sebentar lagi akan puas hati!
+
+
+
+
+
+
+
+
+
+ Menanti sejenak janganlah gusar,
+ Loading sebentar pasti kelar,
+ Sabar menunggu, tenang di hati,
+ Sebentar lagi akan puas hati!
+
+
+
+
+
+
+
+
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/price.js b/test/vuex/one-mcu-resume-individu-cponev8/modules/price.js
new file mode 100644
index 0000000..f3aaaf5
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/price.js
@@ -0,0 +1,475 @@
+// 1 => LOADING
+// 2 => DONE
+// 3 => ERROR
+import * as api from "../api/price.js"
+
+export default {
+ namespaced: true,
+ state: {
+ lookup_status: 0,
+ searchPrice: "",
+ priceHeaderList: [],
+ loading: false,
+ page: 1,
+ totalPageHeader: 0,
+ errorMsg: '',
+ snackbarSuccess: false,
+ snackbarError: false,
+ successMsg: '',
+ selectedPriceHeader: {
+ "headerID": "0",
+ "headerName": "",
+ "headerStartDate": "",
+ "headerEndDate": "",
+ "headerCode": "CODE"
+ },
+ dialogPriceHeader: false,
+ dialogDeleteHeader: false,
+ startDateHeader: moment(new Date()).format('YYYY-MM-DD'),
+ endDateHeader: moment(new Date()).format('YYYY-MM-DD'),
+ nameHeader: "",
+ filterName: "",
+ filterSubGroup: [],
+ filterStatus: [],
+ selectedFilterSubGroup: {
+ "id": "0",
+ 'name': 'Semua'
+ },
+ selectedFilterStatus: {
+ "id": "A",
+ 'name': 'Semua'
+ },
+ priceTestList: [],
+ priceTestPageTotal: 0,
+ priceTestPage: 1,
+ priceHeaderCopyList: [],
+ selectedPriceHeaderCopy: {},
+ dialogCopyHarga: false,
+ copyPacket: false,
+ dialogValidasi: false,
+ },
+ mutations: {
+ update_lookup_status(state, val) {
+ state.lookup_status = val
+ },
+ update_searchPrice(state, val) {
+ state.searchPrice = val
+ },
+ update_priceHeaderList(state, val) {
+ state.priceHeaderList = val
+ },
+ update_loading(state, val) {
+ state.loading = val
+ },
+ update_page(state, val) {
+ state.page = val
+ },
+ update_totalPageHeader(state, val) {
+ state.totalPageHeader = val
+ },
+ update_errorMsg(state, val) {
+ state.errorMsg = val
+ },
+ update_snackbarSuccess(state, val) {
+ state.snackbarSuccess = val
+ },
+ update_snackbarError(state, val) {
+ state.snackbarError = val
+ },
+ update_successMsg(state, val) {
+ state.successMsg = val
+ },
+ update_selectedPriceHeader(state, val) {
+ state.selectedPriceHeader = val
+ },
+ update_dialogPriceHeader(state, val) {
+ state.dialogPriceHeader = val
+ },
+ update_startDateHeader(state, val) {
+ state.startDateHeader = val
+ },
+ update_endDateHeader(state, val) {
+ state.endDateHeader = val
+ },
+ update_nameHeader(state, val) {
+ state.nameHeader = val
+ },
+ update_dialogDeleteHeader(state, val) {
+ state.dialogDeleteHeader = val
+ },
+ update_filterName(state, val) {
+ state.filterName = val
+ },
+ update_filterStatus(state, val) {
+ state.filterStatus = val
+ },
+ update_filterSubGroup(state, val) {
+ state.filterSubGroup = val
+ },
+ update_selectedFilterStatus(state, val) {
+ state.selectedFilterStatus = val
+ },
+ update_selectedFilterSubGroup(state, val) {
+ state.selectedFilterSubGroup = val
+ },
+ update_priceTestList(state, val) {
+ state.priceTestList = val
+ },
+ update_priceTestPageTotal(state, val) {
+ state.priceTestPageTotal = val
+ },
+ update_priceTestPage(state, val) {
+ state.priceTestPage = val
+ },
+ update_priceHeaderCopyList(state, val) {
+ state.priceHeaderCopyList = val
+ },
+ update_selectedPriceHeaderCopy(state, val) {
+ state.selectedPriceHeaderCopy = val
+ },
+ update_dialogCopyHarga(state, val) {
+ state.dialogCopyHarga = val
+ },
+ update_copyPacket(state, val) {
+ state.copyPacket = val
+ },
+ update_dialogValidasi(state, val) {
+ state.dialogValidasi = val
+ },
+ },
+ actions: {
+ async searchPriceHeader(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ page: context.state.page,
+ search: context.state.searchPrice
+ }
+ let resp = await api.search(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", false)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+ context.commit("update_priceHeaderList", resp.data.records)
+ if (resp.data.records.length > 0 && context.state.selectedPriceHeader.headerID === "0") {
+ context.commit("update_selectedPriceHeader", resp.data.records[0])
+ context.dispatch("searchpricetest")
+ // this.$store.dispatch("price/searchpricetest");
+
+ } else if (resp.data.records.length > 0 && context.state.selectedPriceHeader.headerID !== "0") {
+ for (let i = 0; i < resp.data.records.length; i++) {
+ const e = resp.data.records[i];
+ if (e.headerID === context.state.selectedPriceHeader.headerID) {
+ context.commit("update_selectedPriceHeader", e)
+ }
+
+ }
+ }
+ context.commit("update_totalPageHeader", resp.data.total)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", false)
+
+ }
+ },
+ async insertPriceHeader(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ name: context.state.nameHeader,
+ sd: context.state.startDateHeader,
+ ed: context.state.endDateHeader
+ }
+ let resp = await api.insertheader(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_successMsg", 'Berhasil Membuat Harga ' + context.state.nameHeader)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_dialogPriceHeader", false)
+ context.commit("update_nameHeader", '')
+ context.dispatch("searchPriceHeader")
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async editPriceHeader(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ id: context.state.selectedPriceHeader.headerID,
+ token: one_token(),
+ name: context.state.nameHeader,
+ sd: context.state.startDateHeader,
+ ed: context.state.endDateHeader
+ }
+ let resp = await api.editheader(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_successMsg", 'Berhasil Edit Harga ' + context.state.nameHeader)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_dialogPriceHeader", false)
+ context.commit("update_nameHeader", '')
+ context.dispatch("searchPriceHeader")
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async deletePriceHeader(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ id: context.state.selectedPriceHeader.headerID,
+ token: one_token(),
+ }
+ let resp = await api.deleteheader(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_successMsg", 'Berhasil Hapus Harga ' + context.state.nameHeader)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_dialogDeleteHeader", false)
+ context.commit("update_nameHeader", '')
+ context.dispatch("searchPriceHeader")
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", true)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async getpricefilter(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ }
+ let resp = await api.getfilterprice(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+
+ context.commit("update_filterStatus", resp.data.status)
+ context.commit("update_filterSubGroup", resp.data.subgroup)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async searchpricetest(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ search: context.state.filterName,
+ subgroup: context.state.selectedFilterSubGroup.id,
+ status: context.state.selectedFilterStatus.id,
+ headerid: context.state.selectedPriceHeader.headerID,
+ page: context.state.priceTestPage,
+ }
+ let resp = await api.searchpricetest(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+ context.commit("update_priceTestList", resp.data.records)
+ context.commit("update_priceTestPageTotal", resp.data.total)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async savetest(context, prm) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ prm.token = one_token();
+ prm.headerid = context.state.selectedPriceHeader.headerID
+
+ let resp = await api.savetest(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_snackbarError", false)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_successMsg", 'Berhasil simpan harga')
+ context.commit("update_snackbarSuccess", false)
+ context.commit("update_loading", false)
+ context.dispatch("searchpricetest");
+ context.dispatch("searchPriceHeader");
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async copyharga(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ headerid: context.state.selectedPriceHeaderCopy.headerID,
+ name: context.state.nameHeader,
+ copypacket: context.state.copyPacket
+ }
+
+ let resp = await api.copyharga(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", false)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+ context.commit("update_successMsg", 'Berhasil copy harga')
+ context.commit("update_snackbarSuccess", false)
+ context.dispatch("searchPriceHeader");
+ context.commit("update_dialogCopyHarga", false)
+ context.commit("update_nameHeader", '')
+ context.commit("update_selectedPriceHeaderCopy", {})
+ context.commit("update_copyPacket", false)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async validateheader(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ id: context.state.selectedPriceHeader.headerID,
+ }
+
+ let resp = await api.validateheader(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_successMsg", 'Berhasil validasi price header')
+ context.commit("update_snackbarSuccess", false)
+
+ context.commit("update_loading", false)
+ context.commit("update_dialogValidasi", false)
+ context.dispatch("searchPriceHeader");
+ context.dispatch("searchpricetest");
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ }
+ },
+ async searchPriceHeaderAutocomplete(context, prm) {
+ context.commit("update_lookup_status", 1)
+ try {
+ prm.token = one_token();
+ prm.headerid = context.state.selectedPriceHeader.headerID
+
+ let resp = await api.searchpricetestautocomplete(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+
+ context.commit("update_errorMsg", resp.message)
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_priceHeaderCopyList", resp.data.records)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+
+ context.commit("update_errorMsg", e)
+ }
+ },
+ }
+}
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/modules/resume.js b/test/vuex/one-mcu-resume-individu-cponev8/modules/resume.js
new file mode 100644
index 0000000..2f1aaa9
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/modules/resume.js
@@ -0,0 +1,460 @@
+// 1 => LOADING
+// 2 => DONE
+// 3 => ERROR
+import * as api from "../api/resume.js"
+
+export default {
+ namespaced: true,
+ state: {
+ lookup_status: 0,
+ loading: false,
+ setupList: [],
+ selectedSetup: {},
+ startDate: moment(new Date()).format('YYYY-MM-DD'),
+ endDate: moment(new Date()).format('YYYY-MM-DD'),
+ search: '',
+ errorMsg: '',
+ snackbarSuccess: false,
+ snackbarError: false,
+ successMsg: '',
+ patientList: [],
+ selectedPatient: {},
+ totalPage: 0,
+ page: 1,
+ patientDetail: {
+ detail: [],
+ puasaStatus: null,
+ puasaLabel: ""
+ },
+ rekomendasi: '',
+ recomendation: '',
+ saran: '',
+ advice: '',
+ conclusion: '',
+ kesimpulan: '',
+ doctorList: [],
+ selectedDoctor: {},
+ searchDoctor: '',
+ dialogDoctor: false,
+ loadingSave: false,
+ loadingDetail: false,
+ fitnessCategory: [],
+ selectedFitnessCategory: 0,
+ dialogFitness: false,
+ dataFitness: {
+ "status": {
+ "name": "",
+ "name_eng": "",
+ "level": ""
+ },
+ "data": []
+ },
+ },
+ mutations: {
+ update_dialogFitness(state, val) {
+ state.dialogFitness = val
+ },
+ update_dataFitness(state, val) {
+ state.dataFitness = val
+ },
+ update_selectedFitnessCategory(state, val) {
+ state.selectedFitnessCategory = val
+ },
+ update_fitnessCategory(state, val) {
+ state.fitnessCategory = val
+ },
+ update_lookup_status(state, val) {
+ state.lookup_status = val
+ },
+ update_loading(state, val) {
+ state.loading = val
+ },
+ update_setupList(state, val) {
+ state.setupList = val
+ },
+ update_selectedSetup(state, val) {
+ state.selectedSetup = val
+ },
+ update_startDate(state, val) {
+ state.startDate = val
+ },
+ update_endDate(state, val) {
+ state.endDate = val
+ },
+ update_search(state, val) {
+ state.search = val
+ },
+ update_errorMsg(state, val) {
+ state.errorMsg = val
+ },
+ update_snackbarSuccess(state, val) {
+ state.snackbarSuccess = val
+ },
+ update_snackbarError(state, val) {
+ state.snackbarError = val
+ },
+ update_successMsg(state, val) {
+ state.successMsg = val
+ },
+ update_patientList(state, val) {
+ state.patientList = val
+ },
+ update_selectedPatient(state, val) {
+ state.selectedPatient = val
+ },
+ update_totalPage(state, val) {
+ state.totalPage = val
+ },
+ update_page(state, val) {
+ state.page = val
+ },
+ update_patientDetail(state, val) {
+ state.patientDetail = val
+ },
+ update_rekomendasi(state, val) {
+ state.rekomendasi = val
+ },
+ update_kesimpulan(state, val) {
+ state.kesimpulan = val
+ },
+ update_conclusion(state, val) {
+ state.conclusion = val
+ },
+ update_recomendation(state, val) {
+ state.recomendation = val
+ },
+ update_advice(state, val) {
+ state.advice = val
+ },
+ update_saran(state, val) {
+ state.saran = val
+ },
+ reset_input(state) {
+ state.kesimpulan = '';
+ state.rekomendasi = '';
+ state.saran = '';
+ state.advice = '';
+ state.conclusion = '';
+ state.recomendation = '';
+ state.patientDetail = {
+ detail: [],
+ puasaStatus: null,
+ puasaLabel: ""
+ };
+ },
+ update_doctorList(state, val) {
+ state.doctorList = val
+ },
+ update_selectedDoctor(state, val) {
+ state.selectedDoctor = val
+ },
+ update_searchDoctor(state, val) {
+ state.searchDoctor = val
+ },
+ update_dialogDoctor(state, val) {
+ state.dialogDoctor = val
+ },
+ update_loadingSave(state, val) {
+ state.loadingSave = val
+ },
+ update_loadingDetail(state, val) {
+ state.loadingDetail = val
+ },
+ },
+ actions: {
+ async getsetup(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ }
+ let resp = await api.getsetup(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+ context.commit("update_setupList", resp.data.records)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ async search(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ search: context.state.search,
+ page: context.state.page,
+ startDate: context.state.startDate,
+ endDate: context.state.endDate,
+ setupID: context.state.selectedSetup.Mgm_McuID
+ }
+ let resp = await api.search(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+ context.commit("update_patientList", resp.data.records)
+ context.commit("update_totalPage", resp.data.total)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ async getdetail(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loadingDetail", true)
+ try {
+ let prm = {
+ token: one_token(),
+ orderid: context.state.selectedPatient.orderID,
+ }
+ let resp = await api.getdetail(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loadingDetail", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+
+ context.commit("update_patientDetail", resp.data.header);
+ context.commit("update_selectedFitnessCategory", resp.data.header.fitnessCategory);
+
+ // if (resp.data.records.length > 0) {
+ // context.commit("update_rekomendasi", resp.data.records[0].resumeRekomendasi)
+ // context.commit("update_kesimpulan", resp.data.records[0].resumeKesimpulan)
+ // context.commit("update_saran", resp.data.records[0].resumeSaran)
+ // }
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loadingDetail", false)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loadingDetail", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ async getdoctorlist(context, prm) {
+ context.commit("update_lookup_status", 1)
+ // context.commit("update_loading", true)
+ try {
+ prm.token = one_token()
+ let resp = await api.getdoctor(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+ context.commit("update_doctorList", resp.data.records)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", false)
+
+ }
+ },
+ async getFitnessCategory(context) {
+ context.commit("update_lookup_status", 1)
+ // context.commit("update_loading", true)
+ try {
+ let prm = {};
+ prm.token = one_token()
+ let resp = await api.getFitnessCategory(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_loading", false)
+
+ let data = {
+ records: resp.data.records,
+ total: resp.data.total
+ }
+ context.commit("update_fitnessCategory", resp.data.records)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", false)
+
+ }
+ },
+ async save(context, prm) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loadingSave", true)
+ try {
+ prm.token = one_token()
+ let resp = await api.save(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loadingSave", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ await context.dispatch("search")
+ await context.dispatch("getdetail")
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_successMsg", 'Berhasil Simpan Data')
+ context.commit("update_loadingSave", false)
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loadingSave", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ async savedoctor(context, prm) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ prm.token = one_token()
+ let resp = await api.savedoctor(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ await context.dispatch("search")
+ await context.dispatch("getdetail")
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_successMsg", 'Berhasil Simpan Data')
+ context.commit("update_loading", false)
+ context.commit("update_dialogDoctor", false)
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ async generateFitnessCategory(context) {
+ context.commit("update_lookup_status", 1)
+ context.commit("update_loading", true)
+ try {
+ let prm = {
+ token: one_token(),
+ orderid: context.state.selectedPatient.orderID,
+ kesimpulan: context.state.patientDetail.kesimpulan,
+ rekomendasi: context.state.patientDetail.rekomendasi,
+ saran: context.state.patientDetail.saran,
+ conclusion: context.state.patientDetail.conclusion,
+ recomendation: context.state.patientDetail.recomendation,
+ advice: context.state.patientDetail.advice
+ }
+ let resp = await api.generateFitnessCategory(prm)
+ if (resp.status != "OK") {
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", resp.message)
+ context.commit("update_snackbarError", true)
+
+ } else {
+ context.commit("update_lookup_status", 2)
+ context.commit("update_errorMsg", '')
+ context.commit("update_snackbarSuccess", true)
+ context.commit("update_successMsg", 'Berhasil Simpan Data')
+ context.commit("update_loading", false)
+ await context.dispatch("search")
+ await context.dispatch("getdetail")
+ context.commit("update_dialogFitness", true);
+ let a = {};
+ for (let i = 0; i < resp.data.data.length; i++) {
+ resp.data.data[i].Nat_TestName.replace('|', ', ')
+ }
+
+ context.commit("update_dataFitness", resp.data);
+
+ }
+ } catch (e) {
+ console.log(e)
+ context.commit("update_lookup_status", 3)
+ context.commit("update_loading", false)
+ context.commit("update_errorMsg", e)
+ context.commit("update_snackbarError", true)
+
+ }
+ },
+ }
+}
diff --git a/test/vuex/one-mcu-resume-individu-cponev8/store.js b/test/vuex/one-mcu-resume-individu-cponev8/store.js
new file mode 100644
index 0000000..c420041
--- /dev/null
+++ b/test/vuex/one-mcu-resume-individu-cponev8/store.js
@@ -0,0 +1,28 @@
+// State
+// data ...
+// Mutations
+//
+//
+// Actions
+import price from "./modules/price.js";
+import resume from "./modules/resume.js";
+import system from "../../../apps/modules/system/system.js";
+export const store = new Vuex.Store({
+ modules: {
+ resume: resume,
+ system: system
+ },
+ state: {
+ tab_selected: 'pasien-dokter'
+ },
+ mutations: {
+ change_tab(state, ntab) {
+ state.tab_selected = ntab
+ }
+ },
+ actions: {
+ change_tab(context, ntab) {
+ context.commit('change_tab', ntab)
+ }
+ }
+});
\ No newline at end of file