Просмотр исходного кода

[智价云] 数据清洗增加店铺功能配置

tangyuanwang 1 день назад
Родитель
Сommit
1575a45d85

+ 368 - 0
app/Http/Controllers/Manager/WashConfig/ViolationCompany.php

@@ -0,0 +1,368 @@
+<?php
+
+namespace App\Http\Controllers\Manager\WashConfig;
+
+use App\Http\Controllers\Controller;
+use App\Http\Requests\Manager\WashConfig\ViolationCompany as Request;
+use App\Models\Manager\WashConfig\ViolationCompany as ViolationCompanyModel;
+use App\Models\Manager\WashConfig\LowPriceGoodsCompany as LowPriceGoodsCompanyModel;
+use App\Models\Manager\WashConfig\ViolationProductCompany as ViolationProductCompanyModel;
+use App\Models\Manager\Personnel\Employee as EmployeeModel;
+use App\Models\Manager\WashConfig\CompanyCategory as CompanyCategoryModel;
+use App\Models\Manager\Citys as CitysModel;
+
+/**
+ * 数据清洗-违规店铺(公司)配置
+ * @author    唐远望
+ * @version   1.0
+ * @date      2025-12-03
+ */
+class ViolationCompany extends Controller
+{
+    /**
+     * 列表
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     * 
+     */
+    public function list(Request $request, ViolationCompanyModel $ViolationCompanyModel, EmployeeModel $EmployeeModel, CompanyCategoryModel $CompanyCategoryModel, CitysModel $CitysModel)
+    {
+        $request->scene('list')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 查询条件
+        $map  = [];
+        $limit = request('limit', config('page_num', 10));
+        $status    = request('status', '');
+        $start_time = request('start_time', '');
+        $end_time = request('end_time', '');
+        $company_name = request('company_name', '');
+        $social_credit_code = request('social_credit_code', '');
+        $company_type = request('company_type', '');
+        $category_id = request('category_id', '');
+        // 时间条件
+        if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
+        if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
+        // 其他条件
+        if (is_numeric($status)) $map[] = ['status', '=', $status];
+        if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
+        if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
+        if ($company_type) $map[] = ['company_type', '=', $company_type];
+        if ($category_id) $map[] = ['category_id', '=', $category_id];
+        // 查询数据
+        if ($is_admin != 1 && $company_id != 0){
+             $map[] = ['company_id', '=', $company_id];
+        }else{
+            $map[] = ['company_id', '=', $admin_company_id];
+        }
+        $result = $ViolationCompanyModel->query()
+            ->where($map)
+            ->orderByDesc('id')
+            ->paginate($limit)->toarray();
+        // 分配数据
+        if (!$result)  return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => []]);
+        if (isset($result['data']) && count($result['data']) > 0) {
+            foreach ($result['data'] as $key => $value) {
+                $employee_ids = $value['employee_ids'] != '' ? explode(',', $value['employee_ids']) : '';
+                $result['data'][$key]['platform'] = isset($value['platform']) ? explode(',', $value['platform']) : '';
+                $result['data'][$key]['employee_ids'] = $employee_ids;
+                $result['data'][$key]['employee_name'] = $employee_ids ? $EmployeeModel->whereIn('id', $employee_ids)->pluck('name')->toArray() : '';
+                $result['data'][$key]['category_name'] = $value['category_id'] ? $CompanyCategoryModel->where('id', $value['category_id'])->value('name') : '';
+                $province_name = $CitysModel->get_city_name($value['province_id']);
+                $result['data'][$key]['province_name'] = $province_name ?? '';
+                $city_name = $CitysModel->get_city_name($value['city_id']);
+                $result['data'][$key]['city_name'] = $city_name ?? '';
+            }
+        }
+        // 加载模板
+        return        json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $result]);
+    }
+
+    /**
+     * 全部
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-08
+     * 
+     */
+    public function all(Request $request, ViolationCompanyModel $ViolationCompanyModel)
+    {
+        $request->scene('all')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 查询条件
+        $map  = [];
+        $status    = request('status', '0');
+        $start_time = request('start_time', '');
+        $end_time = request('end_time', '');
+        $company_name = request('company_name', '');
+        $social_credit_code = request('social_credit_code', '');
+        $category_id = request('category_id', '');
+        // 时间条件
+        if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
+        if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
+        // 其他条件
+        if (is_numeric($status)) $map[] = ['status', '=', $status];
+        if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
+        if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
+        if ($category_id) $map[] = ['category_id', '=', $category_id];
+        // 查询数据
+        if ($is_admin != 1 && $company_id != 0){
+             $map[] = ['company_id', '=', $company_id];
+        }else{
+            $map[] = ['company_id', '=', $admin_company_id];
+        }
+        $result = $ViolationCompanyModel->query()
+            ->where($map)
+            ->orderByDesc('id')
+            ->get();
+        // 分配数据
+        if (!$result)  return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => []]);
+        // 加载模板
+        return        json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $result]);
+    }
+
+    /**
+     * 详情
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     */
+    public function detail(Request $request, ViolationCompanyModel $ViolationCompanyModel, EmployeeModel $EmployeeModel, CompanyCategoryModel $CompanyCategoryModel, CitysModel $CitysModel)
+    {
+        $request->scene('detail')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 接收参数
+        $id = request('id', 0);
+        $map = ['id' => $id];
+        if ($is_admin != 1 && $company_id != 0) {
+            $map['company_id'] = $company_id;
+        } else {
+            $map['company_id'] = $admin_company_id;
+        }
+        $data = $ViolationCompanyModel->where($map)->first();
+        if (!$data)     return json_send(['code' => 'error', 'msg' => '记录不存在']);
+        $employee_ids = $data->employee_ids != '' ? explode(',', $data->employee_ids) : '';
+        $data->employee_ids = $employee_ids;
+        $data->employee_name = $employee_ids ? $EmployeeModel->whereIn('id', $employee_ids)->pluck('name')->toArray() : '';
+        $data->category_name = $data->category_id ? $CompanyCategoryModel->where('id', $data->category_id)->value('name') : '';
+        $province_name = $CitysModel->get_city_name($data->province_id);
+        $data->province_name = $province_name ?? '';
+        $city_name = $CitysModel->get_city_name($data->city_id);
+        $data->city_name = $city_name ?? '';
+        $data->platform = isset($data->platform) ? explode(',', $data->platform) : '';
+        // 加载模板
+        return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $data]);
+    }
+
+    /**
+     * 添加
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     * 
+     */
+    public function add(Request $request, ViolationCompanyModel $ViolationCompanyModel)
+    {
+        $request->scene('add')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 接收数据
+        $all_data = request()->all();
+        $store_scope = request('store_scope', '');
+        $all_data['store_scope'] = $store_scope; //店铺范围
+        $employee_ids = request('employee_ids', '');
+        $all_data['employee_ids'] = $employee_ids;
+        $category_id = request('category_id', '0');
+        $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
+        $area_info = request('area_info', '');
+        $all_data['area_info'] = $area_info;
+        $platform = request('platform', '0');
+        $all_data['platform'] = $platform;
+        //查询是否存在
+        $map = ['social_credit_code' => $all_data['social_credit_code']];
+        if ($is_admin != 1 && $company_id != 0) {
+            $map['company_id'] = $company_id;
+            $all_data['company_id'] = $company_id;
+        } else {
+            $map['company_id'] = $admin_company_id;
+            $all_data['company_id'] = $admin_company_id;
+        }
+        $data = $ViolationCompanyModel->where($map)->first();
+        if ($data)     return json_send(['code' => 'error', 'msg' => '营业执照记录已存在']);
+        // 写入数据表
+        $result     =  $ViolationCompanyModel->addViolationCompany($all_data);
+        // 如果操作失败
+        if (!$result)     return json_send(['code' => 'error', 'msg' => '新增失败']);
+        // 记录行为
+        $admin_id   = request('access_token.uid', 0); //用户ID
+        $table_name = $ViolationCompanyModel->getTable();
+        $notes_type = 1; //操作类型,1添加,2修改,3=删除
+        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], $all_data, '新增了公司' . $all_data['company_name'] . '信息');
+        // 告知结果
+        return json_send(['code' => 'success', 'msg' => '新增成功']);
+    }
+
+    /**
+     * 修改
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     * 
+     */
+    public function edit(Request $request, ViolationCompanyModel $ViolationCompanyModel)
+    {
+        $request->scene('edit')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 接收参数
+        $id         = request('id', 0);
+        // 接收数据
+        $all_data = request()->all();
+        $store_scope = request('store_scope', '');
+        $all_data['store_scope'] = $store_scope;
+        $employee_ids = request('employee_ids', '');
+        $all_data['employee_ids'] = $employee_ids;
+        $category_id = request('category_id', '0');
+        $all_data['category_id'] = $category_id;
+        $specify_responsible_person = request('specify_responsible_person', '0');
+        $all_data['specify_responsible_person'] = $specify_responsible_person;
+        $area_info = request('area_info', '');
+        $all_data['area_info'] = $area_info;
+        $platform = request('platform', '0');
+        $all_data['platform'] = $platform;
+        //查询是否存在
+        $map = ['social_credit_code' => $all_data['social_credit_code']];
+        if ($is_admin != 1 && $company_id != 0) {
+            $map['company_id'] = $company_id;
+        } else {
+            $map['company_id'] = $admin_company_id;
+        }
+        $data = $ViolationCompanyModel->where($map)->where('id', '!=', $id)->first();
+        if ($data)     return json_send(['code' => 'error', 'msg' => '记录已存在']);
+        // 更新数据表
+        $where = ['id' => $id];
+        if ($is_admin != 1 && $company_id != 0) {
+            $where['company_id'] = $company_id;
+        } else {
+            $where['company_id'] = $admin_company_id;
+        }
+        $ViolationCompany = $ViolationCompanyModel->where($where)->first();
+        if (!$ViolationCompany) return json_send(['code' => 'error', 'msg' => '记录不存在']);
+        $oldData = $ViolationCompany->toarray();
+        $all_data['company_id'] =  $map['company_id'];
+        $result =  $ViolationCompanyModel->updateViolationCompany($ViolationCompany, $all_data);
+        // 如果操作失败
+        if (!$result)     return json_send(['code' => 'error', 'msg' => '修改失败']);
+        // 记录行为
+        $admin_id   = request('access_token.uid', 0); //用户ID
+        $table_name = $ViolationCompanyModel->getTable();
+        $notes_type = 2; //操作类型,1添加,2修改,3=删除
+        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $oldData, $all_data, '修改了公司' . $oldData['company_name'] . '信息');
+        // 告知结果
+        return json_send(['code' => 'success', 'msg' => '修改成功']);
+    }
+
+    /**
+     * 修改状态
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     * 
+     */
+    public function set_status(Request $request, ViolationCompanyModel $ViolationCompanyModel)
+    {
+        // 验证参数
+        $request->scene('set_status')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');//是否管理员操作 0=是1=否
+        // 接收数据
+        $id                = request('id', 0);
+        $status            = request('status', 0);
+        // 查询用户
+        $where = ['id' => $id];
+        if ($is_admin != 1 && $company_id != 0) {
+            $where['company_id'] = $company_id;
+        } else {
+            $where['company_id'] = $admin_company_id;
+        }
+        $ViolationCompany = $ViolationCompanyModel->where($where)->first();
+        if (!$ViolationCompany) return json_send(['code' => 'error', 'msg' => '记录不存在']);
+        // 执行修改
+        $result            =  $ViolationCompanyModel->changeStatus($ViolationCompany, $status);
+        // 提示新增失败
+        if (!$result)    return json_send(['code' => 'error', 'msg' => '设置失败']);
+        // 记录行为
+        $admin_id   = request('access_token.uid', 0); //用户ID
+        $table_name = $ViolationCompanyModel->getTable();
+        $notes_type = 2; //操作类型,1添加,2修改,3=删除
+        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], ['status' => $status], '修改了公司' . $ViolationCompany->company_name . '状态');
+        // 告知结果
+        return             json_send(['code' => 'success', 'msg' => '设置成功']);
+    }
+
+
+    /**
+     * 删除
+     * @author    唐远望
+     * @version   1.0
+     * @date      2025-12-03
+     * 
+     */
+    public function delete(Request $request, ViolationCompanyModel $ViolationCompanyModel, LowPriceGoodsCompanyModel $LowPriceGoodsCompanyModel, ViolationProductCompanyModel $ViolationProductCompanyModel)
+    {
+        // 验证参数
+        $request->scene('delete')->validate();
+        $admin_company_id = request('admin_company_id', '0');
+        $company_id = request('access_token.company_id', '0');
+        $is_admin = request('access_token.is_admin', '0');
+        // 接收数据
+        $id = request('id', 0);
+        $company_where = ['company_id' => $id];
+        if ($is_admin != 1 && $company_id != 0) {
+            $company_where['company_id'] = $company_id;
+        } else {
+            $company_where['company_id'] = $admin_company_id;
+        }
+        //查询是否已经被使用
+        $use_low_price_goods_company_log = $LowPriceGoodsCompanyModel->where($company_where)->first();
+        if ($use_low_price_goods_company_log) {
+            return json_send(['code' => 'error', 'msg' => '该记录已被使用在低价商品配置中,不能删除']);
+        }
+        $use_violation_product_company_log = $ViolationProductCompanyModel->where($company_where)->first();
+        if ($use_violation_product_company_log) {
+            return json_send(['code' => 'error', 'msg' => '该记录已被使用在违规商品配置中,不能删除']);
+        }
+        // 查询用户
+        $where = ['id' => $id];
+        if ($is_admin != 1 && $company_id != 0) {
+            $where['company_id'] = $company_id;
+        } else {
+            $where['company_id'] = $admin_company_id;
+        }
+        // 执行删除
+        $ViolationCompany = $ViolationCompanyModel->where($where)->first();
+        if (!$ViolationCompany) return json_send(['code' => 'error', 'msg' => '记录不存在']);
+        $result = $ViolationCompany->delete();
+        // 提示删除失败
+        if (!$result)    return json_send(['code' => 'error', 'msg' => '删除失败']);
+        // 记录行为
+        $admin_id   = request('access_token.uid', 0); //用户ID
+        $is_admin   = request('access_token.is_admin'); //是否管理员操作 0=是1=否
+        $table_name = $ViolationCompanyModel->getTable();
+        $notes_type = 3; //操作类型,1添加,2修改,3=删除
+        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $ViolationCompany->toarray(), [], '删除了公司' . $ViolationCompany->company_name . '信息');
+        // 告知结果
+        return             json_send(['code' => 'success', 'msg' => '删除成功']);
+    }
+}

