创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
@include('layouts/header')
<div class="content m-n @if($flow) {{$flow}}-content @endif">
@if(Session::has('message'))
<div class="m-sm alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('message')}}
</div>
@endif
@if(Session::has('error'))
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('error')}}
</div>
@endif
@if($errors->any())
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
@foreach($errors->all() as $message)
<div>{{$message}}</div>
@endforeach
</div>
@endif
<div class="@if($model_view == 1) @else content-body @endif">
{{$content}}
</div>
</div>
</body>
</html>
+35
View File
@@ -0,0 +1,35 @@
@include('layouts/header')
<div class="content m-n @if($flow) {{$flow}}-content @endif">
@if(Session::has('message'))
<div class="m-sm alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('message')}}
</div>
@endif
@if(Session::has('error'))
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('error')}}
</div>
@endif
@if($errors->any())
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
@foreach($errors->all() as $message)
<div>{{$message}}</div>
@endforeach
</div>
@endif
<div class="content-body">
{{$content}}
</div>
</div>
</body>
</html>
+22
View File
@@ -0,0 +1,22 @@
@if(Session::has('message'))
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('message')}}
</div>
@endif
@if(Session::has('error'))
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('error')}}
</div>
@endif
@if($errors->any())
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
@foreach($errors->all() as $message)
<div>{{$message}}</div>
@endforeach
</div>
@endif
+21
View File
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{$setting['title']}} - Powered By {{$setting['powered']}}</title>
<script type="text/javascript" src="{{$public_url}}/common?v={{$resVersion}}"></script>
<link href="{{$asset_url}}/vendor/ag-grid/ag-grid.min.css" rel="stylesheet" type="text/css" />
<link href="{{$asset_url}}/dist/app.min.css?v={{$resVersion}}" rel="stylesheet" type="text/css" />
<script src="{{$asset_url}}/dist/app.min.js?v={{$resVersion}}" type="text/javascript"></script>
<script src="{{$asset_url}}/vendor/layer/layer.js" type="text/javascript"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
<script src="{{$asset_url}}/vendor/ag-grid/ag-grid.min.js"></script>
<script src="{{$asset_url}}/dist/bundle.min.js"></script>
<script>
agGrid.LicenseManager.setLicenseKey('{{env("AGGRID_LICENSE")}}');
{{env('DEMO_DATA')}}
</script>
</head>
<body class="frame-{{auth()->user()->theme ?: 'lilac'}}">
+22
View File
@@ -0,0 +1,22 @@
<div class="wrapper">
<div class="input-group">
<input type="text" class="form-control" id="import_file_text" disabled>
<input style="display:none;" type="file" id="import_file">
<span class="input-group-btn">
<button class="btn btn-default" onclick="importFile();" type="button"><i class="fa fa-cloud-upload"></i> 选择文件</button>
</span>
</div>
<div class="m-t-xs">{{$tips}}</div>
</div>
<script>
function importFile() {
$('#import_file').click();
}
$('#import_file').on('change', function() {
var filename = $(this).val();
var pos = filename.lastIndexOf("\\");
$('#import_file_text').val(filename.substring(pos + 1));
});
</script>
+5
View File
@@ -0,0 +1,5 @@
@if(Request::secure())
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=ED108c9a8758e803ace189583f27d46e&s=1"></script>
@else
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ED108c9a8758e803ace189583f27d46e"></script>
@endif
@@ -0,0 +1,35 @@
@include('layouts/mobile/header')
<div class="content m-n">
@if(Session::has('message'))
<div class="m-sm alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('message')}}
</div>
@endif
@if(Session::has('error'))
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{Session::pull('error')}}
</div>
@endif
@if($errors->has())
<div class="m-sm alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
@foreach($errors->all() as $message)
<div>{{$message}}</div>
@endforeach
</div>
@endif
<div class="content-body">
{{$content}}
</div>
</div>
</body>
</html>
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{$setting['title']}}</title>
<script type="text/javascript" src="{{$public_url}}/common"></script>
<link href="{{$asset_url}}/css/app.min.css" rel="stylesheet" type="text/css" />
<link href="{{$asset_url}}/css/reset.css" type="text/css" rel="stylesheet" />
<link href="{{$asset_url}}/css/gdoo.css" type="text/css" rel="stylesheet" />
<script src="{{$asset_url}}/js/app.min.js" type="text/javascript"></script>
<script src="{{$asset_url}}/js/dialog.js" type="text/javascript"></script>
<script src="{{$asset_url}}/js/listview.js" type="text/javascript"></script>
<script src="{{$asset_url}}/js/support.js" type="text/javascript"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
</head>
<body>
+276
View File
@@ -0,0 +1,276 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['title']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<script src="{{$public_url}}/common"></script>
<script src="{{$asset_url}}/dist/app.min.js"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
<style type="text/css">
body {
background: -webkit-linear-gradient(right, #198fb4, #0b6fab);
background: -o-linear-gradient(right, #198fb4, #0b6fab);
background: linear-gradient(to left, #198fb4, #0b6fab);
background-color: #3586b7;
}
.table {
border: 1px solid #58585C;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #58585C;
padding: 3px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #58585C;
padding: 3px;
/*
white-space: nowrap;
*/
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #58585C;
}
.table>thead>tr>th {
border-bottom: 1px solid #58585C;
}
.title {
text-align: center;
font-size: 18px;
font-weight: 400;
color: #333;
padding-bottom: 10px;
/*
border-bottom: 1px solid #333;
*/
}
.main-container {
margin:0 auto;
font:14px '微软雅黑', '黑体', 'Lucida Grande', Verdana, sans-serif;
background: #fff;
position: relative;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.panel {
width: 1000px;
margin: 15px auto;
border-radius: 0;
border-color: #eee;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media screen {
.main {
width: 1000px;
margin: 15px auto;
padding: 50px 0;
background-color: #fff;
border: solid 1px #eee;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.main-container {
width: 880px;
}
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:12px 'SimSun', 'Microsoft YaHei';
}
}
.text-muted {
color: #333;
}
.b-t {
border-top: 1px solid #333;
}
.row {
border: 1px solid #333;
border-top: 0;
padding: 5px;
color: #333;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 3px 8px;
}
.row:first-child {
border-top: 1px solid #333;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #333;
}
.i-checks input:checked+i {
border-color: #333;
}
.i-checks input:checked+i:before {
background-color: #333;
}
@page {
margin: 10mm;
size: 210mm 297mm;
}
/*
@page:right {
@top-right { content: "手写单号#21212"; }
@bottom-right {content: "手写单号#21212"; }
}
@page:left {
@top-left { content: "手写单号#21212"; }
@bottom-left { content: "手写单号#21212"; }
}
*/
.header {
position: absolute;
top: 0;
display:table-header-group;
content: "手写单号#21212";
font-size: 10px;
}
footer {
bottom: 0;
position: absolute;
display:table-footer-group;
content: "手写单号#21212";
font-size: 10px;
}
</style>
</head>
<body>
<div class="panel panel-default">
<div class="panel-body">
<div class="pull-right">
<a class="btn btn-default" href="javascript:window.print();"><i class="icon icon-print"></i> 打印</a>
<a class="btn btn-default" href="javascript:window.close();"><i class="icon icon-remove"></i> 关闭</a>
</div>
<h4><i class="icon icon-note"></i> 打印预览</h4>
</div>
</div>
<div class="main">
<div class="main-container">
<div class="title">{{$setting['print_title']}}{{$form['template']['name']}}</div>
<div>
{{$content}}
</div>
</div>
</div>
</body>
</html>
+226
View File
@@ -0,0 +1,226 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['print_title']}}{{$form['template']['name']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<style type="text/css">
.table {
border: 1px solid #000;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #000;
padding: 1px 2px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #000;
padding: 3px;
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #000;
}
.table.table-grid>tbody>tr>td,
.table.table-grid>tbody>tr>th,
.table.table-grid>tfoot>tr>td,
.table.table-grid>tfoot>tr>th,
.table.table-grid>thead>tr>td,
.table.table-grid>thead>tr>th {
display:table-cell; vertical-align:middle;
}
.table>thead>tr>th {
border-bottom: 1px solid #000;
}
.title {
text-align: center;
font-size: 20px;
font-weight: 600;
color: #333;
padding-bottom: 10px;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
label {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
.i-checks-sm>i {
width: 14px;
height: 14px;
margin-right: 6px;
margin-left: -18px;
}
}
.text-muted {
color: #000;
}
.b-t {
border-top: 1px solid #000;
}
.row {
border: 1px solid #000;
border-top: 0;
padding: 5px;
color: #000;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 2px 6px;
}
.row:first-child {
border-top: 1px solid #000;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #000;
}
.i-checks input:checked+i {
border-color: #000;
}
.i-checks input:checked+i:before {
background-color: #000;
}
@page {
font:11pt 'SimSun', sans-serif;
margin: 5mm 10mm 20mm 10mm;
size: 210mm 297mm;
prince-pdf-page-colorspace: auto;
prince-pdf-page-label: auto;
prince-rotate-body: 0deg;
prince-shrink-to-fit: none;
@bottom {
content: "" counter(page)"页,共"counter(pages)""
}
}
@media print {
.main-container {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
label {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
</style>
</head>
<body>
<div class="main-container">
<div class="title">{{$setting['print_title']}}{{$form['template']['name']}}</div>
<div>
{{$content}}
</div>
</div>
</body>
</html>
+278
View File
@@ -0,0 +1,278 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['title']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<script src="{{$public_url}}/common"></script>
<script src="{{$asset_url}}/dist/app.min.js"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
<style type="text/css">
body {
background: -webkit-linear-gradient(right, #198fb4, #0b6fab);
background: -o-linear-gradient(right, #198fb4, #0b6fab);
background: linear-gradient(to left, #198fb4, #0b6fab);
background-color: #3586b7;
}
.table {
border: 1px solid #58585C;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #58585C;
padding: 3px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #58585C;
padding: 3px;
/*
white-space: nowrap;
*/
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #58585C;
}
.table>thead>tr>th {
border-bottom: 1px solid #58585C;
}
.title {
text-align: center;
font-size: 18px;
font-weight: 400;
color: #333;
padding-bottom: 10px;
/*
border-bottom: 1px solid #333;
*/
}
.main-container {
margin:0 auto;
font:14px '微软雅黑', '黑体', 'Lucida Grande', Verdana, sans-serif;
background: #fff;
position: relative;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.panel {
width: 1000px;
margin: 15px auto;
border-radius: 0;
border-color: #eee;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media screen {
.main {
width: 1000px;
margin: 15px auto;
padding: 50px 0;
background-color: #fff;
border: solid 1px #eee;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.main-container {
width: 880px;
}
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:12px 'SimSun', 'Microsoft YaHei';
}
}
.text-muted {
color: #333;
}
.b-t {
border-top: 1px solid #333;
}
.row {
border: 1px solid #333;
border-top: 0;
padding: 5px;
color: #333;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 3px 8px;
}
.row:first-child {
border-top: 1px solid #333;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #333;
}
.i-checks input:checked+i {
border-color: #333;
}
.i-checks input:checked+i:before {
background-color: #333;
}
@page {
margin: 10mm;
size: 210mm 297mm;
}
#lodop-container {
width: 1000px;
margin: auto;
display: none;
}
</style>
<script>
function print280() {
alert('没有此尺寸');
}
function print140() {
alert('没有此尺寸');
}
function print93() {
alert('没有此尺寸');
}
</script>
</head>
<body>
<div class="panel panel-default">
<div class="panel-body">
<div class="pull-right">
<a class="btn btn-default" href="javascript:print280();"><i class="icon icon-print"></i> 打印(27cm)</a>
<a class="btn btn-default" href="javascript:print140();"><i class="icon icon-print"></i> 打印(14cm)</a>
<a class="btn btn-default" href="javascript:print93();"><i class="icon icon-print"></i> 打印(9.3cm)</a>
<a class="btn btn-default" href="javascript:window.close();"><i class="icon icon-remove"></i> 关闭</a>
</div>
<h4><i class="icon icon-note"></i> 打印预览</h4>
</div>
</div>
<div id="lodop-container">
<div class="alert alert-warning alert-dismissable m-b-sm">
<button type="button" class="close" data-dismiss="alert"
aria-hidden="true">
&times;
</button>
<div id="lodop_msg"></div>
</div>
</div>
<div class="main">
<div class="main-container">
<div>
{{$content}}
</div>
</div>
</div>
</body>
</html>
+226
View File
@@ -0,0 +1,226 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['print_title']}}{{$form['template']['name']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<style type="text/css">
.table {
border: 1px solid #000;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #000;
padding: 1px 2px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #000;
padding: 3px;
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #000;
}
.table.table-grid>tbody>tr>td,
.table.table-grid>tbody>tr>th,
.table.table-grid>tfoot>tr>td,
.table.table-grid>tfoot>tr>th,
.table.table-grid>thead>tr>td,
.table.table-grid>thead>tr>th {
display:table-cell; vertical-align:middle;
}
.table>thead>tr>th {
border-bottom: 1px solid #000;
}
.title {
text-align: center;
font-size: 20px;
font-weight: 600;
color: #333;
padding-bottom: 10px;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
label {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
.i-checks-sm>i {
width: 14px;
height: 14px;
margin-right: 6px;
margin-left: -18px;
}
}
.text-muted {
color: #000;
}
.b-t {
border-top: 1px solid #000;
}
.row {
border: 1px solid #000;
border-top: 0;
padding: 5px;
color: #000;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 2px 6px;
}
.row:first-child {
border-top: 1px solid #000;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #000;
}
.i-checks input:checked+i {
border-color: #000;
}
.i-checks input:checked+i:before {
background-color: #000;
}
@page {
font:11pt 'SimSun', sans-serif;
margin: 5mm 10mm 20mm 10mm;
size: 210mm 297mm;
prince-pdf-page-colorspace: auto;
prince-pdf-page-label: auto;
prince-rotate-body: 0deg;
prince-shrink-to-fit: none;
@bottom {
content: "" counter(page)"页,共"counter(pages)""
}
}
@media print {
.main-container {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
label {
font:11pt 'SimSun', 'STXihei', sans-serif;
}
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
</style>
</head>
<body>
<div class="main-container">
<div class="title">{{$setting['print_title']}}{{$form['template']['name']}}</div>
<div>
{{$content}}
</div>
</div>
</body>
</html>
@@ -0,0 +1,283 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['title']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<script src="{{$public_url}}/common"></script>
<script src="{{$asset_url}}/dist/app.min.js"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
<style type="text/css">
body {
background: -webkit-linear-gradient(right, #198fb4, #0b6fab);
background: -o-linear-gradient(right, #198fb4, #0b6fab);
background: linear-gradient(to left, #198fb4, #0b6fab);
background-color: #3586b7;
}
.table {
border: 1px solid #58585C;
color: #000;
width: 100%;
margin: 5px 0;
}
.table .left { text-align:left; }
.table .center { text-align:center; }
.table .right { text-align:right; }
.table p { text-align:center; }
.table img { border:0; }
.table td {
border: 1px solid #58585C;
padding: 3px;
color: #000;
vertical-align: middle;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
padding: 3px;
}
.table th {
font-weight: normal;
color: #000;
border: 1px solid #58585C;
padding: 3px;
/*
white-space: nowrap;
*/
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid #58585C;
}
.table>thead>tr>th {
border-bottom: 1px solid #58585C;
}
.title {
text-align: center;
font-size: 18px;
font-weight: 400;
color: #333;
padding-bottom: 10px;
/*
border-bottom: 1px solid #333;
*/
}
.main-container {
margin:0 auto;
font:14px '微软雅黑', '黑体', 'Lucida Grande', Verdana, sans-serif;
background: #fff;
position: relative;
}
.main-container h3 {
padding-top:12px;
font-size:15px;
text-align:center;
}
.main-container p {
text-align:left;
padding-top:6px;
}
.panel {
width: 1000px;
margin: 15px auto;
border-radius: 0;
border-color: #eee;
}
.table.no-border,
.table.no-border td,
.table.no-border th {
border: 0;
}
@media screen {
.main {
width: 1000px;
margin: 15px auto;
padding: 50px 0;
background-color: #fff;
border: solid 1px #eee;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.main-container {
width: 880px;
}
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
.main-container {
font:12px 'SimSun', 'Microsoft YaHei';
}
}
.text-muted {
color: #333;
}
.b-t {
border-top: 1px solid #333;
}
.row {
border: 1px solid #333;
border-top: 0;
padding: 5px;
color: #333;
margin-left: 0;
margin-right: 0;
}
.row > div {
padding: 3px 8px;
}
.row:first-child {
border-top: 1px solid #333;
}
.row.no-border {
border: 0;
padding: 0;
}
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
}
.i-checks>i {
border: 1px solid #333;
}
.i-checks input:checked+i {
border-color: #333;
}
.i-checks input:checked+i:before {
background-color: #333;
}
@page {
margin: 10mm;
size: 210mm 297mm;
}
#lodop-container {
width: 1000px;
margin: auto;
display: none;
}
</style>
<script>
function print280() {
alert('没有此尺寸');
}
function print140() {
alert('没有此尺寸');
}
function print93() {
alert('没有此尺寸');
}
</script>
</head>
<body>
<div class="panel panel-default">
<div class="panel-body">
<div class="pull-right">
@if($form['print_type'] == 'stiReport')
<a class="btn btn-default" href="javascript:window.print();"><i class="icon icon-print"></i> HTML打印</a>
<a class="btn btn-default" href="javascript:print();"><i class="icon icon-print"></i> 打印</a>
<a target="_blank" class="btn btn-default" href="{{url('stiReport/stiReport/designer',['bill_code' => $form['bill_code'], 'template_id' => $form['template']['id'],'id' => $form['row']['id']])}}">模板设计</a>
@else
<a class="btn btn-default" href="javascript:window.print();"><i class="icon icon-print"></i> 打印</a>
@endif
<a class="btn btn-default" href="javascript:window.close();"><i class="icon icon-remove"></i> 关闭</a>
</div>
<h4><i class="icon icon-note"></i> 打印预览</h4>
</div>
</div>
<div id="lodop-container">
<div class="alert alert-warning alert-dismissable m-b-sm">
<button type="button" class="close" data-dismiss="alert"
aria-hidden="true">
&times;
</button>
<div id="lodop_msg"></div>
</div>
</div>
<div class="main">
<div class="main-container">
<div class="title">{{$setting['print_title']}}{{$form['template']['name']}}</div>
<div>
{{$content}}
</div>
</div>
</div>
</body>
</html>
@@ -0,0 +1,205 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$setting['title']}}</title>
<link rel="stylesheet" href="{{$asset_url}}/dist/app.min.css" type="text/css" />
<script src="{{$public_url}}/common"></script>
<script src="{{$asset_url}}/dist/app.min.js"></script>
<script src="{{$asset_url}}/vendor/datepicker/datepicker.js"></script>
<style type="text/css">
body {
background: -webkit-linear-gradient(right, #198fb4, #0b6fab);
background: -o-linear-gradient(right, #198fb4, #0b6fab);
background: linear-gradient(to left, #198fb4, #0b6fab);
background-color: #3586b7;
}
.title {
font-size: 16px;
font-weight: 400;
color: #333;
padding-top: 5px;
}
.title .icon {
top: 3px;
}
.panel {
margin: 0 auto 10px auto;
border-radius: 0;
border-color: #eee;
}
.panel-body {
margin: 0 auto;
padding: 5px;
width: 1000px;
}
@media print {
.panel {
display: none;
}
.main {
margin: 0 auto;
border: 0;
}
}
#lodop-container {
width: 1000px;
margin: auto;
display: none;
}
</style>
<style>
.viewer table:first-of-type > tbody tr:first-child { display:none; }
.viewer table tbody tr:last-child { display:none; }
</style>
<style media="screen">
.main { text-align: center; margin-bottom: 5px; }
.viewer { background-color: #fff; display:inline-block; padding: 20px; }
</style>
</head>
<body onload="onLoad();">
<div class="panel panel-default">
<div class="panel-body">
<div class="pull-right">
<a class="btn btn-default" href="javascript:window.print();"><i class="fa fa-print"></i> HTML打印</a>
<a class="btn btn-default" href="javascript:startPrint();"><i class="fa fa-print"></i> 打印</a>
@if(auth()->user()->role_id == 1)
<a target="_blank" class="btn btn-default" href="{{url('stiReport/stiReport/designer',['template_id' => $template['id']])}}"><i class="fa fa-pencil-square"></i> 设计 </a>
<a class="btn btn-default" download="{{$template['code']}}.mrt" href="{{$public_url}}/reports/{{$template['code']}}.mrt"><i class="fa fa-file-code-o"></i> 下载模板 </a>
@endif
<a class="btn btn-default" href="javascript:window.close();"><i class="fa fa-remove"></i> 关闭</a>
</div>
<div class="title"><i class="icon icon-note"></i> 打印预览 <span id="print_msg"></span></div>
</div>
</div>
<div id="lodop-container">
<div class="alert alert-warning alert-dismissable m-b-sm">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<div id="lodop_msg"></div>
</div>
</div>
<div class="main">
<div id="report_data" class="viewer"></div>
</div>
<script src="{{$asset_url}}/js/gdoo.websocket.js" type="text/javascript"></script>
<script src="{{$asset_url}}/vendor/stimulsoft/scripts/stimulsoft.reports.js" type="text/javascript"></script>
<?php
$report_name = $template['code'];
$report_path = public_path()."/reports/".$report_name.".mrt";
$report_template = '';
if (is_file($report_path)) {
$report_template = base64_encode(file_get_contents($report_path));
}
?>
<script type="text/javascript">
var reportName = "{{$report_name}}";
var reportTemplate = "{{$report_template}}";
var printData = {{json_encode($print_data, JSON_UNESCAPED_UNICODE)}};
printData.setting = [{
action: "preview",
topmargin: 0,
leftmargin: 0,
drive: '',
taskid: '{{$report_name}}',
template: reportTemplate,
type: "base64"
}];
// 打印数据保存到本地
localStorage.setItem(reportName, JSON.stringify(printData));
function onLoad() {
var report = new Stimulsoft.Report.StiReport();
// 加载模板文件
if (reportTemplate) {
report.loadFile("{{$public_url}}/reports/{{$template['code']}}.mrt?s=" + (new Date()).valueOf());
}
// 加载数据
var dataSet = new Stimulsoft.System.Data.DataSet("data");
dataSet.readJson(printData);
report.dictionary.clear();
report.regData("data", "data", dataSet);
report.dictionary.synchronize();
report.renderAsync(function() {
var htmlData = report.exportDocument(Stimulsoft.Report.StiExportFormat.Html);
document.getElementById('report_data').innerHTML = htmlData;
});
}
var GdooPrint = null;
// 打印机列表
var prints = [];
try {
var options = {
url: 'ws://127.0.0.1:6690',
pingTimeout: 15000,
pongTimeout: 10000,
reconnectTimeout: 10000,
pingMsg: "ping"
}
GdooPrint = new GdooWebSocket(options);
GdooPrint.onopen = function(e) {
}
GdooPrint.onclose = function (e) {
}
GdooPrint.onerror = function (e) {
}
GdooPrint.onmessage = function (e) {
var res = JSON.parse(e.data);
if (res.type == 'ping') {
} else if (res.type == 'printers') {
prints = res.data;
} else {
labelSuccess(res.data);
}
}
GdooPrint.onreconnectCountDown = function(count) {
if (count > 0) {
labelError('打印服务离线' + count + '秒后重新连接');
} else {
labelInfo('打印服务重新连接中...');
}
}
GdooPrint.onreconnect = function (e) {
}
GdooPrint.onsend = function (e) {
if(e == 'ping') return false;
}
} catch (e) {
labelError(e.message);
}
function startPrint() {
try {
GdooPrint.send(JSON.stringify(printData));
} catch (e) {
$.toastr('error', e.message);
}
}
function labelInfo(text) {
$('#print_msg').html('<span class="label label-info">' + text + '</span>');
}
function labelError(text) {
$('#print_msg').html('<span class="label label-danger">' + text + '</span>');
}
function labelSuccess(text) {
$('#print_msg').html('<span class="label label-success">' + text + '</span>');
}
</script>
</body>
</html>
+24
View File
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{$setting['title']}}</title>
<link href="{{$asset_url}}/css/wechat/console.css" rel="stylesheet" type="text/css" />
<link href="{{$asset_url}}/dist/app.min.css" rel="stylesheet" type="text/css" />
<link href="{{$asset_url}}/vendor/layui/css/layui.css" rel="stylesheet" type="text/css" />
<script src="{{$public_url}}/index/api/common" type="text/javascript"></script>
<script src="{{$asset_url}}/vendor/layui/layui.js" type="text/javascript"></script>
<script src="{{$asset_url}}/dist/app.min.js" type="text/javascript"></script>
<link href="{{$asset_url}}/css/wechat/icon/icon.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="content-body">
{{$content}}
</div>
</body>
</html>