Dung Diego

up

...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
8 <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"> 8 <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
9 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-datetime-picker@2.5.11/jquery.datetimepicker.min.css"> 9 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-datetime-picker@2.5.11/jquery.datetimepicker.min.css">
10 <link rel="stylesheet" href="{{ asset('css/app.css') }}"> 10 <link rel="stylesheet" href="{{ asset('css/app.css') }}">
11 -<link rel="stylesheet" href="{{ asset('css/custom2.css') }}?v={{ filemtime(public_path('css/custom2.css')) }}">
12 <link rel="stylesheet" href="{{ asset('css/select2_multiple.css') }}"> 11 <link rel="stylesheet" href="{{ asset('css/select2_multiple.css') }}">
13 12
14 <style> 13 <style>
...@@ -72,7 +71,7 @@ ...@@ -72,7 +71,7 @@
72 <div class="loading text-center"><div class="spinner-container"><div role="status" class="spinner-border text-primary"><span class="sr-only">Loading...</span></div></div></div> 71 <div class="loading text-center"><div class="spinner-container"><div role="status" class="spinner-border text-primary"><span class="sr-only">Loading...</span></div></div></div>
73 <div class="pdf-container" :style="{width: this.ocr.mst_template.image.width*0.3155 + 'px',height: this.ocr.mst_template.image.height*0.3155 + 'px'}"> 72 <div class="pdf-container" :style="{width: this.ocr.mst_template.image.width*0.3155 + 'px',height: this.ocr.mst_template.image.height*0.3155 + 'px'}">
74 <div class="text-center" @mousedown="ocr_start_select" @mousemove="ocr_move_select" @mouseup="ocr_end_select" > 73 <div class="text-center" @mousedown="ocr_start_select" @mousemove="ocr_move_select" @mouseup="ocr_end_select" >
75 - <img :src="`{{route('order.show_pdf')}}?file_path=`+ocr.image_path" class="img-fluid border" draggable="false" /> 74 + <img :src="`{{route('show_pdf')}}?file_path=`+ocr.image_path" class="img-fluid border" draggable="false" />
76 <div @click.stop="ocr_open_field(index)" class="ocr ocr-field" :class="{'ocr-disable-pointer': ocr_handler.drag.selecting > 0}" 75 <div @click.stop="ocr_open_field(index)" class="ocr ocr-field" :class="{'ocr-disable-pointer': ocr_handler.drag.selecting > 0}"
77 v-for="(ocr_field,index) in ocr.json_data.ocr_cells" :data-index="index" :title="ocr_field.text" 76 v-for="(ocr_field,index) in ocr.json_data.ocr_cells" :data-index="index" :title="ocr_field.text"
78 :style="{position: 'absolute',left: ocr_field.style.left + 'px',top: ocr_field.style.top + 'px',width: ocr_field.style.width + 'px', 77 :style="{position: 'absolute',left: ocr_field.style.left + 'px',top: ocr_field.style.top + 'px',width: ocr_field.style.width + 'px',
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
127 </div> 126 </div>
128 </div> 127 </div>
129 <div v-for="page_num in (ocr.json_data.page_total - 1)" :key="page_num" :style="{width: ocr.mst_template.image.width * 0.3155 + 'px',height: ocr.mst_template.image.height * 0.3155 + 'px'}"> 128 <div v-for="page_num in (ocr.json_data.page_total - 1)" :key="page_num" :style="{width: ocr.mst_template.image.width * 0.3155 + 'px',height: ocr.mst_template.image.height * 0.3155 + 'px'}">
130 - <img :src="`{{ route('order.show_pdf') }}?file_path=` + ocr.image_path.replace(/\.jpg$/, `_${page_num}.jpg`)" class="img-fluid border" draggable="false" /> 129 + <img :src="`{{ route('show_pdf') }}?file_path=` + ocr.image_path.replace(/\.jpg$/, `_${page_num}.jpg`)" class="img-fluid border" draggable="false" />
131 </div> 130 </div>
132 </div> 131 </div>
133 132
......
...@@ -15,5 +15,6 @@ ...@@ -15,5 +15,6 @@
15 */ 15 */
16 16
17 Route::get('/', [OcrController::class,'index']); 17 Route::get('/', [OcrController::class,'index']);
18 +Route::post('/show-pdf', [OcrController::class,'show_pdf'])->name('show_pdf');
18 Route::post('/preview-pdf', [OcrController::class,'preview_pdf'])->name('preview_pdf'); 19 Route::post('/preview-pdf', [OcrController::class,'preview_pdf'])->name('preview_pdf');
19 Route::post('/import-pdf', [OcrController::class,'import_pdf'])->name('import_pdf'); 20 Route::post('/import-pdf', [OcrController::class,'import_pdf'])->name('import_pdf');
......