From 626f9c4d7beb3aeda62231a93565ea05725357dd Mon Sep 17 00:00:00 2001 From: yanzai Date: Mon, 24 Nov 2025 23:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=B7=E6=BA=90=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=EF=BC=8C=E6=98=8E=E7=BB=86=E5=8B=BE=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/API/Admin/YeWu/PlanController.php | 11 +++++++++-- admin/src/views/PlanMngr/Plan.vue | 7 +++++-- admin/src/views/PlanMngr/PlanModel.vue | 5 ++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanController.php b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanController.php index e033b6f..a1d4e0f 100644 --- a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanController.php +++ b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanController.php @@ -168,6 +168,9 @@ class PlanController extends Controller if (!isset($searchInfo['date'])) { $searchInfo['date'] = date('Y-m-d'); } + if (isset($searchInfo['plan_type']) and $searchInfo['plan_type']===0) { + $list = $list->where(['a.type' => 0]); + } $list = $list->where(['a.date' => $searchInfo['date']]); $list = $list->orderBy('a.time', 'asc')->get(); $plan_model=DB::table('plan_model_time') @@ -181,7 +184,7 @@ class PlanController extends Controller if ($v1->model_id == $v->model_id and $v1->time == $v->time) { $list[$k]->plan_type_name = $v1->plan_type_name; $list[$k]->plan_type_id = $v1->plan_type_id; - if (isset($searchInfo['plan_type']) and !empty($searchInfo['plan_type']) and $v1->plan_type_id==$searchInfo['plan_type']) { + if (isset($searchInfo['plan_type']) and !empty($searchInfo['plan_type']) and $v1->plan_type_id==$searchInfo['plan_type'] and $v->type<>0) { $list_l[]=$list[$k]; } break; @@ -368,9 +371,13 @@ class PlanController extends Controller $list[$k]->plan_type_name = ''; foreach ($plan_model as $k1 => $v1) { - if ($v1->model_id == $v->model_id and $v1->time == $v->time) { + if ($v1->model_id == $v->model_id and $v1->time == $v->time ) { $list[$k]->plan_type_name = $v1->plan_type_name; $list[$k]->plan_type_id = $v1->plan_type_id; + if ($v->type==0) { + $list[$k]->plan_type_name = '预留'; + $list[$k]->plan_type_id = 0; + } break; } } diff --git a/admin/src/views/PlanMngr/Plan.vue b/admin/src/views/PlanMngr/Plan.vue index 7a209ff..0e656a4 100644 --- a/admin/src/views/PlanMngr/Plan.vue +++ b/admin/src/views/PlanMngr/Plan.vue @@ -25,6 +25,8 @@ +
已经使用:{{used_count}} 剩余:{{unused_count}}
统计全部
@@ -143,10 +145,10 @@
- 号源间隔: + 号源间隔:
- 号源数量: 需要勾选几个 + 号源数量: 需要勾选几个