fix: capture and persist target object names for delete, outbound, and borrow operations in audit logs
This commit is contained in:
@ -183,8 +183,8 @@ def update(id):
|
||||
)
|
||||
def delete(id):
|
||||
try:
|
||||
ProductInboundService.delete_inbound(id)
|
||||
return jsonify({"code": 200, "msg": "删除成功"})
|
||||
material_name = ProductInboundService.delete_inbound(id)
|
||||
return jsonify({"code": 200, "msg": "删除成功", "material_name": material_name})
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
return jsonify({"code": 500, "msg": str(e)}), 500
|
||||
|
||||
Reference in New Issue
Block a user