+ 17 - 43
app/Http/Controllers/Manager/WashConfig/ViolationStore.php

@@ -5,14 +5,12 @@ namespace App\Http\Controllers\Manager\WashConfig;
 use App\Http\Controllers\Controller;
 use App\Http\Requests\Manager\WashConfig\ViolationStore as Request;
 use App\Models\Manager\WashConfig\ViolationStore as ViolationStoreModel;
-use App\Models\Manager\WashConfig\LowPriceGoodsCompany as LowPriceGoodsCompanyModel;
-use App\Models\Manager\WashConfig\ViolationProductCompany as ViolationProductCompanyModel;
 use App\Models\Manager\Personnel\Employee as EmployeeModel;
 use App\Models\Manager\WashConfig\CompanyCategory as CompanyCategoryModel;
 use App\Models\Manager\Citys as CitysModel;
 
 /**
- * 数据清洗-违规店铺(公司)配置
+ * 数据清洗-违规店铺配置
  * @author    唐远望
  * @version   1.0
  * @date      2025-12-03
@@ -26,7 +24,7 @@ class ViolationStore extends Controller
      * @date      2025-12-03
      * 
      */
-    public function list(Request $request, ViolationStoreModel $ViolationStoreModel, EmployeeModel $EmployeeModel, CompanyCategoryModel $CompanyCategoryModel, CitysModel $CitysModel)
+    public function list(Request $request, ViolationStoreModel $ViolationStoreModel, EmployeeModel $EmployeeModel)
     {
         $request->scene('list')->validate();
         $admin_company_id = request('admin_company_id', '0');
@@ -39,20 +37,14 @@ class ViolationStore extends Controller
         $start_time = request('start_time', '');
         $end_time = request('end_time', '');
         $store_name = request('store_name', '');
-        $company_name = request('company_name', '');
-        $social_credit_code = request('social_credit_code', '');
-        $store_type = request('store_type', '');
-        $category_id = request('category_id', '');
+        $store_type = request('store_type', '');//店铺类型:1=黑名单2=白名单
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         // 其他条件
         if (is_numeric($status)) $map[] = ['status', '=', $status];
-        if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
-        if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
         if ($store_type) $map[] = ['store_type', '=', $store_type];
-        if ($category_id) $map[] = ['category_id', '=', $category_id];
         // 查询数据
         if ($is_admin != 1 && $company_id != 0){
              $map[] = ['company_id', '=', $company_id];
@@ -71,10 +63,6 @@ class ViolationStore extends Controller
                 $result['data'][$key]['platform'] = isset($value['platform']) ? explode(',', $value['platform']) : '';
                 $result['data'][$key]['employee_ids'] = $employee_ids;
                 $result['data'][$key]['employee_name'] = $employee_ids ? $EmployeeModel->whereIn('id', $employee_ids)->pluck('name')->toArray() : '';
-                $result['data'][$key]['category_name'] = $value['category_id'] ? $CompanyCategoryModel->where('id', $value['category_id'])->value('name') : '';
-                $province_name = $CitysModel->get_city_name($value['province_id']);
-                $result['data'][$key]['province_name'] = $province_name ?? '';
-                $city_name = $CitysModel->get_city_name($value['city_id']);
                 $result['data'][$key]['city_name'] = $city_name ?? '';
             }
         }
