Commit 375c16fe authored by agping's avatar agping

退款

parent 158bcbb3
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
</td> </td>
<td> <td>
<span class="span-width-90">转账户名:</span> <span class="span-width-90">转账户名:</span>
<input type="number" placeholder="请输入" class="intention-name"> <input type="text" placeholder="请输入" class="intention-name">
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -349,7 +349,6 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -349,7 +349,6 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
params.house_number=$(".shop-num").val();//商铺号 params.house_number=$(".shop-num").val();//商铺号
params.industry_type=$(".yetai").val();//业态 params.industry_type=$(".yetai").val();//业态
params.remark=$(".beizhu").val(); params.remark=$(".beizhu").val();
params.transfer_img=$("input[name=area_demand]").val();
// params.pay_id=$("input[name=area_demand]").val(); // params.pay_id=$("input[name=area_demand]").val();
params.transfer_name=$(".intention-name").val(); params.transfer_name=$(".intention-name").val();
params.receipt_number=$(".intention-num").val(); params.receipt_number=$(".intention-num").val();
...@@ -371,7 +370,9 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -371,7 +370,9 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
imgname[i] = $('.result-du>img').eq(i).attr('data-imgname'); imgname[i] = $('.result-du>img').eq(i).attr('data-imgname');
}; };
if(imgname.join(',')) { if(imgname.join(',')) {
params.transfer_img = imgname.join(','); // params.transfer_img = imgname.join(',');
params.transfer_img = imgname;
} else { } else {
return return
}; };
...@@ -385,6 +386,8 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -385,6 +386,8 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
alert('提交成功!') alert('提交成功!')
$("#modal-intention").modal('hide');
} else { } else {
alert(data.msg) alert(data.msg)
} }
......
...@@ -651,6 +651,22 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -651,6 +651,22 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$('.anchangfei').show(); $('.anchangfei').show();
}; };
}); });
//中介费类型 正常 多收
$(".fee-type-zhongjie").change(function() {
if($('.fee-type-zhongjie').val()*1 == 0){//正常
var shouldMoney = (0.7*bargain.price_commission).toFixed(2)
var moreMoney = ($('.commission-money').val()*1 - shouldMoney + $('.commission-before-zhongjie').val()*1).toFixed(2)
$('.fee-money-zhongjie').html(shouldMoney);//应收金额
$('.fee-more-zhongjie').html(moreMoney);//多收金额
}else{//多收
var shouldMoney = 0;
var moreMoney = $('.commission-money').val()*1;
$('.fee-money-zhongjie').html(shouldMoney);//应收金额
$('.fee-more-zhongjie').html(moreMoney);//多收金额
};
});
//收款图片 和 收款详情切换 //收款图片 和 收款详情切换
$('.tit_con').unbind('click').bind('click',function(e){ $('.tit_con').unbind('click').bind('click',function(e){
...@@ -968,7 +984,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -968,7 +984,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}); });
}, },
resetInput: function(fn) { resetInput: function(fn) {
$(".commission-money").val(''); $(".commission-money").val(0);
$('.commission-pay-type').val(''); $('.commission-pay-type').val('');
$(".commission-transfer-name").val(''); $(".commission-transfer-name").val('');
$(".shop-num-liu").val('');//商铺号 $(".shop-num-liu").val('');//商铺号
...@@ -981,7 +997,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -981,7 +997,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$('#container_body_img_area_liu').html(''); $('#container_body_img_area_liu').html('');
$('.commission-bargain-id').html(bargain.bargainid_commission);//初始化 成交报告id $('.commission-bargain-id').html(bargain.bargainid_commission);//初始化 成交报告id
$('.commission-price-zhongjie').html(bargain.price_commission);//初始化成交价 $('.commission-price-zhongjie').html(bargain.price_commission);//初始化成交价
//默认中介费 类型正常
var shouldMoney = (0.7*bargain.price_commission).toFixed(2)
var moreMoney = ($('.commission-money').val()*1 - shouldMoney + $('.commission-before-zhongjie').val()*1).toFixed(2)
$('.fee-money-zhongjie').html(shouldMoney);//应收金额
$('.fee-more-zhongjie').html(moreMoney);//多收金额
bargain.getNum(); bargain.getNum();
}, },
......
...@@ -44,7 +44,10 @@ ...@@ -44,7 +44,10 @@
<td> <td>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-success rejected" href="#modal-check" data-toggle="modal" data-id='[%= it[item]["id"] %]'>审核</a> <a class="btn1 btn-success rejected" href="#modal-check" data-toggle="modal" data-id='[%= it[item]["id"] %]'>审核</a>
[% if (it[item]['status'] != 2){ %]
<a class="btn1 btn-success is_del" href="#modal-del" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除退款</a> <a class="btn1 btn-success is_del" href="#modal-del" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除退款</a>
[% } %]
</td> </td>
</tr> </tr>
[% } %] [% } %]
......
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