<article class="col-lg-12">
	<div class="card forms">
		<div class="card-header">
			<h3>换货申请列表</h3>
		</div>
		<div class="card-body">
			<table class="table">
				<colgroup>
					<col width="160px" />
					<col width="160px" />
					<col />
					<col width="110px" />
					<col width="90px" />
				</colgroup>

				<thead>
					<tr>
						<th>订单号</th>
						<th>申请时间</th>
						<th>商品名称</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>

				<tbody>
					{set:$queryObj=Api::run('getExchangeList');$resultData=$queryObj->find()}
					{foreach:items=$resultData}
					<tr>
						<td>{$item['order_no']}</td>
						<td>{$item['time']}</td>
						<td>
							{foreach:items=Api::run('getOrderGoodsRowById',array('id'=>$item["order_goods_id"])) item=$itemGoods}
							{set:$goods = JSON::decode($itemGoods['goods_array'])}
							<p>
							    <a href="{url:/site/products/id/$itemGoods['goods_id']}" target="_blank">
							        {$goods['name']} X {$itemGoods['goods_nums']}
							    </a>
							</p>
							{/foreach}
						</td>
						<td>{echo:Order_Class::refundmentText($item['status'])}</th>
						<td><a href="{url:/seller/exchange_show/id/$item['id']}"><i class="fa fa-edit fa-lg" title="编辑"></i></a></td>
					</tr>
					{/foreach}
				</tbody>
			</table>
			{$queryObj->getPageBar()}
		</div>
	</div>
</article>