Commit 00288d08 authored by xishifeng's avatar xishifeng

成交信息保存限制

parent 4d850566
...@@ -13,6 +13,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -13,6 +13,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
agent_id_phone:'',//分佣方 姓名搜索 agent_id_phone:'',//分佣方 姓名搜索
detail_user_id:'',//用户id detail_user_id:'',//用户id
detail_shop_id:'',//商铺id detail_shop_id:'',//商铺id
isBargaininfoSaveIngFlag: false,//成交信息保存是否正在保存
shouyong_date_active_sapn: null, shouyong_date_active_sapn: null,
init: function() { init: function() {
//初始化dot //初始化dot
...@@ -713,6 +714,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -713,6 +714,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}); });
}, },
bargaininfoSave: function() { //修改报告详情 bargaininfoSave: function() { //修改报告详情
if(!bargain.isBargaininfoSaveIngFlag){
bargain.isBargaininfoSaveIngFlag = true;
var _data = { var _data = {
'id': bargain.bargain_id, 'id': bargain.bargain_id,
'commission': $.trim($('#bargaininfo_total_commission').val()), 'commission': $.trim($('#bargaininfo_total_commission').val()),
...@@ -747,8 +750,12 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -747,8 +750,12 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
} else { } else {
alert(data.msg); alert(data.msg);
} }
},
complete: function(xhr, textStatus){
bargain.isBargaininfoSaveIngFlag = false;
} }
}); });
}
}, },
maidShow: function() { maidShow: function() {
$('#maid_new_btn').hide();//默认隐藏新增按钮 $('#maid_new_btn').hide();//默认隐藏新增按钮
......
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