12.28功能提交

master
zhengyongxing 4 years ago
parent bb73235874
commit 0293fd7ff1

@ -509,20 +509,20 @@ class MarketPercentageController extends ThinkController
->find(); ->find();
if ($is_hav) { if ($is_hav) {
// if ($is_hav['coefficient'] != $save['coefficient']) { if ($is_hav['coefficient'] != $save['coefficient']) {
$save['update_time'] = time(); $save['update_time'] = time();
M("coefficient","tab_") M("coefficient","tab_")
->where([ ->where([
'pay_time'=>$save['pay_time'], 'pay_time'=>$save['pay_time'],
'admin_id'=>$save['admin_id'] 'admin_id'=>$save['admin_id']
])->save(['coefficient'=>$save['coefficient']]); ])->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 { } else {
$save['create_time'] = time(); $save['create_time'] = time();

@ -141,23 +141,29 @@
url += '&is_get=1'; url += '&is_get=1';
$.ajax({ layer.confirm('【提示】是否确认财务部编辑保存', {
url:url, btn: ['确认','取消'],
type:"post", title:false
dataType:'json', }, function(index){
success:function(data){ $.ajax({
if (data.status == 1) { url:url,
layer.msg(data.msg); type:"post",
setTimeout(function(){ dataType:'json',
window.parent.reload() success:function(data){
},2000) if (data.status == 1) {
layer.msg(data.msg);
} else { setTimeout(function(){
layer.msg(data.msg); window.parent.reload()
},2000)
} else {
layer.msg(data.msg);
}
} }
})
});
}
})
}); });
</script> </script>

Loading…
Cancel
Save