Эх сурвалжийг харах

Claims modal - model binding fix

Vijayakrishnan 4 жил өмнө
parent
commit
b2f8d28125

+ 3 - 2
resources/views/app/patient/note/_create-claim.blade.php

@@ -79,7 +79,7 @@
                     {
                         cpt: '',
                         dateOfService: '{{date('Y-m-d')}}',
-                        icds: window.noteReasons
+                        icds: JSON.parse(JSON.stringify(window.noteReasons))
                     }
                 ]
             }
@@ -89,7 +89,7 @@
                 this.payload.lines.push({
                     cpt: '',
                     dateOfService: '{{date('Y-m-d')}}',
-                    icds: window.noteReasons
+                    icds: JSON.parse(JSON.stringify(window.noteReasons))
                 });
                 Vue.nextTick(() => {
                     this.initICDAutoSuggest();
@@ -131,6 +131,7 @@
                     );
                     window.Def.Autocompleter.Event.observeListSelections(dynID, function () {
                         let acData = elem.autocomp.getSelectedItemData();
+                        console.log('ALIX', lineIndex, icdIndex);
                         self.payload.lines[lineIndex].icds[icdIndex].code = acData[0].code;
                         self.payload.lines[lineIndex].icds[icdIndex].description = acData[0].data.name;
                         return false;