Commit d5506a79 by hcy001

1

parent 0e63f1a7
Showing with 13 additions and 14 deletions
......@@ -325,20 +325,6 @@ class InquiryItemsModel extends Model
}
}
#修改询价日志
\App\Model\OpLogModel::log([
'types'=>1,
'relation_id'=>$inquiry_items_id, #明细id
'relation_sn'=>0,
'content'=>'修改询价,型号:'.$updateArr["goods_name"]." 品牌名称:".$updateArr["brand_name"]
." 货期:".$updateArr["delivery_time"]." 询价数量:".$updateArr["inquiry_number"] ." 批次:".$updateArr["batch"]
." 目标价:".$updateArr["target_price"],
'create_uid'=>$b['user_id'],
'create_name'=>$b["user_name"],
]);
$con->commit();
#发送消息
$itemArr = $this->where("id",$inquiry_items_id)->first()->toArray(); #明细
$mainArr = (new InquiryModel())->where("id",$itemArr["inquiry_id"])->first()->toArray(); #主单状态
......@@ -356,6 +342,19 @@ class InquiryItemsModel extends Model
}
}
#修改询价日志
\App\Model\OpLogModel::log([
'types'=>1,
'relation_id'=>$inquiry_items_id, #明细id
'relation_sn'=>$mainArr["inquiry_sn"],
'content'=>'修改询价,型号:'.$updateArr["goods_name"]." 品牌名称:".$updateArr["brand_name"]
." 货期:".$updateArr["delivery_time"]." 询价数量:".$updateArr["inquiry_number"] ." 批次:".$updateArr["batch"]
." 目标价:".$updateArr["target_price"],
'create_uid'=>$b['user_id'],
'create_name'=>$b["user_name"],
]);
$con->commit();
return [0,"修改成功"];
}catch (\Exception $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment