|
@@ -226,12 +226,13 @@
|
|
|
}, 'json')
|
|
|
},
|
|
|
getPrefillValues: function() {
|
|
|
- this.payload.lines = [{
|
|
|
- cpt: '',
|
|
|
- dateOfService: '{{date('Y-m-d')}}',
|
|
|
- icds: JSON.parse(JSON.stringify(window.rmReasons)),
|
|
|
- numberOfUnits: 1
|
|
|
- }];
|
|
|
+ @if(@$careMonth && !empty($careMonth->claim_suggestion_json))
|
|
|
+ let csj = {!! $careMonth->claim_suggestion_json !!};
|
|
|
+ if(csj && csj.lines && csj.lines.length) {
|
|
|
+ this.payload.lines.splice(0, 1);
|
|
|
+ this.payload.lines = csj.lines;
|
|
|
+ }
|
|
|
+ @endif
|
|
|
}
|
|
|
},
|
|
|
mounted: function () {
|