diff --git a/Application/Admin/Controller/MarketPercentageController.class.php b/Application/Admin/Controller/MarketPercentageController.class.php index 1f5659fa7..d2df1b42f 100644 --- a/Application/Admin/Controller/MarketPercentageController.class.php +++ b/Application/Admin/Controller/MarketPercentageController.class.php @@ -509,20 +509,20 @@ class MarketPercentageController extends ThinkController ->find(); if ($is_hav) { -// if ($is_hav['coefficient'] != $save['coefficient']) { + if ($is_hav['coefficient'] != $save['coefficient']) { $save['update_time'] = time(); M("coefficient","tab_") ->where([ 'pay_time'=>$save['pay_time'], 'admin_id'=>$save['admin_id'] ])->save(['coefficient'=>$save['coefficient']]); + } + M("market_altogether","tab_")->where([ + 'pay_time'=>$save['pay_time'], + 'admin_id'=>$save['admin_id'] + ])->save($marketSave); - M("market_altogether","tab_")->where([ - 'pay_time'=>$save['pay_time'], - 'admin_id'=>$save['admin_id'] - ])->save($marketSave); -// } } else { $save['create_time'] = time(); diff --git a/Application/Admin/View/MarketPercentage/coefficient.html b/Application/Admin/View/MarketPercentage/coefficient.html index d8f59fa2c..fdcd09a37 100644 --- a/Application/Admin/View/MarketPercentage/coefficient.html +++ b/Application/Admin/View/MarketPercentage/coefficient.html @@ -141,23 +141,29 @@ url += '&is_get=1'; - $.ajax({ - url:url, - type:"post", - dataType:'json', - success:function(data){ - if (data.status == 1) { - layer.msg(data.msg); - setTimeout(function(){ - window.parent.reload() - },2000) - - } else { - layer.msg(data.msg); + layer.confirm('【提示】是否确认财务部编辑保存', { + btn: ['确认','取消'], + title:false + }, function(index){ + $.ajax({ + url:url, + type:"post", + dataType:'json', + success:function(data){ + if (data.status == 1) { + layer.msg(data.msg); + setTimeout(function(){ + window.parent.reload() + },2000) + + } else { + layer.msg(data.msg); + } + } + }) + }); - } - }) });