<#include "../../inc/layout.html">
<@layout title="调拨" js="scm/stockAllot/view.js">
<style>
body{background: #fff;}
.table1 td{padding:2px;}
</style>
<div class="manage-wrapper" ms-controller="ctrl">
    <div class="manage-wrap">
    				<table style="width:100%;" class="table1">
    				<tr>
    					<td width="100px" align="right">仓库：</td>
    					<td width="20%">
    					{{data.out_depot_name}}
    					<i class="fa fa-arrow-right"></i>
    					{{data.to_depot_name}}
    					</td>
    					<td width="100px" align="right">单据日期：</td>
    					<td width="20%">{{data.bill_date}}</td>
    					<td width="100px;" align="right">单据编号：</td>
    					<td width="20%">{{data.billsn}}</td>
    				</tr>
    				<tr>
    					<td align="right">负责人：</td>
    					<td>{{data.head_name}}</td>
    				</tr>
    				</table>
    		</ul>
    		<br>
    		<table class="table table-hover table-striped table_thead_fixed table-bordered table-condensed" id="prodcutTable">
  				<thead>
  					<tr>
  						<th width="50px">&nbsp;</th>
  						<th width="167px">商品</th>
  						<th width="167px">单位</th>
  						<th width="167px">数量</th>
  					</tr>
  				</thead>
  				<tbody style="max-height:400px;">
  					<tr ms-repeat="data.productlist">
  						<td width="50px">{{$index+1}}</td>
  						<td>{{el.product_name}}</td>
	          			<td>{{el.unit|custParame}}</td>
  						<td>{{el.amount}}</td>
  					</tr>
  				</tbody>
  				<tfoot>
  					<tr>
  						<td colspan="3" align="right"><b>合计：</b></td>
  						<td>{{fixedNum(sumAmount)}}</td>
  					</tr>
  				</tfoot>
    		</table>
    		<div id="amountArea">
           <p>
			 备注：
           <br>
           {{data.remark}}
           </p>
       </div>
    </div>
</div>
</@layout>