<!DOCTYPE html> 
 <html> 
  <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    <meta content="telephone=no" name="format-detection"> 
    <meta name="apple-mobile-web-app-capable" content="yes"> 
    <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> 
    <style type="text/css"> 
      td { padding: 3px; } 
    </style> 
  </head> 
   <body style="padding: 10px 10px 0px 10px;font-size:16px;"> 
     <table width="100%" class="plaintable"> 
      {{ if .__title }}
      <tr> 
        <td align="center" style="font-size:20px;">{{.__title|trim}}</td> 
      </tr> 
      <tr> 
        <td align="center" style="font-size:20px;">收款单 {{ .state_text | empty}}</td> 
      </tr> 
      {{else}}
      <tr> 
        <td align="center" style="font-size:20px;">收款单 {{ .state_text | empty}}</td> 
      </tr> 
      {{end}}
     </table> 
     <div style="width:100%;float:left;"> 
       <table width="60%" class="plaintable" style="float:left;"> 
        <tr> 
          <td align="left">单号:</td> 
          <td align="left">{{ .code }}</td> 
          <td align="left">日期:</td> 
          <td align="left">{{ .bill_date }}</td> 
        </tr> 
         <tr> 
           <td align="left" width="10%" nowrap>客户:</td> 
           <td align="left" width="40%" nowrap>{{ .customer_name }} {{ .customer_mobile }}</td> 
           <td align="left" width="10%" nowrap>销售:</td> 
           <td align="left" width="40%" nowrap>{{ .salesman_name | empty }}</td> 
         </tr> 
       </table> 
     </div> 
     <p> 
     <div>收款金额: {{  .amount }} 付款方式: {{ .balance_account_name }} 累计欠款: {{ .receivable_money }}</div> 
     </p> 
     <div class="plaintable"> 
      <div>备注: {{ .remark | empty }}</div>
      <div>打印时间: {{ .print_time }}</div>
       {{range $i,$v := .__tails}}
         <div>{{ $v }}</div>
       {{end}}
     </div> 
   </body> 
 </html>
