Commit ffa4bcb9 authored by duxinyuan's avatar duxinyuan

1

parent 71fdedd6
......@@ -18,6 +18,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
pay_type : '' ,
type_num : '' ,
houseNmuber : '' ,
pay_id :'' ,
init: function() {
//初始化dot
$(document.body).append(template);
......@@ -166,6 +167,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var type = e.target.dataset.type ;
var order_id = e.target.dataset.order_id ;
that.type_num = e.target.dataset.type_num
that.pay_id = id ;
// that.order_id = order_id ;
// that.order_no = e.target.dataset.order_no ;
// that.report_id = e.target.dataset.report_id;
......@@ -231,6 +233,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$('.img_area').empty();
$('#reportArea').hide();
$('#intoIdArea').hide();
$("#into_id_change").removeAttr("readOnly")
});
//调整
$("#modal-linetime").on("shown.bs.modal", function(event){
......@@ -613,13 +616,17 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
saveChange : function(no){
var that = receiv;
console.log(that);
if ( that.pay_id - 0 < 1 ){
alert("参数错误!");
}
var params = {
'order_id' : that.order_id ,
'order_no' : that.order_no,
'agent_id' : that.agent_id,
'report_id' : that.report_id,
'industry_type' : that.yetai ? that.yetai : '' ,
'income_time' : that.income_time
'income_time' : that.income_time ,
'pay_id' : that.pay_id
};
var obj = {
......
......@@ -30,7 +30,7 @@
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]'>收款详情</a>
[% if( it[item]['type_num'] == 10 || it[item]['type_num'] == 30 ) { %]
<a class="btn1 btn-success money_change" href="#modal-linetime" data-toggle="modal" data-type='[%= it[item]['type'] %]' data-id='[%= it[item]["id"]%]'
<a class="btn1 btn-success money_change" href="#modal-linetime" data-toggle="modal" data-type='[%= it[item]['type'] %]' data-id='[%= it[item]["id"]%]'
data-order_id = '[%= it[item]['order_id'] %]' data-type_num = '[%= it[item]['type_num'] %]' data-income_time='[%= it[item]['income_time'] %]' data-pay_type='[%= it[item]['pay_type_num'] %]' >调整</a>
[% } %]
<!--<a class="btn1 btn-success money_back" href="#modal-back" data-toggle="modal" data-id='[%= it[item]["id"]%]'>退款</a>-->
......
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