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,