|
@@ -601,7 +601,7 @@ class Todo extends Base
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if($data['work_type_mode'] == 3){
|
|
|
|
|
|
|
+ if($info['work_type_mode'] == 3){
|
|
|
$wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$data['order_id'])->find();
|
|
$wlps = Db::connect('db_config_jili')->name('wlps')->where('order_id',$data['order_id'])->find();
|
|
|
if($wlps){
|
|
if($wlps){
|
|
|
Db::connect('db_config_jili')->name('wlps')->where('id',$wlps['id'])->update([
|
|
Db::connect('db_config_jili')->name('wlps')->where('id',$wlps['id'])->update([
|
|
@@ -862,6 +862,18 @@ class Todo extends Base
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $bxRoles = model('Config')->getConfig('org_bh_roles',$todo['org_id']);
|
|
|
|
|
+ if (!empty($bxRoles)){
|
|
|
|
|
+ $bxRoles = explode(',', $bxRoles);
|
|
|
|
|
+ $userRoles = Db::name('user_roles')->where('user_id',$userId)->value('roles_id') ?? 0;
|
|
|
|
|
+ if (!in_array((int)$userRoles,$bxRoles)){
|
|
|
|
|
+ $this->error = '当前用户角色无驳回权限';
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $this->error = '当前用户角色无驳回权限';
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if($todo['todo_mode']!==1){
|
|
if($todo['todo_mode']!==1){
|
|
|
$this->error = '当前状态不能驳回';
|
|
$this->error = '当前状态不能驳回';
|