feat(malaysia): 입출고 일자별 낱개 수량 엑셀 다운로드
- '일괄 적용' 버튼명 '입력'으로 변경 - 입력 버튼 우측 '다운로드' 버튼 추가 - GET /malaysia/movements/export: 해당 일자/종류(IN/OUT) 낱개 합계를 엑셀(A=사방넷코드, B=수량, C=이름)로 스트리밍 - db.daily_movement_totals(): 일자/종류별 낱개 합계 집계 - itemcode.sabangnet_code_map(): item_code → 사방넷 코드 매핑 - i18n 사전 '입력'/'다운로드' 추가, malaysia.js 캐시 버전 bump Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
<div style="display:flex;justify-content:flex-end;margin-bottom:8px;">
|
||||
<button type="button" id="mys-lang-toggle" class="erp-btn erp-btn-outline">ENG</button>
|
||||
</div>
|
||||
<script src="/static/malaysia.js?v=20260611"></script>
|
||||
<script src="/static/malaysia.js?v=20260612"></script>
|
||||
|
||||
@@ -42,8 +42,9 @@
|
||||
<label class="erp-field"><span>메모</span>
|
||||
<input class="erp-input" type="text" name="memo" /></label>
|
||||
</div>
|
||||
<div class="erp-page-actions" style="margin-top:12px;">
|
||||
<button type="submit" class="erp-btn erp-btn-primary">일괄 적용</button>
|
||||
<div class="erp-page-actions" style="margin-top:12px;display:flex;gap:8px;">
|
||||
<button type="submit" class="erp-btn erp-btn-primary">입력</button>
|
||||
<button type="button" class="erp-btn erp-btn-outline" onclick="mysDownloadMovements(this)">다운로드</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -87,6 +88,24 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function mysDownloadMovements(btn) {
|
||||
var form = btn.closest('form');
|
||||
var type = form.querySelector('[name=movement_type]').value;
|
||||
var date = form.querySelector('[name=movement_date]').value;
|
||||
var wh = form.querySelector('[name=warehouse_code]').value;
|
||||
if (type !== 'IN' && type !== 'OUT') {
|
||||
alert('다운로드는 IN(입고) 또는 OUT(출고)만 가능합니다.');
|
||||
return;
|
||||
}
|
||||
if (!date) { alert('날짜를 선택하세요.'); return; }
|
||||
var url = '/malaysia/movements/export?wh=' + encodeURIComponent(wh)
|
||||
+ '&type=' + encodeURIComponent(type)
|
||||
+ '&date=' + encodeURIComponent(date);
|
||||
window.location.href = url;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- 이동 이력 -->
|
||||
<div class="erp-card" style="margin-top:16px;">
|
||||
<div class="cpg-card-head" style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;">
|
||||
|
||||
Reference in New Issue
Block a user