123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .custom-table th,td{
- padding: 10px;
- }
- .custom-table th{
- width: 120px;
- text-align: left;
- }
- .custom-table-th{
- width: 120px;
- text-align: right;
- font-weight: bold;
- /*background-color: rgba(0,0,0,0.15);*/
- background-color: #F5F5F6;
- }
- .custom-table{
- table-layout:fixed;
- }
- table,tr,td{
- border: 1px solid #333333 !important;
- }
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox-content" >
- <div id="printer">
- <table class="table custom-table table-bordered">
- <tr style="text-align: center">
- <td colspan="4">工料单</td>
- </tr>
- <tr>
- <td>报修科室:{$info.depName}</td>
- <td>报修日期:{$info.create_time}</td>
- <td colspan="2">维修人:{$info['to_real_name']}</td>
- </tr>
- <tr>
- <td colspan="4">维修内容:{$info['content']}</td>
- </tr>
- <tr>
- <td>用料名称</td>
- <td>数量</td>
- <td>单价</td>
- <td>金额</td>
- </tr>
- {foreach $info['cons'] as $k=>$v}
- <tr style="height: 35px">
- <td>{$v.title}</td>
- <td>
- {if $v.total}
- {$v.total}
- {/if}
- </td>
- <td>
- {if $v.money}
- {$v.money}
- {/if}
- </td>
- <td>
- {if $v['total_money']}
- {$v['total_money']}
- {/if}
- </td>
- </tr>
- {/foreach}
- <tr>
- <td colspan="2" style="text-align: center">用料合计</td>
- <td colspan="2">{if $info['total'] > 0}
- {$info['totalPrice']}
- {/if}</td>
- </tr>
- <tr>
- <td>工时费</td>
- <td></td>
- <td>工料费合计</td>
- <td>
- </td>
- </tr>
- <tr>
- <td>总价</td>
- <td colspan="3">
- <span style="margin-left: 40px"> 万</span>
- <span style="margin-left: 40px"> 仟</span>
- <span style="margin-left: 40px"> 佰</span>
- <span style="margin-left: 40px"> 拾</span>
- <span style="margin-left: 40px"> 元</span>
- <span style="margin-left: 40px"> 角</span>
- </td>
- </tr>
- <tr>
- <td>审批人签字</td>
- <td></td>
- <td>报修科室签字</td>
- <td>
- {if $info['sign']}
- <img src="{$info['sign']}" width="40px" height="40px" onclick="open_img(this)" alt="" style="margin-left: 5px" />
- {/if}
- </td>
- </tr>
- </table>
- </div>
- <a href="javascript:;" class="btn btn-sm btn-primary" onclick="printer()">
- <i class="glyphicon glyphicon-print">打印</i>
- </a>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/browser.js"></script>
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script>
- $(document).ready(function(){
- });
- function printer() {
- $("#printer").jqprint({});
- }
- </script>
- {/block}
|