跟进重构
This commit is contained in:
parent
6e6074b7dc
commit
f67850dafe
|
|
@ -83,6 +83,12 @@ class Dispatch2 extends Backend
|
|||
$row->is_disabled = in_array($row->status, $this->model->btnActiveStatusList('disabled_status'));
|
||||
$row->btn_record = in_array($row->status, $this->model->btnActiveStatusList('btn_record')) && $this->auth->check('orders/dispatchrecord/add');
|
||||
|
||||
if(!in_array($row->status, $this->model->btnActiveStatusList('btn_record')) ){
|
||||
if($row->follow != 2){ //如果节点维护正常,不会有种数据,所以不用担心循环的问题
|
||||
$row->follow = 2;
|
||||
$row->save();
|
||||
}
|
||||
}
|
||||
if($row->btn_record){
|
||||
if($row->type == 2)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user