Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+123
View File
@@ -0,0 +1,123 @@
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\LinkPager;
?>
<style>
.table-border > td{
border:1px #bbb solid;
}
.table-border{
border:1px solid #ddd;
}
#_HiQuickMenu{
display:none;
}
</style>
<div class="wrapper wrapper-content" contenteditable="true" id="forprint">
<div class="ibox-title" style="text-align: center;">
<h5 style="float:none;">发车清单 <code>【承运板车:<?=isset($truckol['truck_num'])?$truckol['truck_num']:'';?>】</code></h5>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-2">
<address>
<strong>始发日期:</strong><?=isset($truckol['from_date'])?date('Y-m-d',$truckol['from_date']):''?></span>
</address>
</div>
<div class="col-sm-5">
<address>
<strong>板&nbsp;&nbsp;&nbsp;&nbsp;车:</strong><?=isset($truckol['truck_num'])?$truckol['truck_num']:'';?>
&nbsp;&nbsp;&nbsp;&nbsp;
<abbr><?=isset($truckol['driver_name'])?$truckol['driver_name']:'';?></abbr>:<?=isset($truckol['driver_mobiles'])?$truckol['driver_mobiles']:'';?>
</address>
</div>
<div class="col-sm-5">
<address>
<strong>行&nbsp;&nbsp;&nbsp;&nbsp;程:</strong><?=isset($truckol['fromstore_title'])?$truckol['fromstore_title']:'';?>[<?=isset($truckol['from_city'])?$truckol['from_city']:'';?>]
&nbsp;&nbsp; <kbd><i class="fa fa-arrow-right"></i></kbd> &nbsp;&nbsp;
<?=isset($truckol['endstore_title'])?$truckol['endstore_title']:'';?>[<?=isset($truckol['end_city'])?$truckol['end_city']:'';?>]
</address>
</div>
</div>
<table class="table table-border table-striped">
<thead>
<tr>
<th style="width:120px;">运单号</th>
<th>车型</th>
<th>号牌</th>
<th>起运地</th>
<th>目的地</th>
<th>收车人</th>
<th>总费用</th>
<th>到收</th>
<th>委托方</th>
<th>介绍人</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<?php foreach($truckcars as $vo):?>
<tr>
<td><?=isset($vo['order_id'])?$vo['order_id']:''?>
<td><?=isset($cars[$vo['car_id']]['title'])?$cars[$vo['car_id']]['title']:''?></td>
<td><?=isset($cars[$vo['car_id']]['num_p'])?$cars[$vo['car_id']]['num_p']:''?><?=isset($cars[$vo['car_id']]['num_area'])?$cars[$vo['car_id']]['num_area']:''?><?=isset($cars[$vo['car_id']]['num_left'])?$cars[$vo['car_id']]['num_left']:''?><br>
<?=isset($cars[$vo['car_id']]['num_frame'])?$cars[$vo['car_id']]['num_frame']:''?>
</td>
<td><?=isset($orders[$vo['order_id']]['start_city'])?$orders[$vo['order_id']]['start_city']:''?></td>
<td><?=isset($orders[$vo['order_id']]['aim_city'])?$orders[$vo['order_id']]['aim_city']:''?></td>
<td>
<?=isset($orders[$vo['order_id']]['receiver_name'])?$orders[$vo['order_id']]['receiver_name']:''?>
<code><?=isset($orders[$vo['order_id']]['receiver_mobiles'])?$orders[$vo['order_id']]['receiver_mobiles']:''?></code>
</td>
<td><?=isset($orders[$vo['order_id']]['fee_total'])?$orders[$vo['order_id']]['fee_total']:''?></td>
<td><code><?=isset($orders[$vo['order_id']]['pay_receive'])?$orders[$vo['order_id']]['pay_receive']:''?></code></td>
<td>
<?=isset($orders[$vo['order_id']]['wtdw'])?$orders[$vo['order_id']]['wtdw']:''?>
</td>
<td>
<?=isset($orders[$vo['order_id']]['bind'])?$orders[$vo['order_id']]['bind']:''?>
</td>
<td>
<?=isset($vo['remark'])?$vo['remark']:''?>
<?=isset($vo['aim_address'])?$vo['aim_address']:''?>
</td>
</tr>
<?php endforeach;?>
<tr>
<td colspan="1">合计</td>
<td colspan="2">数量:<?=$count['cars']?> 辆</td>
<td colspan="3">总运费:<?=$count['fee_total']?> 元</td>
<td colspan="3">总到收:<?=$count['pay_receive']?> 元</td>
</tr>
<tr>
<td colspan="1">备注</td>
<td colspan="11"><?=isset($truckol['remark'])?$truckol['remark']:'';?></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="ibox-content" style="text-align: center;" contenteditable="false">
<button class="btn btn-primary" onclick="window.print();"><i class="fa fa-print"></i> 打印</button>
<a class="btn btn-primary radius refresh" href="javascript:location.replace(location.href);" title="刷新"><span class="fa fa-refresh"></span> 刷新</a>
</div>
<div class="wrapper wrapper-content" contenteditable="true">
<div class="ibox-content">
<table class="table table-border table-striped">
<tbody>
<?php foreach($truckcars as $vo):?>
<tr>
<td colspan="12">(<?=$vo['id']?>) <?=isset($orders[$vo['order_id']]['start_city'])?$orders[$vo['order_id']]['start_city']:''?> 发往 <?=isset($orders[$vo['order_id']]['aim_city'])?$orders[$vo['order_id']]['aim_city']:''?>,<?=isset($cars[$vo['car_id']]['title'])?$cars[$vo['car_id']]['title']:''?> ( <?=isset($cars[$vo['car_id']]['num_p'])?$cars[$vo['car_id']]['num_p']:''?><?=isset($cars[$vo['car_id']]['num_area'])?$cars[$vo['car_id']]['num_area']:''?><?=isset($cars[$vo['car_id']]['num_left'])?$cars[$vo['car_id']]['num_left']:''?> <?=isset($cars[$vo['car_id']]['num_frame'])&&!empty($cars[$vo['car_id']]['num_frame'])? '车架号:'.$cars[$vo['car_id']]['num_frame']:''?>) 总费用 <?=isset($orders[$vo['order_id']]['fee_total'])?$orders[$vo['order_id']]['fee_total']:'?'?> 元,到收 <?=isset($orders[$vo['order_id']]['pay_receive'])?$orders[$vo['order_id']]['pay_receive']:'?'?>元;接车联系人:<?=isset($orders[$vo['order_id']]['receiver_name'])?$orders[$vo['order_id']]['receiver_name']:''?> <?=isset($orders[$vo['order_id']]['receiver_mobiles'])?$orders[$vo['order_id']]['receiver_mobiles']:''?>; 委托方:<?=isset($orders[$vo['order_id']]['wtdw'])?$orders[$vo['order_id']]['wtdw']:''?>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>