diff --git a/app/Views/bag/order_phone_manage.php b/app/Views/bag/order_phone_manage.php index 522a984..df4392f 100644 --- a/app/Views/bag/order_phone_manage.php +++ b/app/Views/bag/order_phone_manage.php @@ -119,15 +119,15 @@ 포장 명세 포장량: 0 -
+
- - - - - + + + + + @@ -446,6 +446,9 @@ // 현재 이 주문을 보고 있으면 상세·포장명세 즉시 갱신 if (String(selectedId) === String(data.so_idx)) { renderPacking(order); + // 새로 스캔한 봉투가 항상 맨 위(최신)에 보이도록 스크롤을 맨 위로 이동 + const packingScrollEl = document.getElementById('packing-scroll'); + if (packingScrollEl) packingScrollEl.scrollTop = 0; const cell = detailBody.querySelector('.item-packed-cell[data-bag-code="' + (window.CSS && CSS.escape ? CSS.escape(String(data.bag_code)) : String(data.bag_code)) + '"]'); if (cell) { cell.textContent = nf(Number(data.packed_qty || 0)); @@ -508,10 +511,10 @@ const qty = parseInt(s.qty || 0, 10) || 0; totalQty += qty; return '' - + '' - + '' + + '' + + '' + '' - + ''; + + ''; }); packingBody.innerHTML = rows.length ? rows.join('') : '';
No봉투종류봉투코드수량포장No봉투종류봉투코드수량포장
' + no + '' + packEsc(code) + ' ' + packEsc(name) + '' + packEsc(s.code || '') + '' + packEsc(code) + ' ' + packEsc(name) + '' + packEsc(s.code || '') + '' + nf(qty) + '' + packEsc(s.unit || '') + '
' + packEsc(s.unit || '') + '
스캔된 포장 내역이 없습니다.