Browse Source

小问题修复

master
nizongfeng 1 year ago
parent
commit
83ee3dcc8c
2 changed files with 7 additions and 3 deletions
  1. +6
    -3
      application/admin/controller/OrderMain.php
  2. +1
    -0
      application/admin/view/order_main/index.html

+ 6
- 3
application/admin/controller/OrderMain.php View File

@@ -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(){


+ 1
- 0
application/admin/view/order_main/index.html View File

@@ -672,6 +672,7 @@
type: 'success',
message: "添加成功"
});
this.getMemoList()
} else {
this.$message({
offset:0,


Loading…
Cancel
Save