fix: 조회 버튼 클릭 시 주문량도 갱신
This commit is contained in:
parent
0f69b50c49
commit
20fc528c2b
16
backend/check_megace_code.py
Normal file
16
backend/check_megace_code.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import requests
|
||||||
|
|
||||||
|
# 메게이스 검색
|
||||||
|
res = requests.get('http://localhost:7001/api/geoyoung/stock?keyword=메게이스', timeout=30).json()
|
||||||
|
|
||||||
|
print("=== 지오영 메게이스 검색 결과 ===")
|
||||||
|
for item in res.get('items', []):
|
||||||
|
internal = item.get('internal_code', '')
|
||||||
|
spec = item.get('specification', '')
|
||||||
|
name = item.get('product_name', '')[:35]
|
||||||
|
kd = item.get('insurance_code', '')
|
||||||
|
print(f" 내부코드: {internal:8} | KD: {kd} | spec: {spec:6} | {name}")
|
||||||
|
|
||||||
|
print()
|
||||||
|
print("찾는 내부코드: 043735")
|
||||||
14
backend/check_megace_fixed.py
Normal file
14
backend/check_megace_fixed.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
import requests
|
||||||
|
|
||||||
|
res = requests.get('http://localhost:7001/api/geoyoung/orders/summary-by-kd?start_date=2026-03-07&end_date=2026-03-07', timeout=120).json()
|
||||||
|
|
||||||
|
print("=== 메게이스 주문 확인 ===")
|
||||||
|
for kd, info in res.get('by_kd_code', {}).items():
|
||||||
|
if '메게이스' in info['product_name']:
|
||||||
|
print(f"KD: {kd}")
|
||||||
|
print(f"제품명: {info['product_name']}")
|
||||||
|
print(f"spec: {info['spec']}")
|
||||||
|
print(f"boxes: {info['boxes']}")
|
||||||
|
print(f"units: {info['units']}")
|
||||||
|
print()
|
||||||
@ -778,7 +778,7 @@
|
|||||||
<option value="amount_desc">금액 높은순</option>
|
<option value="amount_desc">금액 높은순</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button class="search-btn" onclick="loadUsageData()">🔍 조회</button>
|
<button class="search-btn" onclick="loadUsageData(); loadOrderData();">🔍 조회</button>
|
||||||
<button class="search-btn" style="background: linear-gradient(135deg, #a855f7, #7c3aed);" onclick="openBalanceModal()">💰 도매상 잔고</button>
|
<button class="search-btn" style="background: linear-gradient(135deg, #a855f7, #7c3aed);" onclick="openBalanceModal()">💰 도매상 잔고</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user