From 39bee274915eeae34cd736648c60659f41f7336a Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Thu, 27 Mar 2025 20:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/orders/Dispatch2.php | 3 +- .../admin/view/orders/auditorder/edit.html | 4 +-- .../admin/view/orders/dispatch2/edit.html | 29 ++++++++++++------- application/common/Logic/OrderLogic.php | 2 +- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/application/admin/controller/orders/Dispatch2.php b/application/admin/controller/orders/Dispatch2.php index 324610e..94eb748 100644 --- a/application/admin/controller/orders/Dispatch2.php +++ b/application/admin/controller/orders/Dispatch2.php @@ -288,6 +288,7 @@ class Dispatch2 extends Backend $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate; $row->validateFailException()->validate($validate); } + $params['status'] = OrderDispatch::STATUS_FINISH; $params['finish_time'] = date('Y-m-d H:i:s'); $result = $row->allowField(true)->save($params); @@ -376,7 +377,7 @@ class Dispatch2 extends Backend * @throws DataNotFoundException * @throws ModelNotFoundException */ - public function del() + public function del($ids=null) { if (false === $this->request->isPost()) { $this->error(__("Invalid parameters")); diff --git a/application/admin/view/orders/auditorder/edit.html b/application/admin/view/orders/auditorder/edit.html index 2d42163..5392f79 100644 --- a/application/admin/view/orders/auditorder/edit.html +++ b/application/admin/view/orders/auditorder/edit.html @@ -161,9 +161,7 @@