浏览代码

wip print documents

3.x
Andrew Wallo 7 个月前
父节点
当前提交
642bbca9b2

+ 3
- 0
resources/css/app.css 查看文件

1
+@tailwind base;
2
+@tailwind components;
3
+@tailwind utilities;

+ 1
- 1
resources/views/filament/infolists/components/document-templates/modern.blade.php 查看文件

91
                 </tr>
91
                 </tr>
92
             @endforeach
92
             @endforeach
93
             </tbody>
93
             </tbody>
94
-            <tfoot class="text-sm tracking-tight">
94
+            <tfoot class="text-sm tracking-tight summary-section">
95
             <tr>
95
             <tr>
96
                 <td class="pl-6 py-2" colspan="2"></td>
96
                 <td class="pl-6 py-2" colspan="2"></td>
97
                 <td class="text-right font-semibold py-2">Subtotal:</td>
97
                 <td class="text-right font-semibold py-2">Subtotal:</td>

+ 15
- 0
resources/views/print-document.blade.php 查看文件

54
                 overflow: hidden !important;
54
                 overflow: hidden !important;
55
                 max-height: none !important;
55
                 max-height: none !important;
56
             }
56
             }
57
+
58
+            .modern-template-line-items .summary-section {
59
+                display: table-row-group;
60
+                page-break-inside: avoid;
61
+            }
62
+
63
+            .modern-template-line-items tr {
64
+                page-break-inside: avoid;
65
+                page-break-after: auto;
66
+            }
67
+
68
+            .modern-template-footer {
69
+                page-break-inside: avoid;
70
+                page-break-before: auto;
71
+            }
57
         }
72
         }
58
     </style>
73
     </style>
59
 </head>
74
 </head>

+ 1
- 0
vite.config.js 查看文件

6
         laravel({
6
         laravel({
7
             input: [
7
             input: [
8
                 'resources/js/app.js',
8
                 'resources/js/app.js',
9
+                'resources/css/app.css',
9
                 'resources/css/filament/company/theme.css',
10
                 'resources/css/filament/company/theme.css',
10
                 'resources/css/filament/user/theme.css',
11
                 'resources/css/filament/user/theme.css',
11
             ],
12
             ],

正在加载...
取消
保存