Commit 947e9406 authored by xishifeng's avatar xishifeng

开票税费修改

parent b3d327f7
...@@ -839,13 +839,13 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -839,13 +839,13 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
$('#addtax_date').val(_data['data'][0]['operation_date']); $('#addtax_date').val(_data['data'][0]['operation_date']);
var _htmlTemp = '<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>'; var _htmlTemp = '<tr><td>分佣方</td><td>业务员</td><td>分佣比例</td><td>税费</td></tr>';
$.each(_data['data'], function(i, v) { $.each(_data['data'], function(i, v) {
_htmlTemp += '<tr class="addtax-modal-tax-table-datatr" data-id="{id}" data-role="{role}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable>{3}</td></tr>'.stringFormatObj({ _htmlTemp += '<tr class="addtax-modal-tax-table-datatr" data-agentid="{id}" data-role="{role}"><td>{0}</td><td>{1}</td><td>{2}%</td><td contenteditable>{3}</td></tr>'.stringFormatObj({
'0': v.role_name, '0': v.role_name,
'1': v.name+'-'+v.phone, '1': v.name+'-'+v.phone,
'2': v.scale, '2': v.scale,
'3': (obj['type'] === 'new')?'':v.fee, '3': (obj['type'] === 'new')?'':v.fee,
'role': v.role, 'role': v.role,
'id': v.id 'id': v.agent_id
}); });
}); });
$('.addtax-modal-tax-table').html(_htmlTemp); $('.addtax-modal-tax-table').html(_htmlTemp);
...@@ -883,7 +883,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -883,7 +883,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
$.each($('.addtax-modal-tax-table-datatr'), function(i, v) { $.each($('.addtax-modal-tax-table-datatr'), function(i, v) {
_data['tax['+i+']'] = { _data['tax['+i+']'] = {
'fee': v.childNodes[3].innerHTML, 'fee': v.childNodes[3].innerHTML,
'agent_id': JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo'))).id, 'agent_id': v.getAttribute('data-agentid'),
'role': v.getAttribute('data-role'), 'role': v.getAttribute('data-role'),
'scale': v.childNodes[2].innerHTML.split('%')[0] 'scale': v.childNodes[2].innerHTML.split('%')[0]
}; };
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</tr> </tr>
[% if(it[item]['fee_list'] && it[item]['fee_list'].length && it[item]['fee_list'].length>0) { %] [% if(it[item]['fee_list'] && it[item]['fee_list'].length && it[item]['fee_list'].length>0) { %]
[% for(var item2 in it[item]['fee_list']){ %] [% for(var item2 in it[item]['fee_list']){ %]
<tr data-id="[%= it[item]['fee_list'][item2]['fee_id'] %]"> <tr data-feedid="[%= it[item]['fee_list'][item2]['feed_id'] %]">
<td>[%= getInfoType(it[item]['fee_list'][item2]['role']) %]</td> <td>[%= getInfoType(it[item]['fee_list'][item2]['role']) %]</td>
<td>[%= it[item]['fee_list'][item2]['name']+'-'+it[item]['fee_list'][item2]['phone'] %]</td> <td>[%= it[item]['fee_list'][item2]['name']+'-'+it[item]['fee_list'][item2]['phone'] %]</td>
<td>[%= it[item]['fee_list'][item2]['scale'] %]</td> <td>[%= it[item]['fee_list'][item2]['scale'] %]</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