去掉是否平安项目校验

This commit is contained in:
2020-09-02 11:29:02 +08:00
parent 5397d931f7
commit a18087bc6d
7 changed files with 22 additions and 26 deletions

View File

@@ -9,7 +9,8 @@ use Illuminate\Http\Request;
class Batch extends Action
{
public $name = '批量打款';
public $name = '批量打款';
protected $selector = '.import-post';
@@ -31,18 +32,18 @@ class Batch extends Action
$error++;
}
}
return $this->response()->success("处理完成,成功:{$success}条,失败:{$error}")->refresh();
}
public function form()
{
$users = User::query()
->whereHas('identity', function ($query) {
$query->where('identity_id', 1);
})
->where('type', 'pingan')
->get()
->pluck('nickname', 'id');
->whereHas('identity', function ($query) {
$query->where('identity_id', 1);
})
->get()
->pluck('nickname', 'id');
$this->select('user_id', '渠道')->options($users)->required();
// 时间日期选择
@@ -55,4 +56,5 @@ class Batch extends Action
<a class="btn btn-sm btn-default import-post"><i class="fa fa-Yuan"></i>批量打款</a>
HTML;
}
}