<!--{include file="<!--{$oapath}-->public/ins_page.tpl"}-->
<block name="content">
	<div class="page-header">
	<h1> 
            <!--{if $vo.doc_type=='1'}-->
                   收入详细内容
            <!--{elseif $vo.doc_type=='2'}-->
            支出详细内容  
            <!--{elseif $vo.doc_type=='3'}-->
                转账详细内容
                <!--{/if}-->

            </h1>
        </div>
                <input type="hidden" id="account_id" value="<!--{$vo.account_id}-->"/>
	<div class="operate panel panel-default">
		<div class="panel-body">
			<div class="pull-left">
				<a onclick="go_return_url();" class="btn btn-sm btn-primary">返回</a>
				<!--<if condition="$auth['admin']">
					<a onclick="del();" class="btn btn-sm btn-danger">删除</a>
				</if>-->
			</div>
			<div class="pull-right">
				<a onclick="winprint()" class="btn btn-sm btn-primary hidden-xs">打印</a>
				<!--<if condition="$auth['write']">
					<a onclick="edit();" class="btn btn-sm btn-primary">修改</a>
				</if>-->
			</div>
		</div>
	</div>
	<!--{if $vo.doc_type=='1'}-->
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   class="well form-horizontal">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="doc_no">单据编号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.doc_no}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="end_date" >日期：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.input_date}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id">客户名称：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.partner}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" >收入项目：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.type}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id">交易帐号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.account_name}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" >账户余额：</label>
				<div class="col-sm-8">
					<input class="form-control" id="balance" type="text" readonly="readonly" >
				</div>
			</div>

			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="payment">金额：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.income}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="actor_user_name">经办人：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.actor_name}-->
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="remark">摘要：</label>
				<div class="col-sm-10">
					<p class="form-control-static">
						<!--{$vo.remark}-->
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="name">附件：</label>
				<div class="col-sm-10">
					<div style="position:relative;">
                                                
                                                        <ul class="file_list" id="file_list">
                                                           <!--{foreach $files as  $key=>$vo}-->
                                                                        <li class="tbody">
                                                                                <div class="loading"></div>
                                                                                <div class="data">
                                                                                        <span class="del text-center"> <a class="link down" download="" target="_blank" href="<!--{$vo.path}-->">下载</a> </span>
                                                                                   
                                                                                        <span class="auto autocut" title="<!--{$vo.name}-->"><!--{$vo.name}-->
                                                                                        </span>
                                                                                </div>
                                                                        </li>
                                                             <!--{/foreach}-->
                                                        </ul>
                                               
                                        </div>
				</div>
			</div>
		</form>
	 <!--{elseif $vo.doc_type=='2'}-->
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   class="well form-horizontal">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="doc_no">单据编号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.doc_no}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="end_date" >日期：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.input_date}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id">供应商名称：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.partner}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" >支出项目：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.type}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id">交易帐号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.account_name}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" >账户余额：</label>
				<div class="col-sm-8">
					<input class="form-control" id="balance" type="text" readonly="readonly" >
				</div>
			</div>

			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="payment">金额：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.payment}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="actor_user_name">经办人：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.actor_user_name}-->
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="remark">摘要：</label>
				<div class="col-sm-10">
					<p class="form-control-static">
						<!--{$vo.remark}-->
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="name">附件：</label>
				<div class="col-sm-10">
					<div style="position:relative;">
                                                
                                                        <ul class="file_list" id="file_list">
                                                           <!--{foreach $files as  $key=>$vo}-->
                                                                        <li class="tbody">
                                                                                <div class="loading"></div>
                                                                                <div class="data">
                                                                                        <span class="del text-center"> <a class="link down" download="" target="_blank" href="<!--{$vo.path}-->">下载</a> </span>
                                                                                   
                                                                                        <span class="auto autocut" title="<!--{$vo.name}-->"><!--{$vo.name}-->
                                                                                        </span>
                                                                                </div>
                                                                        </li>
                                                             <!--{/foreach}-->
                                                        </ul>
                                               
                                        </div>
				</div>
			</div>
		</form>

	    <!--{elseif $vo.doc_type=='3'}-->
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   class="well form-horizontal">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="doc_no">单据编号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.doc_no}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="end_date" >日期：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.input_date}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id_payment">转出帐号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
					
                                                  <!--{if $vo.income==''}-->
                                                     <!--{$vo.related_account_name}-->  
                                                     <!--{else}-->
                                                     <!--{$vo.account_name}-->
                                                     <!--{/if}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="account_id_income">转入帐号：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
                                             <!--{if $vo.income==''}-->
                                                           <!--{$vo.account_name}-->
                                                     <!--{else}-->
                                                     <!--{$vo.related_account_name}-->
                                                     <!--{/if}-->
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="money">金额：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
                                                  <!--{if $vo.income==''}-->
                                                           <!--{$vo.payment}-->
                                                     <!--{else}-->
                                                     <!--{$vo.income}-->
                                                     <!--{/if}-->
						
					</p>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="actor_user_name">经办人：</label>
				<div class="col-sm-8">
					<p class="form-control-static">
						<!--{$vo.actor_name}-->
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="name">附件：</label>
				<div class="col-sm-10">
					<div style="position:relative;">
                                                
                                                        <ul class="file_list" id="file_list">
                                                           <!--{foreach $files as  $key=>$vo}-->
                                                                        <li class="tbody">
                                                                                <div class="loading"></div>
                                                                                <div class="data">
                                                                                        <span class="del text-center"> <a class="link down" download="" target="_blank" href="<!--{$vo.path}-->">下载</a> </span>
                                                                                   
                                                                                        <span class="auto autocut" title="<!--{$vo.name}-->"><!--{$vo.name}-->
                                                                                        </span>
                                                                                </div>
                                                                        </li>
                                                             <!--{/foreach}-->
                                                        </ul>
                                               
                                        </div>
				</div>
			</div>
		</form>
<!--{/if}-->
</block>

                                		</div>
		<!-- Mainly scripts -->
		<script src="<!--{$oapath}-->Ins/js/jquery-2.1.1.js"></script>
		<script src="<!--{$oapath}-->Ins/js/bootstrap.min.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<!-- Custom and plugin javascript -->
		<script src="<!--{$oapath}-->Ins/js/inspinia.js"></script>
		<script src="<!--{$oapath}-->Ins/js/common.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/pace/pace.min.js"></script>
                
		<script src="<!--{$oapath}-->Ins/js/plugins/toastr/toastr.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/gritter/jquery.gritter.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/bootbox/bootbox.min.js"></script>
                
                    <script src="<!--{$oapath}-->Ins/js/plugins/date-time/moment-with-locales.js"></script>
	<script src="<!--{$oapath}-->Ins/js/plugins/date-time/bootstrap-datetimepicker.js"></script>

		
        <block name="js">
             <script type="text/javascript">
                 $(document).ready(function() {
                     var account_id=$("#account_id").val();
			set_return_url(document.location, 1);
			$.getJSON("oa.php?c=Finance&a=read_account", {
				account_id : account_id
			}, function(data) {
				if (data.status == 1) {
					$("#balance").val(data.data.balance);
				}
			});
		});

</script>
                
        </block>
	</body>
</html>