Commit c685cb9b authored by hujun's avatar hujun

业绩明细增加一列分佣角色

parent 61702a27
...@@ -92,6 +92,7 @@ class PerformanceInfo extends Basic ...@@ -92,6 +92,7 @@ class PerformanceInfo extends Basic
$field .= 'Obargain.scale_fee,'; $field .= 'Obargain.scale_fee,';
$field .= 'Obargain.practical_fee,'; $field .= 'Obargain.practical_fee,';
$field .= 'Obargain.order_id,'; $field .= 'Obargain.order_id,';
$field .= 'Obargain.role,';
$field .= 'Agent.name,'; $field .= 'Agent.name,';
$field .= 'Agent.phone,'; $field .= 'Agent.phone,';
$field .= 'Store.store_name,'; $field .= 'Store.store_name,';
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
<th class="text-center">商铺地址</th> <th class="text-center">商铺地址</th>
<th class="text-center">商铺编号</th> <th class="text-center">商铺编号</th>
<th class="text-center">分佣提成方</th> <th class="text-center">分佣提成方</th>
<th class="text-center">分佣角色</th>
<th class="text-center">所属部门门店</th> <th class="text-center">所属部门门店</th>
<th class="text-center">分佣比例</th> <th class="text-center">分佣比例</th>
<th class="text-center">应分佣金(元)</th> <th class="text-center">应分佣金(元)</th>
......
<script id="performance_subsidiary_list_tpl" type="text/template"> <script id="performance_subsidiary_list_tpl" type="text/template">
[% if(it[0]) { %] [% if(it[0]) { %]
[% var sw=function(s){switch(Number(s)){case 10:return"出租";case 20:return"增佣";case 30:return"代理";case 40:return"好处费";default:return s}}; %] [% var sw=function(s){switch(Number(s)){case 10:return"出租";case 20:return"增佣";case 30:return"代理";case 40:return"好处费";default:return s}}; %]
[% var sw2=function(s){switch(Number(s)){case 1:return"盘方";case 2:return"客方";case 3:return"反签";case 4:return"独家";case 5:return"合作方";case 6:return"APP盘下载方";case 7:return"APP客下载方";default:return s}}; %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center" data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]" data-fatherid="[%= it[item]['father_id'] %]"> <tr class="text-center" data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]" data-fatherid="[%= it[item]['father_id'] %]">
<td>[%= it[item]['id'] %]</td> <td>[%= it[item]['id'] %]</td>
...@@ -9,6 +10,7 @@ ...@@ -9,6 +10,7 @@
<td class="text-left">[%= it[item]['landmark'] %]</td> <td class="text-left">[%= it[item]['landmark'] %]</td>
<td>[%= it[item]['house_id'] %]</td> <td>[%= it[item]['house_id'] %]</td>
<td>[%= it[item]['name'] %]-[%= it[item]['phone'] %]</td> <td>[%= it[item]['name'] %]-[%= it[item]['phone'] %]</td>
<td>[%= sw2(it[item]['role']) %]</td>
<td>[%= it[item]['district_name'] %]-[%= it[item]['store_name'] %]</td> <td>[%= it[item]['district_name'] %]-[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['scale'] %]%</td> <td>[%= it[item]['scale'] %]%</td>
<td>[%= it[item]['scale_fee'] %]</td> <td>[%= it[item]['scale_fee'] %]</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment