Commit 88f28d8b by 杨树贤

申请审核问题

parent 86fd0ba3
...@@ -122,7 +122,6 @@ class SupplierShareApplyService ...@@ -122,7 +122,6 @@ class SupplierShareApplyService
$departmentService = new DepartmentService(); $departmentService = new DepartmentService();
$topDepartment = $departmentService->getUpperDepartmentByUserIdForShareApply($userId); $topDepartment = $departmentService->getUpperDepartmentByUserIdForShareApply($userId);
$departmentId = $topDepartment['department_id']; $departmentId = $topDepartment['department_id'];
$applyModel = new SupplierShareApplyModel(); $applyModel = new SupplierShareApplyModel();
$query = $applyModel::with([ $query = $applyModel::with([
'supplier' => function ($q) { 'supplier' => function ($q) {
...@@ -139,14 +138,6 @@ class SupplierShareApplyService ...@@ -139,14 +138,6 @@ class SupplierShareApplyService
$q->where('apply_department_id', $departmentId)->where('review_uid', 0)->where('audit_uid', '!=', 0) $q->where('apply_department_id', $departmentId)->where('review_uid', 0)->where('audit_uid', '!=', 0)
->where('status', SupplierShareApplyModel::STATUS_NEED_REVIEW); ->where('status', SupplierShareApplyModel::STATUS_NEED_REVIEW);
})->orderBy('id', 'desc'); })->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); $limit = request()->get('limit', 20);
$list = $query->paginate($limit)->toArray(); $list = $query->paginate($limit)->toArray();
$transformer = new SupplierShareApplyTransformer(); $transformer = new SupplierShareApplyTransformer();
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
let url = '/api/supplier_share_apply/AuditSupplierShareApply'; let url = '/api/supplier_share_apply/AuditSupplierShareApply';
let result = ajax(url, { let result = ajax(url, {
status: status, status: status,
id: id, id: data.id,
}); });
if (result.err_code === 0) { if (result.err_code === 0) {
layer.msg('审核成功', {icon: 6}) 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