1
This commit is contained in:
+436
-53
@@ -2,8 +2,8 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scale=no">
|
||||
<title>PDA集装箱拣货</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<title>柏悦物流 PDA · 仓储作业平台</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #1a73e8;
|
||||
@@ -1019,6 +1019,232 @@
|
||||
}
|
||||
.logout-btn:active { transform: scale(0.95); }
|
||||
|
||||
/* ========== PDA 工作台与业务导航 ========== */
|
||||
.workbench-page.hidden,
|
||||
.operation-page.hidden,
|
||||
.profile-page.hidden { display: none; }
|
||||
.app-shell { min-height: 100vh; background: var(--bg); padding-bottom: 28px; }
|
||||
.app-topbar {
|
||||
background: linear-gradient(135deg, #155eef 0%, #2878ff 100%);
|
||||
color: white;
|
||||
padding: 16px 16px 22px;
|
||||
border-radius: 0 0 22px 22px;
|
||||
box-shadow: 0 8px 24px rgba(21,94,239,.22);
|
||||
}
|
||||
.app-topbar-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
|
||||
.app-brand { display:flex; align-items:center; gap:10px; }
|
||||
.app-brand-mark { width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:20px; }
|
||||
.app-brand-title { font-size:18px; font-weight:700; letter-spacing:.5px; }
|
||||
.app-brand-sub { font-size:11px; opacity:.72; margin-top:2px; }
|
||||
.profile-entry { width:42px; height:42px; border-radius:14px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.16); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:700; }
|
||||
.profile-entry:active { transform:scale(.96); }
|
||||
.welcome-card { margin-top:18px; display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
|
||||
.welcome-kicker { font-size:12px; opacity:.75; }
|
||||
.welcome-name { margin-top:3px; font-size:21px; font-weight:700; }
|
||||
.welcome-meta { margin-top:5px; font-size:12px; opacity:.82; }
|
||||
.shift-badge { flex:none; padding:7px 10px; border-radius:10px; background:rgba(255,255,255,.15); font-size:11px; }
|
||||
|
||||
.workbench-content { padding:14px 12px 0; }
|
||||
.today-panel { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:-2px; margin-bottom:14px; }
|
||||
.today-stat { background:#fff; border:1px solid #e5edf8; border-radius:12px; padding:12px 8px; text-align:center; box-shadow:var(--shadow); }
|
||||
.today-stat-num { font-size:20px; font-weight:750; color:#163b68; line-height:1.1; }
|
||||
.today-stat-label { margin-top:5px; font-size:11px; color:var(--text-secondary); }
|
||||
.phase-notice { display:flex; align-items:center; gap:11px; margin:0 0 16px; padding:12px 13px; border:1px solid #cfe0fb; border-radius:13px; background:linear-gradient(135deg,#f6f9ff,#edf4ff); }
|
||||
.phase-notice-icon { flex:none; width:34px; height:34px; border-radius:11px; background:#155eef; color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; box-shadow:0 5px 12px rgba(21,94,239,.2); }
|
||||
.phase-notice-title { font-size:12px; font-weight:700; color:#163b68; }
|
||||
.phase-notice-desc { margin-top:2px; font-size:10px; color:#6b7f99; }
|
||||
.section-heading { display:flex; align-items:center; justify-content:space-between; margin:17px 2px 9px; }
|
||||
.section-heading-title { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; color:#172b4d; }
|
||||
.section-heading-title::before { content:''; width:4px; height:16px; border-radius:3px; background:var(--section-color,#1a73e8); }
|
||||
.section-heading-count { font-size:11px; color:#8a97a8; }
|
||||
.module-card { background:#fff; border:1px solid #e6ebf2; border-radius:16px; padding:5px 8px; box-shadow:0 3px 12px rgba(20,49,82,.05); }
|
||||
.module-grid { display:grid; grid-template-columns:repeat(4,1fr); }
|
||||
.module-item { position:relative; border:0; background:transparent; padding:12px 3px 11px; min-width:0; cursor:pointer; border-radius:11px; color:#2f3e52; }
|
||||
.module-item:active { background:#f0f5ff; transform:scale(.97); }
|
||||
.module-icon { width:42px; height:42px; margin:0 auto 7px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:21px; background:var(--icon-bg,#eaf2ff); color:var(--icon-color,#155eef); }
|
||||
.module-name { font-size:12px; line-height:1.3; white-space:nowrap; }
|
||||
.module-badge { position:absolute; top:7px; right:5px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#ef4444; color:#fff; font-size:9px; line-height:17px; }
|
||||
.module-card.inbound { --icon-bg:#eaf2ff; --icon-color:#155eef; }
|
||||
.module-card.outbound { --icon-bg:#e7f8f3; --icon-color:#0d9488; }
|
||||
.module-card.internal { --icon-bg:#fff4e5; --icon-color:#e27a16; }
|
||||
.module-item.disabled { cursor:not-allowed; color:#a8b1bd; opacity:.72; }
|
||||
.module-item.disabled .module-icon { background:#f1f3f5; color:#aeb7c2; filter:grayscale(1); }
|
||||
.module-item.disabled:active { background:transparent; transform:none; }
|
||||
.module-lock { position:absolute; top:8px; right:7px; width:16px; height:16px; border-radius:50%; background:#e7eaee; color:#8d98a6; display:flex; align-items:center; justify-content:center; font-size:8px; }
|
||||
.module-item.active-menu { margin:5px 3px; padding-top:7px; padding-bottom:7px; border:1px solid #8dd8cd; background:linear-gradient(145deg,#f0fdfa,#e7f8f3); box-shadow:0 5px 13px rgba(13,148,136,.13); color:#0b6f68; }
|
||||
.module-item.active-menu .module-icon { background:#0d9488; color:#fff; box-shadow:0 6px 12px rgba(13,148,136,.22); }
|
||||
.module-open-badge { position:absolute; top:-7px; right:-3px; padding:2px 5px; border-radius:7px; background:#0d9488; color:#fff; font-size:8px; font-weight:700; box-shadow:0 3px 8px rgba(13,148,136,.22); }
|
||||
.section-status { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:8px; background:#f0f2f5; color:#929eac; font-size:10px; }
|
||||
.section-status.open { background:#e7f8f3; color:#0b7b70; font-weight:600; }
|
||||
|
||||
.page-topbar { position:sticky; top:0; z-index:90; height:60px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--border); box-shadow:0 2px 8px rgba(20,49,82,.05); }
|
||||
.page-back { width:38px; height:38px; border:0; border-radius:11px; background:#f1f5f9; color:#334155; font-size:20px; cursor:pointer; }
|
||||
.page-title { font-size:17px; font-weight:700; color:#172b4d; }
|
||||
.page-user { width:36px; height:36px; border:0; border-radius:12px; background:#eaf2ff; color:#155eef; font-size:13px; font-weight:700; cursor:pointer; }
|
||||
|
||||
.operation-content { padding:14px 12px 30px; }
|
||||
.operation-hero { padding:18px; border-radius:17px; color:#fff; background:linear-gradient(135deg,#155eef,#2878ff); box-shadow:0 8px 20px rgba(21,94,239,.18); }
|
||||
.operation-hero-icon { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.17); font-size:24px; margin-bottom:12px; }
|
||||
.operation-hero-title { font-size:20px; font-weight:700; }
|
||||
.operation-hero-desc { margin-top:5px; font-size:12px; line-height:1.6; opacity:.83; }
|
||||
.task-card { margin-top:12px; background:#fff; border:1px solid #e4eaf2; border-radius:15px; padding:15px; box-shadow:var(--shadow); }
|
||||
.task-card-title { font-size:14px; font-weight:700; color:#243b53; margin-bottom:12px; }
|
||||
.task-row { display:flex; align-items:center; gap:11px; padding:11px 0; border-top:1px solid #edf1f5; }
|
||||
.task-row:first-of-type { border-top:0; }
|
||||
.task-row-icon { width:34px; height:34px; border-radius:10px; background:#edf4ff; display:flex; align-items:center; justify-content:center; }
|
||||
.task-row-main { flex:1; min-width:0; }
|
||||
.task-row-name { font-size:13px; font-weight:600; color:#334e68; }
|
||||
.task-row-desc { margin-top:3px; font-size:11px; color:#829ab1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||
.task-row-arrow { color:#9fb0c3; }
|
||||
.scan-action { width:100%; margin-top:14px; padding:13px; border:0; border-radius:12px; background:#155eef; color:#fff; font-size:14px; font-weight:700; cursor:pointer; }
|
||||
|
||||
.profile-cover { background:linear-gradient(135deg,#155eef,#2878ff); height:150px; padding:16px; color:#fff; }
|
||||
.profile-card { margin:-62px 14px 14px; background:#fff; border-radius:18px; padding:18px; box-shadow:0 10px 28px rgba(20,49,82,.13); text-align:center; position:relative; }
|
||||
.profile-avatar { width:68px; height:68px; border-radius:22px; margin:-50px auto 10px; display:flex; align-items:center; justify-content:center; background:#eaf2ff; border:4px solid #fff; color:#155eef; font-size:25px; font-weight:800; }
|
||||
.profile-name { font-size:19px; font-weight:700; color:#172b4d; }
|
||||
.profile-role { margin-top:4px; font-size:12px; color:#728196; }
|
||||
.profile-stats { display:grid; grid-template-columns:repeat(3,1fr); margin-top:16px; padding-top:14px; border-top:1px solid #edf1f5; }
|
||||
.profile-stat strong { display:block; color:#163b68; font-size:17px; }
|
||||
.profile-stat span { font-size:10px; color:#8a97a8; }
|
||||
.profile-list { margin:12px; background:#fff; border-radius:16px; padding:2px 14px; box-shadow:var(--shadow); }
|
||||
.profile-list-item { display:flex; align-items:center; gap:12px; padding:15px 0; border-bottom:1px solid #edf1f5; font-size:13px; color:#334e68; }
|
||||
.profile-list-item:last-child { border-bottom:0; }
|
||||
.profile-list-icon { width:32px; height:32px; border-radius:10px; background:#eef4ff; display:flex; align-items:center; justify-content:center; }
|
||||
.profile-list-value { margin-left:auto; color:#829ab1; font-size:12px; }
|
||||
.profile-logout { width:calc(100% - 24px); margin:4px 12px 24px; padding:13px; border:1px solid #fecaca; border-radius:12px; background:#fff; color:#dc2626; font-size:14px; font-weight:600; cursor:pointer; }
|
||||
|
||||
/* ========== 统一视觉升级 ========== */
|
||||
:root {
|
||||
--primary:#1769e0;
|
||||
--primary-light:#eaf2ff;
|
||||
--success:#078775;
|
||||
--success-light:#e1f6f1;
|
||||
--bg:#f3f6fa;
|
||||
--text:#172033;
|
||||
--text-secondary:#68758a;
|
||||
--border:#dfe5ee;
|
||||
--shadow:0 3px 12px rgba(23,32,51,.07);
|
||||
--radius:10px;
|
||||
}
|
||||
button, input { font-family:inherit; }
|
||||
button { -webkit-tap-highlight-color:transparent; }
|
||||
button:focus-visible, input:focus-visible { outline:3px solid rgba(23,105,224,.18); outline-offset:2px; }
|
||||
|
||||
/* 登录 */
|
||||
.login-page {
|
||||
justify-content:flex-start;
|
||||
padding:0 22px 28px;
|
||||
background:linear-gradient(180deg,#123b72 0 258px,#f3f6fa 258px 100%);
|
||||
}
|
||||
.login-logo { margin:0 -22px; padding:54px 22px 42px; text-align:left; }
|
||||
.login-brand-line { display:flex; align-items:center; gap:14px; }
|
||||
.login-logo-icon {
|
||||
flex:none; width:58px; height:58px; margin:0; border-radius:14px;
|
||||
background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2);
|
||||
box-shadow:none;
|
||||
}
|
||||
.login-logo-icon svg { width:31px; height:31px; }
|
||||
.login-logo-title { font-size:21px; letter-spacing:0; }
|
||||
.login-logo-sub { color:rgba(255,255,255,.72); font-size:12px; margin-top:5px; }
|
||||
.login-status { display:flex; align-items:center; gap:6px; margin-top:25px; color:rgba(255,255,255,.8); font-size:11px; }
|
||||
.login-status::before { content:''; width:7px; height:7px; border-radius:50%; background:#48d5bc; box-shadow:0 0 0 4px rgba(72,213,188,.12); }
|
||||
.login-card {
|
||||
margin-top:-18px; border:1px solid #e2e7ef; border-radius:12px; padding:22px 20px 18px;
|
||||
box-shadow:0 12px 30px rgba(18,59,114,.12);
|
||||
}
|
||||
.login-card-title { font-size:18px; font-weight:750; color:#172033; }
|
||||
.login-card-desc { margin:5px 0 20px; color:#78869a; font-size:12px; }
|
||||
.login-field { margin-bottom:15px; }
|
||||
.login-field-label { color:#445168; font-weight:600; margin-bottom:7px; }
|
||||
.login-input-wrap { position:relative; }
|
||||
.login-input-icon { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:#8290a4; display:flex; }
|
||||
.login-input-icon svg { width:18px; height:18px; }
|
||||
.login-field-input {
|
||||
height:48px; padding:0 42px; border:1px solid #d8e0eb; border-radius:8px;
|
||||
background:#f9fbfd; color:#172033; font-size:16px;
|
||||
}
|
||||
.login-field-input:focus { border-color:var(--primary); background:#fff; box-shadow:0 0 0 3px rgba(23,105,224,.08); }
|
||||
.password-toggle { position:absolute; right:4px; top:4px; width:40px; height:40px; border:0; background:transparent; color:#6f7d91; border-radius:7px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
|
||||
.password-toggle svg { width:19px; height:19px; }
|
||||
.login-error { padding:9px 11px; border-radius:7px; background:#fff1f1; }
|
||||
.login-btn { height:48px; padding:0; margin-top:5px; border-radius:8px; background:#1769e0; box-shadow:0 6px 14px rgba(23,105,224,.2); }
|
||||
.login-demo-tip { margin-top:13px; padding:10px 12px; border-radius:7px; background:#f2f5f9; color:#6b788c; font-size:11px; text-align:center; }
|
||||
|
||||
/* 工作台 */
|
||||
.app-topbar { padding:15px 16px 24px; border-radius:0 0 16px 16px; background:linear-gradient(140deg,#123b72,#1769e0); box-shadow:0 7px 20px rgba(18,59,114,.2); }
|
||||
.app-brand-mark { width:36px; height:36px; border-radius:9px; font-size:18px; }
|
||||
.app-brand-title { font-size:17px; letter-spacing:0; }
|
||||
.profile-entry { width:40px; height:40px; border-radius:10px; }
|
||||
.welcome-card { margin-top:20px; align-items:center; }
|
||||
.welcome-name { font-size:20px; }
|
||||
.shift-badge { display:flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.16); border-radius:8px; }
|
||||
.shift-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:#5ee6c8; }
|
||||
.workbench-content { padding:14px 12px 22px; }
|
||||
.today-panel { gap:7px; margin-top:-1px; }
|
||||
.today-stat { border-radius:9px; padding:12px 6px; }
|
||||
.today-stat-num { font-size:21px; color:#123b72; }
|
||||
.phase-notice { border-radius:9px; background:#eef5ff; }
|
||||
.phase-notice-icon { width:32px; height:32px; border-radius:8px; box-shadow:none; }
|
||||
.section-heading { margin:18px 2px 8px; }
|
||||
.section-heading-title { font-size:15px; }
|
||||
.module-card { border-radius:10px; padding:4px 6px; box-shadow:var(--shadow); }
|
||||
.module-item { min-height:78px; border-radius:8px; }
|
||||
.module-icon { width:40px; height:40px; border-radius:10px; font-size:20px; }
|
||||
.module-item.disabled { opacity:.58; }
|
||||
.module-lock { background:#dfe4ea; }
|
||||
.module-item.active-menu { margin:3px; border-radius:9px; border-color:#74cfbf; background:#e8f8f4; box-shadow:0 4px 10px rgba(7,135,117,.14); }
|
||||
.module-open-badge { top:-6px; right:-2px; border-radius:5px; }
|
||||
|
||||
/* 个人中心 */
|
||||
.profile-cover { height:132px; background:linear-gradient(140deg,#123b72,#1769e0); }
|
||||
.profile-cover .page-back { background:rgba(255,255,255,.14); color:#fff; }
|
||||
.profile-card { border-radius:12px; margin:-49px 12px 12px; padding:18px; }
|
||||
.profile-avatar { border-radius:16px; }
|
||||
.profile-list { border:1px solid #e3e8ef; border-radius:10px; box-shadow:none; }
|
||||
.profile-list-icon { border-radius:8px; }
|
||||
.profile-logout { border-radius:9px; }
|
||||
|
||||
/* 集装箱拣货 */
|
||||
.header { padding:13px 14px 12px; background:linear-gradient(135deg,#123b72,#1769e0); box-shadow:0 3px 12px rgba(18,59,114,.22); }
|
||||
.header-title { font-size:17px; }
|
||||
.header-badge { border-radius:6px; }
|
||||
.header-sub { display:flex; flex-wrap:wrap; gap:3px 10px; margin-top:7px; }
|
||||
.header-sub span { margin-right:0; }
|
||||
.box-select-wrap { margin:12px 12px 8px; }
|
||||
.box-select-btn { min-height:46px; border:1px solid #c8d9f4; border-radius:9px; color:#174d91; box-shadow:none; }
|
||||
.scan-section { margin:8px 12px; padding:12px; border:1px solid #d8e4f4; border-radius:10px; box-shadow:var(--shadow); }
|
||||
.scan-section::before { content:'扫码拣货'; display:block; margin-bottom:8px; color:#394860; font-size:12px; font-weight:700; }
|
||||
.scan-input { height:46px; padding-top:0; padding-bottom:0; border:1px solid #cfd9e7; border-radius:8px; background:#f8fafc; }
|
||||
.scan-btn { width:46px; height:46px; border-radius:8px; background:#1769e0; }
|
||||
.info-cards { margin:8px 12px; gap:8px; }
|
||||
.info-card { min-width:0; border:1px solid #e0e6ee; border-radius:9px; padding:11px 12px; box-shadow:none; }
|
||||
.info-card-value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
|
||||
.progress-section { margin:8px 12px; border:1px solid #e0e6ee; border-radius:9px; box-shadow:none; }
|
||||
.progress-bar-bg { height:7px; }
|
||||
.progress-bar-fill { background:#078775; }
|
||||
.pick-list { margin:8px 12px 12px; }
|
||||
.pick-item { border:1px solid #e1e7ef; border-radius:9px; padding:14px; box-shadow:0 2px 8px rgba(23,32,51,.05); }
|
||||
.pick-item.active { border-left:4px solid var(--primary); box-shadow:0 3px 12px rgba(23,105,224,.1); }
|
||||
.pick-item-location, .pick-item-order { border-radius:5px; }
|
||||
.pick-btn { min-height:42px; border-radius:7px; font-weight:600; }
|
||||
.pick-btn-confirm { background:#078775; }
|
||||
.pick-btn-partial { background:#eef4ff; color:#1769e0; border-color:#9ebcec; }
|
||||
.submit-section { padding:10px 12px max(12px,env(safe-area-inset-bottom)); box-shadow:0 -4px 14px rgba(23,32,51,.08); }
|
||||
.container-stat { border-radius:7px; min-height:34px; }
|
||||
.submit-btn { min-height:48px; border-radius:8px; background:#1769e0; }
|
||||
.partial-modal, .skip-modal, .boxlist-modal { border-radius:14px 14px 0 0; }
|
||||
.complete-modal { border-radius:12px; }
|
||||
|
||||
@media (max-width:360px) {
|
||||
.module-name { font-size:11px; }
|
||||
.module-icon { width:38px; height:38px; }
|
||||
.welcome-name { font-size:19px; }
|
||||
.login-page { padding-left:16px; padding-right:16px; }
|
||||
.login-logo { margin-left:-16px; margin-right:-16px; padding-left:18px; padding-right:18px; }
|
||||
.pick-item-actions { gap:6px; }
|
||||
.pick-btn { font-size:12px; }
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1029,51 +1255,128 @@
|
||||
<!-- ===== 登录页 ===== -->
|
||||
<div class="login-page" id="loginPage">
|
||||
<div class="login-logo">
|
||||
<div class="login-logo-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2">
|
||||
<rect x="3" y="3" width="18" height="18" rx="2"/>
|
||||
<path d="M3 9h18M9 3v18"/>
|
||||
</svg>
|
||||
<div class="login-brand-line">
|
||||
<div class="login-logo-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2">
|
||||
<rect x="3" y="3" width="18" height="18" rx="2"/>
|
||||
<path d="M3 9h18M9 3v18"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div><div class="login-logo-title">柏悦物流 PDA</div><div class="login-logo-sub">仓储移动作业平台</div></div>
|
||||
</div>
|
||||
<div class="login-logo-title">柏悦物流 · PDA拣货</div>
|
||||
<div class="login-logo-sub">集装箱拣货作业系统</div>
|
||||
<div class="login-status">作业系统运行正常</div>
|
||||
</div>
|
||||
<div class="login-card">
|
||||
<div class="login-card-title">账号登录</div>
|
||||
<div class="login-card-desc">请输入作业人员账号进入工作台</div>
|
||||
<div class="login-field">
|
||||
<div class="login-field-label">工号 / 用户名</div>
|
||||
<input class="login-field-input" id="loginUser" placeholder="请输入工号" autocomplete="off">
|
||||
<div class="login-field-label">用户名</div>
|
||||
<div class="login-input-wrap">
|
||||
<span class="login-input-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0116 0"/></svg></span>
|
||||
<input class="login-field-input" id="loginUser" placeholder="请输入用户名" autocomplete="username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-field">
|
||||
<div class="login-field-label">密码</div>
|
||||
<input class="login-field-input" id="loginPass" type="password" placeholder="请输入密码">
|
||||
</div>
|
||||
<div class="login-field">
|
||||
<div class="login-field-label">作业仓库</div>
|
||||
<select class="login-field-select" id="loginWarehouse">
|
||||
<option value="仓库 A">仓库 A</option>
|
||||
<option value="仓库 B">仓库 B</option>
|
||||
<option value="仓库 C">仓库 C</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="login-error" id="loginError">工号或密码错误</div>
|
||||
<button class="login-btn" onclick="handleLogin()">登录</button>
|
||||
<div class="login-accounts">
|
||||
<div class="login-accounts-title">快捷登录(演示账号)</div>
|
||||
<div class="login-quick-btns">
|
||||
<button class="login-quick-btn" onclick="quickLogin('W001','张伟','拣货员')">
|
||||
<span class="login-quick-btn-name">W001 张伟</span>
|
||||
<span class="login-quick-btn-role"> · 拣货员</span>
|
||||
</button>
|
||||
<button class="login-quick-btn" onclick="quickLogin('W002','李敏','拣货组长')">
|
||||
<span class="login-quick-btn-name">W002 李敏</span>
|
||||
<span class="login-quick-btn-role"> · 拣货组长</span>
|
||||
</button>
|
||||
<button class="login-quick-btn" onclick="quickLogin('W003','王磊','仓管员')">
|
||||
<span class="login-quick-btn-name">W003 王磊</span>
|
||||
<span class="login-quick-btn-role"> · 仓管员</span>
|
||||
<div class="login-input-wrap">
|
||||
<span class="login-input-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 018 0v3"/></svg></span>
|
||||
<input class="login-field-input" id="loginPass" type="password" placeholder="请输入密码" autocomplete="current-password">
|
||||
<button class="password-toggle" id="passwordToggle" type="button" onclick="togglePassword()" aria-label="显示密码">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z"/><circle cx="12" cy="12" r="2.5"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="login-error" id="loginError">用户名或密码错误</div>
|
||||
<button class="login-btn" onclick="handleLogin()">登录</button>
|
||||
<div class="login-demo-tip">演示账号:W001 密码:123456</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ===== PDA 工作台 ===== -->
|
||||
<div class="workbench-page hidden" id="workbenchPage">
|
||||
<div class="app-shell">
|
||||
<div class="app-topbar">
|
||||
<div class="app-topbar-row">
|
||||
<div class="app-brand">
|
||||
<div class="app-brand-mark">▦</div>
|
||||
<div><div class="app-brand-title">柏悦物流 PDA</div><div class="app-brand-sub">仓储移动作业平台</div></div>
|
||||
</div>
|
||||
<button class="profile-entry" id="workbenchAvatar" onclick="openProfile()" aria-label="个人中心">张</button>
|
||||
</div>
|
||||
<div class="welcome-card">
|
||||
<div>
|
||||
<div class="welcome-kicker">欢迎回来</div>
|
||||
<div class="welcome-name" id="workbenchUserName">张伟</div>
|
||||
<div class="welcome-meta"><span id="workbenchRole">拣货员</span> · <span id="workbenchWarehouse">洛杉矶仓</span></div>
|
||||
</div>
|
||||
<div class="shift-badge">白班 · 作业中</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="workbench-content">
|
||||
<div class="today-panel">
|
||||
<div class="today-stat"><div class="today-stat-num">3</div><div class="today-stat-label">待拣集装箱</div></div>
|
||||
<div class="today-stat"><div class="today-stat-num">0</div><div class="today-stat-label">今日已完成</div></div>
|
||||
<div class="today-stat"><div class="today-stat-num">17</div><div class="today-stat-label">待拣货品</div></div>
|
||||
</div>
|
||||
|
||||
<div class="phase-notice"><div class="phase-notice-icon">✓</div><div><div class="phase-notice-title">一期作业范围</div><div class="phase-notice-desc">当前仅开放“集装箱拣货”,其他功能将在后续版本启用</div></div></div>
|
||||
|
||||
<div class="section-heading" style="--section-color:#aeb7c2"><div class="section-heading-title">入库</div><div class="section-status">暂未开放</div></div>
|
||||
<div class="module-card inbound"><div class="module-grid">
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">📥</span><span class="module-name">收货登记</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">🗄️</span><span class="module-name">入库上架</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">📐</span><span class="module-name">入库测量</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">↩️</span><span class="module-name">退货入库</span></button>
|
||||
</div></div>
|
||||
|
||||
<div class="section-heading" style="--section-color:#0d9488"><div class="section-heading-title">出库</div><div class="section-status open">本期开放 1 项</div></div>
|
||||
<div class="module-card outbound"><div class="module-grid">
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">📋</span><span class="module-name">波次拣货</span></button>
|
||||
<button class="module-item active-menu" type="button" onclick="openPicking()"><span class="module-open-badge">本期开放</span><span class="module-badge">3</span><span class="module-icon">📦</span><span class="module-name">集装箱拣货</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">✅</span><span class="module-name">复核装箱</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">🚚</span><span class="module-name">出库交接</span></button>
|
||||
</div></div>
|
||||
|
||||
<div class="section-heading" style="--section-color:#aeb7c2"><div class="section-heading-title">库内作业</div><div class="section-status">暂未开放</div></div>
|
||||
<div class="module-card internal"><div class="module-grid">
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">🔄</span><span class="module-name">移库作业</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">📊</span><span class="module-name">库存盘点</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">🔍</span><span class="module-name">库位查询</span></button>
|
||||
<button class="module-item disabled" type="button" disabled aria-disabled="true"><span class="module-lock">●</span><span class="module-icon">⚠️</span><span class="module-name">异常处理</span></button>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ===== 通用作业页 ===== -->
|
||||
<div class="operation-page hidden" id="operationPage">
|
||||
<div class="app-shell">
|
||||
<div class="page-topbar"><button class="page-back" onclick="backToWorkbench()">‹</button><div class="page-title" id="operationTitle">作业</div><button class="page-user" id="operationAvatar" onclick="openProfile()">张</button></div>
|
||||
<div class="operation-content">
|
||||
<div class="operation-hero"><div class="operation-hero-icon" id="operationIcon">📦</div><div class="operation-hero-title" id="operationHeroTitle">作业任务</div><div class="operation-hero-desc" id="operationDescription">扫描任务单或货物条码开始作业。</div></div>
|
||||
<div class="task-card"><div class="task-card-title">待处理任务</div><div id="operationTaskList"></div></div>
|
||||
<button class="scan-action" onclick="showToast('请扫描任务单或货物条码','success')">▦ 扫码开始作业</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ===== 个人中心 ===== -->
|
||||
<div class="profile-page hidden" id="profilePage">
|
||||
<div class="app-shell">
|
||||
<div class="profile-cover"><button class="page-back" onclick="backFromProfile()">‹</button></div>
|
||||
<div class="profile-card">
|
||||
<div class="profile-avatar" id="profileAvatar">张</div><div class="profile-name" id="profileName">张伟</div><div class="profile-role" id="profileRole">W001 · 拣货员</div>
|
||||
<div class="profile-stats"><div class="profile-stat"><strong>28</strong><span>今日完成</span></div><div class="profile-stat"><strong>156</strong><span>本月任务</span></div><div class="profile-stat"><strong>99.2%</strong><span>作业准确率</span></div></div>
|
||||
</div>
|
||||
<div class="profile-list">
|
||||
<div class="profile-list-item"><span class="profile-list-icon">🏢</span><span>当前仓库</span><span class="profile-list-value" id="profileWarehouse">洛杉矶仓</span></div>
|
||||
<div class="profile-list-item"><span class="profile-list-icon">🕘</span><span>当前班次</span><span class="profile-list-value">白班 08:00–17:00</span></div>
|
||||
<div class="profile-list-item"><span class="profile-list-icon">🔐</span><span>修改密码</span><span class="profile-list-value">›</span></div>
|
||||
<div class="profile-list-item"><span class="profile-list-icon">⚙️</span><span>系统设置</span><span class="profile-list-value">›</span></div>
|
||||
<div class="profile-list-item"><span class="profile-list-icon">ℹ️</span><span>版本信息</span><span class="profile-list-value">V1.0.0</span></div>
|
||||
</div>
|
||||
<button class="profile-logout" onclick="handleLogout()">退出登录</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1081,10 +1384,10 @@
|
||||
<div class="main-page hidden" id="mainPage">
|
||||
<div class="header">
|
||||
<div class="header-top">
|
||||
<div class="header-title">集装箱拣货</div>
|
||||
<div style="display:flex;align-items:center;gap:8px"><button class="logout-btn" onclick="backToWorkbench()" style="font-size:18px;padding:3px 9px">‹</button><div class="header-title">集装箱拣货</div></div>
|
||||
<div style="display:flex;align-items:center;gap:8px;">
|
||||
<div class="header-badge" id="headerBadge">仓库 A</div>
|
||||
<button class="logout-btn" onclick="handleLogout()">退出</button>
|
||||
<button class="logout-btn" id="pickingAvatar" onclick="openProfile()">张</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-sub">
|
||||
@@ -1229,51 +1532,127 @@
|
||||
<script>
|
||||
// ===== 登录逻辑 =====
|
||||
const DEMO_ACCOUNTS = {
|
||||
'W001': { pass: '123456', name: '张伟', role: '拣货员' },
|
||||
'W002': { pass: '123456', name: '李敏', role: '拣货组长' },
|
||||
'W003': { pass: '123456', name: '王磊', role: '仓管员' },
|
||||
'W001': { pass: '123456', name: '张伟', role: '拣货员', warehouse: '洛杉矶仓' },
|
||||
'W002': { pass: '123456', name: '李敏', role: '拣货组长', warehouse: '洛杉矶仓' },
|
||||
'W003': { pass: '123456', name: '王磊', role: '仓管员', warehouse: '新泽西仓' },
|
||||
};
|
||||
let currentUser = null;
|
||||
let profileReturnPage = 'workbenchPage';
|
||||
|
||||
function togglePassword() {
|
||||
const input = document.getElementById('loginPass');
|
||||
const button = document.getElementById('passwordToggle');
|
||||
const showing = input.type === 'text';
|
||||
input.type = showing ? 'password' : 'text';
|
||||
button.setAttribute('aria-label', showing ? '显示密码' : '隐藏密码');
|
||||
}
|
||||
|
||||
function handleLogin() {
|
||||
const userId = document.getElementById('loginUser').value.trim();
|
||||
const password = document.getElementById('loginPass').value;
|
||||
const warehouse = document.getElementById('loginWarehouse').value;
|
||||
|
||||
if (!userId) { showLoginError('请输入工号'); return; }
|
||||
if (!userId) { showLoginError('请输入用户名'); return; }
|
||||
if (!password) { showLoginError('请输入密码'); return; }
|
||||
|
||||
// 检查账号
|
||||
const account = DEMO_ACCOUNTS[userId];
|
||||
if (!account || account.pass !== password) {
|
||||
showLoginError('工号或密码错误');
|
||||
showLoginError('用户名或密码错误');
|
||||
return;
|
||||
}
|
||||
|
||||
currentUser = { id: userId, name: account.name, role: account.role, warehouse: warehouse };
|
||||
currentUser = { id: userId, name: account.name, role: account.role, warehouse: account.warehouse };
|
||||
enterMainPage();
|
||||
}
|
||||
|
||||
function quickLogin(id, name, role) {
|
||||
currentUser = { id: id, name: name, role: role, warehouse: document.getElementById('loginWarehouse').value };
|
||||
currentUser = { id: id, name: name, role: role, warehouse: (DEMO_ACCOUNTS[id] && DEMO_ACCOUNTS[id].warehouse) || '洛杉矶仓' };
|
||||
enterMainPage();
|
||||
}
|
||||
|
||||
function enterMainPage() {
|
||||
document.getElementById('loginPage').classList.add('hidden');
|
||||
document.getElementById('mainPage').classList.remove('hidden');
|
||||
showAppPage('workbenchPage');
|
||||
updateUserUI();
|
||||
initStates();
|
||||
updateContainerStats();
|
||||
hideLoginError();
|
||||
showToast(currentUser.name + ',欢迎登录', 'success');
|
||||
}
|
||||
|
||||
function showAppPage(pageId) {
|
||||
['workbenchPage','operationPage','profilePage','mainPage'].forEach(id => {
|
||||
document.getElementById(id).classList.toggle('hidden', id !== pageId);
|
||||
});
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
function updateUserUI() {
|
||||
const initial = currentUser.name.slice(0, 1);
|
||||
document.getElementById('headerBadge').textContent = currentUser.warehouse;
|
||||
document.getElementById('headerUser').textContent = currentUser.name + ' · ' + currentUser.role;
|
||||
hideLoginError();
|
||||
initStates();
|
||||
document.getElementById('workbenchUserName').textContent = currentUser.name;
|
||||
document.getElementById('workbenchRole').textContent = currentUser.role;
|
||||
document.getElementById('workbenchWarehouse').textContent = currentUser.warehouse;
|
||||
document.getElementById('profileName').textContent = currentUser.name;
|
||||
document.getElementById('profileRole').textContent = currentUser.id + ' · ' + currentUser.role;
|
||||
document.getElementById('profileWarehouse').textContent = currentUser.warehouse;
|
||||
['workbenchAvatar','operationAvatar','profileAvatar','pickingAvatar'].forEach(id => {
|
||||
document.getElementById(id).textContent = initial;
|
||||
});
|
||||
}
|
||||
|
||||
function backToWorkbench() {
|
||||
showAppPage('workbenchPage');
|
||||
}
|
||||
|
||||
function openPicking() {
|
||||
showAppPage('mainPage');
|
||||
render();
|
||||
showToast(currentUser.name + ',欢迎登录', 'success');
|
||||
}
|
||||
|
||||
function openProfile() {
|
||||
const visible = ['workbenchPage','operationPage','mainPage'].find(id => !document.getElementById(id).classList.contains('hidden'));
|
||||
profileReturnPage = visible || 'workbenchPage';
|
||||
showAppPage('profilePage');
|
||||
}
|
||||
|
||||
function backFromProfile() {
|
||||
showAppPage(profileReturnPage || 'workbenchPage');
|
||||
}
|
||||
|
||||
const OPERATION_CONFIG = {
|
||||
'inbound-receive': { icon:'📥', desc:'扫描入库单和货物条码,完成到仓签收与数量核验。', tasks:[['IN-260728-018','义乌欧业 · 18箱'],['IN-260728-021','青岛远航 · 12箱'],['IN-260728-026','深圳璟智 · 8箱']] },
|
||||
'inbound-shelve': { icon:'🗄️', desc:'根据系统推荐库位完成货物上架,并确认实际存放位置。', tasks:[['SH-260728-008','A区 · 5项待上架'],['SH-260728-011','C区 · 3项待上架']] },
|
||||
'inbound-measure': { icon:'📐', desc:'采集货物长宽高、重量与箱数,提交测量结果。', tasks:[['MS-260728-015','待测量 6箱'],['MS-260728-017','待复测 2箱']] },
|
||||
'return-inbound': { icon:'↩️', desc:'核验退货信息、商品状态与数量,完成退件入库。', tasks:[['RT-260728-006','客户退货 · 4件'],['RT-260728-009','FBA退件 · 7件']] },
|
||||
'wave-picking': { icon:'📋', desc:'按波次任务集中拣选多个订单,提高出库作业效率。', tasks:[['WV-260728-003','12单 · 36件'],['WV-260728-005','8单 · 24件']] },
|
||||
'packing-review': { icon:'✅', desc:'扫描订单与商品,复核数量后完成装箱封包。', tasks:[['PK-260728-012','待复核 5箱'],['PK-260728-014','待复核 3箱']] },
|
||||
'outbound-handover': { icon:'🚚', desc:'核对承运车辆、司机和出库货物,完成交接签字。', tasks:[['HO-260728-004','顺通车队 · 8托'],['HO-260728-007','宏达车队 · 12托']] },
|
||||
'stock-transfer': { icon:'🔄', desc:'扫描原库位、商品和目标库位,完成库存移位。', tasks:[['MV-260728-019','A-03 → C-08 · 6件'],['MV-260728-022','B-01 → D-02 · 4件']] },
|
||||
'stock-check': { icon:'📊', desc:'按盘点任务核对系统库存与实物数量,记录差异。', tasks:[['CK-260728-002','A区循环盘点'],['CK-260728-006','C区抽样盘点']] },
|
||||
'location-query': { icon:'🔍', desc:'扫描 SKU、箱号或库位码,快速查询库存位置与数量。', tasks:[['快捷查询','支持 SKU / 箱号 / 库位码']] },
|
||||
'exception': { icon:'⚠️', desc:'处理破损、短少、错货、库位异常等仓内问题。', tasks:[['EX-260728-003','数量差异 · 待复核'],['EX-260728-005','包装破损 · 待处理']] }
|
||||
};
|
||||
|
||||
function openOperation(title, key) {
|
||||
const config = OPERATION_CONFIG[key] || { icon:'📦', desc:'扫描任务单或货物条码开始作业。', tasks:[] };
|
||||
document.getElementById('operationTitle').textContent = title;
|
||||
document.getElementById('operationHeroTitle').textContent = title;
|
||||
document.getElementById('operationIcon').textContent = config.icon;
|
||||
document.getElementById('operationDescription').textContent = config.desc;
|
||||
document.getElementById('operationTaskList').innerHTML = config.tasks.map((task, index) => `
|
||||
<div class="task-row" onclick="showToast('已选择任务:${task[0]}','success')">
|
||||
<div class="task-row-icon">${index + 1}</div>
|
||||
<div class="task-row-main"><div class="task-row-name">${task[0]}</div><div class="task-row-desc">${task[1]}</div></div>
|
||||
<div class="task-row-arrow">›</div>
|
||||
</div>`).join('') || '<div style="padding:22px 0;text-align:center;color:#829ab1;font-size:12px">暂无待处理任务</div>';
|
||||
showAppPage('operationPage');
|
||||
}
|
||||
|
||||
function handleLogout() {
|
||||
currentUser = null;
|
||||
document.getElementById('loginPage').classList.remove('hidden');
|
||||
document.getElementById('mainPage').classList.add('hidden');
|
||||
['workbenchPage','operationPage','profilePage','mainPage'].forEach(id => document.getElementById(id).classList.add('hidden'));
|
||||
// 清空表单
|
||||
document.getElementById('loginUser').value = '';
|
||||
document.getElementById('loginPass').value = '';
|
||||
@@ -1296,6 +1675,10 @@ function hideLoginError() {
|
||||
document.getElementById('loginError').classList.remove('show');
|
||||
}
|
||||
|
||||
document.getElementById('loginPass').addEventListener('keydown', event => {
|
||||
if (event.key === 'Enter') handleLogin();
|
||||
});
|
||||
|
||||
// ===== 数据 =====
|
||||
const BOXES = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user