@@ -101,18 +89,14 @@ class ViolationStore extends Controller
         $start_time = request('start_time', '');
         $end_time = request('end_time', '');
         $store_name = request('store_name', '');
-        $company_name = request('company_name', '');
-        $social_credit_code = request('social_credit_code', '');
-        $category_id = request('category_id', '');
+        $store_type = request('store_type', '');//店铺类型:1=黑名单2=白名单
         // 时间条件
         if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
         if ($end_time) $map[]   = ['insert_time', '<=', strtotime($end_time)];
         // 其他条件
         if (is_numeric($status)) $map[] = ['status', '=', $status];
-        if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
-        if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
         if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
-        if ($category_id) $map[] = ['category_id', '=', $category_id];
+        if ($store_type) $map[] = ['store_type', '=', $store_type];
         // 查询数据
         if ($is_admin != 1 && $company_id != 0){
              $map[] = ['company_id', '=', $company_id];
@@ -135,7 +119,7 @@ class ViolationStore extends Controller
      * @version   1.0
      * @date      2025-12-03
      */
-    public function detail(Request $request, ViolationStoreModel $ViolationStoreModel, EmployeeModel $EmployeeModel, CompanyCategoryModel $CompanyCategoryModel, CitysModel $CitysModel)
+    public function detail(Request $request, ViolationStoreModel $ViolationStoreModel, EmployeeModel $EmployeeModel)
     {
         $request->scene('detail')->validate();
         $admin_company_id = request('admin_company_id', '0');
@@ -154,11 +138,6 @@ class ViolationStore extends Controller
         $employee_ids = $data->employee_ids != '' ? explode(',', $data->employee_ids) : '';
         $data->employee_ids = $employee_ids;
         $data->employee_name = $employee_ids ? $EmployeeModel->whereIn('id', $employee_ids)->pluck('name')->toArray() : '';
-        $data->category_name = $data->category_id ? $CompanyCategoryModel->where('id', $data->category_id)->value('name') : '';
-        $province_name = $CitysModel->get_city_name($data->province_id);
-        $data->province_name = $province_name ?? '';
-        $city_name = $CitysModel->get_city_name($data->city_id);
-        $data->city_name = $city_name ?? '';
         $data->platform = isset($data->platform) ? explode(',', $data->platform) : '';
         // 加载模板
         return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $data]);
