Commit 31c9f8d9 authored by agping's avatar agping

置空

parent c2a87919
......@@ -284,6 +284,11 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
e.preventDefault();
e.stopPropagation();
$('#modal_new_maid').removeAttr('data-id').find('.modal-title').html('新增分佣提成');
$('#addmaid_input_ywy').val('');//先置空
$('#addmaid_input_shop').val('');//先置空
$('#addmaid_input_ratio').val('');//先置空
$('#addmaid_input_cash').val('');//先置空
$('#addmaid_input_servant').val('');//先置空
bargain.newAddMaid();
});
//中介费 类型切换 多收 正常
......@@ -309,6 +314,12 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
e.stopPropagation();
var _id = $(this).closest('tr').attr('data-id');
$('#modal_new_maid').attr('data-id', _id).find('.modal-title').html('编辑分佣提成');
$('#addmaid_input_ywy').val('');//先置空
$('#addmaid_input_shop').val('');//先置空
$('#addmaid_input_ratio').val('');//先置空
$('#addmaid_input_cash').val('');//先置空
$('#addmaid_input_servant').val('');//先置空
bargain.newAddMaid(function(){
bargain.getMaidInfo(_id);
});
......@@ -1602,7 +1613,7 @@ define(['doT', 'text!temp/reportList_shop_template_tpl.html', 'css!style/home.cs
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
alert('编辑成功!请在离开页面时点击【保存】按钮');
layerTipsX('编辑成功!请在离开页面时点击【保存】按钮');
bargain.maidShow();
} else {
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