669 lines
10 KiB
Plaintext
669 lines
10 KiB
Plaintext
.page {
|
|
min-height: 100vh;
|
|
padding-bottom: 24rpx;
|
|
background: #f3faf6;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.page.is-embedded {
|
|
min-height: 0;
|
|
padding-bottom: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.card {
|
|
margin: 0 8rpx;
|
|
padding: 20rpx 20rpx 8rpx;
|
|
border-radius: 20rpx;
|
|
background: #fff;
|
|
border: 1px solid #e4e4e7;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.seg-tabs {
|
|
display: flex;
|
|
margin-bottom: 16rpx;
|
|
padding: 4rpx;
|
|
border-radius: 14rpx;
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.seg-tab {
|
|
flex: 1;
|
|
padding: 12rpx 0;
|
|
border-radius: 10rpx;
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #71717a;
|
|
}
|
|
|
|
.seg-tab.active {
|
|
background: #059669;
|
|
color: #fff;
|
|
box-shadow: 0 4rpx 10rpx rgba(5, 150, 105, 0.22);
|
|
}
|
|
|
|
.filter-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.filter-chip {
|
|
padding: 10rpx 22rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #52525b;
|
|
background: #f8fafc;
|
|
border: 1px solid #e4e4e7;
|
|
}
|
|
|
|
.filter-chip.active {
|
|
color: #fff;
|
|
background: #059669;
|
|
border-color: #059669;
|
|
}
|
|
|
|
.period-summary {
|
|
margin-bottom: 16rpx;
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
.list-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 8rpx 0 16rpx;
|
|
}
|
|
|
|
.list-head-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.section-mark {
|
|
width: 8rpx;
|
|
height: 28rpx;
|
|
border-radius: 8rpx;
|
|
background: #059669;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 30rpx;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.create-link {
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #047857;
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.state-error {
|
|
margin: 12rpx 0;
|
|
color: #dc2626;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.state-box,
|
|
.empty-box {
|
|
padding: 72rpx 24rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
}
|
|
|
|
.empty-hint {
|
|
margin-top: 8rpx;
|
|
font-size: 22rpx;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.task-card {
|
|
margin-bottom: 16rpx;
|
|
padding: 20rpx 18rpx 16rpx;
|
|
border-radius: 16rpx;
|
|
border: 1px solid #e4e4e7;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.task-card-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.task-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 30rpx;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.task-status {
|
|
flex-shrink: 0;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
color: #b45309;
|
|
background: #fffbeb;
|
|
}
|
|
|
|
.task-status.is-doing {
|
|
color: #1d4ed8;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.task-status.is-done {
|
|
color: #047857;
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.task-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8rpx 16rpx;
|
|
margin-top: 10rpx;
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
.qty-unit {
|
|
margin-left: 12rpx;
|
|
}
|
|
|
|
.tag {
|
|
padding: 0 10rpx;
|
|
border-radius: 999rpx;
|
|
color: #1d4ed8;
|
|
background: #dbeafe;
|
|
font-size: 20rpx;
|
|
}
|
|
|
|
.task-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.task-hint {
|
|
flex: 1;
|
|
min-width: 200rpx;
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
.task-hint.is-warn {
|
|
color: #d97706;
|
|
}
|
|
|
|
.inspect-block {
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.kpi-row {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.kpi-cell {
|
|
flex: 1;
|
|
padding: 12rpx 10rpx;
|
|
border-radius: 12rpx;
|
|
background: #fff;
|
|
border: 1px solid #e4e4e7;
|
|
}
|
|
|
|
.kpi-label {
|
|
display: block;
|
|
font-size: 20rpx;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.kpi-value {
|
|
display: block;
|
|
margin-top: 4rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.photo-count {
|
|
margin-top: 10rpx;
|
|
font-size: 22rpx;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.field-picker {
|
|
margin-top: 12rpx;
|
|
padding: 16rpx 18rpx;
|
|
border-radius: 12rpx;
|
|
background: #fff;
|
|
border: 1px solid #d1fae5;
|
|
color: #047857;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary,
|
|
.btn-secondary,
|
|
.btn-ghost {
|
|
margin: 0;
|
|
line-height: 2.1;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #059669 !important;
|
|
color: #fff !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #ecfdf5 !important;
|
|
color: #047857 !important;
|
|
border: 1px solid #a7f3d0 !important;
|
|
}
|
|
|
|
.btn-ghost {
|
|
flex: 1;
|
|
background: #f4f4f5 !important;
|
|
color: #52525b !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.btn-block {
|
|
flex: 1.4;
|
|
}
|
|
|
|
.bottom-bar-slot {
|
|
height: calc(148rpx + env(safe-area-inset-bottom));
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.bottom-bar-slot--embedded {
|
|
height: 148rpx;
|
|
}
|
|
|
|
.stats-bar {
|
|
position: fixed;
|
|
left: 24rpx;
|
|
right: 24rpx;
|
|
bottom: calc(24rpx + env(safe-area-inset-bottom));
|
|
z-index: 99;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16rpx 24rpx;
|
|
border-radius: 16rpx;
|
|
background: rgba(15, 23, 42, 0.92);
|
|
box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.18);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.stats-bar--embedded {
|
|
bottom: calc(120rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.stats-bar-dual {
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.stats-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4rpx;
|
|
}
|
|
|
|
.stats-item-qty {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.stats-divider {
|
|
width: 1px;
|
|
align-self: stretch;
|
|
margin: 4rpx 16rpx;
|
|
background: rgba(148, 163, 184, 0.35);
|
|
}
|
|
|
|
.stats-label {
|
|
font-size: 22rpx;
|
|
color: #94a3b8;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.stats-value {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.stats-qty-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4rpx;
|
|
}
|
|
|
|
.stats-qty-line {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
|
|
.sheet-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
padding: 0;
|
|
background: rgba(15, 23, 42, 0.48);
|
|
}
|
|
|
|
.sheet-card {
|
|
width: 100%;
|
|
max-height: 86vh;
|
|
padding: 28rpx 24rpx calc(24rpx + env(safe-area-inset-bottom));
|
|
border-radius: 28rpx 28rpx 0 0;
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 -16rpx 48rpx rgba(15, 23, 42, 0.16);
|
|
}
|
|
|
|
.sheet-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.sheet-title {
|
|
font-size: 34rpx;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.sheet-sub {
|
|
margin-top: 6rpx;
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.sheet-demand {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8rpx 20rpx;
|
|
margin-top: 12rpx;
|
|
padding: 12rpx 16rpx;
|
|
border-radius: 12rpx;
|
|
background: #f0fdf4;
|
|
font-size: 24rpx;
|
|
color: #166534;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.sheet-demand-unit {
|
|
margin-left: 12rpx;
|
|
}
|
|
|
|
.sheet-close {
|
|
padding: 0 8rpx;
|
|
color: #94a3b8;
|
|
font-size: 44rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.sheet-body {
|
|
max-height: 52vh;
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.field-label {
|
|
display: block;
|
|
margin-bottom: 8rpx;
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
.field-input {
|
|
width: 100%;
|
|
height: 72rpx;
|
|
padding: 0 18rpx;
|
|
border-radius: 14rpx;
|
|
border: 1px solid #d4d4d8;
|
|
background: #f8fafc;
|
|
font-size: 28rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.field-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0 16rpx;
|
|
}
|
|
|
|
.field-span {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.sku-options {
|
|
margin: -4rpx 0 16rpx;
|
|
max-height: 280rpx;
|
|
overflow-y: auto;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 14rpx;
|
|
background: #fff;
|
|
}
|
|
|
|
.sku-option {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4rpx;
|
|
padding: 16rpx;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.sku-option:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* 「搜不到 → 用该名称新建商品」入口(可点,绿色) */
|
|
.sku-option-create .sku-name {
|
|
color: #047857;
|
|
}
|
|
|
|
/* 新建商品:分类内联标签(不弹滚轮选择器)+ 就地新建 */
|
|
/* 必填标记(商品名 / 分类) */
|
|
.req-mark {
|
|
color: #e11d48;
|
|
margin-left: 4rpx;
|
|
}
|
|
.cat-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.cat-chip {
|
|
padding: 10rpx 22rpx;
|
|
border-radius: 999rpx;
|
|
border: 1px solid #d4d4d8;
|
|
background: #ffffff;
|
|
color: #475569;
|
|
font-size: 24rpx;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.cat-chip.is-on {
|
|
border-color: #10b981;
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cat-chip-add {
|
|
border-style: dashed;
|
|
color: #047857;
|
|
}
|
|
|
|
.cat-create-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-top: 12rpx;
|
|
}
|
|
|
|
.cat-create-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cat-create-btn {
|
|
flex: none;
|
|
padding: 0 24rpx;
|
|
height: 72rpx;
|
|
line-height: 72rpx;
|
|
border-radius: 14rpx;
|
|
background: #10b981;
|
|
color: #ffffff;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.cat-create-btn.is-disabled {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.cat-create-cancel {
|
|
flex: none;
|
|
padding: 0 8rpx;
|
|
color: #64748b;
|
|
font-size: 26rpx;
|
|
line-height: 72rpx;
|
|
}
|
|
|
|
.sku-name {
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.sku-meta {
|
|
font-size: 22rpx;
|
|
color: #64748b;
|
|
}
|
|
|
|
.selected-sku {
|
|
margin-bottom: 16rpx;
|
|
padding: 12rpx 16rpx;
|
|
border-radius: 12rpx;
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.loss-box {
|
|
margin: 4rpx 0 16rpx;
|
|
padding: 16rpx;
|
|
border-radius: 14rpx;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.loss-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 26rpx;
|
|
color: #334155;
|
|
}
|
|
|
|
.loss-value {
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.loss-hint {
|
|
margin-top: 8rpx;
|
|
font-size: 22rpx;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* 成品行:报告继承开关(默认勾选;选中态用绿色实心勾,一眼看得出已勾) */
|
|
.inherit-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx 32rpx;
|
|
margin-top: 8rpx;
|
|
}
|
|
|
|
.inherit-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.inherit-check {
|
|
width: 34rpx;
|
|
height: 34rpx;
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8rpx;
|
|
border: 2rpx solid #cbd5e1;
|
|
background: #ffffff;
|
|
color: transparent;
|
|
font-size: 24rpx;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.inherit-toggle.is-on .inherit-check {
|
|
border-color: #10b981;
|
|
background: #10b981;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.inherit-label {
|
|
font-size: 24rpx;
|
|
color: #64748b;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.inherit-toggle.is-on .inherit-label {
|
|
color: #047857;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sheet-actions {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
margin-top: 8rpx;
|
|
}
|