@@ -180,6 +159,8 @@ class ViolationStore extends Controller
         // 接收数据
         $all_data = request()->all();
         $store_scope = request('store_scope', '');
+        $store_type = request('store_type', '1');//店铺类型:1=黑名单2=白名单
+        $all_data['store_type'] = $store_type; //店铺类型
         $all_data['store_scope'] = $store_scope; //店铺范围
         $employee_ids = request('employee_ids', '');
         $all_data['employee_ids'] = $employee_ids;
@@ -192,7 +173,7 @@ class ViolationStore extends Controller
         $platform = request('platform', '0');
         $all_data['platform'] = $platform;
         //查询是否存在
-        $map = ['social_credit_code' => $all_data['social_credit_code']];
+        $map = ['store_name' => $all_data['store_name']];
         if ($is_admin != 1 && $company_id != 0) {
             $map['company_id'] = $company_id;
             $all_data['company_id'] = $company_id;
@@ -210,7 +191,7 @@ class ViolationStore extends Controller
         $admin_id   = request('access_token.uid', 0); //用户ID
         $table_name = $ViolationStoreModel->getTable();
         $notes_type = 1; //操作类型,1添加,2修改,3=删除
-        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], $all_data, '新增了公司' . $all_data['company_name'] . '信息');
+        $this->addAdminHistory('清洗配置-店铺管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], $all_data, '新增了店铺' . $all_data['store_name'] . '信息');
         // 告知结果
         return json_send(['code' => 'success', 'msg' => '新增成功']);
     }
@@ -233,6 +214,8 @@ class ViolationStore extends Controller
         // 接收数据
         $all_data = request()->all();
         $store_scope = request('store_scope', '');
+        $store_type = request('store_type', '1');//店铺类型:1=黑名单2=白名单
+        $all_data['store_type'] = $store_type; //店铺类型
         $all_data['store_scope'] = $store_scope;
         $employee_ids = request('employee_ids', '');
         $all_data['employee_ids'] = $employee_ids;
@@ -245,7 +228,7 @@ class ViolationStore extends Controller
         $platform = request('platform', '0');
         $all_data['platform'] = $platform;
         //查询是否存在
-        $map = ['social_credit_code' => $all_data['social_credit_code']];
+        $map = ['store_name' => $all_data['store_name']];
         if ($is_admin != 1 && $company_id != 0) {
             $map['company_id'] = $company_id;
         } else {
@@ -271,7 +254,7 @@ class ViolationStore extends Controller
         $admin_id   = request('access_token.uid', 0); //用户ID
         $table_name = $ViolationStoreModel->getTable();
         $notes_type = 2; //操作类型,1添加,2修改,3=删除
-        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $oldData, $all_data, '修改了公司' . $oldData['company_name'] . '信息');
+        $this->addAdminHistory('清洗配置-店铺管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $oldData, $all_data, '修改了店铺' . $oldData['store_name'] . '信息');
         // 告知结果
         return json_send(['code' => 'success', 'msg' => '修改成功']);
     }
