사이트 메뉴 /bag/* 10개 페이지 구현 + E2E 테스트 timeout 보강
- Bag 컨트롤러 신규 (기본정보/발주입고/불출/재고/판매/판매현황/수불/통계/창/도움말) - 사이트 공통 레이아웃 bag/layout/main.php 추출 - /bag/* 라우트 10개 등록 (Routes.php) - bag-site.spec.js E2E 테스트 11개 추가 - Playwright timeout 30s→60s, waitForURL 15s→30s - P4 지자체관리자 접근 테스트 3개로 분리 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
83
app/Views/bag/basic_info.php
Normal file
83
app/Views/bag/basic_info.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<div class="space-y-6">
|
||||
<!-- 기본코드 종류 -->
|
||||
<section>
|
||||
<h3 class="text-base font-bold text-gray-700 mb-2 border-b pb-1">기본코드 종류</h3>
|
||||
<table class="data-table">
|
||||
<thead><tr>
|
||||
<th class="w-16">번호</th><th>코드</th><th>코드명</th><th>상태</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php if (! empty($codeKinds)): ?>
|
||||
<?php foreach ($codeKinds as $i => $row): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $i + 1 ?></td>
|
||||
<td class="text-center"><?= esc($row->ck_code) ?></td>
|
||||
<td><?= esc($row->ck_name) ?></td>
|
||||
<td class="text-center"><?= ($row->ck_status ?? 'active') === 'active' ? '사용' : '미사용' ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="4" class="text-center text-gray-400 py-4">등록된 코드 종류가 없습니다.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<!-- 봉투 단가 -->
|
||||
<section>
|
||||
<h3 class="text-base font-bold text-gray-700 mb-2 border-b pb-1">봉투 단가</h3>
|
||||
<table class="data-table">
|
||||
<thead><tr>
|
||||
<th class="w-16">번호</th><th>봉투코드</th><th>봉투명</th><th>발주단가</th><th>도매가</th><th>소비자가</th><th>적용시작</th><th>적용종료</th><th>상태</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php if (! empty($bagPrices)): ?>
|
||||
<?php foreach ($bagPrices as $i => $row): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $i + 1 ?></td>
|
||||
<td class="text-center"><?= esc($row->bp_bag_code) ?></td>
|
||||
<td><?= esc($row->bp_bag_name ?? '') ?></td>
|
||||
<td class="text-right"><?= number_format((float)($row->bp_order_price ?? 0)) ?></td>
|
||||
<td class="text-right"><?= number_format((float)($row->bp_wholesale_price ?? 0)) ?></td>
|
||||
<td class="text-right"><?= number_format((float)($row->bp_consumer_price ?? 0)) ?></td>
|
||||
<td class="text-center"><?= esc($row->bp_start_date ?? '') ?></td>
|
||||
<td class="text-center"><?= ($row->bp_end_date ?? '') ?: '현재' ?></td>
|
||||
<td class="text-center"><?= ($row->bp_status ?? 'active') === 'active' ? '사용' : '만료' ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="9" class="text-center text-gray-400 py-4">등록된 단가 정보가 없습니다.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<!-- 포장 단위 -->
|
||||
<section>
|
||||
<h3 class="text-base font-bold text-gray-700 mb-2 border-b pb-1">포장 단위</h3>
|
||||
<table class="data-table">
|
||||
<thead><tr>
|
||||
<th class="w-16">번호</th><th>봉투코드</th><th>봉투명</th><th>박스당 팩 수</th><th>팩당 낱장 수</th><th>1박스 총 낱장</th><th>적용시작</th><th>적용종료</th><th>상태</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php if (! empty($packagingUnits)): ?>
|
||||
<?php foreach ($packagingUnits as $i => $row): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $i + 1 ?></td>
|
||||
<td class="text-center"><?= esc($row->pu_bag_code) ?></td>
|
||||
<td><?= esc($row->pu_bag_name ?? '') ?></td>
|
||||
<td class="text-right"><?= number_format((int)($row->pu_packs_per_box ?? 0)) ?></td>
|
||||
<td class="text-right"><?= number_format((int)($row->pu_sheets_per_pack ?? 0)) ?></td>
|
||||
<td class="text-right"><?= number_format((int)($row->pu_packs_per_box ?? 0) * (int)($row->pu_sheets_per_pack ?? 0)) ?></td>
|
||||
<td class="text-center"><?= esc($row->pu_start_date ?? '') ?></td>
|
||||
<td class="text-center"><?= ($row->pu_end_date ?? '') ?: '현재' ?></td>
|
||||
<td class="text-center"><?= ($row->pu_status ?? 'active') === 'active' ? '사용' : '만료' ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr><td colspan="9" class="text-center text-gray-400 py-4">등록된 포장 단위가 없습니다.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
Reference in New Issue
Block a user