{layout name="layout" /}
<nav class="breadcrumb">
<span><a href="/">首页</a></span>
<span>></span>
<span><a href="/commission/year">提成汇总</a></span>
<span>></span>
<span>{$year} 年度</span>
<span>{$month} 月份</span>
</nav>
<div class="content">
<div class="row mt-10">
<div class="col-md-3 ">
<a href="/commission/year" class="btn btn-default radius">全部年度</a>
<a href="/commission/lists/{$year}/{$month}" class="btn btn-primary radius">合同明细</a>
</div>
<div class="col-md-2">
</div>
</div>
<!--startprint-->
<div class="row" style="margin: 10px 0;">
<div class="col-md-3 noprint">
<label for="month" class="form-label col-md-8 text-right mt-5">
请选择月份 :
</label>
<div class="formControls col-md-4" style="width: 100px;">
<input type="hidden" name="year" id="year" value="{$year}">
<select class="form-control input-sm col-md-2" name="month" id="month">
{for start="1" end="13"}
<option value="{$i}" {eq name="month" value="$i" }selected{/eq}>{$i}月</option>
{/for}
</select>
</div>
</div>
<div class="col-md-5 text_center">
<h3>{$month} 月份提成汇总表</h3>
</div>
<div class="col-md-2 noprint" style="text-align:right;">
<div class="btn-group ">
<button type="button" class="btn btn-default" onclick=" doPrint()">打印</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<table class=" table table-hover table-bordered">
<thead>
<tr>
<th>序 号</th>
<th>销售员</th>
<th>总利润</th>
<th>提成比例</th>
<th>提成金额</th>
<th>特批提成</th>
<th>比例</th>
<th>提成金额</th>
<th>合 计</th>
<th>备 注</th>
</tr>
</thead>
<tbody>
{foreach $list as $key=>$value}
<tr class="text-center">
<td>{$key+1}</td>
<td>{$value.seller_name}</td>
<td>{$value.profit|format_money}</td>
<td>{$value.general_ratio}</td>
<td>{$value.general_money|format_money}</td>
<td>{$value.total_special_money|format_money}</td>
<td>{$value.special_ratio}</td>
<td>{$value.special_money|format_money}</td>
<td>{$value.general_money + $value.special_money|format_money}</td>
<td>{$value.remark}</td>
</tr>
{/foreach}
<tr>
<td colspan='2' style="text-align: center;font-weight:bold;">合计</td>
<td></td>
<td></td>
<td>25%</td>
<td></td>
<td></td>
<td>100%</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row text-center col-md-offset-2">
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">制表:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">复核:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">审批:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">总经理签字:</span>
</div>
<div class="row text-center col-md-offset-2">
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">日期:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">日期:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">日期:</span>
<span class="col-md-2" style="line-height: 40px;margin-right:50px;">日期:</span>
</div>
<!--endprint-->
</div>
<script>
$("#month").change(function () {
var year = $("#year").val();
var month = $("#month").val();
window.location.href = "/commission/"+year+"/"+month;
})
</script>
</body>
</html>
|