Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
xman 2025-06-20 16:14:27 +08:00
commit 10cff56e96
2 changed files with 5 additions and 5 deletions

View File

@ -418,7 +418,7 @@ class CustomDetail extends Backend
Db::name('salary_status')
->where('salary_month', $month)
->where('target_admin_id', $targetAdminId)
->save([
->update([
'settle_status' => 1,
]);
$this->success();

View File

@ -81,15 +81,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
},
{
name: 'complete',
text:"结算",
title:"结算",
name: 'settle',
text: '结算',
title: '结算',
extend: 'data-toggle="tooltip" data-container="body"',
classname: 'btn btn-xs btn-success btn-magic btn-ajax',
icon: 'fa fa-cny',
url: function (row) {
// 注意这里拼接 admin_id 和 month
return 'salary/detail/settle?target_admin_id=' + row.target_admin_id + '&month=' + row.month;
return 'salary/custom_detail/settle?target_admin_id=' + row.target_admin_id + '&month=' + row.month;
},
confirm: '确认结算?',
refresh: true,