@@ -310,7 +293,7 @@ class ViolationStore extends Controller
         $admin_id   = request('access_token.uid', 0); //用户ID
         $table_name = $ViolationStoreModel->getTable();
         $notes_type = 2; //操作类型,1添加,2修改,3=删除
-        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], ['status' => $status], '修改了公司' . $ViolationStore->company_name . '状态');
+        $this->addAdminHistory('清洗配置-店铺管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, [], ['status' => $status], '修改了店铺' . $ViolationStore->store_name . '状态');
         // 告知结果
         return             json_send(['code' => 'success', 'msg' => '设置成功']);
     }
@@ -323,7 +306,7 @@ class ViolationStore extends Controller
      * @date      2025-12-03
      * 
      */
-    public function delete(Request $request, ViolationStoreModel $ViolationStoreModel, LowPriceGoodsCompanyModel $LowPriceGoodsCompanyModel, ViolationProductCompanyModel $ViolationProductCompanyModel)
+    public function delete(Request $request, ViolationStoreModel $ViolationStoreModel)
     {
         // 验证参数
         $request->scene('delete')->validate();
@@ -338,15 +321,6 @@ class ViolationStore extends Controller
         } else {
             $company_where['company_id'] = $admin_company_id;
         }
-        //查询是否已经被使用
-        $use_low_price_goods_company_log = $LowPriceGoodsCompanyModel->where($company_where)->first();
-        if ($use_low_price_goods_company_log) {
-            return json_send(['code' => 'error', 'msg' => '该记录已被使用在低价商品配置中,不能删除']);
-        }
-        $use_violation_product_company_log = $ViolationProductCompanyModel->where($company_where)->first();
-        if ($use_violation_product_company_log) {
-            return json_send(['code' => 'error', 'msg' => '该记录已被使用在违规商品配置中,不能删除']);
-        }
         // 查询用户
         $where = ['id' => $id];
         if ($is_admin != 1 && $company_id != 0) {
@@ -365,7 +339,7 @@ class ViolationStore extends Controller
         $is_admin   = request('access_token.is_admin'); //是否管理员操作 0=是1=否
         $table_name = $ViolationStoreModel->getTable();
         $notes_type = 3; //操作类型,1添加,2修改,3=删除
-        $this->addAdminHistory('清洗配置-公司管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $ViolationStore->toarray(), [], '删除了公司' . $ViolationStore->company_name . '信息');
+        $this->addAdminHistory('清洗配置-店铺管理',$company_id, $admin_id, $is_admin, $table_name, $notes_type, $ViolationStore->toarray(), [], '删除了店铺' . $ViolationStore->store_name . '信息');
         // 告知结果
         return             json_send(['code' => 'success', 'msg' => '删除成功']);
     }

+ 90 - 0
app/Http/Requests/Manager/WashConfig/ViolationCompany.php

@@ -0,0 +1,90 @@
+<?php
+
+namespace App\Http\Requests\Manager\WashConfig;
+
+use App\Http\Requests\BaseRequest;
+
+/**
+ * 数据清洗配置-违规公司
+ * @author 唐远望
+ * @version 1.0
+ * @date 2025-12-03
+ * 
+ */
+class ViolationCompany extends BaseRequest
+{
+    /**
+     * 获取应用于请求的规则
+     *
+     * @return array
+     */
+    public function rules()
+    {
+        // 返回结果
+        return      [
+            'name'                 => 'required',
+            'id'                => 'required|integer|gt:0',
+            'status'            => 'required|integer|in:0,1',
+            'page'              => 'integer|min:1',
+            'limit'             => 'integer|min:1',
+            'image_url'         => 'required',
+            'link_url'          => 'required',
+            'sort'              => 'required|integer|min:0',
+            'store_name'        => 'required',
+            'company_name'      => 'required',
+            'social_credit_code'    => 'required',
+            'store_type'        => 'required',
+            'province_id'       => 'required|integer|gt:0',
+            'city_id'           => 'required|integer|gt:0',
+        ];
+    }
+
+
+    // 场景列表
+    protected   $scenes         = [
+        'detail'             => ['id'],
+        'list'               => ['page', 'limit'],
+        'add'                      => ['company_name', 'social_credit_code', 'province_id', 'city_id', 'company_type'],
+        'edit'                  => ['id', 'company_name', 'social_credit_code', 'province_id', 'city_id', 'company_type'],
+        'set_status'              => ['id', 'status'],
+        'delete'                  => ['id'],
+        'all'                    => [''],
+    ];
+
+    /**
+     * 获取已定义验证规则的错误消息
+     *
+     * @return array
+     */
+    public function messages()
+    {
+        return [
+            'name.required'     => '名称必填',
+            'id.required'       => 'ID未知',
+            'id.integer'        => 'ID格式错误',
+            'id.gt'               => 'ID格式错误',
+            'status.required'   => '状态未知',
+            'status.integer'    => '状态格式错误',
+            'status.in'         => '状态格式错误',
+            'page.integer'      => '页码格式错误',
+            'page.min'          => '页码格式错误',
+            'limit.integer'     => '每页数量格式错误',
+            'limit.min'         => '每页数量格式错误',
+            'image_url.required'    => '图片链接未知',
+            'link_url.required'     => '链接地址未知',
+            'sort.required'         => '排序未知',
+            'sort.integer'          => '排序格式错误',
+            'sort.min'              => '排序格式错误',
+            'store_name.required'    => '店铺名称未知',
+            'company_name.required'  => '公司名称未知',
+            'social_credit_code.required'  => '社会信用代码未知',
+            'store_type.required'    => '店铺类型未知',
+            'province_id.required'   => '省份ID未知',
+            'province_id.integer'    => '省份ID格式错误',
+            'province_id.gt'         => '省份ID格式错误',
+            'city_id.required'       => '城市ID未知',
+            'city_id.integer'        => '城市ID格式错误',
+            'city_id.gt'             => '城市ID格式错误',
+        ];
+    }
+}

+ 2 - 14
app/Http/Requests/Manager/WashConfig/ViolationStore.php

@@ -31,11 +31,7 @@ class ViolationStore extends BaseRequest
             'link_url'          => 'required',
             'sort'              => 'required|integer|min:0',
             'store_name'        => 'required',
-            'company_name'      => 'required',
-            'social_credit_code'    => 'required',
             'store_type'        => 'required',
-            'province_id'       => 'required|integer|gt:0',
-            'city_id'           => 'required|integer|gt:0',
         ];
     }
 
