Compare commits
20 Commits
feature/go
...
ec34ae348c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec34ae348c | ||
|
|
9d7d1e8a94 | ||
|
|
24ac3f169e | ||
|
|
71534fb198 | ||
|
|
e6a49e379a | ||
|
|
77c7d3e119 | ||
|
|
b9dd24082c | ||
|
|
56dadb3478 | ||
|
|
287691328e | ||
|
|
fd3da428ab | ||
|
|
a8afaf4af2 | ||
|
|
912ffdbe23 | ||
|
|
4d9343e980 | ||
|
|
7e32f579e8 | ||
|
|
1a443de02e | ||
|
|
e8d58b5837 | ||
|
|
c15e01bfa7 | ||
|
|
600a79788e | ||
|
|
6b1c118651 | ||
|
|
abc8a405e1 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -176,3 +176,6 @@ blob-report/
|
|||||||
/phpunit*.xml
|
/phpunit*.xml
|
||||||
# 최상위 개발 문서/스크린샷 폴더만 제외 (app/Docs 등 하위 docs 경로는 추적).
|
# 최상위 개발 문서/스크린샷 폴더만 제외 (app/Docs 등 하위 docs 경로는 추적).
|
||||||
/docs/
|
/docs/
|
||||||
|
|
||||||
|
# Claude Code 개인 권한 설정(비밀 포함) — 커밋 금지
|
||||||
|
.claude/settings.local.json
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ class Filters extends BaseFilters
|
|||||||
public array $aliases = [
|
public array $aliases = [
|
||||||
'adminAuth' => \App\Filters\AdminAuthFilter::class,
|
'adminAuth' => \App\Filters\AdminAuthFilter::class,
|
||||||
'loginAuth' => \App\Filters\LoginAuthFilter::class,
|
'loginAuth' => \App\Filters\LoginAuthFilter::class,
|
||||||
|
'embedRedirect' => \App\Filters\EmbedRedirectFilter::class,
|
||||||
'csrf' => CSRF::class,
|
'csrf' => CSRF::class,
|
||||||
'toolbar' => DebugToolbar::class,
|
'toolbar' => DebugToolbar::class,
|
||||||
'honeypot' => Honeypot::class,
|
'honeypot' => Honeypot::class,
|
||||||
@@ -81,6 +82,7 @@ class Filters extends BaseFilters
|
|||||||
'after' => [
|
'after' => [
|
||||||
// 'honeypot',
|
// 'honeypot',
|
||||||
// 'secureheaders',
|
// 'secureheaders',
|
||||||
|
'embedRedirect', // 임베드(탭) 리다이렉트에 embed=1 유지 → 중첩 셸 방지
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -108,5 +110,10 @@ class Filters extends BaseFilters
|
|||||||
*
|
*
|
||||||
* @var array<string, array<string, list<string>>>
|
* @var array<string, array<string, list<string>>>
|
||||||
*/
|
*/
|
||||||
public array $filters = [];
|
public array $filters = [
|
||||||
|
// 모든 업무(bag) 화면은 로그인 필요. 세션 만료 후 어떤 버튼을 눌러도
|
||||||
|
// 깨진 화면 대신 로그인으로 리다이렉트되도록 일괄 보호한다.
|
||||||
|
// (login/logout/register 는 bag/* 가 아니므로 영향 없음. 관리자 화면은 adminAuth 가 별도 처리)
|
||||||
|
'loginAuth' => ['before' => ['bag', 'bag/*']],
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,12 +23,66 @@ class Manual extends BaseConfig
|
|||||||
*/
|
*/
|
||||||
public array $pages = [
|
public array $pages = [
|
||||||
'overview' => ['title' => '시작하기·시스템 개요', 'file' => '00_overview.md'],
|
'overview' => ['title' => '시작하기·시스템 개요', 'file' => '00_overview.md'],
|
||||||
|
'account' => ['title' => '로그인·회원가입·계정', 'file' => '01_account.md'],
|
||||||
|
'workspace' => ['title' => '화면 구성·워크스페이스·단축키', 'file' => '05_workspace.md'],
|
||||||
'flow' => ['title' => '핵심 업무 흐름', 'file' => '10_workflow.md'],
|
'flow' => ['title' => '핵심 업무 흐름', 'file' => '10_workflow.md'],
|
||||||
'order' => ['title' => '발주·입고', 'file' => '20_order_receiving.md'],
|
'order' => ['title' => '발주·입고', 'file' => '20_order_receiving.md'],
|
||||||
'inventory' => ['title' => '재고·실사', 'file' => '30_inventory.md'],
|
'inventory' => ['title' => '재고·실사', 'file' => '30_inventory.md'],
|
||||||
'sales' => ['title' => '판매·불출', 'file' => '40_sales_issue.md'],
|
'sales' => ['title' => '판매·반품·불출·주문', 'file' => '40_sales_issue.md'],
|
||||||
'reports' => ['title' => '판매현황·수불·통계', 'file' => '50_reports.md'],
|
'reports' => ['title' => '현황·리포트·수불', 'file' => '50_reports.md'],
|
||||||
|
'basic' => ['title' => '기본정보(판매소·단가·코드)', 'file' => '60_basic_info.md'],
|
||||||
'codes' => ['title' => '봉투·LOT·바코드 코드체계', 'file' => '90_code_system.md'],
|
'codes' => ['title' => '봉투·LOT·바코드 코드체계', 'file' => '90_code_system.md'],
|
||||||
'faq' => ['title' => '자주 묻는 질문·문의', 'file' => '99_faq.md'],
|
'faq' => ['title' => '자주 묻는 질문·문의', 'file' => '99_faq.md'],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 화면 경로(접두) → 그 화면을 설명하는 매뉴얼 slug.
|
||||||
|
* "이 화면 설명" 버튼이 현재 경로로 알맞은 매뉴얼 페이지를 연다.
|
||||||
|
* 더 긴(구체적) 접두가 우선하도록 길이 내림차순으로 매칭한다.
|
||||||
|
*
|
||||||
|
* 값에 "slug#소제목힌트" 형식으로 적으면, 매뉴얼 창이 열릴 때 해당 소제목으로
|
||||||
|
* 자동 스크롤하고 잠시 강조 표시한다(힌트는 그 페이지의 H2/H3 텍스트 일부와 일치).
|
||||||
|
*
|
||||||
|
* @var array<string, string>
|
||||||
|
*/
|
||||||
|
public array $screenHelp = [
|
||||||
|
'bag/order/phone' => 'sales#전화 주문 접수',
|
||||||
|
'bag/order/lot-seed' => 'order#LOT-No 디스켓 불출',
|
||||||
|
'bag/order' => 'order#발주 등록',
|
||||||
|
'bag/password-change' => 'account#비밀번호 변경',
|
||||||
|
'bag/bag-orders' => 'order#발주 현황',
|
||||||
|
'bag/receiving' => 'order#입고 처리',
|
||||||
|
'bag/bag-receivings' => 'order#입고 현황',
|
||||||
|
'bag/inventory' => 'inventory#재고 현황',
|
||||||
|
'bag/sale' => 'sales#지정판매소 판매',
|
||||||
|
'bag/sales' => 'sales#지정판매소 판매',
|
||||||
|
'bag/issue' => 'sales#무료용 불출 처리',
|
||||||
|
'bag/bag-issues' => 'sales#무료용 불출 처리',
|
||||||
|
'bag/bag-sales' => 'sales#판매/반품 현황',
|
||||||
|
'bag/shop-orders' => 'sales#전화 주문 접수',
|
||||||
|
'bag/flow' => 'reports#기간별 봉투 수불 현황',
|
||||||
|
'bag/reports/misc-flow' => 'reports#기타 입출고',
|
||||||
|
'bag/reports/returns' => 'reports#반품/파기 현황',
|
||||||
|
'bag/reports/lot-flow' => 'reports#LOT 수불 조회',
|
||||||
|
'bag/reports/supply-demand' => 'reports#쓰레기봉투 수급 계획',
|
||||||
|
'bag/reports/shop-sales' => 'reports#지정 판매소별 판매현황',
|
||||||
|
'bag/reports/daily-summary' => 'reports#일계표',
|
||||||
|
'bag/reports/period-sales' => 'reports#그 밖의 현황',
|
||||||
|
'bag/reports/yearly-sales' => 'reports#그 밖의 현황',
|
||||||
|
'bag/reports/sales-ledger' => 'reports#그 밖의 현황',
|
||||||
|
'bag/reports/hometax-export' => 'reports#그 밖의 현황',
|
||||||
|
'bag/reports' => 'reports#일계표',
|
||||||
|
'bag/analytics' => 'reports#그 밖의 현황',
|
||||||
|
'bag/designated-shops' => 'basic#지정판매소 관리',
|
||||||
|
'bag/bag-prices' => 'basic#단가 관리',
|
||||||
|
'bag/prices' => 'basic#단가 관리',
|
||||||
|
'bag/packaging-units' => 'basic#포장 단위 관리',
|
||||||
|
'bag/code-kinds' => 'basic#기본코드 관리',
|
||||||
|
'bag/code-details' => 'basic#기본코드 관리',
|
||||||
|
'bag/managers' => 'basic#그 밖의 기본정보',
|
||||||
|
'bag/companies' => 'basic#그 밖의 기본정보',
|
||||||
|
'bag/sales-agencies' => 'basic#그 밖의 기본정보',
|
||||||
|
'bag/free-recipients' => 'basic#그 밖의 기본정보',
|
||||||
|
'bag/number-lookup' => 'codes',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use CodeIgniter\Router\RouteCollection;
|
|||||||
* @var RouteCollection $routes
|
* @var RouteCollection $routes
|
||||||
*/
|
*/
|
||||||
$routes->get('/', 'Home::index');
|
$routes->get('/', 'Home::index');
|
||||||
|
$routes->get('workspace', 'Home::workspace');
|
||||||
$routes->get('dashboard', 'Home::dashboard');
|
$routes->get('dashboard', 'Home::dashboard');
|
||||||
$routes->get('dashboard/simple', 'Home::dashboardSimple');
|
$routes->get('dashboard/simple', 'Home::dashboardSimple');
|
||||||
$routes->get('dashboard/compact', 'Home::dashboardCompact');
|
$routes->get('dashboard/compact', 'Home::dashboardCompact');
|
||||||
@@ -59,6 +60,7 @@ $routes->get('bag/help', 'Bag::help');
|
|||||||
// 사용자 매뉴얼(설명서) — 로그인 사용자 전용
|
// 사용자 매뉴얼(설명서) — 로그인 사용자 전용
|
||||||
$routes->group('bag', ['filter' => 'loginAuth'], static function ($routes): void {
|
$routes->group('bag', ['filter' => 'loginAuth'], static function ($routes): void {
|
||||||
$routes->get('manual', 'Bag::manual');
|
$routes->get('manual', 'Bag::manual');
|
||||||
|
$routes->get('manual/search', 'Bag::manualSearch'); // (:segment) 보다 먼저
|
||||||
$routes->get('manual/(:segment)', 'Bag::manualPage/$1');
|
$routes->get('manual/(:segment)', 'Bag::manualPage/$1');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2560,7 +2560,8 @@ class SalesReport extends BaseController
|
|||||||
return redirect()->to(work_area_home_url())->with('error', '지자체를 선택해 주세요.');
|
return redirect()->to(work_area_home_url())->with('error', '지자체를 선택해 주세요.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$queried = $this->request->getGet('search') === '1';
|
// 첫 진입(search 파라미터 없음)에도 기본 조건(이번 달·불출)으로 자동 조회해 바로 표시한다.
|
||||||
|
$queried = ($this->request->getGet('search') ?? '1') === '1';
|
||||||
$startDate = (string) ($this->request->getGet('start_date') ?? date('Y-m-01'));
|
$startDate = (string) ($this->request->getGet('start_date') ?? date('Y-m-01'));
|
||||||
$endDate = (string) ($this->request->getGet('end_date') ?? date('Y-m-d'));
|
$endDate = (string) ($this->request->getGet('end_date') ?? date('Y-m-d'));
|
||||||
if ($startDate > $endDate) {
|
if ($startDate > $endDate) {
|
||||||
@@ -3189,7 +3190,8 @@ class SalesReport extends BaseController
|
|||||||
$salesScope = 'all';
|
$salesScope = 'all';
|
||||||
}
|
}
|
||||||
|
|
||||||
$queried = $this->request->getGet('search') === '1';
|
// 첫 진입(search 파라미터 없음)에도 기본 조건(오늘·40일·ALL)으로 자동 조회해 바로 표시한다.
|
||||||
|
$queried = ($this->request->getGet('search') ?? '1') === '1';
|
||||||
$built = (new \App\Libraries\BagSupplyPlanBuilder())->build(
|
$built = (new \App\Libraries\BagSupplyPlanBuilder())->build(
|
||||||
$lgIdx,
|
$lgIdx,
|
||||||
$refDate,
|
$refDate,
|
||||||
|
|||||||
@@ -22,10 +22,13 @@ class SelectLocalGovernment extends BaseController
|
|||||||
->orderBy('lg_name', 'ASC')
|
->orderBy('lg_name', 'ASC')
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
|
$currentLgIdx = (int) (session()->get('admin_selected_lg_idx') ?? 0);
|
||||||
|
|
||||||
return view('admin/layout', [
|
return view('admin/layout', [
|
||||||
'title' => '지자체 선택',
|
'title' => '지자체 선택',
|
||||||
'content' => view('admin/select_local_government/index', [
|
'content' => view('admin/select_local_government/index', [
|
||||||
'list' => $list,
|
'list' => $list,
|
||||||
|
'currentLgIdx' => $currentLgIdx,
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Auth extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
return view('auth/login', [
|
return view('auth/login', [
|
||||||
'pageTitle' => '로그인 - 종량제 시스템',
|
'pageTitle' => '로그인 - GBLS',
|
||||||
'cardMax' => 'max-w-md',
|
'cardMax' => 'max-w-md',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -160,7 +160,7 @@ class Auth extends BaseController
|
|||||||
|
|
||||||
return view('auth/login_two_factor', [
|
return view('auth/login_two_factor', [
|
||||||
'memberId' => $member->mb_id,
|
'memberId' => $member->mb_id,
|
||||||
'pageTitle' => '2차 인증 - 종량제 시스템',
|
'pageTitle' => '2차 인증 - GBLS',
|
||||||
'cardMax' => 'max-w-md',
|
'cardMax' => 'max-w-md',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -244,7 +244,7 @@ class Auth extends BaseController
|
|||||||
'memberId' => $member->mb_id,
|
'memberId' => $member->mb_id,
|
||||||
'qrDataUri' => $qrDataUri,
|
'qrDataUri' => $qrDataUri,
|
||||||
'secret' => $secret,
|
'secret' => $secret,
|
||||||
'pageTitle' => '2차 인증 등록 - 종량제 시스템',
|
'pageTitle' => '2차 인증 등록 - GBLS',
|
||||||
'cardMax' => 'max-w-lg',
|
'cardMax' => 'max-w-lg',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -348,7 +348,7 @@ class Auth extends BaseController
|
|||||||
|
|
||||||
return view('auth/register', [
|
return view('auth/register', [
|
||||||
'localGovernments' => $localGovernments,
|
'localGovernments' => $localGovernments,
|
||||||
'pageTitle' => '회원가입 - 종량제 시스템',
|
'pageTitle' => '회원가입 - GBLS',
|
||||||
'cardMax' => 'max-w-md',
|
'cardMax' => 'max-w-md',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -212,12 +212,15 @@ class Bag extends BaseController
|
|||||||
return $row ? trim((string) ($row->mg_name ?? '')) : '';
|
return $row ? trim((string) ($row->mg_name ?? '')) : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
private function render(string $title, string $viewFile, array $data = []): string
|
private function render(string $title, string $viewFile, array $data = [], bool $bare = false): string
|
||||||
{
|
{
|
||||||
// 사이트 업무 페이지 공통 셸: gov-portal 디자인(헤더+대메뉴+클릭형 좌측 사이드바).
|
// /workspace 탭(iframe) 안에서는 임베드 레이아웃(헤더·사이드바 없이 본문만).
|
||||||
return view('bag/layout/portal', [
|
$layout = $this->isEmbeddedRequest() ? 'bag/layout/embed' : 'bag/layout/portal';
|
||||||
|
|
||||||
|
return view($layout, [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'content' => view($viewFile, $data),
|
'content' => view($viewFile, $data),
|
||||||
|
'bare' => $bare, // true면 바깥 카드 래퍼 없이 본문을 그대로(이미 카드형 화면용)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -589,7 +592,8 @@ class Bag extends BaseController
|
|||||||
'selectedKind' => $selectedKind,
|
'selectedKind' => $selectedKind,
|
||||||
'detailList' => $detailList,
|
'detailList' => $detailList,
|
||||||
'rowCanEdit' => $rowCanEdit,
|
'rowCanEdit' => $rowCanEdit,
|
||||||
]);
|
'isEmbed' => $this->isEmbeddedRequest(), // 행 클릭 시 embed 유지(중첩 셸 방지)
|
||||||
|
], true); // 본문이 이미 카드 2개라 바깥 래퍼 생략
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -3298,7 +3302,8 @@ SQL);
|
|||||||
public function flow(): string
|
public function flow(): string
|
||||||
{
|
{
|
||||||
$lgIdx = $this->lgIdx();
|
$lgIdx = $this->lgIdx();
|
||||||
$queried = $this->request->getGet('search') === '1'
|
// 첫 진입(search 파라미터 없음)에도 기본 조건(이번 달·전체)으로 자동 조회해 바로 표시한다.
|
||||||
|
$queried = ($this->request->getGet('search') ?? '1') === '1'
|
||||||
|| $this->request->getGet('start_date') !== null
|
|| $this->request->getGet('start_date') !== null
|
||||||
|| $this->request->getGet('end_date') !== null;
|
|| $this->request->getGet('end_date') !== null;
|
||||||
|
|
||||||
@@ -3578,8 +3583,23 @@ SQL);
|
|||||||
public function manual(): \CodeIgniter\HTTP\RedirectResponse
|
public function manual(): \CodeIgniter\HTTP\RedirectResponse
|
||||||
{
|
{
|
||||||
$first = (new \App\Libraries\ManualRenderer())->firstSlug();
|
$first = (new \App\Libraries\ManualRenderer())->firstSlug();
|
||||||
|
$url = site_url('bag/manual/' . $first);
|
||||||
|
if ($this->isEmbeddedRequest()) {
|
||||||
|
$url .= '?embed=1'; // 워크스페이스 탭 안에서는 임베드 유지(중첩 헤더 방지)
|
||||||
|
}
|
||||||
|
|
||||||
return redirect()->to(site_url('bag/manual/' . $first));
|
return redirect()->to($url);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 매뉴얼 전체 검색 (JSON). q 와 일치하는 페이지·스니펫 목록.
|
||||||
|
*/
|
||||||
|
public function manualSearch(): \CodeIgniter\HTTP\ResponseInterface
|
||||||
|
{
|
||||||
|
$q = (string) ($this->request->getGet('q') ?? '');
|
||||||
|
$results = (new \App\Libraries\ManualRenderer())->search($q);
|
||||||
|
|
||||||
|
return $this->response->setJSON(['q' => $q, 'results' => $results]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4750,14 +4770,18 @@ SQL);
|
|||||||
$receiverIdx = $this->parseReceiverRefToStoredIdx($lgIdx, $receiverRef);
|
$receiverIdx = $this->parseReceiverRefToStoredIdx($lgIdx, $receiverRef);
|
||||||
$senderIdx = (int) ($this->request->getPost('br_sender_idx') ?? 0);
|
$senderIdx = (int) ($this->request->getPost('br_sender_idx') ?? 0);
|
||||||
|
|
||||||
|
// 오류 시 명시적으로 일괄 입고 화면으로 복귀(back()은 도움말 드로어 등이 남긴
|
||||||
|
// previous_url 로 잘못 이동할 수 있어 사용하지 않는다)
|
||||||
|
$batchUrl = site_url('bag/receiving/batch?company_idx=' . $companyIdx . '&bag_code=' . rawurlencode($bagCode));
|
||||||
|
|
||||||
if (empty($selected)) {
|
if (empty($selected)) {
|
||||||
return redirect()->back()->withInput()->with('error', '일괄 입고할 행을 선택해 주세요.');
|
return redirect()->to($batchUrl)->withInput()->with('error', '일괄 입고할 행을 선택해 주세요.');
|
||||||
}
|
}
|
||||||
if (! preg_match('/^\d{4}-\d{2}-\d{2}$/', $receiveDate)) {
|
if (! preg_match('/^\d{4}-\d{2}-\d{2}$/', $receiveDate)) {
|
||||||
return redirect()->back()->withInput()->with('error', '입고일 형식을 확인해 주세요.');
|
return redirect()->to($batchUrl)->withInput()->with('error', '입고일 형식을 확인해 주세요.');
|
||||||
}
|
}
|
||||||
if ($receiverIdx <= 0) {
|
if ($receiverIdx <= 0) {
|
||||||
return redirect()->back()->withInput()->with('error', '인수자를 선택해 주세요.');
|
return redirect()->to($batchUrl)->withInput()->with('error', '인수자를 선택해 주세요.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$senderResolved = $this->resolveCompanySenderName($lgIdx, $senderIdx);
|
$senderResolved = $this->resolveCompanySenderName($lgIdx, $senderIdx);
|
||||||
@@ -4798,7 +4822,7 @@ SQL);
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($insertRows)) {
|
if (empty($insertRows)) {
|
||||||
return redirect()->back()->withInput()->with('error', '선택한 행에 입고할 수량이 없습니다.');
|
return redirect()->to($batchUrl)->withInput()->with('error', '선택한 행에 입고할 수량이 없습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$recvModel = model(BagReceivingModel::class);
|
$recvModel = model(BagReceivingModel::class);
|
||||||
@@ -4828,7 +4852,7 @@ SQL);
|
|||||||
$db->transComplete();
|
$db->transComplete();
|
||||||
|
|
||||||
if (! $db->transStatus()) {
|
if (! $db->transStatus()) {
|
||||||
return redirect()->back()->withInput()->with('error', '일괄 입고 처리 중 오류가 발생했습니다.');
|
return redirect()->to($batchUrl)->withInput()->with('error', '일괄 입고 처리 중 오류가 발생했습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->to(site_url('bag/receiving/batch?company_idx=' . $companyIdx . '&bag_code=' . rawurlencode($bagCode)))
|
return redirect()->to(site_url('bag/receiving/batch?company_idx=' . $companyIdx . '&bag_code=' . rawurlencode($bagCode)))
|
||||||
|
|||||||
@@ -48,6 +48,20 @@ abstract class BaseController extends Controller
|
|||||||
*
|
*
|
||||||
* @param array<string, mixed> $contentData
|
* @param array<string, mixed> $contentData
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* 워크스페이스 탭(iframe) 안에서 열린 요청인지. ?embed=1 또는 Sec-Fetch-Dest=iframe.
|
||||||
|
* iframe 내 링크 이동·폼 전송·리다이렉트까지 모두 임베드로 처리되도록 헤더로도 판정한다.
|
||||||
|
*/
|
||||||
|
protected function isEmbeddedRequest(): bool
|
||||||
|
{
|
||||||
|
if ($this->request->getGet('embed') !== null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
$dest = strtolower(trim((string) $this->request->getHeaderLine('Sec-Fetch-Dest')));
|
||||||
|
|
||||||
|
return $dest === 'iframe' || $dest === 'frame';
|
||||||
|
}
|
||||||
|
|
||||||
protected function renderWorkPage(string $title, string $contentView, array $contentData = []): string
|
protected function renderWorkPage(string $title, string $contentView, array $contentData = []): string
|
||||||
{
|
{
|
||||||
$content = view($contentView, $contentData);
|
$content = view($contentView, $contentData);
|
||||||
@@ -61,8 +75,8 @@ abstract class BaseController extends Controller
|
|||||||
$path = substr($path, strlen('index.php/'));
|
$path = substr($path, strlen('index.php/'));
|
||||||
}
|
}
|
||||||
if ($path === 'bag' || str_starts_with($path, 'bag/')) {
|
if ($path === 'bag' || str_starts_with($path, 'bag/')) {
|
||||||
// 사이트 업무 페이지: gov-portal 디자인 셸 적용
|
// /workspace 탭(iframe) 안에서는 임베드 레이아웃, 아니면 gov-portal 셸
|
||||||
return view('bag/layout/portal', [
|
return view($this->isEmbeddedRequest() ? 'bag/layout/embed' : 'bag/layout/portal', [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -10,21 +10,45 @@ class Home extends BaseController
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
if (session()->get('logged_in')) {
|
if (session()->get('logged_in')) {
|
||||||
// 메인(/) — gov-portal 디자인 셸 + 종량제 실데이터 대시보드.
|
|
||||||
helper('admin');
|
helper('admin');
|
||||||
|
|
||||||
return view('bag/layout/portal', [
|
// 워크스페이스 탭(iframe) 안: 대시보드 본문을 임베드로.
|
||||||
'title' => '업무 현황',
|
if ($this->isEmbeddedRequest()) {
|
||||||
'bare' => true,
|
return view('bag/layout/embed', [
|
||||||
'content' => view('bag/dashboard_portal', $this->portalDashboardData()),
|
'title' => '업무 현황',
|
||||||
]);
|
'bare' => true,
|
||||||
|
'content' => view('bag/dashboard_portal', $this->portalDashboardData()),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 로그인 후 기본 화면 = 워크스페이스(탭). 메뉴를 탭으로 열어 작업 상태 유지.
|
||||||
|
return view('bag/layout/workspace');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 워크스페이스 탭(iframe) 안에서 세션이 만료된 경우: 공개 랜딩 대신 로그인으로 보내
|
||||||
|
// 로그인 페이지의 프레임 이탈 스크립트가 상위 창 전체를 로그인으로 전환하게 한다.
|
||||||
|
if ($this->isEmbeddedRequest()) {
|
||||||
|
return redirect()->to(base_url('login'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('welcome_message');
|
return view('welcome_message');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 메인 대시보드용 — 종량제 시스템에 실제 존재하는 데이터만 집계.
|
* 워크스페이스 — 메뉴를 탭(iframe)으로 열어두고 작업 상태를 유지하는 화면.
|
||||||
|
*/
|
||||||
|
public function workspace()
|
||||||
|
{
|
||||||
|
if (! session()->get('logged_in')) {
|
||||||
|
return redirect()->to(base_url('login'));
|
||||||
|
}
|
||||||
|
helper('admin');
|
||||||
|
|
||||||
|
return view('bag/layout/workspace');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 메인 대시보드용 — GBLS에 실제 존재하는 데이터만 집계.
|
||||||
*
|
*
|
||||||
* @return array<string, mixed>
|
* @return array<string, mixed>
|
||||||
*/
|
*/
|
||||||
@@ -104,6 +128,34 @@ class Home extends BaseController
|
|||||||
$pendingApprovals = 0;
|
$pendingApprovals = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 지도용 — 현재 지자체 지정판매소(이름·주소). 좌표는 클라이언트(카카오 지오코딩)에서 변환.
|
||||||
|
$mapShops = [];
|
||||||
|
try {
|
||||||
|
if ($lgIdx !== null && $db->tableExists('designated_shop')) {
|
||||||
|
$rows = $db->table('designated_shop')
|
||||||
|
->select('ds_name, ds_addr, ds_addr_jibun')
|
||||||
|
->where('ds_lg_idx', $lgIdx)
|
||||||
|
->where('ds_addr IS NOT NULL')
|
||||||
|
->where('ds_addr <>', '')
|
||||||
|
->orderBy('ds_idx', 'ASC')
|
||||||
|
->limit(40)
|
||||||
|
->get()->getResultArray();
|
||||||
|
foreach ($rows as $r) {
|
||||||
|
$addr = trim((string) ($r['ds_addr'] ?? ''));
|
||||||
|
if ($addr === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$mapShops[] = [
|
||||||
|
'name' => (string) ($r['ds_name'] ?? ''),
|
||||||
|
'addr' => $addr,
|
||||||
|
'jibun' => trim((string) ($r['ds_addr_jibun'] ?? '')),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
$mapShops = [];
|
||||||
|
}
|
||||||
|
|
||||||
// 최근 활동(activity_log) — 실제 변경 이력
|
// 최근 활동(activity_log) — 실제 변경 이력
|
||||||
$actionLabel = ['create' => '등록', 'update' => '수정', 'delete' => '삭제', 'cancel' => '취소'];
|
$actionLabel = ['create' => '등록', 'update' => '수정', 'delete' => '삭제', 'cancel' => '취소'];
|
||||||
$tableLabel = [
|
$tableLabel = [
|
||||||
@@ -142,9 +194,44 @@ class Home extends BaseController
|
|||||||
'stockMix' => $stockMix,
|
'stockMix' => $stockMix,
|
||||||
'lowStock' => $lowStock,
|
'lowStock' => $lowStock,
|
||||||
'recentActivity' => $recent,
|
'recentActivity' => $recent,
|
||||||
|
'mapShops' => $mapShops,
|
||||||
|
'kakaoJsKey' => config(\Config\Kakao::class)->javascriptKey,
|
||||||
|
'menuSearchOptions' => (function_exists('gov_portal_nav_context') && function_exists('gov_portal_menu_search_options'))
|
||||||
|
? gov_portal_menu_search_options(gov_portal_nav_context(false)['navItems'])
|
||||||
|
: [],
|
||||||
|
'menuFlat' => $this->buildMenuFlat(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 메뉴검색 자동완성용 — 사이트 메뉴를 (상위·메뉴명·URL) 평탄 목록으로.
|
||||||
|
*
|
||||||
|
* @return list<array{parent:string,name:string,url:string}>
|
||||||
|
*/
|
||||||
|
private function buildMenuFlat(): array
|
||||||
|
{
|
||||||
|
if (! function_exists('gov_portal_nav_context')) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
$flat = [];
|
||||||
|
foreach (gov_portal_nav_context(false)['navItems'] as $parent) {
|
||||||
|
$pName = (string) ($parent['name'] ?? '');
|
||||||
|
if (! empty($parent['children'])) {
|
||||||
|
foreach ($parent['children'] as $child) {
|
||||||
|
$url = (string) ($child['url'] ?? '');
|
||||||
|
if ($url === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$flat[] = ['parent' => $pName, 'name' => (string) ($child['name'] ?? ''), 'url' => $url];
|
||||||
|
}
|
||||||
|
} elseif (! empty($parent['url'])) {
|
||||||
|
$flat[] = ['parent' => '', 'name' => $pName, 'url' => (string) $parent['url']];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $flat;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 로그인 후 메인 — site 메뉴 레이아웃 + 종합·그래프(blend) 본문
|
* 로그인 후 메인 — site 메뉴 레이아웃 + 종합·그래프(blend) 본문
|
||||||
*/
|
*/
|
||||||
@@ -376,9 +463,14 @@ class Home extends BaseController
|
|||||||
protected function resolveLgLabel(): string
|
protected function resolveLgLabel(): string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$idx = session()->get('mb_lg_idx');
|
helper('admin');
|
||||||
if ($idx === null || $idx === '') {
|
$idx = function_exists('admin_effective_lg_idx') ? admin_effective_lg_idx() : null;
|
||||||
return '로그인 지자체 (미지정)';
|
if ($idx === null) {
|
||||||
|
$raw = session()->get('mb_lg_idx');
|
||||||
|
$idx = ($raw !== null && $raw !== '') ? (int) $raw : null;
|
||||||
|
}
|
||||||
|
if ($idx === null) {
|
||||||
|
return '지자체 미지정';
|
||||||
}
|
}
|
||||||
$row = model(LocalGovernmentModel::class)->find((int) $idx);
|
$row = model(LocalGovernmentModel::class)->find((int) $idx);
|
||||||
if ($row && isset($row->lg_name) && $row->lg_name !== '') {
|
if ($row && isset($row->lg_name) && $row->lg_name !== '') {
|
||||||
@@ -388,7 +480,7 @@ class Home extends BaseController
|
|||||||
// 테이블 미생성 등
|
// 테이블 미생성 등
|
||||||
}
|
}
|
||||||
|
|
||||||
return '북구 (데모)';
|
return '지자체';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +1,50 @@
|
|||||||
# 시작하기 · 시스템 개요
|
# 시작하기 · 시스템 개요
|
||||||
|
|
||||||
종량제 쓰레기봉투 물류 시스템 사용자 매뉴얼입니다. 이 문서는 실제 업무를 처리하는 담당자(지자체 관리자·지정판매소)를 위한 **빠른 시작 안내서**입니다.
|
종량제 쓰레기봉투 물류 시스템 사용자 매뉴얼입니다. **이 시스템을 처음 쓰는 분**도 화면을 이해하고 업무를 처리할 수 있도록, 화면마다 쓰이는 용어와 버튼의 의미를 설명합니다.
|
||||||
|
|
||||||
## 1. 시스템은 무엇을 하나요?
|
## 1. 이 시스템은 무엇을 하나요?
|
||||||
|
|
||||||
지자체 종량제 쓰레기봉투의 **발주 → 입고 → 재고 → 판매/불출 → 정산·통계** 전 과정을 관리합니다.
|
지자체가 주민에게 파는 **종량제 쓰레기봉투**가 ① 제작업체에 **주문(발주)** 되고 → ② 창고로 **들어오고(입고)** → ③ **재고**로 보관되다가 → ④ 동네 가게(지정판매소)에 **팔리거나(판매)** 무료 대상자에게 **나눠지는(불출)** 전 과정을 컴퓨터로 관리합니다. 마지막엔 ⑤ 얼마나 팔렸는지 **집계·정산(현황/리포트)** 합니다.
|
||||||
|
|
||||||
- 봉투를 제작업체에 **발주**하고, 들어온 물량을 **입고** 처리합니다.
|
## 2. 꼭 알아야 할 기본 용어 (용어 사전)
|
||||||
- 현재 **재고**를 확인하고, 실사로 실제 수량과 맞춥니다.
|
|
||||||
- 지정판매소에 **판매**하거나 무료 대상자에게 **불출**합니다.
|
|
||||||
- 일계표·기간별·연간 등 **판매현황**과 **수불·통계**를 조회합니다.
|
|
||||||
|
|
||||||
## 2. 로그인과 화면 구성
|
| 용어 | 쉬운 설명 |
|
||||||
|
|---|---|
|
||||||
|
| **발주** | 봉투를 제작업체에 "이만큼 만들어 주세요"라고 **주문**하는 것 |
|
||||||
|
| **입고** | 주문한 봉투가 창고에 **도착해 들여놓는** 것 |
|
||||||
|
| **재고** | 지금 창고에 **남아 있는 봉투 수량** |
|
||||||
|
| **불출** | 봉투를 창고에서 **꺼내 내보내는** 것 (주로 무료 배부) |
|
||||||
|
| **수불(受拂)** | **들어오고(수입)·나가는(불출)** 움직임을 적은 장부 |
|
||||||
|
| **지정판매소** | 봉투를 파는 **동네 가게**(편의점·마트 등) |
|
||||||
|
| **대행소(판매대행소)** | 봉투 **배송·유통을 대행**하는 업체 |
|
||||||
|
| **실사** | 컴퓨터 기록과 **실제 창고 수량이 맞는지 직접 세어 확인**하는 것 |
|
||||||
|
| **박스 / 팩 / 낱장** | 포장 단위. **박스 > 팩 > 낱장(봉투 1장)**. 1박스 = 여러 팩, 1팩 = 여러 낱장 |
|
||||||
|
| **LOT(로트)** | 한 번의 발주 묶음에 부여되는 **추적용 일련번호** |
|
||||||
|
| **바코드(봉투번호)** | 박스·팩·낱장마다 붙는 **고유 번호**(스캔용) |
|
||||||
|
| **무료용 / 공공용** | 주민 무료 배부용 / 공공기관 사용용 봉투 구분 |
|
||||||
|
|
||||||
1. 발급받은 아이디·비밀번호로 로그인합니다.
|
> 박스·팩·낱장·LOT·바코드의 자세한 규칙은 좌측 목차 **[봉투·LOT·바코드 코드체계]** 참고.
|
||||||
2. 관리자(지자체/슈퍼)는 보안을 위해 **2차 인증(OTP)** 이 적용될 수 있습니다.
|
|
||||||
3. 로그인하면 상단에 **대메뉴**가 보이고, 각 대메뉴에 마우스를 올리면 **소메뉴**가 펼쳐집니다.
|
|
||||||
4. 화면 상단의 제목 바에 현재 보고 있는 화면 이름이 표시됩니다.
|
|
||||||
|
|
||||||
> 슈퍼 관리자는 작업할 **지자체를 먼저 선택**해야 업무 화면이 열립니다.
|
## 3. 화면 구성과 사용법
|
||||||
|
|
||||||
## 3. 사용자 역할(권한)
|
- 로그인하면 **워크스페이스**(탭 작업공간)가 열립니다. 상단에 대분류 메뉴, **대분류를 클릭하면 왼쪽에 소메뉴**가 펼쳐집니다.
|
||||||
|
- 메뉴를 클릭하면 **탭으로 열립니다.** 여러 화면을 열어두고 전환해도 입력하던 내용이 유지됩니다.
|
||||||
|
- 각 화면에서 **"이 화면 설명"(❓) 버튼**을 누르면, 그 화면에 해당하는 매뉴얼이 새 탭으로 열립니다.
|
||||||
|
|
||||||
시스템은 4단계 역할로 접근 권한을 구분합니다.
|
> 탭 사용법, **분할 보기(2·4분할)·구분선 드래그로 크기 조절**, **키보드 단축키**(Alt+1~9 / Alt+W / Alt+[ / Alt+]) 등 자세한 내용은 좌측 목차 **[화면 구성·워크스페이스·단축키]** 를 참고하세요.
|
||||||
|
|
||||||
| 레벨 | 역할 | 할 수 있는 일 |
|
## 4. 사용자 역할(권한)
|
||||||
|---|---|---|
|
|
||||||
| 1 | 일반 사용자 | 기본 조회 |
|
|
||||||
| 2 | 지정판매소 | 봉투 판매·반품, 자기 판매 현황 조회 |
|
|
||||||
| 3 | 지자체 관리자 | 소속 지자체의 발주·입고·재고·불출·판매·리포트 전반 |
|
|
||||||
| 4 | 슈퍼 관리자 | 전체 시스템 관리 + 기본코드 등 마스터 관리 (지자체 선택 후 작업) |
|
|
||||||
|
|
||||||
### 역할별 접근 한눈에 보기
|
| 역할 | 할 수 있는 일 |
|
||||||
|
|---|---|
|
||||||
|
| 일반 사용자 | 기본 조회 |
|
||||||
|
| 지정판매소 | 봉투 판매·반품, 자기 판매 현황 조회 |
|
||||||
|
| 지자체 관리자 | 소속 지자체의 발주·입고·재고·불출·판매·리포트 전반 |
|
||||||
|
| 슈퍼 관리자 | 전체 + 기본코드 등 마스터 관리(지자체 선택 후 작업) |
|
||||||
|
|
||||||
| 기능군 | 일반 | 판매소 | 지자체관리자 | 슈퍼 |
|
## 5. 화면별 설명은 어디에?
|
||||||
|---|:--:|:--:|:--:|:--:|
|
|
||||||
| 기본정보 조회(코드·단가·포장) | △ | ○ | ○ | ○ |
|
|
||||||
| 기본코드·마스터 편집 | ✕ | ✕ | △(지자체분) | ○ |
|
|
||||||
| 발주·입고·재고·불출 | ✕ | ✕ | ○ | ○ |
|
|
||||||
| 판매·반품 등록 | ✕ | ○ | ○ | ○ |
|
|
||||||
| 판매현황·수불·통계 | ✕ | △(자기분) | ○ | ○ |
|
|
||||||
|
|
||||||
(○ 사용 가능 · △ 제한적 · ✕ 불가)
|
좌측 목차에서 업무군을 고르면 그 안에 **화면(소메뉴)별 설명**이 있습니다.
|
||||||
|
- **발주·입고** / **재고·실사** / **판매·반품·불출·주문** / **현황·리포트·수불** / **기본정보(판매소·단가·코드)**
|
||||||
|
|
||||||
## 4. 다음 단계
|
각 화면 설명은 **그 화면 고유의 용어·입력 항목·버튼·작업 순서**만 담았습니다.
|
||||||
|
|
||||||
- 전체 업무가 어떻게 이어지는지 먼저 보려면 **[핵심 업무 흐름]** 으로 이동하세요.
|
|
||||||
- 특정 작업 방법은 좌측 목차에서 해당 항목(발주·입고 / 재고·실사 / 판매·불출 / 판매현황·수불·통계)을 선택하세요.
|
|
||||||
|
|||||||
69
app/Docs/manual/01_account.md
Normal file
69
app/Docs/manual/01_account.md
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
# 로그인 · 회원가입 · 계정
|
||||||
|
|
||||||
|
시스템을 쓰려면 **계정(아이디)** 이 필요합니다. 이 페이지는 회원가입부터 로그인, 2차 인증, 로그아웃까지의 과정을 설명합니다.
|
||||||
|
|
||||||
|
## 1. 회원가입
|
||||||
|
|
||||||
|
로그인 화면 아래쪽 **[회원가입]** 을 눌러 신청합니다. 입력 항목은 다음과 같습니다.
|
||||||
|
|
||||||
|
| 항목 | 필수 | 설명 |
|
||||||
|
|---|:---:|---|
|
||||||
|
| **아이디** | 필수 | 로그인에 쓰는 ID. **4자 이상**, 이미 쓰는 아이디는 사용할 수 없습니다. |
|
||||||
|
| **비밀번호** | 필수 | **4자 이상**. 안전을 위해 영문·숫자·기호를 섞는 것을 권장합니다. |
|
||||||
|
| **비밀번호 확인** | 필수 | 위 비밀번호와 똑같이 한 번 더 입력(오타 방지). |
|
||||||
|
| **이름** | 필수 | 담당자 이름. |
|
||||||
|
| **이메일** | 선택 | 안내용. 입력 시 형식 검사를 합니다. |
|
||||||
|
| **연락처** | 선택 | 전화번호. |
|
||||||
|
| **지자체** | 선택 | 소속 지자체. 해당되면 선택합니다. |
|
||||||
|
| **사용자 역할** | 필수 | 신청할 권한(아래 표 참고). 실제 권한은 **관리자 승인 시 확정**됩니다. |
|
||||||
|
|
||||||
|
> 이메일·연락처 같은 개인정보는 **암호화되어 저장**됩니다.
|
||||||
|
|
||||||
|
### 신청할 수 있는 역할
|
||||||
|
|
||||||
|
| 역할 | 주로 하는 일 |
|
||||||
|
|---|---|
|
||||||
|
| **일반 사용자** | 기본 조회 |
|
||||||
|
| **지정판매소** | 봉투 판매·반품, 자기 판매 현황 조회 |
|
||||||
|
| **지자체 관리자** | 소속 지자체의 발주·입고·재고·불출·판매·리포트 전반 |
|
||||||
|
|
||||||
|
### 가입 후 — 관리자 승인 대기
|
||||||
|
|
||||||
|
회원가입을 제출하면 **바로 로그인되지 않고 "승인 대기" 상태**가 됩니다.
|
||||||
|
|
||||||
|
- **관리자가 승인하면** 그때부터 로그인할 수 있습니다.
|
||||||
|
- 승인 전에 로그인하면 *"관리자 승인 후 로그인 가능합니다."* 안내가 나옵니다.
|
||||||
|
- 승인이 **반려**되면 *"승인이 반려되었습니다. 관리자에게 문의해 주세요."* 가 나옵니다 — 담당 관리자에게 문의하세요.
|
||||||
|
|
||||||
|
## 2. 로그인
|
||||||
|
|
||||||
|
로그인 화면에서 **아이디**와 **비밀번호**를 입력합니다.
|
||||||
|
|
||||||
|
- 성공하면 **워크스페이스**(탭 작업공간)로 들어갑니다.
|
||||||
|
- 아이디·비밀번호가 틀리면 안내 메시지가 나옵니다. (승인 대기/반려 상태도 위와 같이 안내됩니다.)
|
||||||
|
|
||||||
|
### 2차 인증(OTP)
|
||||||
|
|
||||||
|
보안 설정에 따라 비밀번호 확인 뒤 **2차 인증** 단계가 나올 수 있습니다.
|
||||||
|
|
||||||
|
- **이미 OTP를 등록한 경우** — 스마트폰 인증 앱(예: Google Authenticator)에 표시되는 **6자리 숫자**를 입력합니다.
|
||||||
|
- **처음 사용하는 경우** — 화면의 **QR코드 또는 설정 키**를 인증 앱에 등록한 뒤, 앱에 나온 6자리 숫자로 설정을 완료합니다. 이후 로그인부터 OTP를 입력하게 됩니다.
|
||||||
|
|
||||||
|
> OTP 숫자는 일정 시간마다 바뀌므로, **현재 표시된 숫자**를 입력해야 합니다. 휴대폰 시간이 자동(네트워크 시간)으로 맞춰져 있어야 정확합니다.
|
||||||
|
|
||||||
|
## 3. 로그아웃
|
||||||
|
|
||||||
|
화면 오른쪽 위 **[로그아웃]** 을 누르면 안전하게 종료됩니다. 공용 PC라면 사용 후 꼭 로그아웃하세요.
|
||||||
|
|
||||||
|
## 4. 비밀번호 변경 · *비밀번호 변경*
|
||||||
|
|
||||||
|
로그인한 본인이 직접 비밀번호를 바꾸는 화면입니다.
|
||||||
|
|
||||||
|
**입력**: 현재 비밀번호 → 새 비밀번호 → 새 비밀번호 확인.
|
||||||
|
**순서**: 현재 비밀번호가 맞아야 변경되며, 새 비밀번호는 확인란과 동일해야 합니다.
|
||||||
|
> 주기적으로 변경하고, 다른 사이트와 같은 비밀번호는 피하세요.
|
||||||
|
|
||||||
|
## 5. 비밀번호 분실 · 계정·권한 문제
|
||||||
|
|
||||||
|
- **비밀번호를 분실**해 로그인 자체가 안 되는 경우에는 **담당 관리자**가 초기화해 줍니다. 관리자에게 문의하세요.
|
||||||
|
- 권한(역할)을 바꾸고 싶을 때도 관리자에게 요청하면 됩니다.
|
||||||
92
app/Docs/manual/05_workspace.md
Normal file
92
app/Docs/manual/05_workspace.md
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
# 화면 구성 · 워크스페이스 · 단축키
|
||||||
|
|
||||||
|
이 시스템은 **여러 작업 화면을 탭으로 열어 두고 오가며** 일할 수 있도록 만들어졌습니다(웹 브라우저의 탭과 비슷합니다). 이 페이지는 화면이 어떻게 구성되는지, 탭을 어떻게 쓰는지, 그리고 빠르게 쓰는 단축키를 설명합니다.
|
||||||
|
|
||||||
|
## 1. 전체 화면 구성
|
||||||
|
|
||||||
|
로그인하면 **워크스페이스**(탭 작업공간)가 기본으로 열립니다. 화면은 크게 네 부분입니다.
|
||||||
|
|
||||||
|
| 영역 | 위치 | 설명 |
|
||||||
|
|---|---|---|
|
||||||
|
| **상단 헤더** | 맨 위 | 로고, **대분류 메뉴**, 오른쪽에 소속 지자체·접속자·관리자·로그아웃 |
|
||||||
|
| **왼쪽 사이드바** | 좌측 | 현재 선택한 대분류의 **소메뉴 목록**. 아래에는 매뉴얼·FAQ 링크 |
|
||||||
|
| **탭바** | 본문 위 | 지금 열어 둔 작업 화면들의 **탭 목록** |
|
||||||
|
| **본문** | 가운데 | 현재 탭의 실제 작업 화면 |
|
||||||
|
|
||||||
|
> **대분류를 클릭하면** 왼쪽 사이드바에 그 안의 소메뉴가 펼쳐집니다. 현재 위치한 메뉴는 왼쪽에서 **▸** 로 표시됩니다.
|
||||||
|
|
||||||
|
## 2. 탭(워크스페이스) 사용법
|
||||||
|
|
||||||
|
- **메뉴를 클릭하면 탭으로 열립니다.** 같은 메뉴를 다시 누르면 새 탭을 또 만들지 않고 **이미 열린 탭으로 이동**합니다.
|
||||||
|
- **탭을 전환해도 작업 내용이 유지됩니다.** A 화면에 무언가 입력하다가 B 화면을 잠깐 보고 와도, A 탭의 입력은 그대로 남아 있습니다.
|
||||||
|
- **탭 ↔ 왼쪽 메뉴 연동:** 탭을 전환하면 왼쪽 사이드바의 강조 위치도 그 탭의 메뉴로 **자동으로 따라갑니다.**
|
||||||
|
- 탭이 많아지면 가로로 스크롤되며, **최대 12개**까지 열 수 있습니다. 12개를 넘기면 가장 오래된 탭이 자동으로 닫힙니다.
|
||||||
|
|
||||||
|
### 탭의 버튼
|
||||||
|
|
||||||
|
| 버튼 | 동작 |
|
||||||
|
|---|---|
|
||||||
|
| **↻** (탭 위) | 그 **탭만** 새로고침합니다. 다른 탭은 그대로 둡니다. |
|
||||||
|
| **×** (탭 위) | 그 탭을 닫습니다. |
|
||||||
|
| 탭을 **가운데(휠) 클릭** | 마우스 휠을 누르면 그 탭이 닫힙니다(브라우저와 동일). |
|
||||||
|
| 탭에 **마우스를 올리면** | 이름이 길어 잘렸을 때 **전체 제목**이 말풍선으로 보입니다. |
|
||||||
|
|
||||||
|
### 탭이 유지되는 범위
|
||||||
|
|
||||||
|
- **브라우저를 새로고침**하거나 **관리자 페이지에 갔다가 돌아와도** 열어 두었던 탭이 **다시 복원**됩니다.
|
||||||
|
- 단, **브라우저 탭(창)을 완전히 닫으면** 작업공간은 초기화됩니다. (이 유지는 "이번 접속 동안"만 적용됩니다.)
|
||||||
|
- **다른 아이디로 로그인하면** 이전 사용자의 탭은 복원되지 않고 **기본 화면으로 초기화**됩니다. (계정별로 분리됩니다.)
|
||||||
|
- 복원되는 것은 **열려 있던 화면 목록**입니다. 관리자 페이지를 거치는 등 작업공간을 완전히 벗어났던 경우, 각 화면은 새로 불러와지므로 **입력 중이던 폼 내용까지 그대로 살아나지는 않습니다.**
|
||||||
|
|
||||||
|
## 3. 분할 보기 (여러 화면 한눈에)
|
||||||
|
|
||||||
|
여러 화면을 **동시에 펼쳐 놓고** 비교하거나 함께 작업할 수 있습니다. 탭바 오른쪽의 **분할 버튼**으로 화면을 나눕니다.
|
||||||
|
|
||||||
|
| 버튼 | 모양 | 설명 |
|
||||||
|
|---|---|---|
|
||||||
|
| **1분할** | □ | 한 화면만 크게 (기본) |
|
||||||
|
| **2분할 (좌우)** | ◫ | 화면을 왼쪽/오른쪽 두 칸으로 |
|
||||||
|
| **2분할 (상하)** | ⬓ | 화면을 위/아래 두 칸으로 |
|
||||||
|
| **4분할** | ⊞ | 2×2 네 칸으로 |
|
||||||
|
|
||||||
|
### 칸에 화면 배치하기
|
||||||
|
|
||||||
|
- 분할하면 열어 둔 화면들이 칸에 자동으로 채워집니다. 빈 칸에는 안내 문구가 표시됩니다.
|
||||||
|
- **칸을 클릭하면 그 칸이 "선택"**(파란 테두리)됩니다. 이 상태에서 **위 탭바의 탭을 클릭**하면 그 화면이 **선택된 칸**에 들어갑니다.
|
||||||
|
- 각 칸 위의 **헤더**에는 화면 이름과 함께 **↻(이 칸 새로고침)·×(이 칸 비우기)** 버튼이 있습니다.
|
||||||
|
|
||||||
|
### 칸 크기 조절
|
||||||
|
|
||||||
|
- 칸 사이의 **구분선에 마우스를 올리면 ↔/↕ 커서**가 나타납니다. **드래그**하면 칸 크기(비율)를 자유롭게 조절할 수 있습니다.
|
||||||
|
- 구분선을 **더블클릭**하면 **50:50으로 초기화**됩니다.
|
||||||
|
- 조절한 분할 모양·크기도 새로고침·관리자 왕복 후 **그대로 복원**됩니다.
|
||||||
|
|
||||||
|
> 분할 상태에서도 각 화면의 작업 내용은 그대로 유지됩니다. 마음껏 나눴다 합쳤다 해도 입력하던 내용이 사라지지 않습니다.
|
||||||
|
|
||||||
|
## 4. 키보드 단축키
|
||||||
|
|
||||||
|
자주 쓰는 동작은 키보드로 더 빠르게 할 수 있습니다. 브라우저 기본 단축키와 겹치지 않도록 **Alt 키**를 함께 누르는 방식입니다.
|
||||||
|
|
||||||
|
동작은 **현재 선택된 칸**을 기준으로 적용됩니다(1분할이면 그 한 화면).
|
||||||
|
|
||||||
|
| 단축키 | 동작 |
|
||||||
|
|---|---|
|
||||||
|
| **Alt + 1 ~ 9** | **n번째 탭**을 선택된 칸에 표시 |
|
||||||
|
| **Alt + W** | 선택된 칸의 **탭 닫기** |
|
||||||
|
| **Alt + ]** | 선택된 칸을 **다음 탭**으로 |
|
||||||
|
| **Alt + [** | 선택된 칸을 **이전 탭**으로 |
|
||||||
|
|
||||||
|
> macOS 에서도 동일하게 **Option(⌥)** 키가 Alt 역할을 합니다 (예: ⌥ + 1).
|
||||||
|
>
|
||||||
|
> 참고: `Ctrl/⌘ + W`, `Ctrl/⌘ + 숫자`, `Ctrl + Tab` 은 **브라우저 자체가 먼저 가로채기** 때문에 이 시스템에서 다른 용도로 바꿀 수 없어, 위와 같이 Alt 조합을 사용합니다.
|
||||||
|
|
||||||
|
## 5. 그 밖의 이동
|
||||||
|
|
||||||
|
- **관리자** 버튼(헤더 오른쪽, 관리자 권한일 때) — 메뉴·코드·판매소 등 **관리자 설정 화면**으로 이동합니다. 갔다가 워크스페이스로 돌아오면 열어 두었던 탭이 복원됩니다.
|
||||||
|
- **지자체 선택**(왼쪽 사이드바 아래) — 슈퍼 관리자가 **작업할 지자체를 바꿀 때** 사용합니다.
|
||||||
|
- **로그아웃**(헤더 오른쪽) — 시스템에서 나갑니다.
|
||||||
|
|
||||||
|
## 6. 도움말 보는 법
|
||||||
|
|
||||||
|
- 각 작업 화면의 **"이 화면 설명"(❓) 버튼** — 지금 보고 있는 화면에 해당하는 매뉴얼이 새 탭으로 열립니다.
|
||||||
|
- 이 매뉴얼 왼쪽 위 **검색창** — 모든 매뉴얼 페이지에서 단어를 찾아, 결과를 누르면 해당 페이지의 그 단어 위치로 이동해 **노란색으로 표시**해 줍니다.
|
||||||
@@ -1,41 +1,80 @@
|
|||||||
# 발주 · 입고
|
# 발주 · 입고
|
||||||
|
|
||||||
제작업체에 봉투를 주문(발주)하고, 도착한 물량을 시스템에 등록(입고)하는 단계입니다. **지자체 관리자** 이상이 사용합니다.
|
봉투를 제작업체에 **주문(발주)** 하고, 도착한 봉투를 창고에 **들여놓는(입고)** 단계입니다.
|
||||||
|
|
||||||
## 발주
|
---
|
||||||
|
|
||||||
### 발주 등록
|
## 발주 등록 · *발주 입고 관리 › 발주 등록*
|
||||||
|
|
||||||
**발주 입고 관리 › 발주 등록**
|
봉투를 **얼마나 주문할지** 입력해 발주서를 만드는 화면입니다. 저장하면 추적용 **LOT 번호**가 자동으로 붙습니다.
|
||||||
|
|
||||||
1. 봉투 **품목**(종류·용량)과 **수량**, 납품 관련 정보를 입력합니다.
|
**이 화면의 용어**
|
||||||
2. 박스/낱장 수량과 금액·총계가 자동으로 계산됩니다.
|
- **발주가능봉투**: 조달청(나라장터)에 등록되어 주문할 수 있는 봉투 종류.
|
||||||
3. 저장하면 발주 건이 생성되고, 추적용 **LOT 번호**가 자동 부여됩니다.
|
- **입고처**: 들어온 봉투를 받을 창고/장소.
|
||||||
|
- **조달수수료**: 발주 금액에 붙는 수수료율(%).
|
||||||
|
- **Box당 팩 / 팩당 낱장 / 1박스 총 낱장**: 포장 환산 정보(참고용 표).
|
||||||
|
|
||||||
> 발주 내용은 무결성 보호를 위해 버전·해시로 관리됩니다. 수정(재발주) 시 기존 LOT는 유지됩니다.
|
**입력 항목**: 발주월, 발주일, 협회, 제작업체, 입고처, **봉투 품목별 수량(박스 단위)**.
|
||||||
|
|
||||||
### 발주 변경 · 현황
|
**버튼**: `발주`(저장) · `변경 저장`(수정 시) · `취소`.
|
||||||
|
|
||||||
| 작업 | 메뉴 | 설명 |
|
**작업 순서**
|
||||||
|---|---|---|
|
1. 발주월·발주일, 제작업체·입고처를 고릅니다.
|
||||||
| 발주 변경 | 발주 변경 | 기존 발주 수정·재발주 |
|
2. 아래 봉투 종류별로 **주문할 박스 수량**을 입력합니다(금액·총 낱장은 자동 계산).
|
||||||
| 발주 현황 | 발주 현황 | 발주 목록을 기간·상태로 조회, 엑셀 내보내기 |
|
3. `발주` 를 누르면 발주가 생성되고 LOT 번호가 부여됩니다.
|
||||||
| 발주 상세 | (현황에서 행 선택) | 개별 발주 상세 확인, 취소 처리 |
|
|
||||||
|
|
||||||
## 입고
|
---
|
||||||
|
|
||||||
발주분이 실제 도착하면 입고로 등록합니다. 입고 시 **박스·팩·낱장 바코드**가 생성되어 재고에 반영됩니다.
|
## 발주 현황 · *발주 입고 관리 › 발주 현황*
|
||||||
|
|
||||||
| 방식 | 메뉴 | 언제 사용 |
|
낸 발주를 **조회·관리**하는 목록 화면입니다.
|
||||||
|---|---|---|
|
|
||||||
| 스캐너 입고 | 발주 입고[스캐너] | 바코드를 스캔하며 입고 |
|
|
||||||
| 일괄 입고 | 일괄입고 | 다량을 한 번에 입고 |
|
|
||||||
| 입고 현황 | 입고 현황 | 입고 기록 조회, 엑셀 내보내기 |
|
|
||||||
|
|
||||||
### 입고 처리 순서
|
**필터**: 발주기간(월~월) · 제작업체 · 품명 · **입고구분(전체/입고완료/미입고)**.
|
||||||
|
|
||||||
1. 입고할 발주 건(LOT)을 선택합니다.
|
**표 컬럼**: 발주일자 · 제작업체 · 품명 · **발주수량 · 입고수량 · 미입고수량** · 발주금액 · 입고처 · 비고.
|
||||||
2. 도착 수량(박스/낱장)을 확인·입력합니다.
|
- **미입고수량** = 발주했지만 아직 안 들어온 수량.
|
||||||
3. 저장하면 재고가 증가하고, 단위별 바코드가 부여됩니다.
|
|
||||||
|
|
||||||
> 입고가 끝나면 **재고 관리**에서 수량이 정상 반영됐는지 확인하세요.
|
**버튼**: `엑셀저장` · `인쇄` · `발주등록`. (목록에서 개별 발주의 상세·취소 가능)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 입고 처리 · *발주 입고 관리 › 입고[스캐너] / 일괄입고*
|
||||||
|
|
||||||
|
도착한 봉투를 시스템에 **들여놓는** 화면입니다. 입고하면 박스·팩·낱장 **바코드가 생성**되고 재고가 늘어납니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **인계자(제작업체)** / **인수자(대행소)**: 봉투를 넘기는 쪽 / 받는 쪽.
|
||||||
|
- **입고량(매)**: 실제로 들어온 **낱장 수**("매" = 장).
|
||||||
|
- **LOT NO / 발주 NO**: 어떤 발주분인지 식별하는 번호.
|
||||||
|
|
||||||
|
**입고[스캐너]**: 발주 건을 보고 행마다 **입고량(매)** 을 직접 입력 → `입고처리`.
|
||||||
|
**일괄입고**: 여러 발주 건을 **체크박스로 골라** 한 번에 입고. 미입고량은 파란색으로 강조됩니다.
|
||||||
|
|
||||||
|
**작업 순서**
|
||||||
|
1. 제작업체·인수자·인계자·입고일을 고릅니다.
|
||||||
|
2. 들어온 만큼 **입고량(매)** 을 입력(또는 일괄 선택)합니다.
|
||||||
|
3. `입고처리` → 재고 반영. **재고 관리**에서 수량이 늘었는지 확인하세요.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 입고 현황 · *발주 입고 관리 › 입고 현황*
|
||||||
|
|
||||||
|
입고 기록을 기간별로 조회합니다.
|
||||||
|
|
||||||
|
**필터**: 입고기간 · 제작업체 · 품명 · 입고구분(전체/완료/미완료).
|
||||||
|
**표 컬럼**: 입고일자 · 품명 · 입고수량 · 발주일자 · 발주수량 · 발주번호 · 제작업체 · **입고여부(완료/미완료)** · 입고처 · 비고.
|
||||||
|
**버튼**: `엑셀저장` · `인쇄`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## LOT-No 디스켓 불출 · *발주 입고 관리 › LOT-No 디스켓 불출*
|
||||||
|
|
||||||
|
발주별 **LOT 번호 시드(seed) 데이터를 파일로 생성**하는 화면입니다. (바코드·LOT 부여에 쓰는 디스켓/파일 형태 데이터)
|
||||||
|
|
||||||
|
**필터**: 시작월 · 종료월 · LOT-No · 제작업체.
|
||||||
|
**순서**
|
||||||
|
1. 기간·조건으로 발주 목록을 조회합니다.
|
||||||
|
2. 해당 발주 행의 **`seed 생성`** 을 눌러 그 발주의 LOT 시드 파일을 만듭니다.
|
||||||
|
|
||||||
|
**표 컬럼**: 발주일자 · LOT-No · 품명 · 수량 · 제작업체 · (생성 버튼).
|
||||||
|
> 정상·취소 발주가 함께 조회되며, 시드 생성은 발주 단위로 동작합니다.
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
# 재고 · 실사
|
# 재고 · 실사
|
||||||
|
|
||||||
현재 보유 봉투 수량을 확인하고, 정기적으로 실사를 통해 실제 수량과 맞추는 단계입니다.
|
지금 창고에 **남은 봉투**를 확인하고, 컴퓨터 기록과 **실제 수량을 맞추는(실사)** 단계입니다.
|
||||||
|
|
||||||
## 재고 현황
|
---
|
||||||
|
|
||||||
**재고 관리 › 재고 현황**
|
## 재고 현황 · *재고 관리 › 재고 현황*
|
||||||
|
|
||||||
- 품목별·상태별 현재 재고를 조회합니다.
|
품목별로 **현재 남은 수량**을 봅니다.
|
||||||
- 지자체·봉투 종류 등으로 필터링할 수 있습니다.
|
|
||||||
- **엑셀 내보내기**로 목록을 저장할 수 있습니다.
|
|
||||||
|
|
||||||
| 항목 | 설명 |
|
**이 화면의 용어**
|
||||||
|---|---|
|
- **시군구재고**: 지자체(시·군·구) **창고**에 있는 재고.
|
||||||
| 품목 | 봉투 종류·용량 |
|
- **대행소재고**: 배송 **대행소**가 보유 중인 재고.
|
||||||
| 재고 수량 | 입고 − (판매 + 불출 + 파기) |
|
- **계**: 둘을 합친 총 재고.
|
||||||
| 상태 | 재고/판매 등 단위별 상태 |
|
|
||||||
|
|
||||||
## 실사 (재고 조사)
|
**필터**: 기준일자 · 대행소(전체/선택).
|
||||||
|
**표 컬럼**: 품목구분 · 봉투/스티커종류 · **계 · 시군구재고 · 대행소재고**.
|
||||||
|
**버튼**: `조회` · `엑셀저장` · `인쇄` · `실사선별조회`.
|
||||||
|
|
||||||
장부상 재고와 실제 창고 수량을 맞추는 작업입니다. 다음 순서로 진행합니다.
|
---
|
||||||
|
|
||||||
```
|
## 실사 (재고 확인) · *재고 관리 › 실사 선별 조회 / 실사 선별 관리*
|
||||||
실사 선별 ─→ 실사 등록(작업) ─→ 적용
|
|
||||||
```
|
|
||||||
|
|
||||||
| 단계 | 메뉴 | 하는 일 |
|
**실사**는 시스템에 적힌 수량(전산재고)과 **창고에서 직접 센 수량(실사재고)** 을 비교해 차이를 바로잡는 작업입니다.
|
||||||
|---|---|---|
|
|
||||||
| ① 선별 | 실사 선별 조회 | 실사 대상 범위를 골라 선별 |
|
|
||||||
| ② 작업 | 실사 선별 관리 | 실제 수량을 입력·기록 |
|
|
||||||
| ③ 상세·적용 | 실사 상세 | 실사 결과를 확인하고 재고에 **적용** |
|
|
||||||
|
|
||||||
### 실사 진행 순서
|
**이 화면의 용어**
|
||||||
|
- **전산재고**: 시스템 기록상 수량.
|
||||||
|
- **실사재고**: 현장에서 직접 센 수량(직접 입력).
|
||||||
|
- **차이**: 실사 − 전산. (양수 = 더 많음, 음수 = 부족)
|
||||||
|
- **박스 / 팩 / 낱장**: 셀 단위. 팩코드·낱장(시작~끝) 구간으로 표시됩니다.
|
||||||
|
|
||||||
1. **선별**: 실사할 품목·구간을 선택해 실사 건을 만듭니다.
|
**작업 순서**
|
||||||
2. **등록**: 실제 센 수량을 입력합니다. 장부 수량과의 차이가 표시됩니다.
|
1. **실사 선별**: 실사할 기간·품목을 골라 대상 목록을 만듭니다(팝업에서 작업일자·품목 선택).
|
||||||
3. **적용**: 검토 후 적용하면 차이가 재고에 반영됩니다.
|
2. **실사재고 입력**: 팩/박스별로 실제 센 수량을 입력하면 **차이**가 자동 표시됩니다.
|
||||||
|
3. **저장(적용)**: 검토 후 적용하면 차이가 재고에 반영됩니다.
|
||||||
|
|
||||||
> 적용 전까지는 재고에 영향을 주지 않으므로, 입력 도중 중단해도 안전합니다.
|
**주요 표 컬럼**: 팩코드 · 포장량 · 재고(전산) · **실사재고(입력)** · 차이 · 낱장(시작) · 낱장(끝).
|
||||||
|
|
||||||
|
> 적용 전까지는 재고에 영향을 주지 않으므로, 세는 도중 중단해도 안전합니다.
|
||||||
|
|||||||
@@ -1,46 +1,83 @@
|
|||||||
# 판매 · 불출
|
# 판매 · 반품 · 불출 · 주문
|
||||||
|
|
||||||
재고를 외부로 내보내는 두 가지 경로입니다. **판매**는 지정판매소 대상 유상 거래, **불출**은 무료 대상자에 대한 무상 지급입니다.
|
재고를 외부로 내보내는 단계입니다. **판매**(가게에 유상 공급)·**불출**(무료 배부)·**주문 접수**(전화 등).
|
||||||
|
|
||||||
## 판매 (지정판매소)
|
---
|
||||||
|
|
||||||
**판매 관리** 메뉴에서 처리합니다.
|
## 지정판매소 판매 · *판매 관리 › 지정 판매소 판매*
|
||||||
|
|
||||||
| 작업 | 메뉴 | 설명 |
|
동네 가게(지정판매소)에 봉투를 **판매**하고, 어떤 봉투를 줬는지 **바코드로 기록**합니다.
|
||||||
|---|---|---|
|
|
||||||
| 판매 등록 | 지정 판매소 판매 | 판매소를 선택해 판매 거래 기록 |
|
|
||||||
| 스캔 판매 | 지정 판매소 판매[스캔] | 바코드를 스캔하며 판매(판매소 현장용) |
|
|
||||||
| 판매 취소 | 지정 판매소 판매 취소 | 기존 판매 거래 취소 |
|
|
||||||
| 반품 | 지정 판매소 반품 | 판매분 반품 등록 |
|
|
||||||
| 반품 취소 | 지정 판매소 반품 취소 | 반품 취소 처리 |
|
|
||||||
|
|
||||||
### 판매 등록 순서
|
**이 화면의 용어**
|
||||||
|
- **판매소코드/상호/대표자**: 판매하는 가게 정보(검색해서 선택).
|
||||||
|
- **봉투코드(스캔)**: 내보내는 봉투의 바코드. 스캔/입력하면 어떤 LOT·포장단위인지 식별됩니다.
|
||||||
|
- **포장단위(Box/Pack/Sheet)**: 박스/팩/낱장.
|
||||||
|
|
||||||
1. 판매할 **지정판매소**를 선택합니다.
|
**입력/순서**
|
||||||
2. 봉투 **품목·수량**을 입력(또는 바코드 스캔)합니다.
|
1. 위에서 **판매소를 검색·선택**합니다(코드·상호·전화·주소로 검색).
|
||||||
3. 저장하면 재고가 감소하고 판매 내역이 기록됩니다.
|
2. 판매할 봉투 종류·수량을 고르거나 **봉투코드를 스캔**합니다.
|
||||||
|
3. `판매저장` → 재고가 줄고 판매 내역이 기록됩니다.
|
||||||
|
|
||||||
### 전화 접수(주문)
|
**표 컬럼**: (판매내역) 봉투종류·접수량·판매량·단가·판매금액 / (상세) 봉투종류·봉투코드·수량·포장단위.
|
||||||
|
|
||||||
| 작업 | 메뉴 |
|
---
|
||||||
|---|---|
|
|
||||||
| 전화 접수(신규) | 전화 접수 |
|
|
||||||
| 전화 접수 관리 | 전화 접수 관리(수정·취소) |
|
|
||||||
|
|
||||||
## 불출 (무료 대상자)
|
## 지정 판매소 반품 / 판매·반품 취소 · *판매 관리*
|
||||||
|
|
||||||
**불출 관리** 메뉴에서 무료 대상자에게 봉투를 무상 지급합니다.
|
- **반품**: 가게가 안 팔린 봉투를 **되돌려 받는** 것. 스캔/선택 후 저장하면 재고가 다시 늘어납니다.
|
||||||
|
- **판매 취소 / 반품 취소**: 잘못 처리한 건을 되돌립니다.
|
||||||
|
|
||||||
| 작업 | 메뉴 | 설명 |
|
---
|
||||||
|---|---|---|
|
|
||||||
| 불출 처리 | 무료용 불출 처리 | 무료 배분 등록(재고 감소) |
|
|
||||||
| 불출 취소 | 무료용 불출 취소 | 불출 취소(재고 복원) |
|
|
||||||
| 불출 현황 | 무료 불출 현황 | 기간별 불출 기록 조회 |
|
|
||||||
|
|
||||||
### 불출 처리 순서
|
## 판매/반품 현황 · *판매 관리* 또는 *판매 현황*
|
||||||
|
|
||||||
1. 무료 **대상처**와 봉투 **품목·수량**을 선택합니다.
|
기간별 판매·반품 내역을 봅니다.
|
||||||
2. 저장하면 재고가 감소하고 불출 내역이 기록됩니다.
|
|
||||||
3. 잘못 처리한 경우 **무료용 불출 취소**로 되돌리면 재고가 복원됩니다.
|
|
||||||
|
|
||||||
> 판매·불출 모두 재고를 감소시키므로, 처리 후 **재고 현황**에서 반영 결과를 확인하세요.
|
**필터**: 조회기간.
|
||||||
|
**표 컬럼**: 판매소 · 판매일 · 봉투코드 · 봉투명 · 수량 · 단가 · 금액 · **구분(판매/반품/취소)**.
|
||||||
|
**버튼**: `조회` · `초기화` · `주문등록` · `판매등록`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 전화 주문 접수 · *판매 관리 › 전화 접수*
|
||||||
|
|
||||||
|
가게가 전화로 주문한 내용을 **접수**합니다(실제 출고/판매는 이후 단계).
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **접수일 / 배달일**: 주문 받은 날 / 가져다줄 날(보통 다음날 자동).
|
||||||
|
- **결제구분**: 이체 / 가상계좌.
|
||||||
|
- **1박스·1팩(낱장/판매가)**: 포장별 수량·가격 참고값.
|
||||||
|
|
||||||
|
**입력/순서**
|
||||||
|
1. **판매소 검색·선택**(코드·사업자번호·상호·전화·주소).
|
||||||
|
2. 결제구분을 고르고, 봉투 **품목·주문수량·포장단위(박스/팩/낱장)** 를 입력(`행추가`로 여러 품목).
|
||||||
|
3. `등록` → 주문 접수 완료.
|
||||||
|
|
||||||
|
> **주문 접수(간편)**: 판매소·배달일·결제방법과 봉투별 수량만 입력하는 간단 버전.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 무료용 불출 처리 · *불출 관리 › 무료용 불출 처리*
|
||||||
|
|
||||||
|
무료 대상자(동사무소 등)에게 봉투를 **무상으로 내보내는(불출)** 화면입니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **불출구분(무료용/공공용)**: 주민 무료 배부용 / 공공기관용.
|
||||||
|
- **불출처**: 봉투를 최종 전달할 곳(동사무소·구청·기타).
|
||||||
|
- **재고(낱장) / 환산(낱장)**: 현재 재고 / 입력 수량을 낱장으로 환산한 값.
|
||||||
|
|
||||||
|
**입력/순서**
|
||||||
|
1. 불출년도·분기, 불출구분, 불출일, **불출처(동)** 를 고릅니다.
|
||||||
|
2. **바코드 스캔** 또는 `행추가`로 봉투 종류·수량·포장단위를 입력합니다.
|
||||||
|
3. `저장` → 재고가 줄고 불출 내역이 기록됩니다.
|
||||||
|
|
||||||
|
**표 컬럼**: 봉투코드 · 봉투종류 · 수량 · 포장 · 재고(낱장) · 환산(낱장).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 무료용 불출 취소 · *불출 관리 › 무료용 불출 취소*
|
||||||
|
|
||||||
|
잘못 불출한 건을 **되돌려 재고를 복원**합니다.
|
||||||
|
|
||||||
|
**필터**: 불출월 · 불출처 · 불출구분 · 봉투종류.
|
||||||
|
**순서**: 불출 목록에서 건을 고르고, 품목 내역에서 **취소할 항목을 체크 → 취소수량 입력** 후 처리.
|
||||||
|
|||||||
@@ -1,42 +1,104 @@
|
|||||||
# 판매현황 · 수불 · 통계
|
# 현황 · 리포트 · 수불
|
||||||
|
|
||||||
판매·재고 흐름을 집계해 보여주는 조회·리포트 화면 모음입니다. 대부분 **기간을 지정해 조회**하고 인쇄·엑셀로 내보낼 수 있습니다.
|
입고·판매·불출 기록을 **모아 보여주는** 조회 화면들입니다. 대부분 **기간을 지정해 조회**하고 `엑셀저장`·`인쇄`로 내보낼 수 있습니다.
|
||||||
|
|
||||||
## 판매 현황
|
---
|
||||||
|
|
||||||
| 메뉴 | 내용 |
|
## 기간별 봉투 수불 현황 · *봉투 수불 관리 › 기간별 봉투 수불 현황*
|
||||||
|---|---|
|
|
||||||
| 지정 판매소 일/기간 판매대장 | 판매소별 일자·기간 거래 장부 |
|
|
||||||
| 일계표 | 하루 전체 판매 요약(일계 + 월 누계) |
|
|
||||||
| 기간별 판매현황 | 지정 기간의 판매 집계(일집계/기간집계) |
|
|
||||||
| 년 판매 현황 | 연간 판매 통계(월별/분기별) |
|
|
||||||
| 지정 판매소별 판매현황 | 판매소별 수량·금액 비교 |
|
|
||||||
| 홈텍스 처리 | 세금계산서용 데이터(엑셀) 생성 |
|
|
||||||
|
|
||||||
## 봉투 수불 관리
|
**수불(受拂)** = 들어오고 나간 움직임. 기간 동안 봉투가 얼마나 들어오고(입고) 나갔는지(판매·불출 등)를 한 표로 봅니다.
|
||||||
|
|
||||||
입고·판매·불출·반품·파기를 한데 모아 **수불(수입·불출)** 흐름을 봅니다.
|
**이 화면의 용어**
|
||||||
|
- **전일재고**: 조회 시작일 **전날**의 재고.
|
||||||
|
- **입고**: 입고량 + 반품 + 기타.
|
||||||
|
- **출고**: 판매 + 무료불출 + 반품 + 기타.
|
||||||
|
- **잔량**: 전일재고 + 입고 − 출고.
|
||||||
|
|
||||||
| 메뉴 | 내용 |
|
**필터**: 조회기간 · 봉투형식 · 봉투구분 · 대행소 · **집계방식(일자별/기간별)**.
|
||||||
|---|---|
|
**표 컬럼**: 일자 · 품목 · 전일재고 · 입고(소계) · 출고(소계) · 잔량.
|
||||||
| 기간별 봉투 수불 현황 | 기간 내 재고/입고/판매/불출 종합(엑셀 가능) |
|
|
||||||
| 기타 입출고 | 손상·기증·폐기 등 기타 입출고 등록·조회 |
|
|
||||||
| 반품/파기 현황 | 반품 및 파기 내역 |
|
|
||||||
| LOT 수불 조회 | 봉투번호(바코드)·LOT 단위 이력 추적 |
|
|
||||||
| 쓰레기 봉투 수급 계획 | 공급·수요 계획 |
|
|
||||||
|
|
||||||
### LOT 수불 조회 사용법
|
---
|
||||||
|
|
||||||
1. **봉투번호(바코드)** 또는 LOT 번호를 입력합니다.
|
## 일계표 · *판매 현황 › 일계표*
|
||||||
2. 조회하면 해당 단위의 입고·판매·반품 이력이 표시됩니다.
|
|
||||||
3. 입력할 코드 형식이 헷갈리면 **도움말 › 번호알기**로 먼저 확인하세요.
|
|
||||||
|
|
||||||
## 통계 분석
|
하루치 판매를 **일계(당일)** 와 **누계(월 누적)** 로 집계합니다.
|
||||||
|
|
||||||
| 메뉴 | 내용 |
|
**용어**: **일계** = 그날 합계, **누계(월)** = 월초~당일 누적, **징수액** = 판매금액 − 수수료.
|
||||||
|---|---|
|
**필터**: 조회일자 · 대행소 · 구분.
|
||||||
| 전년 대비 판매 분석 | 작년 동기 대비 비교(차트) |
|
**표**: 봉투종류별 — 일계(수량·판매금액·수수료·징수액) / 누계(월) 동일 항목.
|
||||||
| 월별 판매 추이 분석 | 월별 추이 시각화 |
|
|
||||||
| 계절별 판매 추이 분석 | 계절 패턴 분석 |
|
|
||||||
|
|
||||||
> 리포트 화면은 조회 조건(기간·품목·판매소)을 바꿔가며 반복 조회할 수 있습니다. 결과는 인쇄 버튼 또는 엑셀 내보내기로 저장하세요.
|
---
|
||||||
|
|
||||||
|
## 지정 판매소별 판매현황 · *판매 현황 › 판매소별 판매현황*
|
||||||
|
|
||||||
|
판매소마다 **얼마나 팔았는지**(수량 또는 금액)를 월별로 비교합니다.
|
||||||
|
|
||||||
|
**필터**: 기간 · 읍면동 · 봉투종류 · **지표(수량/금액)**.
|
||||||
|
**표**: 판매소명 · 판매소코드 · 월별 값 · 합계.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## LOT 수불 조회 · *봉투 수불 관리 › LOT 수불 조회*
|
||||||
|
|
||||||
|
특정 **봉투번호(바코드)** 또는 **LOT**의 입고·판매·반품 **이력**을 추적합니다.
|
||||||
|
|
||||||
|
**입력**: 봉투번호(바코드/팩코드/박스코드/낱장코드).
|
||||||
|
**표**: 일자 · 품목 · 포장단위 · **구분(입고/판매/반품)** · 수량 · LOT번호.
|
||||||
|
> 입력할 코드 형식이 헷갈리면 좌측 **[봉투·LOT·바코드 코드체계]** 또는 도움말의 **번호알기**를 참고하세요.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 반품/파기 현황 · *봉투 수불 관리 › 반품/파기 현황*
|
||||||
|
|
||||||
|
**용어**: **반품** = 판매소가 되돌린 봉투(출고 탭) / **파기** = 반품분의 폐기(입고 탭).
|
||||||
|
**필터**: 조회기간 · 입출고구분.
|
||||||
|
**표**: 일자 · 판매소명 · 봉투종류 · 수량 · 구분(반품/파기).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 기타 입출고 · *봉투 수불 관리 › 기타 입출고*
|
||||||
|
|
||||||
|
정상적인 **발주입고 · 판매 · 불출** 흐름에 속하지 않는 **그 밖의 재고 증감**을 수동으로 기록하는 화면입니다.
|
||||||
|
(예: 분실·파손, 실사 차이 보정, 행정상 조정, 타 부서 이관 등)
|
||||||
|
|
||||||
|
**구분**
|
||||||
|
- **입고(in)**: 재고가 **늘어나는** 조정 (예: 누락분 추가, 반입).
|
||||||
|
- **출고(out)**: 재고가 **줄어드는** 조정 (예: 파손·분실 차감).
|
||||||
|
|
||||||
|
**등록 입력값** *(모두 필수)*
|
||||||
|
- **구분**: 입고 / 출고
|
||||||
|
- **봉투**: 봉투코드(봉투구분으로 먼저 좁혀서 선택)
|
||||||
|
- **수량**: 1 이상
|
||||||
|
- **일자**: 처리 기준일
|
||||||
|
- **사유**: 왜 조정하는지(필수, 최대 200자) — 추후 추적·감사를 위해 구체적으로 적습니다.
|
||||||
|
|
||||||
|
**조회·표시**
|
||||||
|
- **수불년월 · 구분**으로 묶여 좌측 **목록(마스터)** → 우측 **상세 내역**으로 표시됩니다.
|
||||||
|
- 봉투구분으로 필터링할 수 있습니다.
|
||||||
|
|
||||||
|
**반영**: 등록한 입고/출고 수량은 **재고와 봉투 수불 집계에 그대로 반영**되므로, 정확한 사유와 수량으로 신중히 입력하세요. 잘못 등록한 행은 삭제로 정정합니다.
|
||||||
|
|
||||||
|
> 정상 업무(발주·판매·불출)는 각 전용 화면에서 처리하고, **여기서는 그 흐름으로 설명되지 않는 예외적 증감만** 기록합니다.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 쓰레기봉투 수급 계획 · *봉투 수불 관리 › 쓰레기봉투 수급 계획*
|
||||||
|
|
||||||
|
봉투 품목별로 **현재고가 며칠 버티는지, 언제·얼마나 발주할지**를 보여 주는 수급·발주 계획표입니다. 처음 들어가면 기본 조건으로 자동 조회됩니다.
|
||||||
|
|
||||||
|
**필터**
|
||||||
|
- **기준일**: 계산 기준 날짜.
|
||||||
|
- **제작기일(리드타임, 일)**: 발주 후 입고까지 걸리는 기간(기본 40일). 재고 소진 전에 미리 발주하려는 여유.
|
||||||
|
- **재고/판매 범위**: 기존(수기·바코드 미등록) / 바코드(등록) / 전체.
|
||||||
|
|
||||||
|
**표 구성(3그룹)**: ① 최근 발주 내역 ② 현재고 및 예상 판매일수 ③ 추가발주 예정내역.
|
||||||
|
**핵심 계산**: **발주예정일 = 기준일 + 소진일수 − 보유일수**. 발주예정일이 지난(긴급) 품목은 **빨간색**으로 표시되고, 그 시점에 맞춘 **추가 발주 제안 장수**가 함께 나옵니다.
|
||||||
|
> 발주 타이밍을 놓치지 않도록 돕는 화면입니다. 빨간 품목부터 발주를 검토하세요.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 그 밖의 현황
|
||||||
|
- **기간별 판매현황 / 년 판매 현황**: 기간·연도 단위 판매 집계.
|
||||||
|
- **지정 판매소 (일/기간) 판매대장**: 판매소별 거래 장부.
|
||||||
|
- **홈택스 처리**: 세금계산서용 데이터(엑셀) 생성.
|
||||||
|
- **통계 분석(전년대비·월별·계절 추이)**: 판매 추세를 그래프로.
|
||||||
|
|||||||
74
app/Docs/manual/60_basic_info.md
Normal file
74
app/Docs/manual/60_basic_info.md
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
# 기본정보 (판매소 · 단가 · 코드)
|
||||||
|
|
||||||
|
업무의 **기준이 되는 정보**를 관리하는 화면들입니다. 발주·판매가 이 값을 사용하므로 먼저 정확히 등록되어 있어야 합니다.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 지정판매소 관리 · *기본정보관리 › 지정 판매소 관리/조회*
|
||||||
|
|
||||||
|
봉투를 파는 **가게(지정판매소)** 를 등록·조회합니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **판매소번호**: 가게 고유 번호(지역코드 + 일련번호).
|
||||||
|
- **도로명주소 / 지번주소**: 두 가지 주소 체계(지도 표시·검색에 사용).
|
||||||
|
- **은행/계좌, 가상계좌**: 봉투 대금 결제용 계좌.
|
||||||
|
|
||||||
|
**목록 표 컬럼**: 번호 · 판매소번호 · 상호명 · 대표자명 · 지역/읍면동 · 전화번호 · 주소.
|
||||||
|
**상세**: 사업자번호 · 우편번호 · 도로명/지번주소 · 이메일 · 결제 계좌 등.
|
||||||
|
> 목록에서 가게를 고르면 우측에 상세가 표시됩니다. (등록·수정은 관리자)
|
||||||
|
|
||||||
|
**함께 제공되는 화면**
|
||||||
|
- **지정판매소 바코드 발행**: 판매소를 골라 봉투 바코드 라벨을 인쇄용으로 출력합니다.
|
||||||
|
- **구별 신규/취소 명단**: 기간 내 새로 등록되거나 취소된 판매소 명단을 조회·엑셀저장합니다.
|
||||||
|
- **지정판매소 조회(브라우즈)**: 등록된 판매소를 검색·열람만 하는 보기 전용 화면입니다.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 단가 관리 · *기본정보관리 › 단가 관리*
|
||||||
|
|
||||||
|
봉투 **가격**을 기간별로 관리합니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **발주단가**: 제작업체에 주는 가격(살 때).
|
||||||
|
- **도매단가**: 대행소·판매소에 넘기는 도매 가격.
|
||||||
|
- **판매단가**: 최종 소비자 판매가.
|
||||||
|
- **수수료율**: 판매수수료율(%).
|
||||||
|
- **적용시작/종료**: 그 단가가 유효한 기간.
|
||||||
|
|
||||||
|
**필터**: 봉투구분 · 봉투코드 · 조회기간.
|
||||||
|
**표 컬럼**: 봉투코드 · 봉투명 · 발주단가 · 도매단가 · 판매단가 · 수수료율 · 적용시작 · 적용종료 · 상태.
|
||||||
|
> 조회 전용이며, 등록·수정은 `단가관리(CRUD)` 화면에서 합니다(이력 보존).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 포장 단위 관리 · *기본정보관리 › 포장 단위 관리*
|
||||||
|
|
||||||
|
봉투 1박스·1팩에 **몇 장이 들어가는지** 정의합니다. 이 값으로 박스↔낱장이 환산됩니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **박스당 팩수**: 1박스 안의 팩 개수.
|
||||||
|
- **팩당 낱장수**: 1팩 안의 낱장(봉투) 수.
|
||||||
|
- **1박스 총 낱장** = 박스당 팩수 × 팩당 낱장수.
|
||||||
|
|
||||||
|
**표 컬럼**: 봉투코드 · 봉투명 · 박스당팩수 · 팩당낱장수 · 1박스총낱장 · 적용시작/종료 · 상태(사용/만료).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 기본코드 관리 · *기본정보관리 › 기본 코드 관리*
|
||||||
|
|
||||||
|
시스템 곳곳의 **선택 항목(드롭다운)** 값을 관리합니다. 왼쪽에 **코드 종류**, 오른쪽에 그 종류의 **세부코드**가 나옵니다.
|
||||||
|
|
||||||
|
**이 화면의 용어**
|
||||||
|
- **코드 종류**: 분류(예: 봉투구분, 동코드, 결제구분, 불출구분).
|
||||||
|
- **세부코드**: 그 분류의 실제 값(예: 봉투구분 → 봉투/스티커).
|
||||||
|
|
||||||
|
**자주 쓰는 코드 종류**
|
||||||
|
- **봉투구분**(봉투/스티커) · **동코드**(지역 동) · **결제구분**(이체/가상계좌) · **불출구분**(무료용/공공용).
|
||||||
|
|
||||||
|
**표 컬럼**: 코드 · 코드명 · (세부코드 개수) · 상태(사용/미사용) · 작업(수정/삭제 — 관리자).
|
||||||
|
> 등록·수정·삭제는 슈퍼 관리자만 가능합니다. 조회는 누구나 가능합니다.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 그 밖의 기본정보
|
||||||
|
- **판매 대행소 / 담당자 / 업체(제작·협회·회수) / 무료용 대상자 관리**: 각각 거래처·담당자·대상처를 등록·조회하는 목록 화면입니다(등록·수정은 관리자).
|
||||||
54
app/Filters/EmbedRedirectFilter.php
Normal file
54
app/Filters/EmbedRedirectFilter.php
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App\Filters;
|
||||||
|
|
||||||
|
use CodeIgniter\Filters\FilterInterface;
|
||||||
|
use CodeIgniter\HTTP\RequestInterface;
|
||||||
|
use CodeIgniter\HTTP\ResponseInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 워크스페이스 탭(iframe, embed=1) 안에서 발생한 리다이렉트가 embed 파라미터를 잃지 않도록
|
||||||
|
* 응답 Location 헤더에 embed=1 을 유지시킨다.
|
||||||
|
*
|
||||||
|
* 배경: 폼 전송 후 redirect()->to(...) 하면 Location 에 embed 가 빠지고, iframe 안에서
|
||||||
|
* 그 주소로 다시 GET 하면(특히 HTTP 환경에서 Sec-Fetch-Dest 미전송) 전체 셸(헤더·사이드바)이
|
||||||
|
* 한 번 더 렌더되어 "화면 안에 전체 화면이 또" 생긴다. 이를 전역에서 한 번에 방지한다.
|
||||||
|
*/
|
||||||
|
class EmbedRedirectFilter implements FilterInterface
|
||||||
|
{
|
||||||
|
public function before(RequestInterface $request, $arguments = null)
|
||||||
|
{
|
||||||
|
// no-op
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string>|null $arguments
|
||||||
|
*/
|
||||||
|
public function after(RequestInterface $request, ResponseInterface $response, $arguments = null)
|
||||||
|
{
|
||||||
|
// 임베드 요청에서 시작된 리다이렉트만 처리
|
||||||
|
if ($request->getGet('embed') === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = $response->getHeaderLine('Location');
|
||||||
|
if ($location === '') {
|
||||||
|
return; // 리다이렉트 응답이 아님
|
||||||
|
}
|
||||||
|
|
||||||
|
// 이미 embed 파라미터가 있으면 그대로 둔다
|
||||||
|
if (preg_match('/[?&]embed=/', $location) === 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 인증 흐름(로그인/로그아웃/회원가입)은 상위 프레임에서 처리하므로 embed 를 붙이지 않는다
|
||||||
|
if (preg_match('#/(login|logout|register)(/|\?|$)#', $location) === 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sep = strpos($location, '?') !== false ? '&' : '?';
|
||||||
|
$response->setHeader('Location', $location . $sep . 'embed=1');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -936,3 +936,42 @@ if (! function_exists('gov_portal_nav_partial_vars')) {
|
|||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! function_exists('manual_help_url_for_path')) {
|
||||||
|
/**
|
||||||
|
* 현재(또는 주어진) 화면 경로에 대응하는 매뉴얼 URL. 매칭 없으면 ''.
|
||||||
|
* Config\Manual::$screenHelp 의 가장 긴(구체적) 접두를 우선 매칭한다.
|
||||||
|
*/
|
||||||
|
function manual_help_url_for_path(?string $path = null): string
|
||||||
|
{
|
||||||
|
helper('url');
|
||||||
|
$path = strtolower(trim($path ?? current_nav_request_path(), '/'));
|
||||||
|
if ($path === '') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
$map = config(\Config\Manual::class)->screenHelp ?? [];
|
||||||
|
$bestVal = '';
|
||||||
|
$bestLen = -1;
|
||||||
|
foreach ($map as $prefix => $val) {
|
||||||
|
$p = strtolower((string) $prefix);
|
||||||
|
if ($path === $p || str_starts_with($path . '/', $p . '/')) {
|
||||||
|
if (strlen($p) > $bestLen) {
|
||||||
|
$bestLen = strlen($p);
|
||||||
|
$bestVal = (string) $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($bestVal === '') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 값은 "slug" 또는 "slug#소제목힌트" 형식. 힌트가 있으면 ?hl= 로 전달해 해당 소제목으로 스크롤·강조.
|
||||||
|
[$slug, $hint] = array_pad(explode('#', $bestVal, 2), 2, null);
|
||||||
|
$url = base_url('bag/manual/' . $slug);
|
||||||
|
if ($hint !== null && trim($hint) !== '') {
|
||||||
|
$url .= '?hl=' . rawurlencode(trim($hint));
|
||||||
|
}
|
||||||
|
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -58,6 +58,61 @@ class ManualRenderer
|
|||||||
return $this->config->pages[$slug] ?? null;
|
return $this->config->pages[$slug] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 페이지 본문을 일반 텍스트로(검색용). 미존재 시 ''.
|
||||||
|
*/
|
||||||
|
public function plainText(string $slug): string
|
||||||
|
{
|
||||||
|
$html = $this->render($slug);
|
||||||
|
if ($html === null || $html === '') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
$text = html_entity_decode(strip_tags($html), ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||||
|
|
||||||
|
return trim((string) preg_replace('/\s+/u', ' ', $text));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 모든 매뉴얼 페이지 본문에서 질의어를 찾아 결과 반환(일치 많은 순).
|
||||||
|
*
|
||||||
|
* @return list<array{slug:string,title:string,snippet:string,hits:int}>
|
||||||
|
*/
|
||||||
|
public function search(string $q): array
|
||||||
|
{
|
||||||
|
$q = trim($q);
|
||||||
|
if ($q === '' || mb_strlen($q) < 1) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
$needle = mb_strtolower($q);
|
||||||
|
$out = [];
|
||||||
|
foreach ($this->pages() as $slug => $page) {
|
||||||
|
$text = $this->plainText((string) $slug);
|
||||||
|
if ($text === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$hay = mb_strtolower($text);
|
||||||
|
$pos = mb_strpos($hay, $needle);
|
||||||
|
if ($pos === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$hits = mb_substr_count($hay, $needle);
|
||||||
|
$start = max(0, $pos - 30);
|
||||||
|
$snippet = mb_substr($text, $start, 100);
|
||||||
|
if ($start > 0) {
|
||||||
|
$snippet = '…' . $snippet;
|
||||||
|
}
|
||||||
|
$out[] = [
|
||||||
|
'slug' => (string) $slug,
|
||||||
|
'title' => (string) $page['title'],
|
||||||
|
'snippet' => trim($snippet),
|
||||||
|
'hits' => $hits,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
usort($out, static fn ($a, $b): int => $b['hits'] <=> $a['hits']);
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* slug 페이지를 HTML 로 변환해 반환. 미등록 slug·파일 없음·변환 실패 시 null.
|
* slug 페이지를 HTML 로 변환해 반환. 미등록 slug·파일 없음·변환 실패 시 null.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -5,8 +5,26 @@
|
|||||||
<button onclick="window.print()" class="no-print border border-btn-print-border text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50 transition">인쇄</button>
|
<button onclick="window.print()" class="no-print border border-btn-print-border text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50 transition">인쇄</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2">
|
<style>
|
||||||
<form method="get" action="<?= base_url('admin/access/approvals') ?>" class="mb-4 flex flex-wrap items-center gap-2 text-sm">
|
/* 인쇄 시 승인 대기 표를 A4 너비에 맞춤(잘림 방지) */
|
||||||
|
@media print {
|
||||||
|
@page { size: A4 portrait; margin: 10mm; }
|
||||||
|
.approval-print-wrap { border: 0 !important; padding: 0 !important; overflow: visible !important; }
|
||||||
|
.approval-print-wrap table.data-table { width: 100% !important; table-layout: fixed; font-size: 9px; }
|
||||||
|
.approval-print-wrap .data-table th,
|
||||||
|
.approval-print-wrap .data-table td {
|
||||||
|
white-space: normal !important; /* nowrap 해제 → 줄바꿈 허용 */
|
||||||
|
word-break: break-word;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
padding: 2px 3px !important;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
/* '관리'(승인/반려 버튼) 열은 인쇄에 불필요 → 제외해 가로 폭 확보 */
|
||||||
|
.approval-print-wrap .col-actions { display: none !important; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="approval-print-wrap border border-gray-300 rounded-lg p-4 mt-2">
|
||||||
|
<form method="get" action="<?= base_url('admin/access/approvals') ?>" class="no-print mb-4 flex flex-wrap items-center gap-2 text-sm">
|
||||||
<label for="status" class="font-bold text-gray-700 shrink-0">상태</label>
|
<label for="status" class="font-bold text-gray-700 shrink-0">상태</label>
|
||||||
<select id="status" name="status" class="border border-gray-300 rounded px-3 py-1.5 text-sm min-w-[12rem] w-48 max-w-full">
|
<select id="status" name="status" class="border border-gray-300 rounded px-3 py-1.5 text-sm min-w-[12rem] w-48 max-w-full">
|
||||||
<option value="pending" <?= ($status ?? 'pending') === 'pending' ? 'selected' : '' ?>>승인 대기</option>
|
<option value="pending" <?= ($status ?? 'pending') === 'pending' ? 'selected' : '' ?>>승인 대기</option>
|
||||||
@@ -18,14 +36,14 @@
|
|||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>요청일</th>
|
<th class="text-center">요청일</th>
|
||||||
<th>아이디</th>
|
<th class="text-center">아이디</th>
|
||||||
<th>이름</th>
|
<th class="text-center">이름</th>
|
||||||
<th>지자체</th>
|
<th class="text-center">지자체</th>
|
||||||
<th>요청 역할</th>
|
<th class="text-center">요청 역할</th>
|
||||||
<th>상태</th>
|
<th class="text-center">상태</th>
|
||||||
<th>처리일</th>
|
<th class="text-center">처리일</th>
|
||||||
<th>관리</th>
|
<th class="text-center col-actions">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -45,7 +63,7 @@
|
|||||||
<?php if (($row->mar_status ?? '') === 'rejected'): ?>반려<?php endif; ?>
|
<?php if (($row->mar_status ?? '') === 'rejected'): ?>반려<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center"><?= esc($row->mar_processed_at ?? '-') ?></td>
|
<td class="text-center"><?= esc($row->mar_processed_at ?? '-') ?></td>
|
||||||
<td class="text-center">
|
<td class="text-center col-actions">
|
||||||
<?php if (($row->mar_status ?? '') === 'pending'): ?>
|
<?php if (($row->mar_status ?? '') === 'pending'): ?>
|
||||||
<div class="flex items-center justify-center gap-1">
|
<div class="flex items-center justify-center gap-1">
|
||||||
<form action="<?= base_url('admin/access/approve/' . $row->mar_idx) ?>" method="post" class="inline">
|
<form action="<?= base_url('admin/access/approve/' . $row->mar_idx) ?>" method="post" class="inline">
|
||||||
|
|||||||
@@ -13,15 +13,15 @@
|
|||||||
<button onclick="window.print()" class="no-print border border-btn-print-border text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50 transition">인쇄</button>
|
<button onclick="window.print()" class="no-print border border-btn-print-border text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50 transition">인쇄</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>일시</th>
|
<th class="text-left">일시</th>
|
||||||
<th>아이디</th>
|
<th class="text-left">아이디</th>
|
||||||
<th>성공</th>
|
<th class="text-center">성공</th>
|
||||||
<th>IP</th>
|
<th class="text-left">IP</th>
|
||||||
<th>메시지</th>
|
<th class="text-left">메시지</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>현재재고(낱장)</th>
|
<th class="text-right">현재재고(낱장)</th>
|
||||||
<th>최종갱신</th>
|
<th class="text-center">최종갱신</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">무료용 불출 처리</span>
|
<span class="text-sm font-bold text-gray-700">무료용 불출 처리</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('bag-issues/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('bag-issues/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -18,20 +18,20 @@
|
|||||||
<a href="<?= mgmt_url('bag-issues') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('bag-issues') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>연도</th>
|
<th class="text-center">연도</th>
|
||||||
<th>분기</th>
|
<th class="text-center">분기</th>
|
||||||
<th>구분</th>
|
<th class="text-center">구분</th>
|
||||||
<th>불출일</th>
|
<th class="text-center">불출일</th>
|
||||||
<th>불출처</th>
|
<th>불출처</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>수량</th>
|
<th class="text-right">수량</th>
|
||||||
<th class="w-24">작업</th>
|
<th class="w-24 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<form action="<?= mgmt_url('bag-orders/store') ?>" method="POST" class="mt-2 space-y-2">
|
<form action="<?= mgmt_url('bag-orders/store') ?>" method="POST" class="mt-2 space-y-2">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
<div class="border border-gray-300 bg-white p-2">
|
<div class="border border-gray-300 rounded-lg bg-white p-2">
|
||||||
<div class="flex flex-wrap items-center gap-4 text-sm">
|
<div class="flex flex-wrap items-center gap-4 text-sm">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<label for="bo_order_month_ui" class="font-bold text-gray-700">발주월</label>
|
<label for="bo_order_month_ui" class="font-bold text-gray-700">발주월</label>
|
||||||
@@ -63,16 +63,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
||||||
<section class="xl:col-span-5 border border-gray-300 bg-white">
|
<section class="xl:col-span-5 border border-gray-300 rounded-lg bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
||||||
<div class="overflow-auto max-h-[410px]">
|
<div class="overflow-auto max-h-[410px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-28">발주일</th>
|
<th class="w-28 text-center">발주일</th>
|
||||||
<th>제작업체</th>
|
<th class="text-left">제작업체</th>
|
||||||
<th>입고처</th>
|
<th class="text-left">입고처</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="w-16 text-center">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="xl:col-span-7 border border-gray-300 bg-white">
|
<section class="xl:col-span-7 border border-gray-300 rounded-lg bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 Form</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 Form</div>
|
||||||
<div class="p-2 space-y-2">
|
<div class="p-2 space-y-2">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
||||||
@@ -136,17 +136,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm order-input-table" id="order-item-table">
|
<table class="w-full data-table text-sm order-input-table" id="order-item-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">번호</th>
|
<th class="w-12 text-center">번호</th>
|
||||||
<th class="w-16">선택</th>
|
<th class="w-16 text-center">선택</th>
|
||||||
<th>품명</th>
|
<th class="text-left">품명</th>
|
||||||
<th class="w-28">수량(BOX)</th>
|
<th class="w-28 text-right">수량(BOX)</th>
|
||||||
<th class="w-24">단가</th>
|
<th class="w-24 text-right">단가</th>
|
||||||
<th class="w-24">환산수량</th>
|
<th class="w-24 text-right">환산수량</th>
|
||||||
<th class="w-28">금액</th>
|
<th class="w-28 text-right">금액</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="selected-order-items-body"></tbody>
|
<tbody id="selected-order-items-body"></tbody>
|
||||||
@@ -170,20 +170,20 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 등록 종류</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 등록 종류</div>
|
||||||
<p class="text-xs text-gray-600 px-2 py-1">아래 목록에서 봉투를 선택하면 발주 품목에 추가됩니다. (개수 제한 없음)</p>
|
<p class="text-xs text-gray-600 px-2 py-1">아래 목록에서 봉투를 선택하면 발주 품목에 추가됩니다. (개수 제한 없음)</p>
|
||||||
<div class="overflow-auto">
|
<div class="overflow-auto">
|
||||||
<table class="w-full data-table text-sm order-reference-table">
|
<table class="w-full data-table text-sm order-reference-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">번호</th>
|
<th class="w-12 text-center">번호</th>
|
||||||
<th class="w-20">선택</th>
|
<th class="w-20 text-center">선택</th>
|
||||||
<th>봉투 종류</th>
|
<th>봉투 종류</th>
|
||||||
<th class="w-24">발주단가</th>
|
<th class="w-24 text-right">발주단가</th>
|
||||||
<th class="w-24">Box당 팩</th>
|
<th class="w-24 text-right">Box당 팩</th>
|
||||||
<th class="w-24">팩당 낱장</th>
|
<th class="w-24 text-right">팩당 낱장</th>
|
||||||
<th class="w-28">1박스 총 낱장</th>
|
<th class="w-28 text-right">1박스 총 낱장</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span class="text-sm font-bold text-gray-700">발주 상세 — <?= esc($order->bo_lot_no) ?></span>
|
<span class="text-sm font-bold text-gray-700">발주 상세 — <?= esc($order->bo_lot_no) ?></span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-4xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-4xl">
|
||||||
<table class="w-full text-sm">
|
<table class="w-full text-sm">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="border-b">
|
<tr class="border-b">
|
||||||
@@ -53,16 +53,16 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto mt-4">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-4">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>단가</th>
|
<th class="text-right">단가</th>
|
||||||
<th>박스수</th>
|
<th class="text-right">박스수</th>
|
||||||
<th>낱장수</th>
|
<th class="text-right">낱장수</th>
|
||||||
<th>금액</th>
|
<th class="text-right">금액</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -90,19 +90,19 @@
|
|||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="bag-order-print-wrap border border-gray-300 overflow-auto mt-2">
|
<div class="bag-order-print-wrap border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="bag-order-print-table w-full data-table">
|
<table class="bag-order-print-table w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-32">발주일자</th>
|
<th class="w-32 text-center">발주일자</th>
|
||||||
<th class="min-w-[10rem]">제작 업체</th>
|
<th class="min-w-[10rem] text-left">제작 업체</th>
|
||||||
<th class="min-w-[12rem]">품 명</th>
|
<th class="min-w-[12rem] text-left">품 명</th>
|
||||||
<th class="w-28">발주 수량</th>
|
<th class="w-28 text-right">발주 수량</th>
|
||||||
<th class="w-28">입고 수량</th>
|
<th class="w-28 text-right">입고 수량</th>
|
||||||
<th class="w-28">미입고수량</th>
|
<th class="w-28 text-right">미입고수량</th>
|
||||||
<th class="w-32">발주 금액</th>
|
<th class="w-32 text-right">발주 금액</th>
|
||||||
<th class="min-w-[9rem]">입고처</th>
|
<th class="min-w-[9rem] text-left">입고처</th>
|
||||||
<th class="min-w-[8rem]">비 고</th>
|
<th class="min-w-[8rem] text-left">비 고</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">봉투 단가 등록</span>
|
<span class="text-sm font-bold text-gray-700">봉투 단가 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('bag-prices/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('bag-prices/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">봉투 단가 수정</span>
|
<span class="text-sm font-bold text-gray-700">봉투 단가 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('bag-prices/update/' . (int) $item->bp_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('bag-prices/update/' . (int) $item->bp_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,15 @@
|
|||||||
<span class="text-sm font-bold text-gray-700">단가 변경 이력 — <?= esc($item->bp_bag_name) ?> (<?= esc($item->bp_bag_code) ?>)</span>
|
<span class="text-sm font-bold text-gray-700">단가 변경 이력 — <?= esc($item->bp_bag_name) ?> (<?= esc($item->bp_bag_code) ?>)</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>변경 필드</th>
|
<th class="text-left">변경 필드</th>
|
||||||
<th>이전 값</th>
|
<th class="text-right">이전 값</th>
|
||||||
<th>변경 값</th>
|
<th class="text-right">변경 값</th>
|
||||||
<th>변경일시</th>
|
<th class="text-center">변경일시</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -94,20 +94,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>발주단가</th>
|
<th class="text-right">발주단가</th>
|
||||||
<th>도매가</th>
|
<th class="text-right">도매가</th>
|
||||||
<th>소비자가</th>
|
<th class="text-right">소비자가</th>
|
||||||
<th>적용시작</th>
|
<th class="text-center">적용시작</th>
|
||||||
<th>적용종료</th>
|
<th class="text-center">적용종료</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="w-20 text-center">상태</th>
|
||||||
<th class="w-36 no-print">작업</th>
|
<th class="w-36 no-print text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">입고 처리</span>
|
<span class="text-sm font-bold text-gray-700">입고 처리</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('bag-receivings/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('bag-receivings/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -18,18 +18,18 @@
|
|||||||
<a href="<?= mgmt_url('bag-receivings') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('bag-receivings') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>박스수</th>
|
<th class="text-right">박스수</th>
|
||||||
<th>낱장수</th>
|
<th class="text-right">낱장수</th>
|
||||||
<th>입고일</th>
|
<th class="text-center">입고일</th>
|
||||||
<th>구분</th>
|
<th class="text-center">구분</th>
|
||||||
<th>등록일</th>
|
<th class="text-center">등록일</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">판매 등록</span>
|
<span class="text-sm font-bold text-gray-700">판매 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('bag-sales/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('bag-sales/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -26,19 +26,19 @@
|
|||||||
<a href="<?= mgmt_url('bag-sales') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('bag-sales') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>판매소</th>
|
<th class="text-left">판매소</th>
|
||||||
<th>판매일</th>
|
<th class="text-center">판매일</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>수량</th>
|
<th class="text-right">수량</th>
|
||||||
<th>단가</th>
|
<th class="text-right">단가</th>
|
||||||
<th>금액</th>
|
<th class="text-right">금액</th>
|
||||||
<th class="w-20">구분</th>
|
<th class="w-20 text-center">구분</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span class="text-sm font-bold text-gray-700">세부코드 등록</span>
|
<span class="text-sm font-bold text-gray-700">세부코드 등록</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('admin/code-details/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/code-details/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<input type="hidden" name="cd_ck_idx" value="<?= (int) $kind->ck_idx ?>"/>
|
<input type="hidden" name="cd_ck_idx" value="<?= (int) $kind->ck_idx ?>"/>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span class="text-sm font-bold text-gray-700">세부코드 수정</span>
|
<span class="text-sm font-bold text-gray-700">세부코드 수정</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('admin/code-details/update/' . (int) $item->cd_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/code-details/update/' . (int) $item->cd_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">기본코드 종류 등록</span>
|
<span class="text-sm font-bold text-gray-700">기본코드 종류 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('admin/code-kinds/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/code-kinds/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">기본코드 종류 수정</span>
|
<span class="text-sm font-bold text-gray-700">기본코드 종류 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('admin/code-kinds/update/' . (int) $item->ck_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/code-kinds/update/' . (int) $item->ck_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">업체 등록</span>
|
<span class="text-sm font-bold text-gray-700">업체 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('companies/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('companies/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">업체 수정</span>
|
<span class="text-sm font-bold text-gray-700">업체 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('companies/update/' . (int) $item->cp_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('companies/update/' . (int) $item->cp_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -21,19 +21,19 @@
|
|||||||
<a href="<?= mgmt_url('companies') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('companies') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-16 text-left">번호</th>
|
||||||
<th>업체유형</th>
|
<th class="py-2.5 px-2 text-left">업체유형</th>
|
||||||
<th>업체명</th>
|
<th class="py-2.5 px-2">업체명</th>
|
||||||
<th>사업자번호</th>
|
<th class="py-2.5 px-2">사업자번호</th>
|
||||||
<th>대표자</th>
|
<th class="py-2.5 px-2">대표자</th>
|
||||||
<th>전화</th>
|
<th class="py-2.5 px-2">전화</th>
|
||||||
<th>주소</th>
|
<th class="py-2.5 px-2">주소</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="py-2.5 px-2 w-20 text-left">상태</th>
|
||||||
<th class="w-36">작업</th>
|
<th class="py-2.5 px-2 w-36 text-left">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -46,26 +46,34 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php foreach (($list ?? []) as $idx => $row): ?>
|
<?php foreach (($list ?? []) as $idx => $row): ?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= (int) $startNo + (int) $idx ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= (int) $startNo + (int) $idx ?></td>
|
||||||
<td class="text-center"><?= esc($row->cp_type) ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
<td class="text-left pl-2"><?= esc($row->cp_name) ?></td>
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-600"><?= esc($row->cp_type) ?></span>
|
||||||
<td class="text-center"><?= esc($row->cp_biz_no) ?></td>
|
</td>
|
||||||
<td class="text-center"><?= esc($row->cp_rep_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->cp_name) ?></td>
|
||||||
<td class="text-center"><?= esc($row->cp_tel) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->cp_biz_no) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->cp_addr) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->cp_rep_name) ?></td>
|
||||||
<td class="text-center"><?= (int) $row->cp_state === 1 ? '사용' : '미사용' ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->cp_tel) ?></td>
|
||||||
<td class="text-center">
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->cp_addr) ?></td>
|
||||||
<a href="<?= mgmt_url('companies/edit/' . (int) $row->cp_idx) ?>" class="text-blue-600 hover:underline text-sm mr-1">수정</a>
|
<td class="py-2.5 px-2 text-left">
|
||||||
|
<?php if ((int) $row->cp_state === 1): ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">사용</span>
|
||||||
|
<?php else: ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500">미사용</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
|
<a href="<?= mgmt_url('companies/edit/' . (int) $row->cp_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||||
<form action="<?= mgmt_url('companies/delete/' . (int) $row->cp_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
<form action="<?= mgmt_url('companies/delete/' . (int) $row->cp_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<button type="submit" class="text-red-600 hover:underline text-sm">삭제</button>
|
<button type="submit" class="text-red-600 hover:underline">삭제</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<tr><td colspan="9" class="text-center text-gray-400 py-4">등록된 데이터가 없습니다.</td></tr>
|
<tr><td colspan="9" class="text-center text-gray-400 py-6">등록된 데이터가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -17,22 +17,22 @@
|
|||||||
|
|
||||||
<!-- 통계 카드 -->
|
<!-- 통계 카드 -->
|
||||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 mb-4">
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 mb-4">
|
||||||
<div class="border border-gray-300 p-4 bg-white">
|
<div class="border border-gray-300 rounded-lg p-4 bg-white">
|
||||||
<div class="text-xs text-gray-500">총 발주 건수</div>
|
<div class="text-xs text-gray-500">총 발주 건수</div>
|
||||||
<div class="text-2xl font-bold text-blue-700"><?= number_format($s['order_count'] ?? 0) ?></div>
|
<div class="text-2xl font-bold text-blue-700"><?= number_format($s['order_count'] ?? 0) ?></div>
|
||||||
<div class="text-xs text-gray-400 mt-1">금액: <?= number_format($s['order_amount'] ?? 0) ?>원</div>
|
<div class="text-xs text-gray-400 mt-1">금액: <?= number_format($s['order_amount'] ?? 0) ?>원</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 p-4 bg-white">
|
<div class="border border-gray-300 rounded-lg p-4 bg-white">
|
||||||
<div class="text-xs text-gray-500">총 판매 건수</div>
|
<div class="text-xs text-gray-500">총 판매 건수</div>
|
||||||
<div class="text-2xl font-bold text-green-700"><?= number_format($s['sale_count'] ?? 0) ?></div>
|
<div class="text-2xl font-bold text-green-700"><?= number_format($s['sale_count'] ?? 0) ?></div>
|
||||||
<div class="text-xs text-gray-400 mt-1">금액: <?= number_format($s['sale_amount'] ?? 0) ?>원</div>
|
<div class="text-xs text-gray-400 mt-1">금액: <?= number_format($s['sale_amount'] ?? 0) ?>원</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 p-4 bg-white">
|
<div class="border border-gray-300 rounded-lg p-4 bg-white">
|
||||||
<div class="text-xs text-gray-500">재고 품목 수</div>
|
<div class="text-xs text-gray-500">재고 품목 수</div>
|
||||||
<div class="text-2xl font-bold text-purple-700"><?= number_format($s['inventory_count'] ?? 0) ?></div>
|
<div class="text-2xl font-bold text-purple-700"><?= number_format($s['inventory_count'] ?? 0) ?></div>
|
||||||
<div class="text-xs text-gray-400 mt-1">현재 재고가 있는 봉투 품목</div>
|
<div class="text-xs text-gray-400 mt-1">현재 재고가 있는 봉투 품목</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 p-4 bg-white">
|
<div class="border border-gray-300 rounded-lg p-4 bg-white">
|
||||||
<div class="text-xs text-gray-500">이번 달 불출</div>
|
<div class="text-xs text-gray-500">이번 달 불출</div>
|
||||||
<div class="text-2xl font-bold text-orange-700"><?= number_format($s['issue_count_month'] ?? 0) ?></div>
|
<div class="text-2xl font-bold text-orange-700"><?= number_format($s['issue_count_month'] ?? 0) ?></div>
|
||||||
<div class="text-xs text-gray-400 mt-1"><?= date('Y년 n월') ?> 무료용 불출</div>
|
<div class="text-xs text-gray-400 mt-1"><?= date('Y년 n월') ?> 무료용 불출</div>
|
||||||
@@ -47,13 +47,13 @@
|
|||||||
<h3 class="text-sm font-bold text-gray-700">최근 발주 5건</h3>
|
<h3 class="text-sm font-bold text-gray-700">최근 발주 5건</h3>
|
||||||
<a href="<?= base_url('bag/bag-orders') ?>" class="text-xs text-blue-600 hover:underline">전체보기</a>
|
<a href="<?= base_url('bag/bag-orders') ?>" class="text-xs text-blue-600 hover:underline">전체보기</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>LOT번호</th>
|
<th class="text-center">LOT번호</th>
|
||||||
<th>발주일</th>
|
<th class="text-center">발주일</th>
|
||||||
<th>상태</th>
|
<th class="text-center">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@@ -92,15 +92,15 @@
|
|||||||
<h3 class="text-sm font-bold text-gray-700">최근 판매 5건</h3>
|
<h3 class="text-sm font-bold text-gray-700">최근 판매 5건</h3>
|
||||||
<a href="<?= base_url('bag/bag-sales') ?>" class="text-xs text-blue-600 hover:underline">전체보기</a>
|
<a href="<?= base_url('bag/bag-sales') ?>" class="text-xs text-blue-600 hover:underline">전체보기</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>판매소</th>
|
<th class="text-left pl-2">판매소</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left pl-2">봉투명</th>
|
||||||
<th>수량</th>
|
<th class="text-right">수량</th>
|
||||||
<th>금액</th>
|
<th class="text-right">금액</th>
|
||||||
<th>구분</th>
|
<th class="text-center">구분</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
<?= view('components/print_header', ['printTitle' => '지정판매소 바코드 출력']) ?>
|
<?= view('components/print_header', ['printTitle' => '지정판매소 바코드 출력']) ?>
|
||||||
<style>
|
<style>
|
||||||
.ds-bc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
td.name-cell { max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.ds-bc-table th, .ds-bc-table td { border: 1px solid #ccc; padding: 4px 6px; }
|
td.addr-cell { max-width: 24rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.ds-bc-table th { background: #e9ecef; color: #2d3748; }
|
|
||||||
.ds-bc-table td { background: #fff; }
|
|
||||||
.ds-bc-table td.name-cell { max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
||||||
.ds-bc-table td.addr-cell { max-width: 24rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
||||||
.ds-bc-check { width: 14px; height: 14px; }
|
.ds-bc-check { width: 14px; height: 14px; }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@@ -55,17 +51,17 @@
|
|||||||
<label class="inline-flex items-center gap-1 cursor-pointer"><input type="checkbox" id="ds-bc-check-all" class="ds-bc-check"> 전체선택</label>
|
<label class="inline-flex items-center gap-1 cursor-pointer"><input type="checkbox" id="ds-bc-check-all" class="ds-bc-check"> 전체선택</label>
|
||||||
<span class="ml-3">선택 건수: <strong id="ds-bc-selected-count">0</strong></span>
|
<span class="ml-3">선택 건수: <strong id="ds-bc-selected-count">0</strong></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-auto border border-gray-300 bg-white">
|
<div class="overflow-auto">
|
||||||
<table class="ds-bc-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-14">출력</th>
|
<th class="py-2.5 px-2 w-14 text-left">출력</th>
|
||||||
<th class="w-36">판매소 코드</th>
|
<th class="py-2.5 px-2 w-36">판매소 코드</th>
|
||||||
<th>판매소명</th>
|
<th class="py-2.5 px-2">판매소명</th>
|
||||||
<th class="w-24">대표자명</th>
|
<th class="py-2.5 px-2 w-24">대표자명</th>
|
||||||
<th class="w-32">사업자번호</th>
|
<th class="py-2.5 px-2 w-32">사업자번호</th>
|
||||||
<th>사업장 주소</th>
|
<th class="py-2.5 px-2">사업장 주소</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="py-2.5 px-2 w-16 text-left">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -74,18 +70,18 @@
|
|||||||
$st = (int) ($row->ds_state ?? 1);
|
$st = (int) ($row->ds_state ?? 1);
|
||||||
$stLabel = $st === 1 ? '사용' : '정지';
|
$stLabel = $st === 1 ? '사용' : '정지';
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><input class="ds-bc-row-check ds-bc-check" type="checkbox" name="ds_idx[]" value="<?= (int) $row->ds_idx ?>"></td>
|
<td class="py-2.5 px-2 text-left"><input class="ds-bc-row-check ds-bc-check" type="checkbox" name="ds_idx[]" value="<?= (int) $row->ds_idx ?>"></td>
|
||||||
<td class="text-center text-blue-700"><?= esc((string) ($row->ds_shop_no ?? '')) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc((string) ($row->ds_shop_no ?? '')) ?></td>
|
||||||
<td class="name-cell text-blue-700" title="<?= esc((string) ($row->ds_name ?? '')) ?>"><?= esc((string) ($row->ds_name ?? '')) ?></td>
|
<td class="py-2.5 px-2 name-cell font-medium text-gray-900" title="<?= esc((string) ($row->ds_name ?? '')) ?>"><?= esc((string) ($row->ds_name ?? '')) ?></td>
|
||||||
<td><?= esc((string) ($row->ds_rep_name ?? '')) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc((string) ($row->ds_rep_name ?? '')) ?></td>
|
||||||
<td><?= esc((string) ($row->ds_biz_no ?? '')) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc((string) ($row->ds_biz_no ?? '')) ?></td>
|
||||||
<td class="addr-cell" title="<?= esc((string) ($row->ds_addr ?? '')) ?>"><?= esc((string) ($row->ds_addr ?? '')) ?></td>
|
<td class="py-2.5 px-2 addr-cell text-gray-500" title="<?= esc((string) ($row->ds_addr ?? '')) ?>"><?= esc((string) ($row->ds_addr ?? '')) ?></td>
|
||||||
<td class="<?= $st === 1 ? 'text-blue-700' : 'text-red-600' ?>"><?= esc($stLabel) ?></td>
|
<td class="py-2.5 px-2 text-left"><span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium <?= $st === 1 ? 'bg-emerald-50 text-emerald-700' : 'bg-gray-100 text-gray-500' ?>"><?= esc($stLabel) ?></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<tr><td colspan="7" class="text-center text-gray-400 py-8">조회된 지정판매소가 없습니다.</td></tr>
|
<tr><td colspan="7" class="text-center text-gray-400 py-6">조회된 지정판매소가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">지정판매소 등록</span>
|
<span class="text-sm font-bold text-gray-700">지정판매소 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form id="designated-shop-create-form" action="<?= mgmt_url('designated-shops/store') ?>" method="POST" class="space-y-4">
|
<form id="designated-shop-create-form" action="<?= mgmt_url('designated-shops/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ $exportUrl = mgmt_url('designated-shops/district-new-cancel/export') . '?' . htt
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.gbms-dnc-table tbody td.text-left { text-align: left; }
|
.gbms-dnc-table tbody td.text-left { text-align: left; }
|
||||||
|
.gbms-dnc-table thead th.gbms-region-head { text-align: left; }
|
||||||
.gbms-dnc-table tbody tr.gbms-total td {
|
.gbms-dnc-table tbody tr.gbms-total td {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
border: 2px solid #c62828;
|
border: 2px solid #c62828;
|
||||||
@@ -144,11 +145,11 @@ $exportUrl = mgmt_url('designated-shops/district-new-cancel/export') . '?' . htt
|
|||||||
|
|
||||||
<div class="mx-2 mt-3 mb-4 gbms-dnc-wrap">
|
<div class="mx-2 mt-3 mb-4 gbms-dnc-wrap">
|
||||||
<div class="gbms-dnc-caption">지정 판매소 신규/취소 현황 조회 내역</div>
|
<div class="gbms-dnc-caption">지정 판매소 신규/취소 현황 조회 내역</div>
|
||||||
<div class="overflow-x-auto border border-gray-400 bg-white">
|
<div class="overflow-x-auto border border-gray-400 rounded-lg bg-white">
|
||||||
<table class="gbms-dnc-table">
|
<table class="gbms-dnc-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2" class="min-w-[6rem]">군·구</th>
|
<th rowspan="2" class="min-w-[6rem] gbms-region-head">군·구</th>
|
||||||
<th rowspan="2">
|
<th rowspan="2">
|
||||||
<span class="gbms-tip">
|
<span class="gbms-tip">
|
||||||
종전
|
종전
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ $dateField = static function (string $key) use ($shop, $v): string {
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">지정판매소 수정</span>
|
<span class="text-sm font-bold text-gray-700">지정판매소 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form id="designated-shop-edit-form" action="<?= mgmt_url('designated-shops/update/' . (int) $shop->ds_idx) ?>" method="POST" class="space-y-4">
|
<form id="designated-shop-edit-form" action="<?= mgmt_url('designated-shops/update/' . (int) $shop->ds_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -223,23 +223,23 @@ $sc = $stateCounts ?? ['total' => 0, 1 => 0, 2 => 0, 3 => 0];
|
|||||||
<div class="ds-list-panel">
|
<div class="ds-list-panel">
|
||||||
<div class="ds-panel-title shrink-0">지정판매소 리스트</div>
|
<div class="ds-panel-title shrink-0">지정판매소 리스트</div>
|
||||||
<div class="overflow-auto flex-1 min-h-0">
|
<div class="overflow-auto flex-1 min-h-0">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-14">번호</th>
|
<th class="py-2.5 px-2 w-14 text-left">번호</th>
|
||||||
<th class="w-24">구·군</th>
|
<th class="py-2.5 px-2 w-24">구·군</th>
|
||||||
<th class="w-24">지정일</th>
|
<th class="py-2.5 px-2 w-24 text-left">지정일</th>
|
||||||
<th class="w-24">구역</th>
|
<th class="py-2.5 px-2 w-24">구역</th>
|
||||||
<th class="ds-col-tight">대표자명</th>
|
<th class="py-2.5 px-2 ds-col-tight">대표자명</th>
|
||||||
<th class="ds-col-tight">상호명</th>
|
<th class="py-2.5 px-2 ds-col-tight">상호명</th>
|
||||||
<th class="ds-col-zip">우편번호</th>
|
<th class="py-2.5 px-2 ds-col-zip text-left">우편번호</th>
|
||||||
<th class="text-left">주소</th>
|
<th class="py-2.5 px-2 text-left">주소</th>
|
||||||
<th class="w-28">사업자번호</th>
|
<th class="py-2.5 px-2 w-28">사업자번호</th>
|
||||||
<th class="w-28">전화</th>
|
<th class="py-2.5 px-2 w-28">전화</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="py-2.5 px-2 w-16 text-left">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="ds-list-body" class="text-right">
|
<tbody id="ds-list-body">
|
||||||
<?php foreach ($list as $i => $row): ?>
|
<?php foreach ($list as $i => $row): ?>
|
||||||
<?php
|
<?php
|
||||||
$sn = (string) ($row->ds_shop_no ?? '');
|
$sn = (string) ($row->ds_shop_no ?? '');
|
||||||
@@ -267,18 +267,24 @@ $sc = $stateCounts ?? ['total' => 0, 1 => 0, 2 => 0, 3 => 0];
|
|||||||
$addrCombinedList = $addrMainList;
|
$addrCombinedList = $addrMainList;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="ds-list-row cursor-pointer" data-row-index="<?= (int) $i ?>" role="button" tabindex="0">
|
<tr class="ds-list-row cursor-pointer border-b border-gray-200 last:border-0 hover:bg-blue-50/60" data-row-index="<?= (int) $i ?>" role="button" tabindex="0">
|
||||||
<td class="text-center"><?= esc($shortNo) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-gray-700"><?= esc($shortNo) ?></td>
|
||||||
<td class="text-left pl-1 text-xs"><?= esc($ggLabel) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($ggLabel) ?></td>
|
||||||
<td class="text-center text-xs"><?= esc($daDisp) ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500 text-[12px]"><?= esc($daDisp) ?></td>
|
||||||
<td class="text-left pl-1 text-xs"><?= esc($zone) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($zone) ?></td>
|
||||||
<td class="text-left pl-1 text-xs ds-col-tight" title="<?= esc($row->ds_rep_name ?? '') ?>"><?= esc($row->ds_rep_name ?? '') ?></td>
|
<td class="py-2.5 px-2 text-gray-600 ds-col-tight" title="<?= esc($row->ds_rep_name ?? '') ?>"><?= esc($row->ds_rep_name ?? '') ?></td>
|
||||||
<td class="text-left pl-1 text-xs ds-col-tight" title="<?= esc($row->ds_name ?? '') ?>"><?= esc($row->ds_name ?? '') ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900 ds-col-tight" title="<?= esc($row->ds_name ?? '') ?>"><?= esc($row->ds_name ?? '') ?></td>
|
||||||
<td class="text-center text-xs ds-col-zip" title="<?= esc($zipList) ?>"><?= esc($zipList) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-gray-700 ds-col-zip" title="<?= esc($zipList) ?>"><?= esc($zipList) ?></td>
|
||||||
<td class="text-left pl-1 text-xs ds-col-addr-list" title="<?= esc($addrCombinedList) ?>"><?= esc($addrCombinedList) ?></td>
|
<td class="py-2.5 px-2 text-gray-600 ds-col-addr-list" title="<?= esc($addrCombinedList) ?>"><?= esc($addrCombinedList) ?></td>
|
||||||
<td class="text-left pl-1 text-xs"><?= esc($row->ds_biz_no ?? '') ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->ds_biz_no ?? '') ?></td>
|
||||||
<td class="text-left pl-1 text-xs"><?= esc($row->ds_tel ?? '') ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->ds_tel ?? '') ?></td>
|
||||||
<td class="text-center <?= $st === 2 ? 'text-pink-600 font-medium' : ($st === 3 ? 'text-orange-700' : '') ?>"><?= esc($stLabel) ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
|
<?php if ($st === 1): ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">정상</span>
|
||||||
|
<?php elseif ($stLabel !== ''): ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500"><?= esc($stLabel) ?></span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -319,7 +325,7 @@ $sc = $stateCounts ?? ['total' => 0, 1 => 0, 2 => 0, 3 => 0];
|
|||||||
<th>영업상태</th>
|
<th>영업상태</th>
|
||||||
<th>등록일시</th>
|
<th>등록일시</th>
|
||||||
<th>변경사유</th>
|
<th>변경사유</th>
|
||||||
<th class="no-print w-14">지도</th>
|
<th class="no-print w-14 text-center">지도</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -497,10 +503,10 @@ $sc = $stateCounts ?? ['total' => 0, 1 => 0, 2 => 0, 3 => 0];
|
|||||||
<table class="w-full data-table text-xs">
|
<table class="w-full data-table text-xs">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th class="text-center">번호</th>
|
||||||
<th>지자체</th>
|
<th>지자체</th>
|
||||||
<th>구·군</th>
|
<th>구·군</th>
|
||||||
<th>지정일</th>
|
<th class="text-center">지정일</th>
|
||||||
<th>구역</th>
|
<th>구역</th>
|
||||||
<th>대표자명</th>
|
<th>대표자명</th>
|
||||||
<th>상호명</th>
|
<th>상호명</th>
|
||||||
@@ -510,7 +516,7 @@ $sc = $stateCounts ?? ['total' => 0, 1 => 0, 2 => 0, 3 => 0];
|
|||||||
<th>전화</th>
|
<th>전화</th>
|
||||||
<th>판매소번호</th>
|
<th>판매소번호</th>
|
||||||
<th>가상계좌</th>
|
<th>가상계좌</th>
|
||||||
<th>상태</th>
|
<th class="text-center">상태</th>
|
||||||
<th>등록일</th>
|
<th>등록일</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -40,42 +40,45 @@ $listBasePath = $readOnly ? 'designated-shops/browse' : 'designated-shops';
|
|||||||
<a href="<?= mgmt_url($listBasePath) ?>" class="border border-gray-300 text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50">초기화</a>
|
<a href="<?= mgmt_url($listBasePath) ?>" class="border border-gray-300 text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-16 text-left">번호</th>
|
||||||
<th>지자체</th>
|
<th class="py-2.5 px-2">지자체</th>
|
||||||
<th>판매소번호</th>
|
<th class="py-2.5 px-2">판매소번호</th>
|
||||||
<th>상호명</th>
|
<th class="py-2.5 px-2">상호명</th>
|
||||||
<th>대표자</th>
|
<th class="py-2.5 px-2">대표자</th>
|
||||||
<th>사업자번호</th>
|
<th class="py-2.5 px-2">사업자번호</th>
|
||||||
<th>가상계좌</th>
|
<th class="py-2.5 px-2">가상계좌</th>
|
||||||
<th>상태</th>
|
<th class="py-2.5 px-2 text-left">상태</th>
|
||||||
<th>등록일</th>
|
<th class="py-2.5 px-2">등록일</th>
|
||||||
<?php if (! $readOnly): ?>
|
<?php if (! $readOnly): ?>
|
||||||
<th class="w-28">작업</th>
|
<th class="py-2.5 px-2 w-28 text-left">작업</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody>
|
||||||
<?php foreach ($list as $row): ?>
|
<?php foreach ($list as $row): ?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= esc($row->ds_idx) ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= esc($row->ds_idx) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($lgMap[$row->ds_lg_idx] ?? '') ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($lgMap[$row->ds_lg_idx] ?? '') ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_shop_no) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->ds_shop_no) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->ds_name) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_rep_name) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->ds_rep_name) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_biz_no) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->ds_biz_no) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_va_number) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->ds_va_number) ?></td>
|
||||||
<td class="text-center"><?= (int) $row->ds_state === 1 ? '정상' : ((int) $row->ds_state === 2 ? '폐업' : '직권해지') ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
<td class="text-left pl-2"><?= esc($row->ds_regdate ?? '') ?></td>
|
<?php $isActive = (int) $row->ds_state === 1; ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium <?= $isActive ? 'bg-emerald-50 text-emerald-700' : 'bg-gray-100 text-gray-500' ?>"><?= $isActive ? '정상' : ((int) $row->ds_state === 2 ? '폐업' : '직권해지') ?></span>
|
||||||
|
</td>
|
||||||
|
<td class="py-2.5 px-2 text-gray-500 text-[12px]"><?= esc($row->ds_regdate ?? '') ?></td>
|
||||||
<?php if (! $readOnly): ?>
|
<?php if (! $readOnly): ?>
|
||||||
<td class="text-center">
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
<a href="<?= mgmt_url('designated-shops/edit/' . (int) $row->ds_idx) ?>" class="text-blue-600 hover:underline text-sm">수정</a>
|
<a href="<?= mgmt_url('designated-shops/edit/' . (int) $row->ds_idx) ?>" class="text-blue-600 hover:underline">수정</a>
|
||||||
<form action="<?= mgmt_url('designated-shops/delete/' . (int) $row->ds_idx) ?>" method="POST" class="inline ml-1" onsubmit="return confirm('이 지정판매소를 삭제하시겠습니까?');">
|
<form action="<?= mgmt_url('designated-shops/delete/' . (int) $row->ds_idx) ?>" method="POST" class="inline ml-1" onsubmit="return confirm('이 지정판매소를 삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<button type="submit" class="text-red-600 hover:underline text-sm">삭제</button>
|
<button type="submit" class="text-red-600 hover:underline">삭제</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<a href="<?= mgmt_url('designated-shops') ?>" class="border border-gray-300 text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50">목록으로</a>
|
<a href="<?= mgmt_url('designated-shops') ?>" class="border border-gray-300 text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50">목록으로</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div id="kakao-map" class="w-full border border-gray-300 mt-2" style="height:600px;"></div>
|
<div id="kakao-map" class="w-full border border-gray-300 rounded-lg mt-2" style="height:600px;"></div>
|
||||||
<div class="mt-2 text-sm text-gray-500">총 <?= count($shops) ?>개 판매소 표시</div>
|
<div class="mt-2 text-sm text-gray-500">총 <?= count($shops) ?>개 판매소 표시</div>
|
||||||
|
|
||||||
<script src="//dapi.kakao.com/v2/maps/sdk.js?appkey=<?= esc($kakaoJavascriptKey ?? '', 'attr') ?>&libraries=services"></script>
|
<script src="//dapi.kakao.com/v2/maps/sdk.js?appkey=<?= esc($kakaoJavascriptKey ?? '', 'attr') ?>&libraries=services"></script>
|
||||||
|
|||||||
@@ -13,13 +13,11 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
overflow-y: visible;
|
overflow-y: visible;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 4px;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.ds-status-x-scroll { overflow: visible !important; border: none; }
|
.ds-status-x-scroll { overflow: visible !important; }
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll .ds-status-table {
|
.ds-status-x-scroll .ds-status-table {
|
||||||
width: max-content;
|
width: max-content;
|
||||||
@@ -29,15 +27,6 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
.ds-status-x-scroll .ds-status-table th,
|
.ds-status-x-scroll .ds-status-table th,
|
||||||
.ds-status-x-scroll .ds-status-table td {
|
.ds-status-x-scroll .ds-status-table td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding: 6px 10px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.ds-status-x-scroll .ds-status-table thead th {
|
|
||||||
background: #e9ecef;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
.ds-status-x-scroll .ds-status-table tbody td {
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll th.sticky-num,
|
.ds-status-x-scroll th.sticky-num,
|
||||||
.ds-status-x-scroll td.sticky-num {
|
.ds-status-x-scroll td.sticky-num {
|
||||||
@@ -48,25 +37,21 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
max-width: 3rem;
|
max-width: 3rem;
|
||||||
width: 3rem;
|
width: 3rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #e9ecef;
|
background: #fff;
|
||||||
border-right: 1px solid #bbb;
|
|
||||||
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
|
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll td.sticky-num {
|
.ds-status-x-scroll td.sticky-num {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll tr.sum-row td.sticky-num {
|
.ds-status-x-scroll tr.sum-row td.sticky-num {
|
||||||
background: #f3f4f6;
|
background: #f9fafb;
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll th.sticky-region,
|
.ds-status-x-scroll th.sticky-region,
|
||||||
.ds-status-x-scroll td.sticky-region {
|
.ds-status-x-scroll td.sticky-region {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
left: 3rem;
|
left: 3rem;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background: #e9ecef;
|
background: #fff;
|
||||||
border-right: 1px solid #bbb;
|
|
||||||
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
|
|
||||||
max-width: 16rem;
|
max-width: 16rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@@ -76,7 +61,7 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.ds-status-x-scroll tr.sum-row td.sticky-region {
|
.ds-status-x-scroll tr.sum-row td.sticky-region {
|
||||||
background: #f3f4f6;
|
background: #f9fafb;
|
||||||
}
|
}
|
||||||
.ds-help {
|
.ds-help {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -159,39 +144,39 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
|
|
||||||
<!-- 인쇄 시에도 보이는 본표 -->
|
<!-- 인쇄 시에도 보이는 본표 -->
|
||||||
<div class="mx-2 mt-2 mb-2 ds-status-x-scroll">
|
<div class="mx-2 mt-2 mb-2 ds-status-x-scroll">
|
||||||
<table class="ds-status-table data-table">
|
<table class="ds-status-table w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="sticky-num text-center w-12">순번</th>
|
<th class="sticky-num py-2.5 px-2 text-center w-12">순번</th>
|
||||||
<th class="sticky-region"><?= esc($regionColLabel) ?></th>
|
<th class="sticky-region py-2.5 px-2"><?= esc($regionColLabel) ?></th>
|
||||||
<th class="text-left">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">구코드 <span class="ds-help-badge" tabindex="0" data-tip="지정판매소에 저장된 구·군 코드 값">?</span></span>
|
<span class="ds-help">구코드 <span class="ds-help-badge" tabindex="0" data-tip="지정판매소에 저장된 구·군 코드 값">?</span></span>
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">종전 <span class="ds-help-badge" tabindex="0" data-tip="전년도 12월 31일 기준 정상 상태 판매소 수">?</span></span>(전년도말)
|
<span class="ds-help">종전 <span class="ds-help-badge" tabindex="0" data-tip="전년도 12월 31일 기준 정상 상태 판매소 수">?</span></span>(전년도말)
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">지정 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 내 지정일이 속한 신규 지정 건수">?</span></span>(<?= $ry ?>년)
|
<span class="ds-help">지정 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 내 지정일이 속한 신규 지정 건수">?</span></span>(<?= $ry ?>년)
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">취소 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 내 폐업/해지 전환일이 속한 건수">?</span></span>(<?= $ry ?>년)
|
<span class="ds-help">취소 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 내 폐업/해지 전환일이 속한 건수">?</span></span>(<?= $ry ?>년)
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">현행 <span class="ds-help-badge" tabindex="0" data-tip="조회년도 12월 31일 기준 정상 상태 판매소 수">?</span></span>(금년도말)
|
<span class="ds-help">현행 <span class="ds-help-badge" tabindex="0" data-tip="조회년도 12월 31일 기준 정상 상태 판매소 수">?</span></span>(금년도말)
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">증감 <span class="ds-help-badge" tabindex="0" data-tip="현행에서 종전을 뺀 값 (현행−종전)">?</span></span>
|
<span class="ds-help">증감 <span class="ds-help-badge" tabindex="0" data-tip="현행에서 종전을 뺀 값 (현행−종전)">?</span></span>
|
||||||
<br/><span class="font-normal text-xs">(현행−종전)</span>
|
<br/><span class="font-normal text-xs">(현행−종전)</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">지정−취소 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 지정 건수에서 취소 건수를 뺀 값">?</span></span>
|
<span class="ds-help">지정−취소 <span class="ds-help-badge" tabindex="0" data-tip="<?= esc($ry) ?>년 지정 건수에서 취소 건수를 뺀 값">?</span></span>
|
||||||
<br/><span class="font-normal text-xs">(<?= $ry ?>년)</span>
|
<br/><span class="font-normal text-xs">(<?= $ry ?>년)</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">현행비중 <span class="ds-help-badge" tabindex="0" data-tip="전체 현행 합계 대비 해당 행 현행 건수의 비율(%)">?</span></span>
|
<span class="ds-help">현행비중 <span class="ds-help-badge" tabindex="0" data-tip="전체 현행 합계 대비 해당 행 현행 건수의 비율(%)">?</span></span>
|
||||||
<br/><span class="font-normal text-xs">(%)</span>
|
<br/><span class="font-normal text-xs">(%)</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="text-right">
|
<th class="py-2.5 px-2 text-left">
|
||||||
<span class="ds-help">전년대비 <span class="ds-help-badge ds-help-right" tabindex="0" data-tip="((현행−종전) / 종전) × 100, 종전이 0이면 표시 안함">?</span></span>
|
<span class="ds-help">전년대비 <span class="ds-help-badge ds-help-right" tabindex="0" data-tip="((현행−종전) / 종전) × 100, 종전이 0이면 표시 안함">?</span></span>
|
||||||
<br/><span class="font-normal text-xs">증감률(%)</span>
|
<br/><span class="font-normal text-xs">증감률(%)</span>
|
||||||
</th>
|
</th>
|
||||||
@@ -207,36 +192,36 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
$pctShare = $sumCurrForPct > 0 ? round(($curr / $sumCurrForPct) * 100, 1) : 0.0;
|
$pctShare = $sumCurrForPct > 0 ? round(($curr / $sumCurrForPct) * 100, 1) : 0.0;
|
||||||
$yoyPct = $prev > 0 ? round((($curr - $prev) / $prev) * 100, 1) : null;
|
$yoyPct = $prev > 0 ? round((($curr - $prev) / $prev) * 100, 1) : null;
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="sticky-num"><?= $rowNo ?></td>
|
<td class="sticky-num py-2.5 px-2 text-center text-gray-500"><?= $rowNo ?></td>
|
||||||
<td class="sticky-region" title="<?= esc($row->region_label) ?>"><?= esc($row->region_label) ?></td>
|
<td class="sticky-region py-2.5 px-2 font-medium text-gray-900" title="<?= esc($row->region_label) ?>"><?= esc($row->region_label) ?></td>
|
||||||
<td class="text-left text-xs"><?= esc((string) ($row->gugun_code ?? '')) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-[12px] text-gray-700"><?= esc((string) ($row->gugun_code ?? '')) ?></td>
|
||||||
<td><?= number_format($prev) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format($prev) ?></td>
|
||||||
<td><?= number_format((int) $row->designated_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $row->designated_y) ?></td>
|
||||||
<td><?= number_format((int) $row->cancelled_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $row->cancelled_y) ?></td>
|
||||||
<td><?= number_format($curr) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= number_format($curr) ?></td>
|
||||||
<td><?= number_format((int) ($row->delta_curr_prev ?? 0)) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) ($row->delta_curr_prev ?? 0)) ?></td>
|
||||||
<td><?= number_format((int) ($row->delta_des_cancel ?? 0)) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) ($row->delta_des_cancel ?? 0)) ?></td>
|
||||||
<td><?= $pctShare ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= $pctShare ?></td>
|
||||||
<td><?= $yoyPct !== null ? $yoyPct : '—' ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= $yoyPct !== null ? $yoyPct : '—' ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($districtRows)): ?>
|
<?php if (empty($districtRows)): ?>
|
||||||
<tr><td colspan="11" class="text-center text-gray-400 py-6">조건에 맞는 데이터가 없습니다.</td></tr>
|
<tr><td colspan="11" class="text-center text-gray-400 py-6">조건에 맞는 데이터가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (! empty($districtRows) && isset($districtTotal)): ?>
|
<?php if (! empty($districtRows) && isset($districtTotal)): ?>
|
||||||
<tr class="font-bold bg-gray-50 sum-row">
|
<tr class="font-bold bg-gray-50 sum-row border-b border-gray-200 last:border-0">
|
||||||
<td class="sticky-num">—</td>
|
<td class="sticky-num py-2.5 px-2 text-center text-gray-500">—</td>
|
||||||
<td class="sticky-region"><?= esc($districtTotal->region_label) ?></td>
|
<td class="sticky-region py-2.5 px-2 text-gray-900"><?= esc($districtTotal->region_label) ?></td>
|
||||||
<td class="text-left">—</td>
|
<td class="py-2.5 px-2 text-left text-gray-500">—</td>
|
||||||
<td><?= number_format((int) $districtTotal->prev_end) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $districtTotal->prev_end) ?></td>
|
||||||
<td><?= number_format((int) $districtTotal->designated_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $districtTotal->designated_y) ?></td>
|
||||||
<td><?= number_format((int) $districtTotal->cancelled_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $districtTotal->cancelled_y) ?></td>
|
||||||
<td><?= number_format((int) $districtTotal->curr_end) ?></td>
|
<td class="py-2.5 px-2 text-gray-900"><?= number_format((int) $districtTotal->curr_end) ?></td>
|
||||||
<td><?= number_format((int) ($districtTotal->delta_curr_prev ?? 0)) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) ($districtTotal->delta_curr_prev ?? 0)) ?></td>
|
||||||
<td><?= number_format((int) ($districtTotal->delta_des_cancel ?? 0)) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) ($districtTotal->delta_des_cancel ?? 0)) ?></td>
|
||||||
<td>100</td>
|
<td class="py-2.5 px-2 text-gray-700">100</td>
|
||||||
<td>
|
<td class="py-2.5 px-2 text-gray-700">
|
||||||
<?php
|
<?php
|
||||||
$tPrev = (int) $districtTotal->prev_end;
|
$tPrev = (int) $districtTotal->prev_end;
|
||||||
$tCurr = (int) $districtTotal->curr_end;
|
$tCurr = (int) $districtTotal->curr_end;
|
||||||
@@ -260,27 +245,27 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
</span>
|
</span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 bg-white overflow-auto max-h-56">
|
<div class="overflow-auto max-h-56">
|
||||||
<table class="w-full data-table text-xs">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="text-left">동</th>
|
<th class="py-2.5 px-2 text-left">동</th>
|
||||||
<th class="text-right">종전</th>
|
<th class="py-2.5 px-2 text-left">종전</th>
|
||||||
<th class="text-right">지정</th>
|
<th class="py-2.5 px-2 text-left">지정</th>
|
||||||
<th class="text-right">취소</th>
|
<th class="py-2.5 px-2 text-left">취소</th>
|
||||||
<th class="text-right">현행</th>
|
<th class="py-2.5 px-2 text-left">현행</th>
|
||||||
<th class="text-right">증감</th>
|
<th class="py-2.5 px-2 text-left">증감</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
<?php foreach ($zoneRows as $z): ?>
|
<?php foreach ($zoneRows as $z): ?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-left"><?= esc((string) $z->zone_label) ?></td>
|
<td class="py-2.5 px-2 text-left font-medium text-gray-900"><?= esc((string) $z->zone_label) ?></td>
|
||||||
<td><?= number_format((int) $z->prev_end) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $z->prev_end) ?></td>
|
||||||
<td><?= number_format((int) $z->designated_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $z->designated_y) ?></td>
|
||||||
<td><?= number_format((int) $z->cancelled_y) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $z->cancelled_y) ?></td>
|
||||||
<td><?= number_format((int) $z->curr_end) ?></td>
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $z->curr_end) ?></td>
|
||||||
<td><?= number_format((int) $z->delta_curr_prev) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= number_format((int) $z->delta_curr_prev) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -345,7 +330,7 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
<details class="mx-2 mb-4 no-print text-sm">
|
<details class="mx-2 mb-4 no-print text-sm">
|
||||||
<summary class="cursor-pointer text-gray-600 hover:text-gray-800">연도별 요약 (참고)</summary>
|
<summary class="cursor-pointer text-gray-600 hover:text-gray-800">연도별 요약 (참고)</summary>
|
||||||
<div class="flex gap-4 mt-2">
|
<div class="flex gap-4 mt-2">
|
||||||
<div class="border border-gray-300 p-2 flex-1">
|
<div class="border border-gray-300 rounded-lg p-2 flex-1">
|
||||||
<div class="text-xs font-bold text-gray-700 mb-1">활성 / 비활성 / 전체</div>
|
<div class="text-xs font-bold text-gray-700 mb-1">활성 / 비활성 / 전체</div>
|
||||||
<div class="text-sm">활성 <?= number_format((int) ($totalActive ?? 0)) ?> · 비활성 <?= number_format((int) ($totalInactive ?? 0)) ?> · 합 <?= number_format((int) ($totalActive ?? 0) + (int) ($totalInactive ?? 0)) ?></div>
|
<div class="text-sm">활성 <?= number_format((int) ($totalActive ?? 0)) ?> · 비활성 <?= number_format((int) ($totalInactive ?? 0)) ?> · 합 <?= number_format((int) ($totalActive ?? 0) + (int) ($totalInactive ?? 0)) ?></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -353,15 +338,23 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-2">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-2">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="text-xs font-bold text-gray-700 mb-1">연도별 신규등록 (지정일)</h3>
|
<h3 class="text-xs font-bold text-gray-700 mb-1">연도별 신규등록 (지정일)</h3>
|
||||||
<div class="border border-gray-300 overflow-auto max-h-48">
|
<div class="overflow-auto max-h-48">
|
||||||
<table class="w-full data-table text-xs">
|
<table class="w-full text-[13px]">
|
||||||
<thead><tr><th>연도</th><th>건수</th></tr></thead>
|
<thead>
|
||||||
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
|
<th class="py-2.5 px-2 text-left">연도</th>
|
||||||
|
<th class="py-2.5 px-2 text-left">건수</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
<?php foreach (($newByYear ?? []) as $row): ?>
|
<?php foreach (($newByYear ?? []) as $row): ?>
|
||||||
<tr><td class="text-center"><?= esc($row->yr) ?>년</td><td><?= number_format((int) $row->cnt) ?></td></tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
|
<td class="py-2.5 px-2 text-left font-medium text-gray-900"><?= esc($row->yr) ?>년</td>
|
||||||
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $row->cnt) ?></td>
|
||||||
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($newByYear)): ?>
|
<?php if (empty($newByYear)): ?>
|
||||||
<tr><td colspan="2" class="text-center text-gray-400 py-2">없음</td></tr>
|
<tr><td colspan="2" class="text-center text-gray-400 py-6">없음</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -369,15 +362,23 @@ $sumCurrForPct = (int) ($districtTotal->curr_end ?? 0);
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="text-xs font-bold text-gray-700 mb-1">연도별 취소/비활성 (등록일 기준)</h3>
|
<h3 class="text-xs font-bold text-gray-700 mb-1">연도별 취소/비활성 (등록일 기준)</h3>
|
||||||
<div class="border border-gray-300 overflow-auto max-h-48">
|
<div class="overflow-auto max-h-48">
|
||||||
<table class="w-full data-table text-xs">
|
<table class="w-full text-[13px]">
|
||||||
<thead><tr><th>연도</th><th>건수</th></tr></thead>
|
<thead>
|
||||||
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
|
<th class="py-2.5 px-2 text-left">연도</th>
|
||||||
|
<th class="py-2.5 px-2 text-left">건수</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
<?php foreach (($cancelByYear ?? []) as $row): ?>
|
<?php foreach (($cancelByYear ?? []) as $row): ?>
|
||||||
<tr><td class="text-center"><?= esc($row->yr) ?>년</td><td><?= number_format((int) $row->cnt) ?></td></tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
|
<td class="py-2.5 px-2 text-left font-medium text-gray-900"><?= esc($row->yr) ?>년</td>
|
||||||
|
<td class="py-2.5 px-2 text-gray-700"><?= number_format((int) $row->cnt) ?></td>
|
||||||
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($cancelByYear)): ?>
|
<?php if (empty($cancelByYear)): ?>
|
||||||
<tr><td colspan="2" class="text-center text-gray-400 py-2">없음</td></tr>
|
<tr><td colspan="2" class="text-center text-gray-400 py-6">없음</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">무료용 대상 등록</span>
|
<span class="text-sm font-bold text-gray-700">무료용 대상 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('free-recipients/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('free-recipients/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">무료용 대상 수정</span>
|
<span class="text-sm font-bold text-gray-700">무료용 대상 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('free-recipients/update/' . (int) $item->fr_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('free-recipients/update/' . (int) $item->fr_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -8,18 +8,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-16 text-left">번호</th>
|
||||||
<th class="w-28">동코드</th>
|
<th class="py-2.5 px-2 w-28">동코드</th>
|
||||||
<th class="w-40">구분</th>
|
<th class="py-2.5 px-2 w-40">구분</th>
|
||||||
<th>명칭</th>
|
<th class="py-2.5 px-2">명칭</th>
|
||||||
<th class="w-28">종료일자</th>
|
<th class="py-2.5 px-2 w-28 text-left">종료일자</th>
|
||||||
<th class="w-48">비고</th>
|
<th class="py-2.5 px-2 w-48">비고</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="py-2.5 px-2 w-20 text-left">상태</th>
|
||||||
<th class="w-36">작업</th>
|
<th class="py-2.5 px-2 w-36 text-left">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -36,19 +36,25 @@
|
|||||||
$dongCode = (string) ($row->fr_dong_code ?? '');
|
$dongCode = (string) ($row->fr_dong_code ?? '');
|
||||||
$dongLabel = $dongCode !== '' ? (string) (($dongNameMap[$dongCode] ?? $dongCode) . ' (' . $dongCode . ')') : '-';
|
$dongLabel = $dongCode !== '' ? (string) (($dongNameMap[$dongCode] ?? $dongCode) . ' (' . $dongCode . ')') : '-';
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= esc((string) $rowNo) ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= esc((string) $rowNo) ?></td>
|
||||||
<td class="text-center"><?= esc($dongLabel) ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($dongLabel) ?></td>
|
||||||
<td class="text-center"><?= esc($typeName) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($typeName) ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->fr_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->fr_name) ?></td>
|
||||||
<td class="text-center"><?= esc($row->fr_end_date ?: '9999.99.99') ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500 text-[12px]"><?= esc($row->fr_end_date ?: '9999.99.99') ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->fr_note) ?></td>
|
<td class="py-2.5 px-2 text-gray-500"><?= esc($row->fr_note) ?></td>
|
||||||
<td class="text-center"><?= (int) $row->fr_state === 1 ? '사용' : '미사용' ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
<td class="text-center">
|
<?php if ((int) $row->fr_state === 1): ?>
|
||||||
<a href="<?= mgmt_url('free-recipients/edit/' . (int) $row->fr_idx) ?>" class="text-blue-600 hover:underline text-sm mr-1">수정</a>
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">사용</span>
|
||||||
|
<?php else: ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500">미사용</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
|
<a href="<?= mgmt_url('free-recipients/edit/' . (int) $row->fr_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||||
<form action="<?= mgmt_url('free-recipients/delete/' . (int) $row->fr_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
<form action="<?= mgmt_url('free-recipients/delete/' . (int) $row->fr_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<button type="submit" class="text-red-600 hover:underline text-sm">삭제</button>
|
<button type="submit" class="text-red-600 hover:underline">삭제</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -56,7 +62,7 @@
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="8" class="text-center text-gray-500 py-4 text-sm space-y-1">
|
<td colspan="8" class="text-center text-gray-400 py-6 space-y-1">
|
||||||
<p>등록된 데이터가 없습니다.</p>
|
<p>등록된 데이터가 없습니다.</p>
|
||||||
<p class="text-gray-400">다른 지자체를 선택 중이면 해당 지자체 기준으로만 조회됩니다. Super Admin 은 상단에서 작업 지자체를 바꿔 보세요.</p>
|
<p class="text-gray-400">다른 지자체를 선택 중이면 해당 지자체 기준으로만 조회됩니다. Super Admin 은 상단에서 작업 지자체를 바꿔 보세요.</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ $navPartial = [
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||||
<title><?= esc($title ?? '관리자') ?> - 종량제 시스템</title>
|
<title><?= esc($title ?? '관리자') ?> - GBLS</title>
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||||
@@ -85,10 +85,12 @@ tailwind.config = {
|
|||||||
<?php include __DIR__ . '/../home/_dashboard_gov_portal_topnav_css.php'; ?>
|
<?php include __DIR__ . '/../home/_dashboard_gov_portal_topnav_css.php'; ?>
|
||||||
<?php include __DIR__ . '/../home/_dashboard_gov_portal_chrome_css.php'; ?>
|
<?php include __DIR__ . '/../home/_dashboard_gov_portal_chrome_css.php'; ?>
|
||||||
.data-table { width: 100%; border-collapse: collapse; font-family: 'Pretendard', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
|
.data-table { width: 100%; border-collapse: collapse; font-family: 'Pretendard', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
|
||||||
.data-table th, .data-table td { border: 1px solid #ccc; padding: 4px 8px; white-space: nowrap; font-size: 13px; }
|
.data-table { font-size: 13px; }
|
||||||
.data-table th { background-color: #e9ecef; text-align: center; vertical-align: middle; font-weight: bold; color: #333; }
|
.data-table th, .data-table td { text-align: left; padding: 0.55rem 0.5rem; white-space: nowrap; border: 0; border-bottom: 1px solid #e5e7eb; }
|
||||||
.data-table tbody tr:nth-child(even) td { background-color: #f9f9f9; }
|
.data-table thead th { font-size: 0.6875rem; font-weight: 600; color: #6b7280; background: transparent; vertical-align: middle; }
|
||||||
.data-table tbody tr:hover td { background-color: #e6f7ff !important; }
|
.data-table tbody td { color: #374151; }
|
||||||
|
.data-table tbody tr:last-child td { border-bottom: 0; }
|
||||||
|
.data-table tbody tr:hover td { background-color: #f9fafb; }
|
||||||
@media print {
|
@media print {
|
||||||
.portal-header, .sidebar, .portal-footer, .no-print, nav.portal-top-nav { display: none !important; }
|
.portal-header, .sidebar, .portal-footer, .no-print, nav.portal-top-nav { display: none !important; }
|
||||||
body.gov-portal-shell { background: #fff; display: block; }
|
body.gov-portal-shell { background: #fff; display: block; }
|
||||||
@@ -100,9 +102,14 @@ tailwind.config = {
|
|||||||
<body class="gov-portal-shell select-none">
|
<body class="gov-portal-shell select-none">
|
||||||
<header class="portal-header">
|
<header class="portal-header">
|
||||||
<div class="portal-header-inner">
|
<div class="portal-header-inner">
|
||||||
<?= view('home/_dashboard_gov_portal_brand', ['brandHref' => base_url('admin')]) ?>
|
<?= view('home/_dashboard_gov_portal_brand', ['brandHref' => base_url('/')]) ?>
|
||||||
<?= view('home/_dashboard_gov_portal_topnav_click', $navPartial) ?>
|
<?= view('home/_dashboard_gov_portal_topnav_click', $navPartial) ?>
|
||||||
<div class="portal-header-utils" style="display:flex;align-items:center;gap:.5rem;">
|
<div class="portal-header-utils" style="display:flex;align-items:center;gap:.5rem;">
|
||||||
|
<div class="ws-fontctl" title="글씨 크기 조절" style="display:inline-flex;align-items:center;gap:2px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:6px;padding:1px;">
|
||||||
|
<button type="button" id="wsFontMinus" title="글씨 작게" style="width:24px;height:22px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:11px;line-height:1;border-radius:5px;">A−</button>
|
||||||
|
<span id="wsFontPct" style="min-width:34px;text-align:center;color:#fff;font-size:.68rem;font-weight:600;">100%</span>
|
||||||
|
<button type="button" id="wsFontPlus" title="글씨 크게" style="width:24px;height:22px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:14px;line-height:1;border-radius:5px;">A+</button>
|
||||||
|
</div>
|
||||||
<span class="user-line">
|
<span class="user-line">
|
||||||
<?php if ($effectiveLgName !== ''): ?><strong><?= esc($effectiveLgName) ?></strong> · <?php endif; ?>
|
<?php if ($effectiveLgName !== ''): ?><strong><?= esc($effectiveLgName) ?></strong> · <?php endif; ?>
|
||||||
<?= esc($levelName) ?> · <?= esc($mbName) ?>님
|
<?= esc($levelName) ?> · <?= esc($mbName) ?>님
|
||||||
@@ -142,10 +149,46 @@ tailwind.config = {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="portal-footer">
|
<footer class="portal-footer">
|
||||||
<span>종량제 시스템 관리자</span>
|
<span>GBLS 관리자</span>
|
||||||
<span><?= date('Y.m.d (D) H:i') ?></span>
|
<span><?= date('Y.m.d (D) H:i') ?></span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<?= view('home/_dashboard_gov_portal_nav_script_base', $navPartial) ?>
|
<?= view('home/_dashboard_gov_portal_nav_script_base', $navPartial) ?>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
// bfcache 복원 시 열린 채 남은 모달/팝업으로 회색 레이어가 클릭을 막는 문제 방지
|
||||||
|
function closeStuckOverlays() {
|
||||||
|
document.querySelectorAll('.fixed.inset-0[id$="-modal"], .fixed.inset-0[id$="-popup"]').forEach(function (el) {
|
||||||
|
el.classList.add('hidden'); el.setAttribute('aria-hidden', 'true');
|
||||||
|
});
|
||||||
|
document.body.style.overflow = '';
|
||||||
|
}
|
||||||
|
window.addEventListener('pageshow', function (e) { if (e.persisted) closeStuckOverlays(); });
|
||||||
|
window.addEventListener('pagehide', closeStuckOverlays);
|
||||||
|
})();
|
||||||
|
|
||||||
|
// 글씨 크기 조절(A−/A+) — 본문 + 상단 대메뉴 + 좌측 사이드바에 zoom 적용. 사이트/워크스페이스와 배율 공유.
|
||||||
|
(function () {
|
||||||
|
var FONT_KEY = 'jrj_font_scale';
|
||||||
|
// 상단 헤더는 제외 → A−/A+ 버튼이 커지거나 밀리지 않아 연속 클릭이 편하다.
|
||||||
|
var scaleSelectors = ['.sidebar', '.work-main'];
|
||||||
|
function curScale() { var s = parseInt(localStorage.getItem(FONT_KEY) || '100', 10); return (s >= 70 && s <= 150) ? s : 100; }
|
||||||
|
function applyScale(s) {
|
||||||
|
s = Math.min(150, Math.max(70, s));
|
||||||
|
try { localStorage.setItem(FONT_KEY, String(s)); } catch (e) {}
|
||||||
|
var z = s / 100;
|
||||||
|
scaleSelectors.forEach(function (sel) { var el = document.querySelector(sel); if (el) el.style.zoom = z; });
|
||||||
|
// 상단 대메뉴는 font-size 만 키운다(바 높이 48px 고정 → A−/A+ 버튼이 안 밀림).
|
||||||
|
var topnav = document.querySelector('.portal-top-nav');
|
||||||
|
if (topnav) topnav.style.fontSize = (0.875 * z).toFixed(4) + 'rem';
|
||||||
|
var pct = document.getElementById('wsFontPct'); if (pct) pct.textContent = s + '%';
|
||||||
|
}
|
||||||
|
applyScale(curScale());
|
||||||
|
var plus = document.getElementById('wsFontPlus'), minus = document.getElementById('wsFontMinus');
|
||||||
|
if (plus) plus.addEventListener('click', function () { applyScale(curScale() + 10); });
|
||||||
|
if (minus) minus.addEventListener('click', function () { applyScale(curScale() - 10); });
|
||||||
|
window.addEventListener('storage', function (e) { if (e.key === FONT_KEY) applyScale(curScale()); });
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">지자체 등록</span>
|
<span class="text-sm font-bold text-gray-700">지자체 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-xl">
|
||||||
<form action="<?= base_url('admin/local-governments/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/local-governments/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">지자체 수정</span>
|
<span class="text-sm font-bold text-gray-700">지자체 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('admin/local-governments/update/' . (int) $item->lg_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/local-governments/update/' . (int) $item->lg_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -8,18 +8,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>지자체명</th>
|
<th class="text-left">지자체명</th>
|
||||||
<th>코드</th>
|
<th class="text-left">코드</th>
|
||||||
<th>시/도</th>
|
<th class="text-left">시/도</th>
|
||||||
<th>구/군</th>
|
<th class="text-left">구/군</th>
|
||||||
<th>상태</th>
|
<th class="text-center">상태</th>
|
||||||
<th>등록일</th>
|
<th class="text-left">등록일</th>
|
||||||
<th class="w-28">작업</th>
|
<th class="w-28 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">담당자 등록</span>
|
<span class="text-sm font-bold text-gray-700">담당자 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('managers/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('managers/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">담당자 수정</span>
|
<span class="text-sm font-bold text-gray-700">담당자 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('managers/update/' . (int) $item->mg_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('managers/update/' . (int) $item->mg_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -21,47 +21,53 @@
|
|||||||
<a href="<?= mgmt_url('managers') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('managers') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-16 text-left">번호</th>
|
||||||
<th>담당자명</th>
|
<th class="py-2.5 px-2">담당자명</th>
|
||||||
<th>카테고리</th>
|
<th class="py-2.5 px-2">카테고리</th>
|
||||||
<th>전화</th>
|
<th class="py-2.5 px-2">전화</th>
|
||||||
<th>휴대전화</th>
|
<th class="py-2.5 px-2">휴대전화</th>
|
||||||
<th>이메일</th>
|
<th class="py-2.5 px-2">이메일</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="py-2.5 px-2 w-20 text-left">상태</th>
|
||||||
<th class="w-36">작업</th>
|
<th class="py-2.5 px-2 w-36 text-left">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($list as $row): ?>
|
<?php foreach ($list as $row): ?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= esc($row->mg_idx) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-gray-700"><?= esc($row->mg_idx) ?></td>
|
||||||
<td class="text-center"><?= esc($row->mg_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->mg_name) ?></td>
|
||||||
<td class="text-center">
|
<td class="py-2.5 px-2">
|
||||||
<?php
|
<?php
|
||||||
$cat = (string) ($row->mg_dept_code ?? '');
|
$cat = (string) ($row->mg_dept_code ?? '');
|
||||||
$catLabel = $categories[$cat] ?? $cat;
|
$catLabel = $categories[$cat] ?? $cat;
|
||||||
echo esc($catLabel);
|
|
||||||
?>
|
?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500"><?= esc($catLabel) ?></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center"><?= esc($row->mg_tel) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->mg_tel) ?></td>
|
||||||
<td class="text-center"><?= esc($row->mg_phone) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->mg_phone) ?></td>
|
||||||
<td class="text-center"><?= esc($row->mg_email) ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->mg_email) ?></td>
|
||||||
<td class="text-center"><?= (int) $row->mg_state === 1 ? '사용' : '미사용' ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
<td class="text-center">
|
<?php if ((int) $row->mg_state === 1): ?>
|
||||||
<a href="<?= mgmt_url('managers/edit/' . (int) $row->mg_idx) ?>" class="text-blue-600 hover:underline text-sm mr-1">수정</a>
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">사용</span>
|
||||||
|
<?php else: ?>
|
||||||
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500">미사용</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
|
<a href="<?= mgmt_url('managers/edit/' . (int) $row->mg_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||||
<form action="<?= mgmt_url('managers/delete/' . (int) $row->mg_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
<form action="<?= mgmt_url('managers/delete/' . (int) $row->mg_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<button type="submit" class="text-red-600 hover:underline text-sm">삭제</button>
|
<button type="submit" class="text-red-600 hover:underline">삭제</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<tr><td colspan="8" class="text-center text-gray-400 py-4">등록된 데이터가 없습니다.</td></tr>
|
<tr><td colspan="8" class="text-center text-gray-400 py-6">등록된 데이터가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -76,12 +76,12 @@ $adminMenuListResolveHref = static function (string $rawLink) use ($menuListReso
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-20 text-center text-xs font-medium text-gray-600">순서변경</th>
|
<th class="w-20 text-center text-xs font-medium text-gray-600">순서변경</th>
|
||||||
<th class="w-10">#</th>
|
<th class="w-10 text-center">#</th>
|
||||||
<th>메뉴명</th>
|
<th class="text-left">메뉴명</th>
|
||||||
<th>링크</th>
|
<th class="text-left">링크</th>
|
||||||
<th>노출 대상</th>
|
<th class="text-left">노출 대상</th>
|
||||||
<th>사용</th>
|
<th class="text-center">사용</th>
|
||||||
<th class="w-24">작업</th>
|
<th class="w-24 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">포장 단위 등록</span>
|
<span class="text-sm font-bold text-gray-700">포장 단위 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('packaging-units/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('packaging-units/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">포장 단위 수정</span>
|
<span class="text-sm font-bold text-gray-700">포장 단위 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('packaging-units/update/' . (int) $item->pu_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('packaging-units/update/' . (int) $item->pu_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span class="text-sm font-bold text-gray-700">변경 이력 — <?= esc($item->pu_bag_name) ?> (<?= esc($item->pu_bag_code) ?>)</span>
|
<span class="text-sm font-bold text-gray-700">변경 이력 — <?= esc($item->pu_bag_name) ?> (<?= esc($item->pu_bag_code) ?>)</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<?php
|
<?php
|
||||||
$fieldLabelMap = [
|
$fieldLabelMap = [
|
||||||
'pu_box_per_pack' => '박스당 팩 수',
|
'pu_box_per_pack' => '박스당 팩 수',
|
||||||
@@ -18,11 +18,11 @@
|
|||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>변경 내용</th>
|
<th class="text-left">변경 내용</th>
|
||||||
<th>이전 값</th>
|
<th class="text-right">이전 값</th>
|
||||||
<th>변경 값</th>
|
<th class="text-right">변경 값</th>
|
||||||
<th>변경일시</th>
|
<th class="text-center">변경일시</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -18,20 +18,20 @@
|
|||||||
<a href="<?= mgmt_url('packaging-units') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('packaging-units') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>봉투코드</th>
|
<th class="text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th class="text-left">봉투명</th>
|
||||||
<th>박스당 팩 수</th>
|
<th class="text-right">박스당 팩 수</th>
|
||||||
<th>팩당 낱장 수</th>
|
<th class="text-right">팩당 낱장 수</th>
|
||||||
<th>1박스 총 낱장</th>
|
<th class="text-right">1박스 총 낱장</th>
|
||||||
<th>적용시작</th>
|
<th class="text-center">적용시작</th>
|
||||||
<th>적용종료</th>
|
<th class="text-center">적용종료</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="w-20 text-center">상태</th>
|
||||||
<th class="w-36">작업</th>
|
<th class="w-36 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">비밀번호 변경</span>
|
<span class="text-sm font-bold text-gray-700">비밀번호 변경</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-md">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-md">
|
||||||
<form action="<?= mgmt_url('password-change') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('password-change') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">역할 (mb_level)</span>
|
<span class="text-sm font-bold text-gray-700">역할 (mb_level)</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2">
|
||||||
<p class="text-sm text-gray-600 mb-4">Config\Roles 기반 역할 목록입니다.</p>
|
<p class="text-sm text-gray-600 mb-4">Config\Roles 기반 역할 목록입니다.</p>
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-24">코드</th>
|
<th class="w-24 text-center">코드</th>
|
||||||
<th>이름</th>
|
<th class="text-left">이름</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">대행소 등록</span>
|
<span class="text-sm font-bold text-gray-700">대행소 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('sales-agencies/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('sales-agencies/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">대행소 수정</span>
|
<span class="text-sm font-bold text-gray-700">대행소 수정</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= mgmt_url('sales-agencies/update/' . (int) $item->sa_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('sales-agencies/update/' . (int) $item->sa_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="no-print border border-gray-300 bg-white p-2 mt-2">
|
<section class="no-print border border-gray-300 rounded-lg bg-white p-2 mt-2">
|
||||||
<form method="GET" action="<?= mgmt_url('sales-agencies') ?>" class="flex flex-wrap items-end gap-2">
|
<form method="GET" action="<?= mgmt_url('sales-agencies') ?>" class="flex flex-wrap items-end gap-2">
|
||||||
<div class="flex flex-col gap-0.5">
|
<div class="flex flex-col gap-0.5">
|
||||||
<label class="text-xs text-gray-500">번호</label>
|
<label class="text-xs text-gray-500">번호</label>
|
||||||
@@ -32,15 +32,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-16 text-left">번호</th>
|
||||||
<th>대행소 구분</th>
|
<th class="py-2.5 px-2">대행소 구분</th>
|
||||||
<th>대행소 코드</th>
|
<th class="py-2.5 px-2">대행소 코드</th>
|
||||||
<th>대행소 명</th>
|
<th class="py-2.5 px-2">대행소 명</th>
|
||||||
<th class="w-36">작업</th>
|
<th class="py-2.5 px-2 w-36 text-left">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -53,22 +53,22 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php foreach (($list ?? []) as $idx => $row): ?>
|
<?php foreach (($list ?? []) as $idx => $row): ?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= (int) $startNo + (int) $idx ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= (int) $startNo + (int) $idx ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->sa_kind ?? '') ?></td>
|
<td class="py-2.5 px-2 text-gray-600"><?= esc($row->sa_kind ?? '') ?></td>
|
||||||
<td class="text-center"><?= esc($row->sa_code ?? '') ?></td>
|
<td class="py-2.5 px-2 font-mono text-gray-700"><?= esc($row->sa_code ?? '') ?></td>
|
||||||
<td class="text-left pl-2"><?= esc($row->sa_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->sa_name) ?></td>
|
||||||
<td class="text-center">
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
<a href="<?= mgmt_url('sales-agencies/edit/' . (int) $row->sa_idx) ?>" class="text-blue-600 hover:underline text-sm mr-1">수정</a>
|
<a href="<?= mgmt_url('sales-agencies/edit/' . (int) $row->sa_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||||
<form action="<?= mgmt_url('sales-agencies/delete/' . (int) $row->sa_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
<form action="<?= mgmt_url('sales-agencies/delete/' . (int) $row->sa_idx) ?>" method="POST" class="inline" onsubmit="return confirm('삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<button type="submit" class="text-red-600 hover:underline text-sm">삭제</button>
|
<button type="submit" class="text-red-600 hover:underline">삭제</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<tr><td colspan="5" class="text-center text-gray-400 py-4">등록된 데이터가 없습니다.</td></tr>
|
<tr><td colspan="5" class="text-center text-gray-400 py-6">등록된 데이터가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ $excelUrl = mgmt_url('reports/daily-summary?' . http_build_query($exportParams))
|
|||||||
<p class="text-xs text-gray-500 m-0">누계(월): <?= esc(($monthStart ?? '') . ' ~ ' . ($date ?? '')) ?> · (단위: 매 / 원)</p>
|
<p class="text-xs text-gray-500 m-0">누계(월): <?= esc(($monthStart ?? '') . ' ~ ' . ($date ?? '')) ?> · (단위: 매 / 원)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm" id="daily-summary-table">
|
<table class="w-full data-table text-sm" id="daily-summary-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2" class="align-middle">구분</th>
|
<th rowspan="2" class="align-middle text-left">구분</th>
|
||||||
<th rowspan="2" class="align-middle">봉투종류</th>
|
<th rowspan="2" class="align-middle text-left">봉투종류</th>
|
||||||
<th colspan="4" class="text-center border-l border-gray-300">일계</th>
|
<th colspan="4" class="text-center border-l border-gray-300">일계</th>
|
||||||
<th colspan="4" class="text-center border-l border-gray-300">누계(월)</th>
|
<th colspan="4" class="text-center border-l border-gray-300">누계(월)</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ $hometaxRenderTable = static function (
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="text-sm font-semibold text-gray-700 mb-2 no-print">조회결과</div>
|
<div class="text-sm font-semibold text-gray-700 mb-2 no-print">조회결과</div>
|
||||||
<div class="hometax-screen-only hometax-scroll-wrap overflow-x-auto border border-gray-300" style="max-width: 100%;">
|
<div class="hometax-screen-only hometax-scroll-wrap overflow-x-auto border border-gray-300 rounded-lg" style="max-width: 100%;">
|
||||||
<?php
|
<?php
|
||||||
$hometaxRenderTable(
|
$hometaxRenderTable(
|
||||||
range(0, max(0, $colCount - 1)),
|
range(0, max(0, $colCount - 1)),
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ if ($bagName !== '' || $bagCode !== '') {
|
|||||||
|
|
||||||
<div class="lot-flow-layout m-2 flex flex-col lg:flex-row gap-3 min-h-[320px]">
|
<div class="lot-flow-layout m-2 flex flex-col lg:flex-row gap-3 min-h-[320px]">
|
||||||
<!-- 좌: 품목·단위 요약 (레거시 BOX/PACK/낱장) -->
|
<!-- 좌: 품목·단위 요약 (레거시 BOX/PACK/낱장) -->
|
||||||
<div class="lot-flow-summary border border-gray-300 bg-gray-50 p-3 lg:w-64 shrink-0">
|
<div class="lot-flow-summary border border-gray-300 rounded-lg bg-gray-50 p-3 lg:w-64 shrink-0">
|
||||||
<h3 class="text-sm font-bold text-gray-700 mb-2">봉투 정보</h3>
|
<h3 class="text-sm font-bold text-gray-700 mb-2">봉투 정보</h3>
|
||||||
<?php if ($ok): ?>
|
<?php if ($ok): ?>
|
||||||
<dl class="text-sm space-y-1.5">
|
<dl class="text-sm space-y-1.5">
|
||||||
@@ -157,7 +157,7 @@ if ($bagName !== '' || $bagCode !== '') {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 우: LOT 수불 현황 -->
|
<!-- 우: LOT 수불 현황 -->
|
||||||
<div class="lot-flow-table-wrap flex-1 border border-gray-300 flex flex-col min-w-0">
|
<div class="lot-flow-table-wrap flex-1 border border-gray-300 rounded-lg flex flex-col min-w-0">
|
||||||
<div class="bg-gray-100 border-b border-gray-300 px-3 py-1.5">
|
<div class="bg-gray-100 border-b border-gray-300 px-3 py-1.5">
|
||||||
<span class="text-sm font-bold text-gray-700">LOT 수불 현황</span>
|
<span class="text-sm font-bold text-gray-700">LOT 수불 현황</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -165,7 +165,7 @@ if ($bagName !== '' || $bagCode !== '') {
|
|||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-28">일자</th>
|
<th class="w-28 text-center">일자</th>
|
||||||
<th>입출고처</th>
|
<th>입출고처</th>
|
||||||
<th class="w-24 text-center">구분</th>
|
<th class="w-24 text-center">구분</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -111,15 +111,15 @@ $registerReason = $selectedGroup ? (string) ($selectedGroup['reason'] ?? '') : '
|
|||||||
|
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-4 gap-2 p-2">
|
<div class="grid grid-cols-1 xl:grid-cols-4 gap-2 p-2">
|
||||||
<!-- 입출고 리스트 -->
|
<!-- 입출고 리스트 -->
|
||||||
<section class="border border-gray-300 bg-white xl:col-span-1">
|
<section class="border border-gray-300 rounded-lg bg-white xl:col-span-1">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 리스트</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 리스트</div>
|
||||||
<div class="overflow-auto max-h-[520px]">
|
<div class="overflow-auto max-h-[520px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-24">수불일자</th>
|
<th class="w-24 text-center">수불일자</th>
|
||||||
<th class="w-16">수량</th>
|
<th class="w-16 text-right">수량</th>
|
||||||
<th class="w-14">구분</th>
|
<th class="w-14 text-center">구분</th>
|
||||||
<th>메모</th>
|
<th>메모</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -187,7 +187,7 @@ $registerReason = $selectedGroup ? (string) ($selectedGroup['reason'] ?? '') : '
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- 입출고 일자 (상세) -->
|
<!-- 입출고 일자 (상세) -->
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 일자</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 일자</div>
|
||||||
<div class="p-2 grid grid-cols-1 md:grid-cols-2 gap-3 text-sm">
|
<div class="p-2 grid grid-cols-1 md:grid-cols-2 gap-3 text-sm">
|
||||||
<?php if ($selectedGroup): ?>
|
<?php if ($selectedGroup): ?>
|
||||||
@@ -216,17 +216,17 @@ $registerReason = $selectedGroup ? (string) ($selectedGroup['reason'] ?? '') : '
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- 입출고 봉투 코드 -->
|
<!-- 입출고 봉투 코드 -->
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 봉투 코드</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">입출고 봉투 코드</div>
|
||||||
<div class="overflow-auto max-h-[280px]">
|
<div class="overflow-auto max-h-[280px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-10">No</th>
|
<th class="w-10 text-center">No</th>
|
||||||
<th>봉투 코드</th>
|
<th class="text-center">봉투 코드</th>
|
||||||
<th>봉투 종류</th>
|
<th class="text-left">봉투 종류</th>
|
||||||
<th class="w-20">수량</th>
|
<th class="w-20 text-right">수량</th>
|
||||||
<th class="w-14">단위</th>
|
<th class="w-14 text-center">단위</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
@@ -265,7 +265,7 @@ $registerReason = $selectedGroup ? (string) ($selectedGroup['reason'] ?? '') : '
|
|||||||
|
|
||||||
<!-- 품목 등록 (동일 수불일자·구분·비고로 묶임) -->
|
<!-- 품목 등록 (동일 수불일자·구분·비고로 묶임) -->
|
||||||
<?php if ($tableExists ?? false): ?>
|
<?php if ($tableExists ?? false): ?>
|
||||||
<section class="border border-gray-300 bg-white no-print">
|
<section class="border border-gray-300 rounded-lg bg-white no-print">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">품목 등록</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">품목 등록</div>
|
||||||
<form method="post" action="<?= mgmt_url('reports/misc-flow') ?>" class="p-2 flex flex-wrap items-end gap-2 text-sm">
|
<form method="post" action="<?= mgmt_url('reports/misc-flow') ?>" class="p-2 flex flex-wrap items-end gap-2 text-sm">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|||||||
@@ -116,12 +116,12 @@ $rowClass = static function (string $kind): string {
|
|||||||
<p class="text-xs text-gray-500 m-0">집계: <?= $byDaily ? '일자별' : '기간별' ?> · (단위: 매 / 원)</p>
|
<p class="text-xs text-gray-500 m-0">집계: <?= $byDaily ? '일자별' : '기간별' ?> · (단위: 매 / 원)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm" id="period-sales-table">
|
<table class="w-full data-table text-sm" id="period-sales-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<?php if ($byDaily): ?>
|
<?php if ($byDaily): ?>
|
||||||
<th rowspan="2" class="align-middle whitespace-nowrap">일자</th>
|
<th rowspan="2" class="align-middle whitespace-nowrap text-center">일자</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th rowspan="2" class="align-middle text-left pl-2">품목</th>
|
<th rowspan="2" class="align-middle text-left pl-2">품목</th>
|
||||||
<th colspan="4" class="text-center border-l border-gray-300">판매</th>
|
<th colspan="4" class="text-center border-l border-gray-300">판매</th>
|
||||||
|
|||||||
@@ -114,11 +114,11 @@ $tipPage = "지정판매소 반품·물류 입고분 파기 내역을 기간·
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto m-2 print:m-0">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto m-2 print:m-0">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-28">일자</th>
|
<th class="w-28 text-center">일자</th>
|
||||||
<th>반품처</th>
|
<th>반품처</th>
|
||||||
<th>종류</th>
|
<th>종류</th>
|
||||||
<th class="w-24 text-right">수량</th>
|
<th class="w-24 text-right">수량</th>
|
||||||
|
|||||||
@@ -188,16 +188,16 @@ $excelUrl = mgmt_url('reports/sales-ledger?' . http_build_query($exportParams));
|
|||||||
<p class="text-xs text-gray-500 m-0">(단위: 매 / 원) · <?= esc($startDate) ?> ~ <?= esc($endDate) ?></p>
|
<p class="text-xs text-gray-500 m-0">(단위: 매 / 원) · <?= esc($startDate) ?> ~ <?= esc($endDate) ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sales-ledger-scroll-wrap border border-gray-300 overflow-auto">
|
<div class="sales-ledger-scroll-wrap border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm <?= ($mode ?? 'daily') === 'period' ? 'sl-period' : '' ?>" id="sales-ledger-table">
|
<table class="w-full data-table text-sm <?= ($mode ?? 'daily') === 'period' ? 'sl-period' : '' ?>" id="sales-ledger-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<?php if (($mode ?? 'daily') === 'daily'): ?>
|
<?php if (($mode ?? 'daily') === 'daily'): ?>
|
||||||
<th class="sl-col-date">일자</th>
|
<th class="sl-col-date text-center">일자</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th class="sl-col-designation">지정번호</th>
|
<th class="sl-col-designation text-center">지정번호</th>
|
||||||
<th class="sl-col-shop text-left">판매소명</th>
|
<th class="sl-col-shop text-left">판매소명</th>
|
||||||
<th class="sl-col-rep">대표자</th>
|
<th class="sl-col-rep text-center">대표자</th>
|
||||||
<th class="sl-col-addr text-left">소재지</th>
|
<th class="sl-col-addr text-left">소재지</th>
|
||||||
<th class="sl-col-product text-left">품명</th>
|
<th class="sl-col-product text-left">품명</th>
|
||||||
<th class="text-right sl-col-num">판매량</th>
|
<th class="text-right sl-col-num">판매량</th>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ $colCount = 16;
|
|||||||
<p class="text-xs text-gray-500 m-0"><?= $isAmt ? '(단위: 원)' : '(단위: 매)' ?></p>
|
<p class="text-xs text-gray-500 m-0"><?= $isAmt ? '(단위: 원)' : '(단위: 매)' ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="shop-sales-scroll-wrap border border-gray-300 overflow-x-auto">
|
<div class="shop-sales-scroll-wrap border border-gray-300 rounded-lg p-4 overflow-x-auto">
|
||||||
<table class="w-full data-table text-xs" id="shop-sales-table">
|
<table class="w-full data-table text-xs" id="shop-sales-table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 14%;"/>
|
<col style="width: 14%;"/>
|
||||||
@@ -168,11 +168,11 @@ $colCount = 16;
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-left pl-2">지정판매소</th>
|
<th class="text-left pl-2">지정판매소</th>
|
||||||
<th>대표자명</th>
|
<th class="text-center">대표자명</th>
|
||||||
<th class="text-left pl-1">주소</th>
|
<th class="text-left pl-1">주소</th>
|
||||||
<th>합계</th>
|
<th class="text-right">합계</th>
|
||||||
<?php for ($m = 1; $m <= 12; $m++): ?>
|
<?php for ($m = 1; $m <= 12; $m++): ?>
|
||||||
<th><?= $m ?>월</th>
|
<th class="text-right"><?= $m ?>월</th>
|
||||||
<?php endfor; ?>
|
<?php endfor; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ $printExtraLines = [
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="supply-plan-print-sheet">
|
<div class="supply-plan-print-sheet">
|
||||||
<div class="supply-plan-print m-2 border border-gray-300 overflow-auto print:m-0">
|
<div class="supply-plan-print m-2 border border-gray-300 rounded-lg p-4 overflow-auto print:m-0">
|
||||||
<table class="w-full data-table text-sm supply-plan-table">
|
<table class="w-full data-table text-sm supply-plan-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="bg-gray-100">
|
<tr class="bg-gray-100">
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ $fmtMeasureCell = static function (array $cell, string $measureKey, bool $hasBsF
|
|||||||
<p class="text-xs text-gray-500 m-0">(단위: 매 / 원)</p>
|
<p class="text-xs text-gray-500 m-0">(단위: 매 / 원)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="yearly-sales-scroll-wrap border border-gray-300 overflow-x-auto">
|
<div class="yearly-sales-scroll-wrap border border-gray-300 rounded-lg p-4 overflow-x-auto">
|
||||||
<table class="w-full data-table text-xs sm:text-sm" id="yearly-sales-table">
|
<table class="w-full data-table text-xs sm:text-sm" id="yearly-sales-table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 9%;"/>
|
<col style="width: 9%;"/>
|
||||||
@@ -158,7 +158,7 @@ $fmtMeasureCell = static function (array $cell, string $measureKey, bool $hasBsF
|
|||||||
<th class="align-middle min-w-0 sm:min-w-[7rem] max-w-[10rem] sm:max-w-[12rem] text-left pl-2">품목</th>
|
<th class="align-middle min-w-0 sm:min-w-[7rem] max-w-[10rem] sm:max-w-[12rem] text-left pl-2">품목</th>
|
||||||
<th class="align-middle min-w-0 sm:min-w-[4.5rem]">구분</th>
|
<th class="align-middle min-w-0 sm:min-w-[4.5rem]">구분</th>
|
||||||
<?php foreach ($colSpec ?? [] as $col): ?>
|
<?php foreach ($colSpec ?? [] as $col): ?>
|
||||||
<th class="align-middle text-center min-w-0 sm:min-w-[4.5rem] border-l border-gray-200"><?= esc((string) ($col['label'] ?? '')) ?></th>
|
<th class="align-middle text-right min-w-0 sm:min-w-[4.5rem] border-l border-gray-200"><?= esc((string) ($col['label'] ?? '')) ?></th>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -1,17 +1,24 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<p class="text-sm text-gray-700 mb-2">관리자 페이지에서 사용할 지자체를 선택하세요. 선택한 지자체 기준으로 목록·등록이 표시됩니다.</p>
|
<p class="text-sm text-gray-700 mb-2">관리자 페이지에서 사용할 지자체를 선택하세요. 선택한 지자체 기준으로 목록·등록이 표시됩니다.</p>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2 p-4">
|
<div class="border border-gray-300 rounded-lg overflow-auto mt-2 p-4">
|
||||||
<?php if (empty($list)): ?>
|
<?php if (empty($list)): ?>
|
||||||
<p class="text-gray-600 py-4">등록된 지자체가 없습니다. <a href="<?= base_url('admin/local-governments') ?>" class="text-blue-600 hover:underline">지자체 관리</a>에서 먼저 등록하세요.</p>
|
<p class="text-gray-600 py-4">등록된 지자체가 없습니다. <a href="<?= base_url('admin/local-governments') ?>" class="text-blue-600 hover:underline">지자체 관리</a>에서 먼저 등록하세요.</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<form action="<?= base_url('admin/select-local-government') ?>" method="POST" class="space-y-3">
|
<form action="<?= base_url('admin/select-local-government') ?>" method="POST" class="space-y-3">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
<?php $currentLgIdx = (int) ($currentLgIdx ?? 0); ?>
|
||||||
<ul class="space-y-2">
|
<ul class="space-y-2">
|
||||||
<?php foreach ($list as $lg): ?>
|
<?php foreach ($list as $lg): ?>
|
||||||
|
<?php $isCurrent = ((int) $lg->lg_idx === $currentLgIdx); ?>
|
||||||
<li class="flex items-center gap-2">
|
<li class="flex items-center gap-2">
|
||||||
<input type="radio" name="lg_idx" id="lg_<?= $lg->lg_idx ?>" value="<?= (int) $lg->lg_idx ?>" class="rounded border-gray-300 text-blue-600 focus:ring-blue-500"/>
|
<input type="radio" name="lg_idx" id="lg_<?= $lg->lg_idx ?>" value="<?= (int) $lg->lg_idx ?>" <?= $isCurrent ? 'checked' : '' ?> class="rounded border-gray-300 text-blue-600 focus:ring-blue-500"/>
|
||||||
<label for="lg_<?= $lg->lg_idx ?>" class="text-sm font-medium text-gray-800 cursor-pointer"><?= esc($lg->lg_name) ?> (<?= esc($lg->lg_code) ?>)</label>
|
<label for="lg_<?= $lg->lg_idx ?>" class="text-sm font-medium text-gray-800 cursor-pointer"><?= esc($lg->lg_name) ?> (<?= esc($lg->lg_code) ?>)</label>
|
||||||
|
<?php if ($isCurrent): ?>
|
||||||
|
<span class="inline-flex items-center gap-1 text-xs font-semibold text-emerald-700 bg-emerald-50 border border-emerald-200 rounded-full px-2 py-0.5">
|
||||||
|
<i class="fa-solid fa-check"></i> 현재 선택
|
||||||
|
</span>
|
||||||
|
<?php endif; ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">주문 접수</span>
|
<span class="text-sm font-bold text-gray-700">주문 접수</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white">
|
||||||
<form action="<?= mgmt_url('shop-orders/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= mgmt_url('shop-orders/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 p-2 bg-gray-50">
|
<div class="border border-gray-300 rounded-lg p-2 bg-gray-50">
|
||||||
<div class="text-sm font-bold text-gray-700 mb-2">지정판매소 정보</div>
|
<div class="text-sm font-bold text-gray-700 mb-2">지정판매소 정보</div>
|
||||||
<table class="w-full text-sm">
|
<table class="w-full text-sm">
|
||||||
<tr><th class="text-left w-28 py-1">판매소 코드</th><td id="shop-info-code" class="py-1 text-gray-700">-</td></tr>
|
<tr><th class="text-left w-28 py-1">판매소 코드</th><td id="shop-info-code" class="py-1 text-gray-700">-</td></tr>
|
||||||
@@ -73,19 +73,19 @@
|
|||||||
<label class="block text-sm font-bold text-gray-700">전화 주문 접수표</label>
|
<label class="block text-sm font-bold text-gray-700">전화 주문 접수표</label>
|
||||||
<button type="button" id="add-order-row" class="border border-gray-300 bg-white px-3 py-1 rounded-sm text-xs text-gray-700 hover:bg-gray-50">행 추가</button>
|
<button type="button" id="add-order-row" class="border border-gray-300 bg-white px-3 py-1 rounded-sm text-xs text-gray-700 hover:bg-gray-50">행 추가</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-14">순번</th>
|
<th class="w-14 text-center">순번</th>
|
||||||
<th class="w-48">품목</th>
|
<th class="w-48 text-left">품목</th>
|
||||||
<th class="w-36">1박스(낱장/판매가)</th>
|
<th class="w-36 text-right">1박스(낱장/판매가)</th>
|
||||||
<th class="w-36">1팩(낱장/판매가)</th>
|
<th class="w-36 text-right">1팩(낱장/판매가)</th>
|
||||||
<th class="w-24">단가</th>
|
<th class="w-24 text-right">단가</th>
|
||||||
<th class="w-28">주문수량</th>
|
<th class="w-28 text-right">주문수량</th>
|
||||||
<th class="w-28">금액</th>
|
<th class="w-28 text-right">금액</th>
|
||||||
<th class="w-32">포장(박스/팩/낱장)</th>
|
<th class="w-32 text-right">포장(박스/팩/낱장)</th>
|
||||||
<th class="w-20">행삭제</th>
|
<th class="w-20 text-center">행삭제</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="order-rows">
|
<tbody id="order-rows">
|
||||||
|
|||||||
@@ -18,22 +18,22 @@
|
|||||||
<a href="<?= mgmt_url('shop-orders') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
<a href="<?= mgmt_url('shop-orders') ?>" class="text-sm text-gray-500 hover:underline">초기화</a>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>판매소</th>
|
<th class="text-left">판매소</th>
|
||||||
<th>접수일</th>
|
<th class="text-center">접수일</th>
|
||||||
<th>배달일</th>
|
<th class="text-center">배달일</th>
|
||||||
<th>접수채널</th>
|
<th class="text-center">접수채널</th>
|
||||||
<th>결제</th>
|
<th class="text-center">결제</th>
|
||||||
<th>입금</th>
|
<th class="text-center">입금</th>
|
||||||
<th>수령</th>
|
<th class="text-center">수령</th>
|
||||||
<th>수량</th>
|
<th class="text-right">수량</th>
|
||||||
<th>금액</th>
|
<th class="text-right">금액</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="w-20 text-center">상태</th>
|
||||||
<th class="w-24">작업</th>
|
<th class="w-24 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">회원 등록</span>
|
<span class="text-sm font-bold text-gray-700">회원 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-xl">
|
||||||
<form action="<?= base_url('admin/users/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/users/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ $editLoginLocked = $editLockUntil !== null && $editLockUntil !== '' && strtotime
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-xl">
|
||||||
<form action="<?= base_url('admin/users/update/' . $member->mb_idx) ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('admin/users/update/' . $member->mb_idx) ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
|
|||||||
@@ -8,19 +8,37 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto mt-2">
|
<style>
|
||||||
|
/* 인쇄 시 회원 목록 표를 A4 너비에 맞춤(잘림 방지) */
|
||||||
|
@media print {
|
||||||
|
@page { size: A4 portrait; margin: 10mm; }
|
||||||
|
.user-print-wrap { border: 0 !important; padding: 0 !important; overflow: visible !important; }
|
||||||
|
.user-print-wrap table.data-table { width: 100% !important; table-layout: fixed; font-size: 9px; }
|
||||||
|
.user-print-wrap .data-table th,
|
||||||
|
.user-print-wrap .data-table td {
|
||||||
|
white-space: normal !important; /* nowrap 해제 → 줄바꿈 허용 */
|
||||||
|
word-break: break-word;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
padding: 2px 3px !important;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
/* '관리'(작업 버튼) 열은 인쇄에 불필요 → 제외해 가로 폭 확보 */
|
||||||
|
.user-print-wrap .col-actions { display: none !important; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="user-print-wrap border border-gray-300 rounded-lg p-4 overflow-auto mt-2">
|
||||||
<table class="w-full data-table">
|
<table class="w-full data-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th>아이디</th>
|
<th class="text-left">아이디</th>
|
||||||
<th>이름</th>
|
<th class="text-left">이름</th>
|
||||||
<th>이메일</th>
|
<th class="text-left">이메일</th>
|
||||||
<th>역할</th>
|
<th class="text-center">역할</th>
|
||||||
<th>상태</th>
|
<th class="text-center">상태</th>
|
||||||
<th>로그인 잠금</th>
|
<th class="text-left">로그인 잠금</th>
|
||||||
<th>가입일</th>
|
<th class="text-left">가입일</th>
|
||||||
<th>관리</th>
|
<th class="text-center col-actions">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-right">
|
<tbody class="text-right">
|
||||||
@@ -56,7 +74,7 @@
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-left pl-2"><?= esc($row->mb_regdate ?? '') ?></td>
|
<td class="text-left pl-2"><?= esc($row->mb_regdate ?? '') ?></td>
|
||||||
<td class="text-center">
|
<td class="text-center col-actions">
|
||||||
<?php if ((int) $row->mb_state !== 0): ?>
|
<?php if ((int) $row->mb_state !== 0): ?>
|
||||||
<?php if ($loginLocked): ?>
|
<?php if ($loginLocked): ?>
|
||||||
<form action="<?= base_url('admin/users/unlock-login/' . $row->mb_idx) ?>" method="POST" class="inline mr-1" onsubmit="return confirm('로그인 잠금을 해제할까요?');">
|
<form action="<?= base_url('admin/users/unlock-login/' . $row->mb_idx) ?>" method="POST" class="inline mr-1" onsubmit="return confirm('로그인 잠금을 해제할까요?');">
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ $subtitle = $subtitle ?? '종량제 쓰레기봉투 물류시스템';
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
||||||
<title><?= esc($pageTitle ?? '종량제 시스템') ?></title>
|
<title><?= esc($pageTitle ?? 'GBLS') ?></title>
|
||||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"/>
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet"/>
|
||||||
@@ -33,13 +33,20 @@ tailwind.config = {
|
|||||||
</script>
|
</script>
|
||||||
<style>body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.01em; }</style>
|
<style>body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.01em; }</style>
|
||||||
</head>
|
</head>
|
||||||
|
<script>
|
||||||
|
// iframe(워크스페이스 탭) 안에서 세션 만료로 로그인이 열리면 상위 창 전체를 로그인으로 전환
|
||||||
|
if (window.top !== window.self) { try { window.top.location.href = <?= json_encode(base_url('login'), JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT) ?>; } catch (e) {} }
|
||||||
|
</script>
|
||||||
<body class="bg-portal-bg text-gray-700 flex flex-col min-h-screen font-sans antialiased">
|
<body class="bg-portal-bg text-gray-700 flex flex-col min-h-screen font-sans antialiased">
|
||||||
<header class="bg-navy text-white h-12 flex items-center justify-between px-4 shrink-0 shadow">
|
<header class="bg-navy text-white h-12 flex items-center justify-between px-4 shrink-0 shadow">
|
||||||
<a href="<?= base_url() ?>" class="flex items-center gap-2 shrink-0 text-base font-bold tracking-tight hover:opacity-90" title="종량제 시스템">
|
<a href="<?= base_url() ?>" class="flex items-center gap-2 shrink-0 tracking-tight hover:opacity-90" title="GBLS (Garbage Bag Logistics System)">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 text-white shrink-0" aria-hidden="true" focusable="false">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 text-white shrink-0" aria-hidden="true" focusable="false">
|
||||||
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
<path fill="currentColor" d="M9 3a1 1 0 00-1 1v1H5.75a.75.75 0 000 1.5h12.5a.75.75 0 000-1.5H16V4a1 1 0 00-1-1H9zm9 4H6v11a2 2 0 002 2h8a2 2 0 002-2V7zM10 9a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0110 9zm4 0a.75.75 0 01.75.75v6a.75.75 0 01-1.5 0v-6A.75.75 0 0114 9z"/>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="whitespace-nowrap">종량제 시스템</span>
|
<span class="leading-none flex flex-col">
|
||||||
|
<strong class="text-base font-extrabold tracking-wide">GBLS</strong>
|
||||||
|
<span class="text-[0.56rem] font-medium text-white/65 tracking-tight whitespace-nowrap">Garbage Bag Logistics System</span>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
198
app/Views/bag/_dashboard_kakao_map.php
Normal file
198
app/Views/bag/_dashboard_kakao_map.php
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
/**
|
||||||
|
* 메인 대시보드 카카오 지도 패널 — 지도(좌) + 지정판매소 목록(우, 스크롤).
|
||||||
|
* 주소→좌표는 카카오 지오코딩(services)으로 클라이언트 변환. 목록 클릭 시 해당 위치로 이동.
|
||||||
|
*
|
||||||
|
* @var string $kakaoJsKey
|
||||||
|
* @var string $lgLabel
|
||||||
|
* @var array<int,array{name:string,addr:string}> $mapShops
|
||||||
|
*/
|
||||||
|
$kakaoJsKey = (string) ($kakaoJsKey ?? '');
|
||||||
|
$lgLabel = (string) ($lgLabel ?? '');
|
||||||
|
$mapShops = is_array($mapShops ?? null) ? $mapShops : [];
|
||||||
|
$mapId = 'mainKakaoMap';
|
||||||
|
?>
|
||||||
|
<div class="rounded-xl bg-white border border-gray-200 shadow-sm overflow-hidden">
|
||||||
|
<div class="flex items-center justify-between px-4 py-2.5 border-b border-gray-100">
|
||||||
|
<h2 class="text-sm font-bold text-gray-900"><i class="fa-solid fa-map-location-dot text-[#243a5e] mr-1"></i>지정판매소 위치<?= $lgLabel !== '' ? ' · ' . esc($lgLabel) : '' ?> <span class="text-[11px] font-normal text-gray-400">(<?= count($mapShops) ?>곳)</span></h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-[1fr_240px]">
|
||||||
|
<!-- 지도 -->
|
||||||
|
<div id="<?= $mapId ?>" style="width:100%;height:200px;background:#eef2f7;" role="application" aria-label="<?= esc($lgLabel, 'attr') ?> 지정판매소 지도"></div>
|
||||||
|
|
||||||
|
<!-- 판매소 목록 (스크롤) -->
|
||||||
|
<div class="border-t md:border-t-0 md:border-l border-gray-100 overflow-y-auto" style="height:200px;">
|
||||||
|
<?php if ($mapShops === []): ?>
|
||||||
|
<p class="p-3 text-[12px] text-gray-400">표시할 지정판매소가 없습니다.</p>
|
||||||
|
<?php else: ?>
|
||||||
|
<ul id="shopList" class="divide-y divide-gray-50">
|
||||||
|
<?php foreach ($mapShops as $i => $shop): ?>
|
||||||
|
<li>
|
||||||
|
<button type="button" data-idx="<?= (int) $i ?>"
|
||||||
|
class="shop-item w-full text-left px-3 py-2 hover:bg-blue-50/60 transition flex gap-2 items-start">
|
||||||
|
<span class="shop-dot mt-1 inline-block w-2 h-2 rounded-full bg-gray-300 shrink-0"></span>
|
||||||
|
<span class="min-w-0">
|
||||||
|
<span class="block text-[12px] font-semibold text-gray-800 truncate"><?= esc($shop['name'] !== '' ? $shop['name'] : '(이름없음)') ?></span>
|
||||||
|
<span class="block text-[11px] text-gray-500 truncate"><?= esc($shop['addr']) ?></span>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($kakaoJsKey === ''): ?>
|
||||||
|
<div class="px-4 py-2 text-[11px] text-amber-700 bg-amber-50 border-t border-amber-200">카카오맵 키가 설정되지 않아 지도를 표시할 수 없습니다.</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($kakaoJsKey !== ''): ?>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var APP_KEY = <?= json_encode($kakaoJsKey, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT) ?>;
|
||||||
|
var SHOPS = <?= json_encode($mapShops, JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS) ?>;
|
||||||
|
var MAP_ID = <?= json_encode($mapId, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT) ?>;
|
||||||
|
var DEFAULT_CENTER = { lat: 35.8714, lng: 128.6014 };
|
||||||
|
|
||||||
|
var markers = {}; // idx -> kakao.maps.Marker
|
||||||
|
var positions = {}; // idx -> kakao.maps.LatLng
|
||||||
|
var mapRef = null, infowindow = null, geocoder = null, places = null;
|
||||||
|
|
||||||
|
function ensureScript(cb) {
|
||||||
|
if (typeof kakao !== 'undefined' && kakao.maps && kakao.maps.services) { cb(); return; }
|
||||||
|
var s = document.createElement('script');
|
||||||
|
s.charset = 'UTF-8'; s.async = true;
|
||||||
|
s.src = 'https://dapi.kakao.com/v2/maps/sdk.js?appkey=' + encodeURIComponent(APP_KEY) + '&libraries=services&autoload=false';
|
||||||
|
s.onload = function () {
|
||||||
|
if (typeof kakao === 'undefined' || !kakao.maps || typeof kakao.maps.load !== 'function') { return; }
|
||||||
|
kakao.maps.load(cb);
|
||||||
|
};
|
||||||
|
document.head.appendChild(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
// "대구광역시 북구 검단동 칠곡중앙대로 21" → "대구광역시 북구 칠곡중앙대로 21" (행정동 토큰 제거)
|
||||||
|
function roadVariant(addr) {
|
||||||
|
var p = String(addr || '').trim().split(/\s+/);
|
||||||
|
if (p.length < 4) return '';
|
||||||
|
var roadIdx = -1;
|
||||||
|
for (var i = 2; i < p.length; i++) { if (/(로|길)$/.test(p[i])) { roadIdx = i; break; } }
|
||||||
|
if (roadIdx < 3) return '';
|
||||||
|
var out = [];
|
||||||
|
p.forEach(function (tok, i) {
|
||||||
|
if (i >= 2 && i < roadIdx && /(동|가|리)$/.test(tok)) return; // 행정동 제거
|
||||||
|
out.push(tok);
|
||||||
|
});
|
||||||
|
var joined = out.join(' ');
|
||||||
|
return joined !== addr ? joined : '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// "대구광역시 북구 검단동 ..." → "대구광역시 북구 검단동" (시도 구군 동 — 행정구역 폴백)
|
||||||
|
function regionVariant(addr) {
|
||||||
|
var p = String(addr || '').trim().split(/\s+/);
|
||||||
|
if (p.length < 3) return '';
|
||||||
|
for (var i = 2; i < p.length; i++) {
|
||||||
|
if (/(동|가|리)$/.test(p[i])) { return p[0] + ' ' + p[1] + ' ' + p[i]; }
|
||||||
|
}
|
||||||
|
return p[0] + ' ' + p[1]; // 동을 못 찾으면 구·군까지
|
||||||
|
}
|
||||||
|
|
||||||
|
// 여러 후보를 순서대로 시도(정밀주소 → 도로명변형 → 지번 → 키워드 → 행정동 → 행정동 키워드)
|
||||||
|
function geocodeChain(shop, cb) {
|
||||||
|
var tries = [];
|
||||||
|
if (shop.addr) tries.push(['addr', shop.addr]);
|
||||||
|
var rv = roadVariant(shop.addr);
|
||||||
|
if (rv) tries.push(['addr', rv]);
|
||||||
|
if (shop.jibun) tries.push(['addr', shop.jibun]);
|
||||||
|
if (rv) tries.push(['kw', rv]);
|
||||||
|
else if (shop.addr) tries.push(['kw', shop.addr]);
|
||||||
|
var region = regionVariant(shop.addr || shop.jibun);
|
||||||
|
if (region) { tries.push(['addr', region]); tries.push(['kw', region]); }
|
||||||
|
|
||||||
|
(function next(i) {
|
||||||
|
if (i >= tries.length) { cb(null); return; }
|
||||||
|
var mode = tries[i][0], q = tries[i][1];
|
||||||
|
try {
|
||||||
|
if (mode === 'addr') {
|
||||||
|
geocoder.addressSearch(q, function (result, status) {
|
||||||
|
if (status === kakao.maps.services.Status.OK && result && result[0]) {
|
||||||
|
cb(new kakao.maps.LatLng(result[0].y, result[0].x));
|
||||||
|
} else { next(i + 1); }
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
places.keywordSearch(q, function (data, status) {
|
||||||
|
if (status === kakao.maps.services.Status.OK && data && data[0]) {
|
||||||
|
cb(new kakao.maps.LatLng(data[0].y, data[0].x));
|
||||||
|
} else { next(i + 1); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch (e) { cb(null); }
|
||||||
|
})(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
function openInfo(idx) {
|
||||||
|
var name = (SHOPS[idx] && SHOPS[idx].name) || '판매소';
|
||||||
|
infowindow.setContent('<div style="padding:5px 8px;font-size:12px;font-weight:600;white-space:nowrap;">' + name + '</div>');
|
||||||
|
if (markers[idx]) infowindow.open(mapRef, markers[idx]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function focusShop(idx) {
|
||||||
|
var pos = positions[idx];
|
||||||
|
if (!pos || !mapRef) return;
|
||||||
|
mapRef.setCenter(pos);
|
||||||
|
mapRef.setLevel(3); // 줌인
|
||||||
|
openInfo(idx);
|
||||||
|
}
|
||||||
|
|
||||||
|
function initMap() {
|
||||||
|
var el = document.getElementById(MAP_ID);
|
||||||
|
if (!el || typeof kakao === 'undefined' || !kakao.maps) return;
|
||||||
|
var map = new kakao.maps.Map(el, { center: new kakao.maps.LatLng(DEFAULT_CENTER.lat, DEFAULT_CENTER.lng), level: 8 });
|
||||||
|
mapRef = map;
|
||||||
|
infowindow = new kakao.maps.InfoWindow({ zIndex: 1 });
|
||||||
|
geocoder = new kakao.maps.services.Geocoder();
|
||||||
|
places = new kakao.maps.services.Places();
|
||||||
|
var bounds = new kakao.maps.LatLngBounds();
|
||||||
|
var placed = 0, pending = SHOPS.length;
|
||||||
|
|
||||||
|
function done() {
|
||||||
|
if (placed > 0) map.setBounds(bounds);
|
||||||
|
setTimeout(function () { map.relayout(); if (placed > 0) map.setBounds(bounds); }, 150);
|
||||||
|
}
|
||||||
|
if (pending === 0) { done(); return; }
|
||||||
|
|
||||||
|
SHOPS.forEach(function (shop, idx) {
|
||||||
|
geocodeChain(shop, function (pos) {
|
||||||
|
pending--;
|
||||||
|
try {
|
||||||
|
if (pos) {
|
||||||
|
var marker = new kakao.maps.Marker({ position: pos, map: map });
|
||||||
|
markers[idx] = marker;
|
||||||
|
positions[idx] = pos;
|
||||||
|
bounds.extend(pos); placed++;
|
||||||
|
kakao.maps.event.addListener(marker, 'click', function () { openInfo(idx); });
|
||||||
|
var dot = document.querySelector('.shop-item[data-idx="' + idx + '"] .shop-dot');
|
||||||
|
if (dot) { dot.style.background = '#243a5e'; }
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
if (pending === 0) done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// 목록 클릭 → 해당 판매소로 줌인
|
||||||
|
document.querySelectorAll('.shop-item').forEach(function (btn) {
|
||||||
|
btn.addEventListener('click', function () { focusShop(parseInt(btn.getAttribute('data-idx'), 10)); });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', function () { ensureScript(initMap); });
|
||||||
|
} else {
|
||||||
|
ensureScript(initMap);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<?php endif; ?>
|
||||||
@@ -79,16 +79,16 @@ $prevAvgLabel = ($trendBasis ?? '') === 'month' ? '전년 동월' : '전년 평
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="m-2 border border-gray-300">
|
<div class="m-2 border border-gray-300 rounded-lg">
|
||||||
<div class="bg-gray-100 px-3 py-1.5 text-sm font-bold border-b">월별 판매 추이 분석 조회 내역</div>
|
<div class="bg-gray-100 px-3 py-1.5 text-sm font-bold border-b">월별 판매 추이 분석 조회 내역</div>
|
||||||
<div class="overflow-auto max-h-[28rem]">
|
<div class="overflow-auto max-h-[28rem]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>대행소</th>
|
<th>대행소</th>
|
||||||
<th class="w-24">판매소번호</th>
|
<th class="w-24 text-center">판매소번호</th>
|
||||||
<th>지정판매소</th>
|
<th>지정판매소</th>
|
||||||
<th class="w-20">성명</th>
|
<th class="w-20 text-center">성명</th>
|
||||||
<th class="w-20 text-right"><?= esc($prevAvgLabel) ?></th>
|
<th class="w-20 text-right"><?= esc($prevAvgLabel) ?></th>
|
||||||
<th class="w-20 text-right">월 판매량</th>
|
<th class="w-20 text-right">월 판매량</th>
|
||||||
<th class="w-20 text-right">평균 차</th>
|
<th class="w-20 text-right">평균 차</th>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ $seasonScope = $seasonMonthsLabel !== ''
|
|||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="m-2 border border-gray-300">
|
<div class="m-2 border border-gray-300 rounded-lg">
|
||||||
<div class="bg-gray-100 px-3 py-1.5 text-sm font-bold border-b">
|
<div class="bg-gray-100 px-3 py-1.5 text-sm font-bold border-b">
|
||||||
계절별 판매 추이 분석 조회 내역
|
계절별 판매 추이 분석 조회 내역
|
||||||
<?php if ($queried): ?> — <?= esc($seasonScope) ?><?php endif; ?>
|
<?php if ($queried): ?> — <?= esc($seasonScope) ?><?php endif; ?>
|
||||||
@@ -70,8 +70,8 @@ $seasonScope = $seasonMonthsLabel !== ''
|
|||||||
<tr>
|
<tr>
|
||||||
<th>대행소</th>
|
<th>대행소</th>
|
||||||
<th>지정판매소</th>
|
<th>지정판매소</th>
|
||||||
<th class="w-24">판매소번호</th>
|
<th class="w-24 text-center">판매소번호</th>
|
||||||
<th class="w-20">성명</th>
|
<th class="w-20 text-center">성명</th>
|
||||||
<th class="w-24 text-right">전년 계절평균</th>
|
<th class="w-24 text-right">전년 계절평균</th>
|
||||||
<th class="w-24 text-right">기준년 계절평균</th>
|
<th class="w-24 text-right">기준년 계절평균</th>
|
||||||
<th class="w-20 text-right">평균 차</th>
|
<th class="w-20 text-right">평균 차</th>
|
||||||
|
|||||||
@@ -36,18 +36,18 @@ $printExtra = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<div class="m-2 border border-gray-300 overflow-auto">
|
<div class="m-2 border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<p class="text-center text-sm font-bold py-2 bg-gray-50 border-b">전년대비 판매 통계분석</p>
|
<p class="text-center text-sm font-bold py-2 bg-gray-50 border-b">전년대비 판매 통계분석</p>
|
||||||
<p class="text-xs text-gray-500 px-2 py-1 border-b">(단위: 매, 원) · <strong>판매(sale)</strong> 수량·금액만 집계합니다(반품·취소 제외). 증감은 전년·당해 판매량(또는 금액) 차이입니다.</p>
|
<p class="text-xs text-gray-500 px-2 py-1 border-b">(단위: 매, 원) · <strong>판매(sale)</strong> 수량·금액만 집계합니다(반품·취소 제외). 증감은 전년·당해 판매량(또는 금액) 차이입니다.</p>
|
||||||
<table class="w-full data-table text-xs">
|
<table class="w-full data-table text-xs">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th rowspan="2" class="w-32">품목</th>
|
<th rowspan="2" class="w-32">품목</th>
|
||||||
<th rowspan="2" class="w-14">구분</th>
|
<th rowspan="2" class="w-14 text-center">구분</th>
|
||||||
<th rowspan="2" class="w-12">년도</th>
|
<th rowspan="2" class="w-12 text-center">년도</th>
|
||||||
<th rowspan="2" class="w-16">계</th>
|
<th rowspan="2" class="w-16 text-right">계</th>
|
||||||
<?php foreach ($months as $mo): ?>
|
<?php foreach ($months as $mo): ?>
|
||||||
<th class="w-14"><?= (int) $mo ?>월</th>
|
<th class="w-14 text-right"><?= (int) $mo ?>월</th>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -28,19 +28,19 @@ if (isset($pager) && $pager !== null) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="data-table w-full">
|
<table class="data-table w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-16">번호</th>
|
<th class="w-16 text-center">번호</th>
|
||||||
<th class="w-24">코드</th>
|
<th class="w-24 text-center">코드</th>
|
||||||
<th>코드명</th>
|
<th>코드명</th>
|
||||||
<th class="w-24">범위</th>
|
<th class="w-24 text-center">범위</th>
|
||||||
<th class="w-20">정렬순서</th>
|
<th class="w-20 text-center">정렬순서</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="w-20 text-center">상태</th>
|
||||||
<th>등록일</th>
|
<th>등록일</th>
|
||||||
<?php if ($showActionsCol): ?>
|
<?php if ($showActionsCol): ?>
|
||||||
<th class="w-28">작업</th>
|
<th class="w-28 text-center">작업</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -12,49 +12,58 @@ $showKindActions = $canManageKinds;
|
|||||||
$selectedKindId = (int) ($selectedKind->ck_idx ?? 0);
|
$selectedKindId = (int) ($selectedKind->ck_idx ?? 0);
|
||||||
$colCount = 6 + ($showKindActions ? 1 : 0);
|
$colCount = 6 + ($showKindActions ? 1 : 0);
|
||||||
$detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
$detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
||||||
|
$embedQs = ! empty($isEmbed) ? '&embed=1' : ''; // 워크스페이스 탭 안에서는 embed 유지(중첩 셸 방지)
|
||||||
|
|
||||||
|
/** 상태 배지 (업무현황 스타일의 가벼운 pill) */
|
||||||
|
$stateBadge = static function (int $state): string {
|
||||||
|
return $state === 1
|
||||||
|
? '<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-50 text-emerald-700">사용</span>'
|
||||||
|
: '<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium bg-gray-100 text-gray-500">미사용</span>';
|
||||||
|
};
|
||||||
?>
|
?>
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||||
<section>
|
<!-- 기본코드 종류 -->
|
||||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-2 border-b pb-1">
|
<section class="rounded-xl bg-white border border-gray-200 p-4 shadow-sm">
|
||||||
<h3 class="text-base font-bold text-gray-700">기본코드 종류</h3>
|
<div class="flex flex-wrap items-center justify-between gap-2 mb-3">
|
||||||
<div class="flex flex-wrap items-center gap-2 text-xs sm:text-sm">
|
<h2 class="text-sm font-bold text-gray-900"><i class="fa-solid fa-layer-group text-blue-600 mr-1"></i>기본코드 종류</h2>
|
||||||
<?php if ($canManageKinds): ?>
|
<?php if ($canManageKinds): ?>
|
||||||
<a href="<?= base_url('admin/code-kinds/create') ?>" class="inline-flex items-center rounded bg-[#243a5e] px-3 py-1.5 text-white shadow hover:opacity-90">기본코드 등록</a>
|
<a href="<?= base_url('admin/code-kinds/create') ?>" class="inline-flex items-center rounded-lg bg-[#243a5e] px-3 py-1.5 text-white text-xs font-semibold shadow-sm hover:opacity-90">기본코드 등록</a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span class="text-gray-500">코드 종류 등록·수정은 super admin·본부 관리자만 가능합니다.</span>
|
<span class="text-gray-400 text-[11px]">코드 종류 등록·수정은 super admin·본부 관리자만 가능합니다.</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="overflow-auto">
|
||||||
<table class="data-table w-full">
|
<table class="w-full text-[13px]">
|
||||||
<thead><tr>
|
<thead>
|
||||||
<th class="w-14">번호</th>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-24">코드</th>
|
<th class="py-2.5 px-2 w-12 text-left">번호</th>
|
||||||
<th>코드명</th>
|
<th class="py-2.5 px-2 w-20">코드</th>
|
||||||
<th class="w-24">세부코드</th>
|
<th class="py-2.5 px-2">코드명</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="py-2.5 px-2 w-20 text-left">세부코드</th>
|
||||||
<th class="w-40">등록일</th>
|
<th class="py-2.5 px-2 w-16 text-left">상태</th>
|
||||||
<?php if ($showKindActions): ?>
|
<th class="py-2.5 px-2 w-32">등록일</th>
|
||||||
<th class="w-36">작업</th>
|
<?php if ($showKindActions): ?>
|
||||||
<?php endif; ?>
|
<th class="py-2.5 px-2 w-28 text-left">작업</th>
|
||||||
</tr></thead>
|
<?php endif; ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (! empty($codeKinds)): ?>
|
<?php if (! empty($codeKinds)): ?>
|
||||||
<?php $i = 0; foreach ($codeKinds as $row): $i++; ?>
|
<?php $i = 0; foreach ($codeKinds as $row): $i++; ?>
|
||||||
<?php
|
<?php
|
||||||
$isSelected = (int) $row->ck_idx === $selectedKindId;
|
$isSelected = (int) $row->ck_idx === $selectedKindId;
|
||||||
$detailUrl = base_url('bag/code-kinds?ck_idx=' . (int) $row->ck_idx);
|
$detailUrl = base_url('bag/code-kinds?ck_idx=' . (int) $row->ck_idx . $embedQs);
|
||||||
?>
|
?>
|
||||||
<tr class="<?= $isSelected ? 'bg-blue-50' : '' ?> cursor-pointer hover:bg-blue-50"
|
<tr class="border-b border-gray-200 last:border-0 cursor-pointer hover:bg-blue-50/60 <?= $isSelected ? 'bg-blue-50' : '' ?>"
|
||||||
onclick="window.location.href='<?= esc($detailUrl, 'attr') ?>'">
|
onclick="window.location.href='<?= esc($detailUrl, 'attr') ?>'">
|
||||||
<td class="text-center"><?= (string) $i ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= (string) $i ?></td>
|
||||||
<td class="text-center font-mono"><?= esc($row->ck_code) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-gray-700"><?= esc($row->ck_code) ?></td>
|
||||||
<td><?= esc($row->ck_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->ck_name) ?></td>
|
||||||
<td class="text-center"><?= (int) ($countMap[$row->ck_idx] ?? 0) ?>개</td>
|
<td class="py-2.5 px-2 text-left text-gray-600"><?= (int) ($countMap[$row->ck_idx] ?? 0) ?>개</td>
|
||||||
<td class="text-center"><?= (int) ($row->ck_state ?? 0) === 1 ? '사용' : '미사용' ?></td>
|
<td class="py-2.5 px-2 text-left"><?= $stateBadge((int) ($row->ck_state ?? 0)) ?></td>
|
||||||
<td class="text-left"><?= esc($row->ck_regdate ?? '') ?></td>
|
<td class="py-2.5 px-2 text-gray-500 text-[12px]"><?= esc($row->ck_regdate ?? '') ?></td>
|
||||||
<?php if ($showKindActions): ?>
|
<?php if ($showKindActions): ?>
|
||||||
<td class="text-center text-sm" onclick="event.stopPropagation()">
|
<td class="py-2.5 px-2 text-left text-xs" onclick="event.stopPropagation()">
|
||||||
<a href="<?= base_url('admin/code-kinds/edit/' . (int) $row->ck_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
<a href="<?= base_url('admin/code-kinds/edit/' . (int) $row->ck_idx) ?>" class="text-blue-600 hover:underline mr-1">수정</a>
|
||||||
<form action="<?= base_url('admin/code-kinds/delete/' . (int) $row->ck_idx) ?>" method="POST" class="inline" onsubmit="return confirm('이 코드 종류를 삭제하시겠습니까?');">
|
<form action="<?= base_url('admin/code-kinds/delete/' . (int) $row->ck_idx) ?>" method="POST" class="inline" onsubmit="return confirm('이 코드 종류를 삭제하시겠습니까?');">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
@@ -65,42 +74,43 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<tr><td colspan="<?= (string) $colCount ?>" class="text-center text-gray-400 py-4">등록된 코드 종류가 없습니다.</td></tr>
|
<tr><td colspan="<?= (string) $colCount ?>" class="text-center text-gray-400 py-6">등록된 코드 종류가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<!-- 세부코드 -->
|
||||||
<div class="flex flex-wrap items-center justify-between gap-2 mb-2 border-b pb-1">
|
<section class="rounded-xl bg-white border border-gray-200 p-4 shadow-sm">
|
||||||
<h3 class="text-base font-bold text-gray-700">
|
<div class="flex flex-wrap items-center justify-between gap-2 mb-3">
|
||||||
세부코드
|
<h2 class="text-sm font-bold text-gray-900">
|
||||||
|
<i class="fa-solid fa-list-ul text-emerald-600 mr-1"></i>세부코드
|
||||||
<?php if ($selectedKind !== null): ?>
|
<?php if ($selectedKind !== null): ?>
|
||||||
— <?= esc($selectedKind->ck_name) ?> (<?= esc($selectedKind->ck_code) ?>)
|
<span class="font-medium text-gray-400">— <?= esc($selectedKind->ck_name) ?> (<?= esc($selectedKind->ck_code) ?>)</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</h3>
|
</h2>
|
||||||
<?php if ($canManageDetails && $selectedKind !== null): ?>
|
<?php if ($canManageDetails && $selectedKind !== null): ?>
|
||||||
<a href="<?= base_url('admin/code-details/' . (int) $selectedKind->ck_idx . '/create') ?>" class="inline-flex items-center rounded bg-[#243a5e] px-3 py-1.5 text-white shadow hover:opacity-90 text-sm">세부코드 등록</a>
|
<a href="<?= base_url('admin/code-details/' . (int) $selectedKind->ck_idx . '/create') ?>" class="inline-flex items-center rounded-lg bg-[#243a5e] px-3 py-1.5 text-white text-xs font-semibold shadow-sm hover:opacity-90">세부코드 등록</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($selectedKind === null): ?>
|
<?php if ($selectedKind === null): ?>
|
||||||
<div class="border border-gray-300 rounded p-6 text-center text-gray-500">왼쪽에서 코드 종류를 선택해 주세요.</div>
|
<div class="py-10 text-center text-sm text-gray-400">왼쪽에서 코드 종류를 선택해 주세요.</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="overflow-auto">
|
||||||
<table class="data-table w-full">
|
<table class="w-full text-[13px]">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr class="text-left text-[11px] font-semibold text-gray-500 border-b border-gray-200">
|
||||||
<th class="w-16">번호</th>
|
<th class="py-2.5 px-2 w-12 text-left">번호</th>
|
||||||
<th class="w-24">코드</th>
|
<th class="py-2.5 px-2 w-20">코드</th>
|
||||||
<th>코드명</th>
|
<th class="py-2.5 px-2">코드명</th>
|
||||||
<th class="w-24">범위</th>
|
<th class="py-2.5 px-2 w-16 text-left">범위</th>
|
||||||
<th class="w-20">정렬</th>
|
<th class="py-2.5 px-2 w-14 text-left">정렬</th>
|
||||||
<th class="w-20">상태</th>
|
<th class="py-2.5 px-2 w-16 text-left">상태</th>
|
||||||
<th class="w-40">등록일</th>
|
<th class="py-2.5 px-2 w-32">등록일</th>
|
||||||
<?php if ($canManageDetails): ?>
|
<?php if ($canManageDetails): ?>
|
||||||
<th class="w-28">작업</th>
|
<th class="py-2.5 px-2 w-24 text-left">작업</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -111,16 +121,18 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
|||||||
$isPlatform = (($row->cd_source ?? 'platform') === 'platform' && (int) ($row->cd_lg_idx ?? 0) === 0);
|
$isPlatform = (($row->cd_source ?? 'platform') === 'platform' && (int) ($row->cd_lg_idx ?? 0) === 0);
|
||||||
$scopeLabel = $isPlatform ? '공통' : '지자체';
|
$scopeLabel = $isPlatform ? '공통' : '지자체';
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="border-b border-gray-200 last:border-0 hover:bg-gray-50">
|
||||||
<td class="text-center"><?= (string) $dNo ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-500"><?= (string) $dNo ?></td>
|
||||||
<td class="text-center font-mono"><?= esc($row->cd_code) ?></td>
|
<td class="py-2.5 px-2 text-left font-mono text-gray-700"><?= esc($row->cd_code) ?></td>
|
||||||
<td><?= esc($row->cd_name) ?></td>
|
<td class="py-2.5 px-2 font-medium text-gray-900"><?= esc($row->cd_name) ?></td>
|
||||||
<td class="text-center text-xs"><?= esc($scopeLabel) ?></td>
|
<td class="py-2.5 px-2 text-left">
|
||||||
<td class="text-center"><?= (int) ($row->cd_sort ?? 0) ?></td>
|
<span class="inline-block px-2 py-0.5 rounded-full text-[11px] font-medium <?= $isPlatform ? 'bg-blue-50 text-blue-700' : 'bg-amber-50 text-amber-700' ?>"><?= esc($scopeLabel) ?></span>
|
||||||
<td class="text-center"><?= (int) ($row->cd_state ?? 0) === 1 ? '사용' : '미사용' ?></td>
|
</td>
|
||||||
<td class="text-left"><?= esc($row->cd_regdate ?? '') ?></td>
|
<td class="py-2.5 px-2 text-left text-gray-600"><?= (int) ($row->cd_sort ?? 0) ?></td>
|
||||||
|
<td class="py-2.5 px-2 text-left"><?= $stateBadge((int) ($row->cd_state ?? 0)) ?></td>
|
||||||
|
<td class="py-2.5 px-2 text-gray-500 text-[12px]"><?= esc($row->cd_regdate ?? '') ?></td>
|
||||||
<?php if ($canManageDetails): ?>
|
<?php if ($canManageDetails): ?>
|
||||||
<td class="text-center text-sm">
|
<td class="py-2.5 px-2 text-left text-xs">
|
||||||
<?php if (! empty($rowCanEdit[$row->cd_idx])): ?>
|
<?php if (! empty($rowCanEdit[$row->cd_idx])): ?>
|
||||||
<a href="<?= base_url('admin/code-details/edit/' . (int) $row->cd_idx) ?>" class="text-blue-600 hover:underline">수정</a>
|
<a href="<?= base_url('admin/code-details/edit/' . (int) $row->cd_idx) ?>" class="text-blue-600 hover:underline">수정</a>
|
||||||
<form action="<?= base_url('admin/code-details/delete/' . (int) $row->cd_idx) ?>" method="POST" class="ml-1 inline" onsubmit="return confirm('이 세부코드를 삭제하시겠습니까?');">
|
<form action="<?= base_url('admin/code-details/delete/' . (int) $row->cd_idx) ?>" method="POST" class="ml-1 inline" onsubmit="return confirm('이 세부코드를 삭제하시겠습니까?');">
|
||||||
@@ -135,7 +147,7 @@ $detailColCount = 7 + ($canManageDetails ? 1 : 0);
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<tr><td colspan="<?= (string) $detailColCount ?>" class="text-center text-gray-400 py-4">등록된 세부코드가 없습니다.</td></tr>
|
<tr><td colspan="<?= (string) $detailColCount ?>" class="text-center text-gray-400 py-6">등록된 세부코드가 없습니다.</td></tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ if ($initialRows === []) {
|
|||||||
<span class="text-sm font-bold text-gray-700">무료용 불출 처리</span>
|
<span class="text-sm font-bold text-gray-700">무료용 불출 처리</span>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="border border-gray-300 p-3 mt-2 bg-white">
|
<div class="border border-gray-300 rounded-lg p-3 mt-2 bg-white">
|
||||||
<form action="<?= base_url('bag/issue/store') ?>" method="POST" class="space-y-3" id="bag-issue-form">
|
<form action="<?= base_url('bag/issue/store') ?>" method="POST" class="space-y-3" id="bag-issue-form">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
@@ -111,18 +111,18 @@ if ($initialRows === []) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm" id="issue-item-table">
|
<table class="w-full data-table text-sm" id="issue-item-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-14">No</th>
|
<th class="w-14 text-center">No</th>
|
||||||
<th class="w-44">봉투코드</th>
|
<th class="w-44">봉투코드</th>
|
||||||
<th>봉투종류</th>
|
<th>봉투종류</th>
|
||||||
<th class="w-28">수량</th>
|
<th class="w-28 text-right">수량</th>
|
||||||
<th class="w-28">포장</th>
|
<th class="w-28">포장</th>
|
||||||
<th class="w-32">재고(낱장)</th>
|
<th class="w-32 text-right">재고(낱장)</th>
|
||||||
<th class="w-36">환산(낱장)</th>
|
<th class="w-36 text-right">환산(낱장)</th>
|
||||||
<th class="w-20">작업</th>
|
<th class="w-20 text-center">작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="issue-item-body"></tbody>
|
<tbody id="issue-item-body"></tbody>
|
||||||
@@ -144,18 +144,18 @@ if ($initialRows === []) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-2 gap-2 mt-2">
|
<div class="grid grid-cols-1 xl:grid-cols-2 gap-2 mt-2">
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">불출 가능 봉투(현재 재고)</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">불출 가능 봉투(현재 재고)</div>
|
||||||
<div class="overflow-auto max-h-[300px]">
|
<div class="overflow-auto max-h-[300px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">No</th>
|
<th class="w-12 text-center">No</th>
|
||||||
<th class="w-28">봉투코드</th>
|
<th class="w-28 text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th>봉투명</th>
|
||||||
<th class="w-24">재고(낱장)</th>
|
<th class="w-24 text-right">재고(낱장)</th>
|
||||||
<th class="w-24">팩당 낱장</th>
|
<th class="w-24 text-right">팩당 낱장</th>
|
||||||
<th class="w-24">박스당 낱장</th>
|
<th class="w-24 text-right">박스당 낱장</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -180,20 +180,20 @@ if ($initialRows === []) {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">최근 불출 내역</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">최근 불출 내역</div>
|
||||||
<div class="overflow-auto max-h-[300px]">
|
<div class="overflow-auto max-h-[300px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">No</th>
|
<th class="w-12 text-center">No</th>
|
||||||
<th class="w-24">불출일</th>
|
<th class="w-24 text-center">불출일</th>
|
||||||
<th class="w-20">구분</th>
|
<th class="w-20 text-center">구분</th>
|
||||||
<th class="w-28">불출처</th>
|
<th class="w-28">불출처</th>
|
||||||
<th class="w-24">봉투코드</th>
|
<th class="w-24 text-center">봉투코드</th>
|
||||||
<th>봉투명</th>
|
<th>봉투명</th>
|
||||||
<th class="w-24">수량(낱장)</th>
|
<th class="w-24 text-right">수량(낱장)</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="w-16 text-center">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -88,23 +88,23 @@
|
|||||||
<?php if ($deleteMode): ?>
|
<?php if ($deleteMode): ?>
|
||||||
<form action="<?= base_url('bag/order/delete') ?>" method="post" class="mt-2 space-y-2">
|
<form action="<?= base_url('bag/order/delete') ?>" method="post" class="mt-2 space-y-2">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="border border-gray-300 bg-white p-2 text-sm">
|
<div class="border border-gray-300 rounded-lg bg-white p-2 text-sm">
|
||||||
<span class="font-bold text-gray-700">발주월</span>
|
<span class="font-bold text-gray-700">발주월</span>
|
||||||
<span class="ml-2"><?= esc($defaultOrderMonth) ?></span>
|
<span class="ml-2"><?= esc($defaultOrderMonth) ?></span>
|
||||||
<span class="text-gray-600 ml-2">왼쪽 목록에서 삭제할 발주를 선택한 뒤 「삭제 실행」을 누르세요.</span>
|
<span class="text-gray-600 ml-2">왼쪽 목록에서 삭제할 발주를 선택한 뒤 「삭제 실행」을 누르세요.</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
||||||
<section class="xl:col-span-5 border border-gray-300 bg-white">
|
<section class="xl:col-span-5 border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
||||||
<div class="overflow-auto max-h-[410px]">
|
<div class="overflow-auto max-h-[410px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-10">선택</th>
|
<th class="w-10 text-center">선택</th>
|
||||||
<th class="w-28">발주일</th>
|
<th class="w-28 text-center">발주일</th>
|
||||||
<th>제작업체</th>
|
<th class="text-left">제작업체</th>
|
||||||
<th>입고처</th>
|
<th class="text-left">입고처</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="w-16 text-center">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
<input type="hidden" name="order_return_month" value="<?= esc($orderReturnMonth) ?>" />
|
<input type="hidden" name="order_return_month" value="<?= esc($orderReturnMonth) ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="border border-gray-300 bg-white p-2">
|
<div class="border border-gray-300 rounded-lg bg-white p-2">
|
||||||
<div class="flex flex-wrap items-center gap-4 text-sm">
|
<div class="flex flex-wrap items-center gap-4 text-sm">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<label for="bo_order_month_ui" class="font-bold text-gray-700">발주월</label>
|
<label for="bo_order_month_ui" class="font-bold text-gray-700">발주월</label>
|
||||||
@@ -189,16 +189,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
<div class="grid grid-cols-1 xl:grid-cols-12 gap-2">
|
||||||
<section class="xl:col-span-5 border border-gray-300 bg-white">
|
<section class="xl:col-span-5 border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 이력</div>
|
||||||
<div class="overflow-auto max-h-[410px]">
|
<div class="overflow-auto max-h-[410px]">
|
||||||
<table class="w-full data-table text-sm">
|
<table class="w-full data-table text-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-28">발주일</th>
|
<th class="w-28 text-center">발주일</th>
|
||||||
<th>제작업체</th>
|
<th class="text-left">제작업체</th>
|
||||||
<th>입고처</th>
|
<th class="text-left">입고처</th>
|
||||||
<th class="w-16">상태</th>
|
<th class="w-16 text-center">상태</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="xl:col-span-7 border border-gray-300 bg-white">
|
<section class="xl:col-span-7 border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700"><?= $editMode ? '발주 변경 수정' : '발주 Form' ?></div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700"><?= $editMode ? '발주 변경 수정' : '발주 Form' ?></div>
|
||||||
<div class="p-2 space-y-2">
|
<div class="p-2 space-y-2">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
||||||
@@ -265,21 +265,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 overflow-auto">
|
<div class="border border-gray-300 rounded-lg p-4 overflow-auto">
|
||||||
<table class="w-full data-table text-sm order-input-table" id="order-item-table">
|
<table class="w-full data-table text-sm order-input-table" id="order-item-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">번호</th>
|
<th class="w-12 text-center">번호</th>
|
||||||
<th class="w-16">선택</th>
|
<th class="w-16 text-center">선택</th>
|
||||||
<th>품명</th>
|
<th class="text-left">품명</th>
|
||||||
<th class="w-24">수량</th>
|
<th class="w-24 text-right">수량</th>
|
||||||
<th class="w-24">단가</th>
|
<th class="w-24 text-right">단가</th>
|
||||||
<th class="w-24">낱장환산</th>
|
<th class="w-24 text-right">낱장환산</th>
|
||||||
<?php if ($editMode): ?>
|
<?php if ($editMode): ?>
|
||||||
<th class="w-24">선정수량</th>
|
<th class="w-24 text-right">선정수량</th>
|
||||||
<th class="w-20">LOT</th>
|
<th class="w-20 text-center">LOT</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th class="w-28">금액</th>
|
<th class="w-28 text-right">금액</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="selected-order-items-body"></tbody>
|
<tbody id="selected-order-items-body"></tbody>
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-gray-300 bg-gray-50 p-2 text-sm">
|
<div class="border border-gray-300 rounded-lg bg-gray-50 p-2 text-sm">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-1">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-1">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<span class="text-gray-700">품목 금액 합계</span>
|
<span class="text-gray-700">품목 금액 합계</span>
|
||||||
@@ -331,19 +331,19 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="border border-gray-300 bg-white">
|
<section class="border border-gray-300 rounded-lg overflow-hidden bg-white">
|
||||||
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 등록 종류</div>
|
<div class="border-b border-gray-300 bg-gray-50 px-2 py-1 text-sm font-bold text-gray-700">발주 등록 종류</div>
|
||||||
<div class="overflow-auto">
|
<div class="overflow-auto">
|
||||||
<table class="w-full data-table text-sm order-reference-table">
|
<table class="w-full data-table text-sm order-reference-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12">번호</th>
|
<th class="w-12 text-center">번호</th>
|
||||||
<th class="w-20">선택</th>
|
<th class="w-20 text-center">선택</th>
|
||||||
<th>봉투 종류</th>
|
<th class="text-left">봉투 종류</th>
|
||||||
<th class="w-24">발주단가</th>
|
<th class="w-24 text-right">발주단가</th>
|
||||||
<th class="w-24">Box당 팩</th>
|
<th class="w-24 text-right">Box당 팩</th>
|
||||||
<th class="w-24">팩당 낱장</th>
|
<th class="w-24 text-right">팩당 낱장</th>
|
||||||
<th class="w-28">1박스 총 낱장</th>
|
<th class="w-28 text-right">1박스 총 낱장</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">입고 처리</span>
|
<span class="text-sm font-bold text-gray-700">입고 처리</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('bag/receiving/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('bag/receiving/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
||||||
<span class="text-sm font-bold text-gray-700">판매 등록</span>
|
<span class="text-sm font-bold text-gray-700">판매 등록</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="border border-gray-300 p-4 mt-2 bg-white max-w-3xl">
|
<div class="border border-gray-300 rounded-lg p-4 mt-2 bg-white max-w-3xl">
|
||||||
<form action="<?= base_url('bag/sale/store') ?>" method="POST" class="space-y-4">
|
<form action="<?= base_url('bag/sale/store') ?>" method="POST" class="space-y-4">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user