<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="marauto" style="margin :6px auto;width: 80%;font-size: 14px;">
	<div class="">
		<div class="main_middle">
			<form method="post" action="<?php echo mvc::$cfg['ADMIN_URI'];?>pjlShop/checkTiXian" id="checkTiXian-form">
				<input type="hidden" name="mow_id" value="<?php echo $desArr['mow_id'];?>">
				<input type="hidden" name="mow_u_id" value="<?php echo $desArr['mow_u_id'];?>">
				<table class="table table-bordered">
					<tbody>
						<tr>
							<th width="100px" class="right">申请人</th>
							<td><?php echo $user['u_name'];?></td>
						</tr>
						<tr>
							<th width="100px" class="right">收款人</th>
							<td><?php echo $desArr['jsonArr']['uac_name'];?></td>
						</tr>
						<tr>
							<th width="100px" class="right">当前状态</th>
							<td>
								<label class="status-label">
									<input  type="radio" <?php if($desArr['mow_status']==-1){?> checked <?php }?> <?php if($desArr['mow_status']!=0){?> disabled <?php }?> name="mow_status" value="-1">已关闭
								</label>
								<label class="status-label">
									<input type="radio" name="mow_status" <?php if($desArr['mow_status']!=0){?> disabled <?php }?> <?php if($desArr['mow_status']==0){?> checked <?php }?> value="0">处理中
								</label>
								<label class="status-label">
									<input type="radio" name="mow_status" <?php if($desArr['mow_status']!=0){?> disabled <?php }?> <?php if($desArr['mow_status']==1){?> checked <?php }?> value="1">转账完成
								</label>
							</td>
						</tr>
						<tr>
							<th width="100px" class="right">申请时间</th>
							<td><?php echo date('Y-m-d H:i:s',$desArr['mow_atime']);?></td>
						</tr>
						<?php if($desArr['mow_status']!=-1){?>
						<tr>
							<th width="100px" class="right">到账时间</th>
							<td><input class="form-control" <?php if($desArr['mow_status']==1){?> disabled <?php }?> type="text" id="comTime" name="mow_ok_time" value="<?php echo $desArr['mow_ok_time']?date('Y-m-d H:i:s',$desArr['mow_ok_time']):'';?>"></td>
						</tr>
						<?php }?>
						<?php if(!empty($desArr['mow_close_time'])){?>
						<tr>
							<th width="100px" class="right">关闭时间</th>
							<td><?php echo $desArr['mow_close_time']?date('Y-m-d H:i:s',$desArr['mow_close_time']):'';?></td>
						</tr>
						<?php }?>
						<tr>
							<th width="100px" class="right">申请金额</th>
							<td><?php echo sprintf('%.2f',$desArr['mow_total_money']);?></td>
						</tr>
						<tr>
							<th width="100px" class="right">到账金额</th>
							<td><?php echo sprintf('%.2f',$desArr['mow_real_money']);?></td>
						</tr>
						<tr>
							<th width="100px" class="right">扣除手续费</th>
							<td><?php echo sprintf('%.2f',$desArr['mow_comm_money']);?></td>
						</tr>
						<tr>
							<th width="100px" class="right">费率</th>
							<td><?php echo $rate*100,'%';?></td>
						</tr>
						
						<tr>
							<th width="100px" class="right">收款账号</th>
							<td>
								<ul>
									<?php if($desArr['jsonArr']['uac_type']==0){?>
									<li>
										<div class="floatl"><img src="<?php echo $desArr['jsonArrWetChat']['headimgurl'];?>" width="90"/></div>
										<div class="floatl">
											<div class="mar5"><b>昵称：</b><?php echo $desArr['jsonArrWetChat']['nickname'];?></div>
											<div class="mar5"><b>微信号：</b><?php echo $desArr['jsonArr']['acc_weixin'];?></div>
											<div class="mar5"><b>姓名：</b><?php echo $desArr['jsonArr']['acb_name'];?></div>
											<div class="mar5"><b>身份证：</b><?php echo $desArr['jsonArr']['acb_idcard'];?></div>
										</div>
									</li>
									<?php }elseif($desArr['jsonArr']['uac_type']==1){?>
									<li>
										<div class="floatl">
											<div class="mar5"><b>支付宝账号：</b><?php echo $desArr['jsonArr']['acc_alipay_account'];?></div>
											<div class="mar5"><b>姓名：</b><?php echo $desArr['jsonArr']['acb_name'];?></div>
											<div class="mar5"><b>身份证：</b><?php echo $desArr['jsonArr']['acb_idcard'];?></div>
										</div>
									</li>
									<?php }elseif($desArr['jsonArr']['uac_type']==2){?>
									<li>
										<div class="floatl">
											<div class="mar5"><b>名称：</b><?php echo $desArr['jsonArr']['uac_bank_name'];?></div>
											<div class="mar5"><b>支行：</b><?php echo $desArr['jsonArr']['uac_bank_open'];?></div>
											<div class="mar5"><b>账号：</b><?php echo $desArr['jsonArr']['uac_bank_card'];?></div>
											<div class="mar5"><b>姓名：</b><?php echo $desArr['jsonArr']['uac_name'];?></div>
										</div>
									</li>
									<?php }?>
								<ul>
							</td>
						</tr>
						<?php if(!empty($desArr['mow_check_uname'])){?>
						<tr>
							<th width="100px" class="right">审核人</th>
							<td><?php echo $desArr['mow_check_uname'];?></td>
						</tr>
						<?php }?>
						<tr>
							<th width="100px" class="right">审核备注</th>
							<td>
								<?php if($desArr['mow_status']==0){?>
								<script id="ctr_remark" name="mow_ramark" type="text/plain"><?php echo $desArr['mow_check_remark'];?></script>
								<script type="text/javascript">
									var ue = UE.getEditor('ctr_remark', { initialFrameWidth:1200, initialFrameHeight: 460});
									UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;  
								    UE.Editor.prototype.getActionUrl = function(action) 
								    {  
								        if (action == 'uploadimage') 
								        {
								        	//跳转到后来的上传action  
								            return "<?php echo mvc::$cfg['ADMIN_URI'];?>article/uploadImg?isAjax=1&cate=purchase&site=pjl";  
								        }else 
								        {  
								            return this._bkGetActionUrl.call(this, action);  
								        }  
								    } 
								</script>
								<?php }else{?>
								<?php echo $desArr['mow_check_remark'];?>
								<?php }?>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
			<?php if($desArr['mow_status']==0){?>
			<div class="center confirm-btn"  style="width: 100%;">
				<input type="submit" id="checkTiXian-btn" class="btn btn-danger" value="确认审核">
			</div>
			<?php }?>
		</div>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$('#checkTiXian-btn').click(function(){
			var isEmpty=UE.getEditor('ctr_remark').hasContents()
			if(!isEmpty){
				MESSAGE.alert('备注不能为空');
				return false;
			}
			$('#checkTiXian-form').submit();
		});
		laydate.render({ 
	      elem: '#comTime',
	      type:'datetime'
	    });
	});
</script>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>