<!DOCTYPE html>
<html lang="en" style="background-color: #f2f2f2;">
	<head>
		<meta charset="UTF-8">
		<title>订单列表</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<script src="../../../admin/index.js" door type="text/javascript" charset="utf-8"></script>

		<!--操作模板-->
		<script type="text/html" id="operatingTool">
			<a class="layui-btn layui-btn-xs" lay-event="detail"><i class="layui-icon layui-icon-search"></i>详情</a>
		</script>
		<script type="text/html" id="orderStatusTpl">
			{{#  if(d.status === 0){ }}
			  <span style="color: #FF5722;">待付款</span>
			{{# } else if(d.status === 1) { }}  
			  <span style="color: #FF5722;">待发货</span>
			{{# } else if(d.status === 2) { }}  
			  <span style="color: #FF5722;">待收货</span>
			{{# } else if(d.status === 3) { }}  
			  <span>已完成</span>
			{{# } else if(d.status === 4) { }}  
			  <span style="color: #999;">已取消</span>
			{{#  } }} 
		</script>
		<script type="text/html" id="flowerOrderStatusTpl">
			{{#  if(d.status === 0){ }}
			  <span style="color: #FF5722;">待付款</span>
			{{# } else if(d.status === 1) { }}  
			  <span style="color: #FF5722;">待处理</span>
			{{# } else if(d.status === 2) { }}  
			  <span style="color: #FF5722;">待取货</span>
			{{# } else if(d.status === 3) { }}  
			  <span style="color: #FF5722;">待理货</span>
			{{# } else if(d.status === 4) { }}  
			  <span style="color: #FF5722;">待配送</span>
			{{# } else if(d.status === 5) { }}  
			  <span style="color: #FF5722;">流转订单完成</span>
			{{# } else if(d.status === 6) { }}  
			  <span>已完成</span>
			{{# } else if(d.status === 7) { }}  
			  <span style="color: #999;">已取消</span>
			{{#  } }} 
		</script>
	</head>

	<body>
		<div class="layui-fluid">
			<div class="layui-card">
				<div class="layui-tab layui-tab-brief" lay-filter="tabBrief">
					<ul class="layui-tab-title">
						<li class="layui-this">订单列表</li>
					</ul>
					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show">
							<div class="layui-card-header layout-header">
								<form class="layui-form" action="" novalidate>
									<div class="layui-form-item">
										<div class="layui-inline">
											<i class="layui-icon search-icon">&#xe615;</i>
											<input type="text" name="search" placeholder="请输入用户名/订单号" autocomplete="off" class="layui-input">
										</div>
										<div class="layui-inline" style="width: 18.75rem;">
											<input type="text" class="layui-input" autocomplete="off" name="dateRange" id="datePicker" placeholder="请选择日期范围">
										</div>
										<div class="layui-inline">
											<select name="status">
												<option value="">订单状态</option>
												<option value="0">待付款</option>
												<option value="1">待发货</option>
												<option value="2">待收货</option>
												<option value="3">已完成</option>
												<option value="4">已取消</option>
											</select>
										</div>
										<div class="layui-inline">
											<button class="layui-btn" lay-submit lay-filter="purchaseOrderTableSearch">搜索</button>
										</div>
									</div>
								</form>
							</div>
							<div class="layui-card-body layout-body">
								<table id="purchaseOrderTableData" lay-filter="purchaseOrderTableData" class="layui-table"></table>
								<table id="flowOrderTableData" lay-filter="flowOrderTableData" class="layui-table"></table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script src="index.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>