@@ -44,8 +40,8 @@ class ViolationStore extends BaseRequest
     protected   $scenes         = [
         'detail'             => ['id'],
         'list'               => ['page', 'limit'],
-        'add'                      => ['company_name', 'social_credit_code', 'province_id', 'city_id', 'store_type'],
-        'edit'                  => ['id', 'company_name', 'social_credit_code', 'province_id', 'city_id', 'store_type'],
+        'add'                      => ['store_name'],
+        'edit'                  => ['id', 'store_name'],
         'set_status'              => ['id', 'status'],
         'delete'                  => ['id'],
         'all'                    => [''],
@@ -76,15 +72,7 @@ class ViolationStore extends BaseRequest
             'sort.integer'          => '排序格式错误',
             'sort.min'              => '排序格式错误',
             'store_name.required'    => '店铺名称未知',
-            'company_name.required'  => '公司名称未知',
-            'social_credit_code.required'  => '社会信用代码未知',
             'store_type.required'    => '店铺类型未知',
-            'province_id.required'   => '省份ID未知',
-            'province_id.integer'    => '省份ID格式错误',
-            'province_id.gt'         => '省份ID格式错误',
-            'city_id.required'       => '城市ID未知',
-            'city_id.integer'        => '城市ID格式错误',
-            'city_id.gt'             => '城市ID格式错误',
         ];
     }
 }

+ 224 - 0
app/Models/Manager/WashConfig/ViolationCompany.php

@@ -0,0 +1,224 @@
+<?php
+
+namespace App\Models\Manager\WashConfig;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+use Illuminate\Support\Facades\DB;
+use App\Models\Manager\WashConfig\ViolationCompanyMember as ViolationCompanyMemberModel;
+
+
+/**
+ * 清洗配置-违规公司
+ * @author: 唐远望
+ * @version: 1.0
+ * @date: 2025-12-03
+ */
+class ViolationCompany extends Model
+{
+    use HasFactory;
+    // 与模型关联的表名
+    protected $table = 'washconfig_violation_company';
+    // 是否主动维护时间戳
+    public $timestamps = false;
+    // 定义时间戳字段名
+    // const CREATED_AT = 'insert_time';
+    // const UPDATED_AT = 'update_time';
+
+
+
+    /**
+     * 添加
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     */
+    public function addViolationCompany_content($data)
+    {
+        $insert_data = [
+            'company_id' => $data['company_id'],
+            'platform' => $data['platform'],
+            'category_id' => $data['category_id'],
+            'company_name' => $data['company_name'],
+            'social_credit_code'    => $data['social_credit_code'],
+            'company_type'    => $data['company_type'],
+            'employee_ids'  => $data['employee_ids'],
+            'specify_responsible_person'  => $data['specify_responsible_person'],
+            'province_id' => $data['province_id'],
+            'city_id' => $data['city_id'],
+            'area_info' => $data['area_info'],
+            'insert_time' => time(),
+        ];
+        $ViolationCompany_id = $this->insertGetId($insert_data);
+        return $ViolationCompany_id;
+    }
+
+
+    /**
+     * 写入数据
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     * @param $data
+     * @return bool
+     */
+    public function addViolationCompany($data)
+    {
+        DB::beginTransaction();
+        try {
+            $ViolationCompanyMemberModel = new ViolationCompanyMemberModel();
+            $insert_data = [
+                'company_id' => $data['company_id'],
+                'platform' => $data['platform'],
+                'category_id' => $data['category_id'],
+                'company_name' => $data['company_name'],
+                'social_credit_code'    => $data['social_credit_code'],
+                'company_type'    => $data['company_type'],
+                'employee_ids'  => $data['employee_ids'],
+                'specify_responsible_person'  => $data['specify_responsible_person'],
+                'province_id' => $data['province_id'],
+                'city_id' => $data['city_id'],
+                'area_info' => $data['area_info'],
+                'insert_time' => time(),
+            ];
+            $ViolationCompany_id = $this->insertGetId($insert_data);
+
+            if ($data['employee_ids'] != '') {
+                $insert_company_data = [];
+                $employee_ids = explode(',', $data['employee_ids']);
+                foreach ($employee_ids as $employee_id) {
+                    $insert_company_data[] = [
+                        'company_logid' => $ViolationCompany_id,
+                        'employee_id' => $employee_id,
+                    ];
+                }
+                $ViolationCompanyMemberModel->insert($insert_company_data);
+            }
+            DB::commit();
+            return true;
+            // 成功处理...
+        } catch (\Exception $e) {
+            DB::rollBack();
+            // 错误处理...
+            return false;
+        }
+    }
+
+
+    /**
+     * 编辑内容
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     * @param $data
+     * @return bool
+     */
+    public function editViolationCompany_content($where, $data)
+    {
+        $ViolationCompany = $this->where($where)->first();
+        if (!$ViolationCompany) {
+            return false;
+        }
+        
+        $ViolationCompany->company_id = $data['company_id'];
+        $ViolationCompany->platform = $data['platform'];
+        $ViolationCompany->category_id = $data['category_id'];
+        $ViolationCompany->company_name = $data['company_name'];
+        $ViolationCompany->social_credit_code = $data['social_credit_code'];
+        $ViolationCompany->company_type = $data['company_type'];
+        $ViolationCompany->employee_ids = $data['employee_ids'];
+        $ViolationCompany->specify_responsible_person = $data['specify_responsible_person'];
+        $ViolationCompany->province_id = $data['province_id'];
+        $ViolationCompany->city_id = $data['city_id'];
+        $ViolationCompany->area_info = $data['area_info'];
+        $ViolationCompany->update_time = time();
+        $ViolationCompany->save();
+        return true;
+    }
+
+
+
+    /**
+     * 更新数据
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     * @param $data
+     * @return bool
+     */
+    public function updateViolationCompany($ViolationCompany, $data)
+    {
+        DB::beginTransaction();
+        try {
+            $ViolationCompany->company_id = $data['company_id'];
+            $ViolationCompany->category_id = $data['category_id'];
+            $ViolationCompany->company_name = $data['company_name'];
+            $ViolationCompany->social_credit_code = $data['social_credit_code'];
+            $ViolationCompany->company_type = $data['company_type'];
+            $ViolationCompany->employee_ids = $data['employee_ids'];
+            $ViolationCompany->specify_responsible_person = $data['specify_responsible_person'];
+            $ViolationCompany->province_id = $data['province_id'];
+            $ViolationCompany->city_id = $data['city_id'];
+            $ViolationCompany->area_info = $data['area_info'];
+            $ViolationCompany->update_time = time();
+            $ViolationCompany->save();
+
+            $ViolationCompanyMemberModel = new ViolationCompanyMemberModel();
+            $ViolationCompanyMemberModel->where('company_logid', $ViolationCompany->id)->delete();
+            if ($data['employee_ids'] != '') {
+                $insert_company_data = [];
+                $employee_ids = explode(',', $data['employee_ids']);
+                foreach ($employee_ids as $employee_id) {
+                    $insert_company_data[] = [
+                        'company_logid' => $ViolationCompany->id,
+                        'employee_id' => $employee_id,
+                    ];
+                }
+                $ViolationCompanyMemberModel->insert($insert_company_data);
+            }
+            DB::commit();
+            return true;
+            // 成功处理...
+        } catch (\Exception $e) {
+            DB::rollBack();
+            // 错误处理...
+            return false;
+        }
+    }
+
+    /**
+     * 修改状态
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     * @param $id
+     * @param $status
+     * @return bool
+     */
+    public function changeStatus($ViolationCompany, $status)
+    {
+
+        $ViolationCompany->status = $status;
+        $ViolationCompany->update_time = time();
+        $ViolationCompany->save();
+        return true;
+    }
+
+    /**
+     * 删除数据
+     * @author 唐远望
+     * @version 1.0
+     * @date 2025-12-03
+     * @param $id
+     * @return bool
+     */
+    public function deleteViolationCompany($where)
+    {
+        $ViolationCompany = $this->where($where)->first();
+        if (!$ViolationCompany) {
+            return false;
+        }
+        $ViolationCompany->delete();
+        return true;
+    }
+}

