Files
SupplierSystem/miniprogram/components/inspection-panel/index.wxss
T
雨天 65a6fdce20
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
订单入库: 区域/产月选择器做成「选择框」(加边框与 ▾)
开发者:「区域这块要做得像一个选择框,当前还以为是纯文字」。.rate-pick 此前无边框/背景(与旁边实收 .r2-field 的灰底框不一致)⇒ 补 边框+圆角+灰底+width:100%,并在 区域/产月 后加 ▾ 箭头。
2026-10-16 17:43:12 +08:00

663 lines
10 KiB
Plaintext

.inspection-page {
min-height: 100vh;
background: #fafafa;
padding-bottom: 40rpx;
}
.inspection-page.is-embedded {
min-height: 0;
background: transparent;
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
}
.inspection-page.is-embedded .list-sheet {
min-height: 0;
}
.inspection-page.is-embedded .filter-pills {
padding-top: 8rpx;
}
.kpi-card {
margin: 24rpx;
background: #047857;
border-radius: 24rpx;
padding: 28rpx 16rpx;
display: flex;
align-items: center;
color: #fff;
}
.kpi-cell {
flex: 1;
text-align: center;
}
.kpi-num {
font-size: 40rpx;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.kpi-label {
margin-top: 6rpx;
font-size: 22rpx;
opacity: 0.9;
}
.kpi-divider {
width: 1px;
height: 56rpx;
background: rgba(255, 255, 255, 0.25);
}
.filter-pills {
display: flex;
gap: 12rpx;
padding: 0 24rpx 16rpx;
flex-wrap: wrap;
}
.filter-pill {
padding: 12rpx 24rpx;
border-radius: 999rpx;
font-size: 24rpx;
color: #52525b;
background: #fff;
border: 1px solid #e4e4e7;
}
.filter-pill.on {
background: #059669;
color: #fff;
border-color: #059669;
}
.list-sheet {
margin: 0 24rpx;
background: #fff;
border: 1px solid #e4e4e7;
border-radius: 24rpx 24rpx 0 0;
padding: 24rpx 0 8rpx;
min-height: 60vh;
}
.sku-group {
margin-bottom: 4rpx;
}
.sku-group-head {
display: flex;
align-items: center;
gap: 12rpx;
margin: 0 16rpx 4rpx;
padding: 16rpx 18rpx;
border-radius: 16rpx;
background: #f4f4f5;
}
.sku-group-head.is-collapsed {
background: #ecfdf5;
}
.sku-group-main {
flex: 1;
min-width: 0;
}
.sku-group-title {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
white-space: normal;
word-break: break-word;
}
.sku-group-meta {
margin-top: 4rpx;
font-size: 22rpx;
color: #71717a;
}
.sku-group-chevron {
flex-shrink: 0;
font-size: 22rpx;
font-weight: 600;
color: #059669;
}
.batch-row {
display: flex;
align-items: flex-start;
gap: 12rpx;
padding: 0 24rpx 16rpx;
overflow: visible;
}
.batch-btn-wrap {
flex-shrink: 0;
/* 竖排:微信 `button[size="mini"]` 默认 inline-block,不强制就会两个按钮并排一行 */
display: flex;
flex-direction: column;
align-items: flex-start;
}
.batch-btn {
width: auto !important;
margin: 0;
padding: 0 20rpx;
font-size: 24rpx;
line-height: 2.1;
}
/* 「一键上传批次报告」:紧随主按钮下方,次级(描边)样式,避免抢主按钮 */
.batch-btn--report {
margin-top: 12rpx !important;
background: #fff;
color: #059669;
border: 1rpx solid #a7f3d0;
}
.cat-grid {
flex: 1;
min-width: 0;
display: flex;
flex-wrap: wrap;
flex-shrink: 0;
border-top: 1px solid #64748b;
border-left: 1px solid #64748b;
background: #f7fdf8;
}
.cat-cell {
flex: 0 0 20%;
width: 20%;
min-width: 20%;
max-width: 20%;
box-sizing: border-box;
border-right: 1px solid #64748b;
border-bottom: 1px solid #64748b;
text-align: center;
padding: 6rpx 4rpx 8rpx;
}
.cat-cell.is-active {
background: #059669;
}
.cat-cell.is-active .cat-cell-name,
.cat-cell.is-active .cat-cell-count {
color: #fff;
}
.cat-cell-name {
font-size: 20rpx;
color: #334155;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cat-cell-count {
margin-top: 2rpx;
font-size: 22rpx;
font-weight: 700;
color: #0f172a;
font-variant-numeric: tabular-nums;
}
.date-axis {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 12rpx;
padding: 0 24rpx 16rpx;
}
.date-chip {
padding: 10rpx 20rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
color: #475569;
background: #f1f5f9;
flex-shrink: 0;
}
.date-axis .axis-pick {
background: #ecfdf5;
color: #047857;
}
.date-axis .date-pick {
padding: 10rpx 12rpx;
font-size: 22rpx;
}
.today-day-head {
margin: 8rpx 24rpx 0;
padding: 8rpx 4rpx 4rpx;
font-size: 22rpx;
font-weight: 700;
color: #047857;
}
.xd-row-card {
margin: 0 16rpx 4rpx;
padding: 16rpx 8rpx 16rpx;
border-bottom: 1rpx solid #f1f5f9;
}
.card-r1,
.card-r2 {
display: flex;
align-items: center;
gap: 12rpx;
min-width: 0;
}
.card-r1 {
align-items: flex-start;
}
.card-r2 {
margin-top: 12rpx;
flex-wrap: nowrap;
}
/* 第三行:规格 / 生产日期 / 保质期 / 产地(2026-10-16 补齐;选填,放不下自动换行) */
.card-r3 {
margin-top: 10rpx;
display: flex;
flex-wrap: wrap;
gap: 10rpx;
}
.r3-input,
.r3-picker {
flex: 1 1 44%;
min-width: 0;
box-sizing: border-box;
height: 56rpx;
border: 1rpx solid #e4e4e7;
border-radius: 8rpx;
background: #fafafa;
}
.r3-input {
padding: 0 14rpx;
font-size: 24rpx;
color: #18181b;
}
.r3-picker {
display: flex;
align-items: center;
justify-content: center;
}
.r3-pick {
font-size: 24rpx;
color: #18181b;
}
.r3-pick.is-empty {
color: #a1a1aa;
}
/* 保质期:数值输入 + 年/月/日 单位选择(对齐库存入库) */
.r3-shelf {
flex: 1 1 44%;
min-width: 0;
display: flex;
gap: 8rpx;
}
.r3-input--num {
flex: 1 1 0;
}
.r3-unit {
flex: 0 0 108rpx;
box-sizing: border-box;
height: 56rpx;
border: 1rpx solid #e4e4e7;
border-radius: 8rpx;
background: #fafafa;
display: flex;
align-items: center;
justify-content: center;
}
.r3-unit-pick {
font-size: 24rpx;
color: #18181b;
}
.r3-unit-pick.is-empty {
color: #a1a1aa;
}
.card-title-wrap {
flex: 1;
min-width: 0;
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8rpx;
}
.task-title {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
min-width: 4em;
/* 不撑满整行:让「须/免拍照」与数量单位紧贴商品名(左移),而不是被顶到最右 */
flex: 0 1 auto;
white-space: normal;
word-break: break-word;
}
.photo-hint {
flex-shrink: 0;
font-size: 20rpx;
font-weight: 600;
line-height: 1.2;
}
.photo-hint.need {
color: #b45309;
}
.photo-hint.skip {
color: #a1a1aa;
}
.photo-hint.independent {
color: #1d4ed8;
}
.task-meta {
flex-shrink: 0;
font-size: 22rpx;
color: #a1a1aa;
}
.btn-pass,
.btn-return {
flex-shrink: 0;
box-sizing: border-box;
padding: 0 18rpx;
height: 56rpx;
line-height: 52rpx;
text-align: center;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
}
.btn-pass {
/* 与「退回」拉开间距(行内 gap 12rpx + 此处 32rpx ≈ 22px)—— 避免误触退回 */
margin-left: 32rpx;
background: #059669;
color: #fff;
border: 2rpx solid #059669;
}
.btn-return {
background: #fff;
color: #ef4444;
border: 2rpx solid #ef4444;
}
.is-disabled {
opacity: 0.45;
pointer-events: none;
}
.r2-photo {
display: flex;
align-items: center;
gap: 8rpx;
flex-shrink: 0;
}
.photo-grid {
display: flex;
flex-wrap: nowrap;
gap: 6rpx;
max-width: 72rpx;
overflow: hidden;
flex-shrink: 0;
}
.photo-thumb-wrap {
position: relative;
width: 56rpx;
height: 56rpx;
flex-shrink: 0;
}
.photo-thumb {
width: 56rpx;
height: 56rpx;
border-radius: 12rpx;
background: #e4e4e7;
}
.photo-del {
position: absolute;
top: -6rpx;
right: -6rpx;
width: 28rpx;
height: 28rpx;
line-height: 24rpx;
text-align: center;
border-radius: 50%;
background: rgba(24, 24, 27, 0.78);
color: #fff;
font-size: 20rpx;
}
.btn-photo {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
width: 112rpx;
height: 56rpx;
padding: 0;
margin: 0;
line-height: 1;
text-align: center;
border-radius: 12rpx;
background: #fff;
color: #059669;
border: 2rpx solid #059669;
font-size: 24rpx;
font-weight: 600;
}
.r2-field {
flex: 1;
min-width: 0;
height: 56rpx;
border-radius: 12rpx;
background: #f4f4f5;
overflow: hidden;
}
.r2-picker {
flex: 1;
min-width: 0;
}
.qty-input {
width: 100%;
height: 56rpx;
padding: 0 16rpx;
box-sizing: border-box;
border: none;
background: transparent;
font-size: 26rpx;
font-weight: 600;
font-variant-numeric: tabular-nums;
text-align: center;
}
/* 选择框观感(2026-10-16:此前无边框,被误认成纯文字)*/
.rate-pick {
display: block;
box-sizing: border-box;
width: 100%;
height: 56rpx;
line-height: 56rpx;
padding: 0 16rpx;
border: 1rpx solid #e4e4e7;
border-radius: 12rpx;
background: #f4f4f5;
text-align: center;
font-size: 24rpx;
font-weight: 600;
color: #18181b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rate-pick.is-empty {
color: #a1a1aa;
font-weight: 400;
}
.ai-verdict {
flex-shrink: 0;
font-size: 20rpx;
font-weight: 700;
line-height: 1;
}
.ai-verdict.ok {
color: #047857;
}
.ai-verdict.fail {
color: #dc2626;
}
.ai-verdict.warn,
.ai-verdict.pending {
color: #b45309;
font-weight: 600;
}
/* 批次报告核对表(一键上传批次报告 → 提取生产日期,人工核对/修改后确定) */
.report-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 10500;
}
.report-sheet {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 10501;
background: #fff;
border-radius: 20rpx 20rpx 0 0;
padding: 24rpx;
display: flex;
flex-direction: column;
}
.report-sheet-head {
font-size: 30rpx;
font-weight: 700;
color: #0a0a0b;
margin-bottom: 12rpx;
}
.report-sheet-body {
max-height: 52vh;
}
.report-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
padding: 14rpx 0;
border-bottom: 1rpx solid #f1f5f9;
}
.report-row-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4rpx;
}
.report-row-name {
font-size: 26rpx;
font-weight: 600;
color: #0a0a0b;
}
.report-row-match {
font-size: 20rpx;
color: #71717a;
}
.report-row-match.is-hit {
color: #059669;
}
.report-row-match.is-miss {
color: #dc2626;
}
.report-row-date {
flex-shrink: 0;
font-size: 26rpx;
color: #0a0a0b;
padding: 8rpx 16rpx;
background: #f4f4f5;
border-radius: 10rpx;
}
.report-row-date.is-empty {
color: #a1a1aa;
}
.report-sheet-foot {
display: flex;
gap: 16rpx;
margin-top: 20rpx;
}
.report-btn {
flex: 1;
text-align: center;
padding: 20rpx 0;
border-radius: 12rpx;
font-size: 28rpx;
}
.report-btn.ghost {
background: #fff;
color: #059669;
border: 1rpx solid #a7f3d0;
}
.report-btn.primary {
background: #059669;
color: #fff;
}