<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
                <title><!--{$config.system_title}--><!--{if $config.is_code !='1'}-->-<!--{$copyright_header}--><!--{/if}--></title>
                <meta name="description" content="<!--{$config.system_desc}-->" />
                <meta name="keywords" content="<!--{$config.system_keyword}-->" />
		<link rel="stylesheet" type="text/css" href="<!--{$salepath}-->/static/layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="<!--{$salepath}-->/static/css/admin.css"/>
	</head>
	<body>
		<form class="layui-form column-content-detail">
					<div class="layui-tab">
						
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
 								<div class="layui-form-item">
									<label class="layui-form-label">订单编号：</label>
									<div class="layui-input-block">
										<input type="text" disabled="disabled" name="" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.ordernum}-->">
									</div>
								</div>                                                           
								<div class="layui-form-item">
									<label class="layui-form-label">商品名称：</label>
									<div class="layui-input-block">
										<input type="text" name="goodsname" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.goodsname}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">单价：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.goodsprice}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">购买数量：</label>
									<div class="layui-input-block">
										<input type="text" name="goodsnum" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.goodsnum}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">订单价格：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.orderprice}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">下单时间：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.time|date_format:"%Y-%m-%d %H:%M"}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">订单状态：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.status}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">收件人信息</label>
									<div class="layui-input-block">
										
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">收件人姓名：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.linkman}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">收件人电话：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.linkphone}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">收件人地址：</label>
									<div class="layui-input-block">
										<input type="text" name="" disabled="disabled" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.provincename}--><!--{$data.cityname}--><!--{$data.countyname}--><!--{$data.address}-->">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">物流信息：</label>
									<div class="layui-input-block">
										<input type="text" name="company" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.company}-->">(请填写完整快递公司名称,例如 中通快递、顺丰快递、韵达快递)
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">物流单号：</label>
									<div class="layui-input-block">
										<input type="text" name="wuliunum" required lay-verify="required"  autocomplete="off" class="layui-input" value="<!--{$data.wuliunum}-->">
									</div>
								</div>
								<input type="hidden" name="id" value="<!--{$data.id}-->">
							</div>
						</div>
					</div>
					<div class="layui-form-item" style="padding-left: 10px;">
						<div class="layui-input-block">
							<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">确认收货</button>&nbsp;&nbsp;&nbsp;
							<a href="javascript:history.back(-1)"><button type="button" class="layui-btn layui-btn-primary">返回</button></a>
						</div>
					</div>
				</form>
	
		
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
                <script src="<!--{$salepath}-->static/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
                 <script type="text/javascript">
                  			layui.use(['form', 'layedit', 'laydate'], function() {
				var form = layui.form(),
					layer = layui.layer;
				form.on('submit(formDemo)', function(data) {   
                                            $.ajax({
                                                type: 'POST',
                                                url:"sale.php?c=Salesorder&a=doOut",
                                                async:true,
                                                data:data.field,
                                                dataType : "json",
                                                success:function(data){
                                                      if(data.code=='1'){                                                           
                                                            layer.msg(data.msg);
                                                            setTimeout(function(){
                                                                    parent.location.reload(true);
                                                                    layer.closeAll();
                                                              
                                                            }, 1500);
                                                      }
                                                      return false;
                                                },
                                                error:function(e){
                                                       return false;
                                                }
                                            });
                                          
					return false;
				});

			});
			
		</script>
	</body>
</html>