+ 13 - 33
app/Models/Manager/WashConfig/ViolationStore.php

@@ -5,11 +5,11 @@ namespace App\Models\Manager\WashConfig;
 use Illuminate\Database\Eloquent\Factories\HasFactory;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Support\Facades\DB;
-use App\Models\Manager\WashConfig\ViolationCompanyMember as ViolationCompanyMemberModel;
+use App\Models\Manager\WashConfig\ViolationStoreMember as ViolationStoreMemberModel;
 
 
 /**
- * 清洗配置-违规店铺(公司)
+ * 清洗配置-违规店铺
  * @author: 唐远望
  * @version: 1.0
  * @date: 2025-12-03
@@ -38,15 +38,10 @@ class ViolationStore extends Model
         $insert_data = [
             'company_id' => $data['company_id'],
             'platform' => $data['platform'],
-            'category_id' => $data['category_id'],
-            'company_name' => $data['company_name'],
-            'social_credit_code'    => $data['social_credit_code'],
+            'store_name' => $data['store_name'],
             'store_type'    => $data['store_type'],
             'employee_ids'  => $data['employee_ids'],
             'specify_responsible_person'  => $data['specify_responsible_person'],
-            'province_id' => $data['province_id'],
-            'city_id' => $data['city_id'],
-            'area_info' => $data['area_info'],
             'insert_time' => time(),
         ];
         $ViolationStore_id = $this->insertGetId($insert_data);
@@ -66,19 +61,14 @@ class ViolationStore extends Model
     {
         DB::beginTransaction();
         try {
-            $ViolationCompanyMemberModel = new ViolationCompanyMemberModel();
+            $ViolationStoreMemberModel = new ViolationStoreMemberModel();
             $insert_data = [
                 'company_id' => $data['company_id'],
                 'platform' => $data['platform'],
-                'category_id' => $data['category_id'],
-                'company_name' => $data['company_name'],
-                'social_credit_code'    => $data['social_credit_code'],
+                'store_name' => $data['store_name'],
                 'store_type'    => $data['store_type'],
                 'employee_ids'  => $data['employee_ids'],
                 'specify_responsible_person'  => $data['specify_responsible_person'],
-                'province_id' => $data['province_id'],
-                'city_id' => $data['city_id'],
-                'area_info' => $data['area_info'],
                 'insert_time' => time(),
             ];
             $ViolationStore_id = $this->insertGetId($insert_data);
@@ -88,11 +78,11 @@ class ViolationStore extends Model
                 $employee_ids = explode(',', $data['employee_ids']);
                 foreach ($employee_ids as $employee_id) {
                     $insert_company_data[] = [
-                        'company_logid' => $ViolationStore_id,
+                        'store_logid' => $ViolationStore_id,
                         'employee_id' => $employee_id,
                     ];
                 }
-                $ViolationCompanyMemberModel->insert($insert_company_data);
+                $ViolationStoreMemberModel->insert($insert_company_data);
             }
             DB::commit();
             return true;
@@ -122,15 +112,10 @@ class ViolationStore extends Model
         
         $ViolationStore->company_id = $data['company_id'];
         $ViolationStore->platform = $data['platform'];
-        $ViolationStore->category_id = $data['category_id'];
-        $ViolationStore->company_name = $data['company_name'];
-        $ViolationStore->social_credit_code = $data['social_credit_code'];
+        $ViolationStore->store_name = $data['store_name'];
         $ViolationStore->store_type = $data['store_type'];
         $ViolationStore->employee_ids = $data['employee_ids'];
         $ViolationStore->specify_responsible_person = $data['specify_responsible_person'];
-        $ViolationStore->province_id = $data['province_id'];
-        $ViolationStore->city_id = $data['city_id'];
-        $ViolationStore->area_info = $data['area_info'];
         $ViolationStore->update_time = time();
         $ViolationStore->save();
         return true;
@@ -151,30 +136,25 @@ class ViolationStore extends Model
         DB::beginTransaction();
         try {
             $ViolationStore->company_id = $data['company_id'];
-            $ViolationStore->category_id = $data['category_id'];
-            $ViolationStore->company_name = $data['company_name'];
-            $ViolationStore->social_credit_code = $data['social_credit_code'];
+            $ViolationStore->store_name = $data['store_name'];
             $ViolationStore->store_type = $data['store_type'];
             $ViolationStore->employee_ids = $data['employee_ids'];
             $ViolationStore->specify_responsible_person = $data['specify_responsible_person'];
-            $ViolationStore->province_id = $data['province_id'];
-            $ViolationStore->city_id = $data['city_id'];
-            $ViolationStore->area_info = $data['area_info'];
             $ViolationStore->update_time = time();
             $ViolationStore->save();
 
-            $ViolationCompanyMemberModel = new ViolationCompanyMemberModel();
-            $ViolationCompanyMemberModel->where('company_logid', $ViolationStore->id)->delete();
+            $ViolationStoreMemberModel = new ViolationStoreMemberModel();
+            $ViolationStoreMemberModel->where('store_logid', $ViolationStore->id)->delete();
             if ($data['employee_ids'] != '') {
                 $insert_company_data = [];
                 $employee_ids = explode(',', $data['employee_ids']);
                 foreach ($employee_ids as $employee_id) {
                     $insert_company_data[] = [
-                        'company_logid' => $ViolationStore->id,
+                        'store_logid' => $ViolationStore->id,
                         'employee_id' => $employee_id,
                     ];
                 }
-                $ViolationCompanyMemberModel->insert($insert_company_data);
+                $ViolationStoreMemberModel->insert($insert_company_data);
             }
             DB::commit();
             return true;

+ 26 - 0
app/Models/Manager/WashConfig/ViolationStoreMember.php

@@ -0,0 +1,26 @@
+<?php
+
+namespace App\Models\Manager\WashConfig;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+
+
+/**
+ * 清洗配置-违规店铺人员跟进模型
+ * @author: 唐远望
+ * @version: 1.0
+ * @date: 2025-12-15
+ */
+class ViolationStoreMember extends Model
+{
+    use HasFactory;
+    // 与模型关联的表名
+    protected $table = 'washconfig_violation_store_member';
+    // 是否主动维护时间戳
+    public $timestamps = false;
+    // 定义时间戳字段名
+    // const CREATED_AT = 'insert_time';
+    // const UPDATED_AT = 'update_time';
+
+}

