Commit 159fddde by mushishixian

适配部门修改

parent 485ef207
...@@ -84,8 +84,8 @@ class DepartmentService ...@@ -84,8 +84,8 @@ class DepartmentService
return $departmentModel->where('department_id', $departmentId)->first()->toArray(); return $departmentModel->where('department_id', $departmentId)->first()->toArray();
} else { } else {
$department = $departmentModel->where('department_id', $departmentId)->first(); $department = $departmentModel->where('department_id', $departmentId)->first();
//如果当前的部门id已经是联营采购部门Id //如果当前的部门id已经是联营采购部门Id(二级,目前有联营一部和联营二部)
if ($departmentId == config('field.LiangYingDepartmentId')) { if (in_array($departmentId, config('field.LiangYingDepartmentIds'))) {
return $department->toArray(); return $department->toArray();
} else { } else {
if (!empty($department)) { if (!empty($department)) {
......
...@@ -88,5 +88,6 @@ return [ ...@@ -88,5 +88,6 @@ return [
], ],
'ZiYingDepartmentId' => 51, 'ZiYingDepartmentId' => 51,
'LiangYingDepartmentId' => 47, //60是本地的数据
'LiangYingDepartmentIds' => [47, 60, 72]
]; ];
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
} }
</style> </style>
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-header" style="height: 150px"> <div class="layui-card-header" style="height: 170px">
<blockquote class="layui-elem-quote layui-text"> <blockquote class="layui-elem-quote layui-text">
<b>渠道开发员设置</b> <b>渠道开发员设置</b>
</blockquote> </blockquote>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<div align="center" style="margin-top: 20px;text-align: right"> <div align="center" style="margin-top: 10px;text-align: right">
<button type="button" class="layui-btn layui-btn-sm layui-btn-info submit-loading" lay-submit <button type="button" class="layui-btn layui-btn-sm layui-btn-info submit-loading" lay-submit
lay-filter="auditSupplier">确认 lay-filter="auditSupplier">确认
</button> </button>
......
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