<script language="javascript" src="/js/LodopFuncs.js"></script> <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed> </object> <?php $this->title='送车单打印' ?> <table style="width:100%;"> <tr> <td> <div> <div id="print_data"> <table border="1" cellspacing="0" align="center" style="text-align: left; width: 750px;margin:auto" cellpadding="2" > <tr> <td colspan="6" style="border-right:0px; text-align:center;"><h1 style="margin-top: 15px;">诚合(北京)汽车服务有限公司送车单</h1> </td> </tr> <tr style="text-align: center;"> <td><strong>结算单号</strong></td> <td>11855333</td> <td><strong>工单号</strong></td> <td colspan="3">1512302311</td> </tr> <tr style="text-align: center;"> <td><strong>车牌号</strong></td> <td><?= $fixcar->car_no ?></td> <td><strong>发动机号</strong></td> <td colspan="3"><?= $fixcar->engine_no ?></td> </tr> <tr style="text-align: center;"> <td><strong>车架号</strong></td> <td><?= $fixcar->car_frame_no ?></td> <td><strong>车主姓名</strong></td> <td colspan="3"><?= $fixcar->id_man ?></td> </tr> <tr style="text-align: center;"> <td><strong>联系电话</strong></td> <td><?= $fixcar->id_phone ?></td> <td><strong>接车人</strong></td> <td colspan="3">0005</td> </tr> <tr style="text-align: center;"> <td><strong>出厂油表数</strong></td> <td>5000</td> <td><strong>出厂里程</strong></td> <td colspan="3">92222</td> </tr> <tr style="text-align: center;"> <td><strong>送往地址</strong></td> <td><?= $fixcar->address ?></td> <td><strong></strong></td> <td colspan="3"></td> </tr> <tr style="text-align: center;"> <td colspan="12"> </td> </tr> <tr style="text-align: center;"> <td><strong>序号</strong></td> <td><strong>项目名称</strong></td> <td><strong>责任人</strong></td> <td colspan="3"><strong>满意度</strong></td> </tr> <?php if(count($items) > 0 ): ?> <?php $counter = 0; ?> <?php if(isset($items[1])): ?> <?php foreach ($items[1] as $index => $item): ?> <?php $counter++; ?> <?php $store = \common\models\StoreRoom::findOne($item['fk_id']); ?> <tr style="text-align: center;"> <td><?= $counter; ?></td> <td><?= $store->category->name ?></td> <td><?= \common\models\UserT::findOne($item['fix_user'])->name ?></td> <td colspan="3">4</td> </tr> <?php endforeach; ?> <?php endif; ?> <?php if(isset($items[2])): ?> <?php foreach ($items[2] as $index => $item): ?> <?php $counter++; ?> <?php $project = \common\models\FixCarProject::findOne($item['fk_id']) ?> <tr style="text-align: center;"> <td><?= $counter ?></td> <td><?= $project->category->name ?></td> <td><?= \common\models\UserT::findOne($item['fix_user'])->name ?></td> <td colspan="3">5</td> </tr> <?php endforeach; ?> <?php endif; ?> <?php if(isset($items[5])): ?> <?php foreach ($items[5] as $index => $item): ?> <?php $counter++; ?> <?php $store = $project = null; ?> <?php $project = \common\models\FixCarProject::findOne($item['fk_id']) ?> <tr style="text-align: center;"> <td><?= $counter ?></td> <td><?= $project->category->name ?></td> <td><?= \common\models\UserT::findOne($item['fix_user'])->name ?></td> <td colspan="3">5</td> </tr> <?php endforeach; ?> <?php endif; ?> <?php if(isset($items[6])): ?> <?php foreach ($items[6] as $index => $item): ?> <?php $counter++; ?> <?php $store = $project = null; ?> <?php $project = \common\models\FixCarProject::findOne($item['fk_id']) ?> <tr style="text-align: center;"> <td><?= $counter ?></td> <td><?= $project->category->name ?></td> <td><?= \common\models\UserT::findOne($item['fix_user'])->name ?></td> <td colspan="3">5</td> </tr> <?php endforeach; ?> <?php endif; ?> <?php endif; ?> <tr style="text-align: center;"> <td colspan="12"> </td> </tr> <tr style="text-align: center;height:50px;"> <td>送车人</td> <td> </td> <td>客户签名</td> <td> </td> </tr> <tr style="text-align: center;height:50px;"> <td>地址</td> <td> </td> <td>时间</td> <td> </td> </tr> </table> </div> </div> </td> </tr> </table> <script language="javascript" type="text/javascript"> function CheckIsInstall() { try{ var LODOP=getLodop(); }catch(err){ } }; CheckIsInstall(); function CreateFullBill() { LODOP=getLodop(); LODOP.PRINT_INIT("打印控件_Lodop功能_车务系统"); LODOP.ADD_PRINT_HTML(40,-18,800,340,document.getElementById("print_data").innerHTML); }; function Design1() { CreateFullBill(); // LODOP.SET_SHOW_MODE("HIDE_ITEM_LIST",true);//设置对象列表默认处于关闭状态 // LODOP.SET_SHOW_MODE("TEXT_SHOW_BORDER",1); //设置字符编辑框默认为single LODOP.PRINT_DESIGN(); }; // Design1(); </script>