Commit 88f28d8b by 杨树贤

申请审核问题

parent 86fd0ba3
......@@ -122,7 +122,6 @@ class SupplierShareApplyService
$departmentService = new DepartmentService();
$topDepartment = $departmentService->getUpperDepartmentByUserIdForShareApply($userId);
$departmentId = $topDepartment['department_id'];
$applyModel = new SupplierShareApplyModel();
$query = $applyModel::with([
'supplier' => function ($q) {
......@@ -139,14 +138,6 @@ class SupplierShareApplyService
$q->where('apply_department_id', $departmentId)->where('review_uid', 0)->where('audit_uid', '!=', 0)
->where('status', SupplierShareApplyModel::STATUS_NEED_REVIEW);
})->orderBy('id', 'desc');
// $query = $applyModel::with([
// 'supplier' => function ($q) {
// $q->select(['supplier_name', 'supplier_id','yunxin_channel_uid']);
// },
// 'department',
// 'apply_department',
// 'apply_user'
// ])->orderBy('id', 'desc');
$limit = request()->get('limit', 20);
$list = $query->paginate($limit)->toArray();
$transformer = new SupplierShareApplyTransformer();
......
......@@ -59,7 +59,7 @@
let url = '/api/supplier_share_apply/AuditSupplierShareApply';
let result = ajax(url, {
status: status,
id: id,
id: data.id,
});
if (result.err_code === 0) {
layer.msg('审核成功', {icon: 6})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment