Commit b08411be authored by xishifeng's avatar xishifeng

分佣提成1

parent de0391bc
......@@ -161,8 +161,8 @@
<th class="text-center">确认时间</th>
</tr>
</thead>
<tbody class="text-center">
<tr>
<tbody class="text-center" id="maid_new_table_list">
<!--<tr>
<td>盘方</td>
<td>刘丹丹-13918937741</td>
<td>同联一部南京东路店</td>
......@@ -195,7 +195,7 @@
<span></span>
</div>
</td>
</tr>
</tr>-->
</tbody>
</table>
......@@ -285,18 +285,13 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title">
新增分佣提成
</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">新增分佣提成</h4>
</div>
<div class="modal-body">
<div class="modal-body" id="">
<!-- 新增分佣提成 -->
<form>
分佣方:&nbsp;&nbsp;&nbsp;
<div class="modal-body" id="addmaid_input_area">
<div>
<span>分佣方:</span>
<select class="form-control form-control-one" id="is_carefully_chosen">
<option value="0">请选择</option>
<option value="1">盘方</option>
......@@ -304,13 +299,20 @@
<option value="3">反签</option>
<option value="4">独家</option>
<option value="5">合作方</option>
</select><br>
<span>业务员:&nbsp;&nbsp;&nbsp;</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id=" " placeholder="" type="text" value=""><br>
<span>所属门店:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id=" " placeholder="" type="text" value=""><br>
<span>分佣比例:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id="commission-rate" placeholder="" type="text" value=""><br>
<span>应分佣金:</span><input class="form-control form-control-one" data-rule-phoneus="false" data-rule-required="false" id="should-commission" placeholder="" type="text" value=""><br>
</form>
<!-- 新增分佣提成 -->
</select>
</div>
<div>
<span>业务员:</span><input class="form-control form-control-one" type="text" />
</div>
<div>
<span>所属门店:</span><input class="form-control form-control-one" type="text" />
</div>
<div>
<span>分佣比例:</span><input class="form-control form-control-one" type="text" />%
</div>
<div>
<span>应分佣金:</span><input class="form-control form-control-one" type="text" />
</div>
</div>
</div>
<div class="modal-footer">
......
......@@ -7,6 +7,10 @@ detail-modal-maid-
detail-modal-tax-
pass-modal-
addtax-modal-
addmaid-modal-
bargaininfo_
addtax_
*
*
*
......@@ -187,6 +191,12 @@ addtax-modal-
/********************/
/*新增分佣提成弹框部分样式*/
#addmaid_input_area>div>span:nth-of-type(1){
display: inline-block;
width: 50px;
}
.form-control-one {
display: inline-block;
width: 40%;
......
define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_shuiFee_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template2) {
define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_shuiFee_template_tpl.html', 'text!temp/reportList_maid_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax, template_maid) {
bargain = {
pageNo: 1,
/*第几页*/
......@@ -9,8 +9,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
bargain_id: '',
init: function() {
//初始化dot
$(document.body).append(template);
$(document.body).append(template2);
$(document.body).append(template + template_tax + template_maid);
bargain.getList(1);
bargain.event();
},
......@@ -115,7 +114,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
//详情弹出框,成交信息里的实收佣金相关的事件
var _iYJAAObj = $('.detail-modal-bargaininfo-commission-addarea');
_doc.on('click', '#bargaininfo_commission_add_btn', function(e){
_doc.on('click', '#bargaininfo_commission_add_btn>img', function(e){
e.preventDefault();
e.stopPropagation();
if($('.detail-modal-bargaininfo-commission-addarea>div').length>=5){
......@@ -280,6 +279,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
});
},
maidShow: function() {
$("#maid_new_table_list").html('');
$.ajax({
type: 'GET',
url: '/index/commissionList',
......@@ -292,7 +292,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'text!temp/reportList_s
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
$("#maid_new_table_list").html(doT.template($('#reportList_maid_list_tpl').html())(_data));
} else {
layerTipsX(_data['msg']);
}
......
<script id="reportList_maid_list_tpl" type="text/template">
[% if(it['data'] && it['data'].length && it['data'].length>0) { %]
[% for(var i in it['data']){ %]
<tr class="text-center" data-id="[%= it['data'][i]['id'] %]">
<td>[%= it['data'][i]['role_name'] %]</td>
<td>[%= it['data'][i]['agent'] %]</td>
<td>[%= it['data'][i]['district_store'] %]</td>
<td contenteditable>[%= it['data'][i]['scale'] %]%</td>
<td contenteditable>[%= it['data'][i]['scale_fee'] %]</td>
<td colspan="6" class="detail-modal-maid-mix-td oh">
[% if(it['data'][i]['partial_commission'] && it['data'][i]['partial_commission'].length && it['data'][i]['partial_commission'].length>0) { %]
<div class="oh">
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span contenteditable>2</span>
<span>4</span>
</div>
[% }else{ %]
<div class="oh">
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span contenteditable></span>
<span></span>
</div>
[% } %]
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="11" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
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