抓取生产工单,抓取发料异常

This commit is contained in:
hjq
2026-06-12 11:09:15 +08:00
parent 559ead8300
commit c5232bccc1
3 changed files with 208 additions and 154 deletions

View File

@@ -171,6 +171,7 @@ def get_receipts():
supplier_name = request.args.get('supplier_name', '').strip()
material_name = request.args.get('material_name', '').strip()
po_code = request.args.get('po_code', '').strip()
material_code = request.args.get('material_code', '').strip()
conn = get_db_connection()
@@ -187,6 +188,9 @@ def get_receipts():
if po_code:
query_conditions.append("purchase_order_code LIKE ?")
params.append(f"%{po_code}%")
if material_code:
query_conditions.append("material_code LIKE ?")
params.append(f"%{material_code}%")
where_clause = ""
if query_conditions: