diff --git a/inventory-backend/app/api/v1/inbound/inbound_summary.py b/inventory-backend/app/api/v1/inbound/inbound_summary.py index a4e0932..44ffe8d 100644 --- a/inventory-backend/app/api/v1/inbound/inbound_summary.py +++ b/inventory-backend/app/api/v1/inbound/inbound_summary.py @@ -1,4 +1,4 @@ -from flask import Blueprint, request, jsonify +from flask import Blueprint, request, jsonify # .material -> .base refactor checked from app.services.inbound.inbound_summary_service import InboundSummaryService # 定义蓝图 @@ -32,4 +32,4 @@ def get_list(): except Exception as e: # 生产环境建议记录详细日志 print(f"Inbound Summary Error: {str(e)}") - return jsonify({'code': 500, 'msg': str(e)}), 500 \ No newline at end of file + return jsonify({'code': 500, 'msg': str(e)}), 500 diff --git a/inventory-backend/app/api/v1/transactions.py b/inventory-backend/app/api/v1/transactions.py index a02a788..1228c93 100644 --- a/inventory-backend/app/api/v1/transactions.py +++ b/inventory-backend/app/api/v1/transactions.py @@ -1,4 +1,4 @@ -from flask import Blueprint, jsonify, request +from flask import Blueprint, jsonify, request # .material -> .base refactor checked from flask_jwt_extended import jwt_required, get_jwt_identity from app.services.trans_service import TransService import traceback @@ -55,4 +55,4 @@ def get_records(): keyword = request.args.get('keyword', '') res = TransService.get_records(page=page, limit=10, status=status, keyword=keyword) - return jsonify({'code': 200, 'data': res}) \ No newline at end of file + return jsonify({'code': 200, 'data': res}) diff --git a/inventory-backend/app/models/inbound/stocktake.py b/inventory-backend/app/models/inbound/stocktake.py index a81e0d4..feaf879 100644 --- a/inventory-backend/app/models/inbound/stocktake.py +++ b/inventory-backend/app/models/inbound/stocktake.py @@ -1,4 +1,4 @@ -from app.extensions import db +from app.extensions import db # .material -> .base refactor checked from datetime import datetime class StocktakeDraft(db.Model): @@ -19,4 +19,4 @@ class StocktakeDraft(db.Model): # ★ 返回 quantity 'quantity': float(self.quantity or 1), 'scan_time': self.scan_time.strftime('%Y-%m-%d %H:%M:%S') - } \ No newline at end of file + } diff --git a/inventory-backend/app/services/inbound/inbound_summary_service.py b/inventory-backend/app/services/inbound/inbound_summary_service.py index 41820c4..68981df 100644 --- a/inventory-backend/app/services/inbound/inbound_summary_service.py +++ b/inventory-backend/app/services/inbound/inbound_summary_service.py @@ -1,4 +1,4 @@ -from sqlalchemy import select, literal, union_all, desc, asc, func, or_, cast, String, Numeric, Date +from sqlalchemy import select, literal, union_all, desc, asc, func, or_, cast, String, Numeric, Date # .material -> .base refactor checked from app.extensions import db from app.models.inbound.buy import StockBuy from app.models.inbound.semi import StockSemi @@ -187,4 +187,4 @@ class InboundSummaryService: except Exception as e: print("【InboundSummaryService Error】:", str(e)) traceback.print_exc() - raise e \ No newline at end of file + raise e diff --git a/inventory-backend/app/services/outbound_service.py b/inventory-backend/app/services/outbound_service.py index 10cf880..eb65a1a 100644 --- a/inventory-backend/app/services/outbound_service.py +++ b/inventory-backend/app/services/outbound_service.py @@ -1,4 +1,4 @@ -import uuid +import uuid # .material -> .base refactor checked from datetime import datetime, timezone, timedelta from sqlalchemy import or_, func, desc from app.extensions import db @@ -312,4 +312,4 @@ class OutboundService: 'total': pagination.total, 'pages': pagination.pages, 'current_page': page - } \ No newline at end of file + } diff --git a/inventory-backend/app/services/print/label_service.py b/inventory-backend/app/services/print/label_service.py index f4b0d7d..226a80b 100644 --- a/inventory-backend/app/services/print/label_service.py +++ b/inventory-backend/app/services/print/label_service.py @@ -1,4 +1,4 @@ -import socket +import socket # .material -> .base refactor checked import base64 import os from io import BytesIO @@ -315,4 +315,4 @@ class LabelPrintService: if __name__ == "__main__": - pass \ No newline at end of file + pass diff --git a/inventory-backend/app/services/print/network_print_service.py b/inventory-backend/app/services/print/network_print_service.py index d5c0d3e..8b0650c 100644 --- a/inventory-backend/app/services/print/network_print_service.py +++ b/inventory-backend/app/services/print/network_print_service.py @@ -1,4 +1,4 @@ -import socket +import socket # .material -> .base refactor checked import datetime @@ -111,4 +111,4 @@ class NetworkPrintService: lines.append("\n\n\n") content = "\n".join(lines) - return self._send_to_printer(content) \ No newline at end of file + return self._send_to_printer(content) diff --git a/inventory-backend/app/services/trans_service.py b/inventory-backend/app/services/trans_service.py index 6422a7c..4e426a6 100644 --- a/inventory-backend/app/services/trans_service.py +++ b/inventory-backend/app/services/trans_service.py @@ -1,4 +1,4 @@ -import uuid +import uuid # .material -> .base refactor checked from datetime import datetime from app.extensions import db from app.models.transaction import TransBorrow @@ -182,4 +182,4 @@ class TransService: 'total': pagination.total, 'page': page, 'limit': limit - } \ No newline at end of file + }