Commit b64e299a authored by agping's avatar agping

办公室 门店

parent e565fb5d
...@@ -67,6 +67,9 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding ...@@ -67,6 +67,9 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
}); });
//解绑门店 //解绑门店
$(document).delegate(".is_jiebang", "click", function() { $(document).delegate(".is_jiebang", "click", function() {
if(!confirm('是否继续?')) {
return;
}
cost.store_id = $(this).attr('data-id'); cost.store_id = $(this).attr('data-id');
that.delStore(); that.delStore();
}); });
...@@ -186,6 +189,7 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding ...@@ -186,6 +189,7 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
if(data.code == 200){ if(data.code == 200){
// $('.modal').modal("hide"); // $('.modal').modal("hide");
cost.storeList(); cost.storeList();
cost.getList();
} }
alert(data.msg) alert(data.msg)
} }
...@@ -206,6 +210,8 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding ...@@ -206,6 +210,8 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
if(data.code == 200){ if(data.code == 200){
// $('.modal').modal("hide"); // $('.modal').modal("hide");
cost.storeList(); cost.storeList();
cost.getList();
} }
alert(data.msg) alert(data.msg)
} }
......
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