Commit 159fddde by mushishixian

适配部门修改

parent 485ef207
......@@ -84,8 +84,8 @@ class DepartmentService
return $departmentModel->where('department_id', $departmentId)->first()->toArray();
} else {
$department = $departmentModel->where('department_id', $departmentId)->first();
//如果当前的部门id已经是联营采购部门Id
if ($departmentId == config('field.LiangYingDepartmentId')) {
//如果当前的部门id已经是联营采购部门Id(二级,目前有联营一部和联营二部)
if (in_array($departmentId, config('field.LiangYingDepartmentIds'))) {
return $department->toArray();
} else {
if (!empty($department)) {
......
......@@ -88,5 +88,6 @@ return [
],
'ZiYingDepartmentId' => 51,
'LiangYingDepartmentId' => 47,
//60是本地的数据
'LiangYingDepartmentIds' => [47, 60, 72]
];
\ No newline at end of file
......@@ -4,7 +4,7 @@
}
</style>
<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">
<b>渠道开发员设置</b>
</blockquote>
......@@ -18,7 +18,7 @@
</div>
</div>
<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
lay-filter="auditSupplier">确认
</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