+ 22 - 7
routes/manager.php

@@ -137,19 +137,34 @@ Route::any('violation_goods/download_template', [App\Http\Controllers\Manager\Wa
 Route::any('violation_goods/import_data', [App\Http\Controllers\Manager\WashConfig\ViolationProduct::class, 'import_data']);
 
 
-// 违规店铺公司-列表
+// 违规公司-列表
+Route::any('violation_company/list', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'list']);
+// 违规公司-详情
+Route::any('violation_company/detail', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'detail']);
+// 违规公司-添加
+Route::any('violation_company/add', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'add']);
+// 违规公司-修改
+Route::any('violation_company/edit', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'edit']);
+// 违规公司-状态
+Route::any('violation_company/set_status', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'set_status']);
+// 违规公司-删除
+Route::any('violation_company/delete', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'delete']);
+// 违规公司-全部
+Route::any('violation_company/all', [App\Http\Controllers\Manager\WashConfig\ViolationCompany::class, 'all']);
+
+// 违规店铺-列表
 Route::any('violation_store/list', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'list']);
-// 违规店铺公司-详情
+// 违规店铺-详情
 Route::any('violation_store/detail', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'detail']);
-// 违规店铺公司-添加
+// 违规店铺-添加
 Route::any('violation_store/add', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'add']);
-// 违规店铺公司-修改
+// 违规店铺-修改
 Route::any('violation_store/edit', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'edit']);
-// 违规店铺公司-状态
+// 违规店铺-状态
 Route::any('violation_store/set_status', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'set_status']);
-// 违规店铺公司-删除
+// 违规店铺-删除
 Route::any('violation_store/delete', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'delete']);
-// 违规店铺公司-全部
+// 违规店铺-全部
 Route::any('violation_store/all', [App\Http\Controllers\Manager\WashConfig\ViolationStore::class, 'all']);
 
 //平台管理-列表