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([ M("market_altogether","tab_")->where([
'pay_time'=>$save['pay_time'], 'pay_time'=>$save['pay_time'],
'admin_id'=>$save['admin_id'] 'admin_id'=>$save['admin_id']
])->save($marketSave); ])->save($marketSave);
// }
} else { } else {
$save['create_time'] = time(); $save['create_time'] = time();

@ -141,6 +141,10 @@
url += '&is_get=1'; url += '&is_get=1';
layer.confirm('【提示】是否确认财务部编辑保存', {
btn: ['确认','取消'],
title:false
}, function(index){
$.ajax({ $.ajax({
url:url, url:url,
type:"post", type:"post",
@ -158,6 +162,8 @@
} }
}) })
});
}); });
</script> </script>

Loading…
Cancel
Save