<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<section data-page="stock_out_add" data-title="添加出库单" data-warehouse-id="<%=User["WarehouseID"]%>">
	<div class="path1"><span>您的位置：</span>添加出库单</div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th width="140">出库单号：</th>
					<td><input type="text" name="No" value="<%=DateTime.Now.ToString("yyyyMMddhhmmss")%>" size="40" maxlength="150" class="ali-input ali-input-required"></td>
				</tr>
				<tr>
					<th>目标类型：</th>
					<td>
						<select name="ToType">
							<option value="Shop">店铺</option>
							<option value="Warehouse">仓库（暂未实现）</option>
							<option value="Online">线上电商平台（暂未实现）</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>目标<span>店铺</span>：</th>
					<td><input type="text" name="ToName" size="40" maxlength="50" readonly class="ali-input ali-input-required <%=ContentLang%>Font"><input type="hidden" name="ToNo"><input type="hidden" name="ToID"> <a class="ali-button" data-operation="SelectTo">选择</a></td>
				</tr>
				<tr>
					<th>收货人名称：</th>
					<td><input type="text" name="ReceiverName" size="40" class="ali-input ali-input-required"></td>
				</tr>
				<tr>
					<th>收货人地址：</th>
					<td><input type="text" name="ReceiverAddress" size="40" class="ali-input ali-input-required"></td>
				</tr>
				<tr>
					<th>收货人电话：</th>
					<td><input type="text" name="ReceiverPhone" size="40" maxlength="50" class="ali-input ali-input-required"></td>
				</tr>
				<tr>
					<th>邮政编码：</th>
					<td><input type="text" name="ReceiverZip" size="40" maxlength="50" class="ali-input ali-input-required"></td>
				</tr>
			</table>

			<div class="ali-panel margin3" data-height-style="content">
				<div class="ali-panel-header">商品清单</div>
				<div class="ali-panel-body">
					<a class="ali-button" data-operation="SelectGoods">选择商品</a>
					<table data-ali-widget="grid" class="grid1">
						<thead>
							<tr>
								<th data-name="goodsName">商品名称</th>
								<th data-name="goodsNo">商品编号</th>
								<th data-name="goodsBarCode">商品条码</th>
								<th data-name="goodsSpec">商品规格</th>
								<th data-name="price" width="60">平均单价</th>
								<th data-name="amount" width="60">数量</th>
								<th data-name="memo" width="120">备注</th>
								<th data-name="operation" width="80">删除</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">添 加</button></div>
	</form>
</section>