bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!-- $Id: order_info.htm 17060 2010-03-25 03:44:42Z  $ -->
{include file="pageheader.htm"}
{insert_scripts files="topbar.js,../js/utils.js,listtable.js,selectzone.js,../js/common.js"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<style>
.pay_type{position:relative;}
.pay_type_list{position:absolute;width:100px;height:auto;padding-bottom:50px;background:#eeeeee;border:1px solid #000;left:2px;top:25px;}
</style>
 
 
<div class="list-div1" style="margin-bottom: 5px">
<form action="supplier_rebate.php" method="post" name="theForm">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th>入驻商名称:</th>
    <td>{$supplier.user_name}</td>
    <th>结算单编号:</th>
    <td>{$rebate.sign}</td>
  </tr>
  <tr>
    <th>店铺名称:</th>
    <td>{$supplier.supplier_name}</td>
    <th>结算期间:</th>
    <td>{$rebate.rebate_paytime_start}~{$rebate.rebate_paytime_end}</td>
  </tr>
  {if $money_info}
  <tr>
  <td colspan='4'>
      <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
      <td colspan='6'>
      结算信息
      </td>
      </tr>
      {foreach from=$money_info item=money key=key}
      <tr>
      <th>{if $key eq 'online'}线上货款:{else}线下货款(货到付款):{/if}</th><td>{$money.allmoney}</td><th>佣金比例:</th><td>{$money.supplier_rebate}%</td><th>佣金:</th><td>{$money.rebatemoney}</td>
      </tr>
      {/foreach}
      </table>
   </td>
  </tr>
  {/if}
  <tr>
    <td colspan='4'>
    <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
      <td colspan='4'>
      佣金统计
      </td>
      </tr>
      <tr>
        <th>实收货款:</th>
        <td>{$allmoney.rebate_all}</td>
        
      </tr>
      <tr>
        <th>-佣金:</th>
        <td>{$allmoney.rebate_money}</td>
        
      </tr>
      <tr>
        <th>=结算金额:</th><td>{$allmoney.payable_price}</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan='4'>
    <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
      <td colspan='4'>
      按如下信息给商家付款
      </td>
      </tr>
      <tr>
        <th>公司名称:</th>
        <td>{$supplier.company_name}</td>
        <th>地址:</th>
        <td>{$supplier.province}{$supplier.city}{$supplier.district}{$supplier.address}</td>
      </tr>
      <tr>
        <th>电话:</th>
        <td>{$supplier.tel}</td>
        <th>开户行:</th>
        <td>{$supplier.settlement_bank_name}</td>
      </tr>
      <tr>
        <th colspan='2'>帐号:</th><td colspan='2'>{$supplier.settlement_bank_account_number}</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan='4'>
    {if $rebate.status eq 4}
    <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
      <td colspan='4'>
      汇款凭证
      </td>
      </tr>
      <tr>
      <td colspan='2'><img src="/{$rebate.rebate_img}"></td>
      </tr>
      <tr>
      <th>备注说明:</th>
      <td>{$rebate.remark}</td>
      </tr>
    </table>
    {else}
    <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
      <td colspan='4'>
      平台方审核
      </td>
      </tr>
      {if $rebate.status eq 2}
      <tr>
      <th>当前进度:</th>
      <td>
      <input type='hidden' name='id' value='{$rebate.rebate_id}'>
      <input type='hidden' value='update' name='act'>
      <input type='submit'  value='确认通过'>如有疑问,请联系平台方负责人
      </td>
      </tr>
      {else}
      <tr>
        <th>操作备注:</th>
        <td><textarea name='remark'></textarea></td>
      </tr>
      <tr>
        <th>当前可操作项:</th>
        <td>
        等待平台方发起结算
        </td>
      </tr>
      {/if}
    </table>
    {/if}
    </td>
  </tr>
{if $logs}
  <tr>
    <td colspan='4'>
    <table width='100%' cellpadding="3" cellspacing="1">
      <tr>
        <th>操作者</th>
        <th>操作时间</th>
        <th>操作事件</th>
        <th>备注</th>
      </tr>
      {foreach from=$logs item=log key=key}
      <tr>
        <td>{$log.username}</td>
        <td>{$log.addtime_dec}</td>
        <td>{$log.typedec}</td>
        <td>{$log.contents}</td>
      </tr>
      {/foreach}
    </table>
    </td>
  </tr>
{/if}
</table>
</form>
</div>
<script type="text/javascript" language="javascript">
{literal}
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}
function jian(){
    var all = parseFloat(document.getElementById('rebate_all').value);
    var rebate = parseFloat(document.getElementById('rebate_money').value);
    if(isNaN(all) || isNaN(rebate)){
        alert('输入金额不正确!');
        return false;
    }
    document.getElementById('payable_price').innerHTML = (all*100 - rebate*100)/100;
}
{/literal}
</script>
 
 
{include file="pagefooter.htm"}