From 83ee3dcc8cd400107758f9a56fea60311fdf1551 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Wed, 15 Feb 2023 14:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/OrderMain.php | 9 ++++++--- application/admin/view/order_main/index.html | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/application/admin/controller/OrderMain.php b/application/admin/controller/OrderMain.php index f577f35..87f618b 100755 --- a/application/admin/controller/OrderMain.php +++ b/application/admin/controller/OrderMain.php @@ -137,7 +137,7 @@ class OrderMain extends Backend } /** - * 添加日志记录 + * 添加备注记录 * @return \think\response\Json */ public function addMemo(){ @@ -145,11 +145,14 @@ class OrderMain extends Backend $params['create_id']=$this->auth->id; $orderMemoDao = new OrderMemoDao(); $result = $orderMemoDao->save($params); + //更新备注 + $orderMod = new \app\admin\model\OrderMain(); + $orderMod->save(["order_memo"=>$params["memo"]],["order_id"=>$params["order_id"]]); return json($result); } /** - * 添加日志记录 + * 获取备注记录 * @return \think\response\Json */ public function getMemoList(){ @@ -160,7 +163,7 @@ class OrderMain extends Backend } /** - * 添加日志记录 + * 设置标记 * @return \think\response\Json */ public function setHotFlag(){ diff --git a/application/admin/view/order_main/index.html b/application/admin/view/order_main/index.html index ae050a8..265910f 100755 --- a/application/admin/view/order_main/index.html +++ b/application/admin/view/order_main/index.html @@ -672,6 +672,7 @@ type: 'success', message: "添加成功" }); + this.getMemoList() } else { this.$message({ offset:0,