12.28功能提交

master
zhengyongxing 4 years ago
parent bb73235874
commit 0293fd7ff1

@ -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();

@ -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);
}
}
})
});
}
})
});
</script>

Loading…
Cancel
Save