Commit 0a072bdc authored by xishifeng's avatar xishifeng

开票税费1

parent 39e2b2f7
...@@ -839,13 +839,14 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -839,13 +839,14 @@ 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-agentid="{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-feeid="{feeid}" 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.agent_id 'id': v.agent_id,
'feeid': v.id
}); });
}); });
$('.addtax-modal-tax-table').html(_htmlTemp); $('.addtax-modal-tax-table').html(_htmlTemp);
...@@ -888,7 +889,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s ...@@ -888,7 +889,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
'scale': v.childNodes[2].innerHTML.split('%')[0] 'scale': v.childNodes[2].innerHTML.split('%')[0]
}; };
if(_tempTableObj.attr('data-type') === 'edit'){ if(_tempTableObj.attr('data-type') === 'edit'){
_data['tax['+i+']']['fee_id'] = v.getAttribute('data-id'); _data['tax['+i+']']['fee_id'] = v.getAttribute('data-feeid');
}; };
}); });
$.ajax({ $.ajax({
......
...@@ -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-feedid="[%= it[item]['fee_list'][item2]['feed_id'] %]"> <tr data-feeid="[%= it[item]['fee_list'][item2]['fee_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