小程序识别结果逐行入库;保质期拆数值与单位(AI 三选一或人手选)落库原文;选择商品弹层 root-portal 防 tab 遮挡,并预填 AI 品名。 Co-authored-by: Cursor <cursoragent@cursor.com>
473 lines
7.0 KiB
Plaintext
473 lines
7.0 KiB
Plaintext
.page {
|
|
padding: 24rpx 24rpx 48rpx;
|
|
background: #f3faf6;
|
|
min-height: 100vh;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.page.is-embedded {
|
|
min-height: 0;
|
|
background: transparent;
|
|
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 20rpx;
|
|
padding: 28rpx 24rpx;
|
|
margin-bottom: 24rpx;
|
|
border: 1rpx solid #e7efea;
|
|
box-shadow: 0 8rpx 24rpx rgba(6, 78, 59, 0.05);
|
|
}
|
|
|
|
.section {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #065f46;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.input {
|
|
height: 96rpx;
|
|
border: 1rpx solid #d7e3dc;
|
|
border-radius: 14rpx;
|
|
padding: 0 28rpx;
|
|
font-size: 30rpx;
|
|
line-height: 96rpx;
|
|
margin-bottom: 24rpx;
|
|
background: #f8fbf9;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.btn {
|
|
background: #047857;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 22rpx;
|
|
border-radius: 12rpx;
|
|
font-size: 30rpx;
|
|
margin-top: 8rpx;
|
|
}
|
|
|
|
.btn.ghost {
|
|
background: #fff;
|
|
color: #047857;
|
|
border: 1rpx solid #047857;
|
|
}
|
|
|
|
.btn.is-disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn--sm {
|
|
padding: 14rpx;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.row--inline {
|
|
align-items: center;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.flex {
|
|
flex: 1;
|
|
}
|
|
|
|
.input--inline {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.btn--inline {
|
|
width: 200rpx;
|
|
margin-top: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 24rpx;
|
|
color: #6b7c74;
|
|
margin-bottom: 16rpx;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.link {
|
|
margin-top: 16rpx;
|
|
color: #047857;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
/* ── 图片缩略图 ───────────────────────────────── */
|
|
.thumb-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.thumb {
|
|
position: relative;
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
}
|
|
|
|
.thumb-img {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 12rpx;
|
|
background: #f3f3f3;
|
|
}
|
|
|
|
.thumb-del {
|
|
position: absolute;
|
|
top: -12rpx;
|
|
right: -12rpx;
|
|
width: 44rpx;
|
|
height: 44rpx;
|
|
line-height: 44rpx;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
background: rgba(15, 23, 42, 0.72);
|
|
color: #fff;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
/* ── 审核行:一个商品两行 ─────────────────────── */
|
|
.line {
|
|
border: 1rpx solid #e7efea;
|
|
border-radius: 14rpx;
|
|
padding: 12rpx 12rpx 2rpx;
|
|
margin-bottom: 14rpx;
|
|
background: #f8fbf9;
|
|
}
|
|
|
|
.line-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.line-idx {
|
|
min-width: 34rpx;
|
|
height: 34rpx;
|
|
line-height: 34rpx;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.badge {
|
|
font-size: 22rpx;
|
|
padding: 2rpx 12rpx;
|
|
border-radius: 999rpx;
|
|
max-width: 380rpx;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.badge-ok {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
}
|
|
|
|
.badge-new {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.line-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.line-inbound {
|
|
min-width: 88rpx;
|
|
height: 48rpx;
|
|
line-height: 48rpx;
|
|
padding: 0 16rpx;
|
|
text-align: center;
|
|
border-radius: 10rpx;
|
|
background: #059669;
|
|
color: #fff;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.line-inbound.is-disabled {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.line-del {
|
|
color: #b91c1c;
|
|
font-size: 30rpx;
|
|
padding: 0 6rpx;
|
|
}
|
|
|
|
.line-row {
|
|
display: flex;
|
|
gap: 8rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.cell {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cell--name {
|
|
flex: 2.2;
|
|
}
|
|
|
|
.cell--spec {
|
|
flex: 1.6;
|
|
}
|
|
|
|
.cell--qty {
|
|
flex: 1;
|
|
}
|
|
|
|
.cell--unit {
|
|
flex: 1;
|
|
}
|
|
|
|
.cell--cost {
|
|
flex: 1.3;
|
|
}
|
|
|
|
.cell--cat {
|
|
flex: 1.35;
|
|
}
|
|
|
|
.cell--date {
|
|
flex: 1.9;
|
|
}
|
|
|
|
/* 保质期=数值框 + 单位选择器(2026-10-15:单位只年/月/日,识别不到由用户选) */
|
|
.cell--shelf-num {
|
|
flex: 0.95;
|
|
}
|
|
|
|
.cell--shelf-unit {
|
|
flex: 0.85;
|
|
}
|
|
|
|
.cell--shelf-unit .cell-pick {
|
|
padding: 0 4rpx;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cell--zone {
|
|
flex: 1.35;
|
|
}
|
|
|
|
.cell--origin {
|
|
flex: 1.25;
|
|
}
|
|
|
|
.input.cell {
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
font-size: 24rpx;
|
|
padding: 0 10rpx;
|
|
margin-bottom: 0;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.cell-pick {
|
|
width: 100%;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
font-size: 24rpx;
|
|
color: #111;
|
|
padding: 0 10rpx;
|
|
border: 1rpx solid #d7e3dc;
|
|
border-radius: 10rpx;
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.cell-pick--empty {
|
|
color: #99a59e;
|
|
}
|
|
|
|
.cand {
|
|
margin: 0 0 8rpx;
|
|
}
|
|
|
|
.cand-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.cand-chip {
|
|
font-size: 22rpx;
|
|
padding: 6rpx 16rpx;
|
|
border-radius: 999rpx;
|
|
background: #fff;
|
|
border: 1rpx solid #cce3d6;
|
|
color: #047857;
|
|
}
|
|
|
|
/* ── 分类 / 存放区域 选择弹层 ─────────────────── */
|
|
.sheet-mask {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
z-index: 10000;
|
|
}
|
|
|
|
.sheet {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: #fff;
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
padding: 24rpx 24rpx calc(24rpx + env(safe-area-inset-bottom));
|
|
max-height: 72vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sheet-title {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: #065f46;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.sheet-input {
|
|
height: 76rpx;
|
|
line-height: 76rpx;
|
|
border: 1rpx solid #d7e3dc;
|
|
border-radius: 12rpx;
|
|
padding: 0 24rpx;
|
|
font-size: 28rpx;
|
|
background: #f8fbf9;
|
|
margin-bottom: 12rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sheet-list {
|
|
max-height: 48vh;
|
|
}
|
|
|
|
.sheet-item {
|
|
padding: 22rpx 8rpx;
|
|
font-size: 28rpx;
|
|
color: #111;
|
|
border-bottom: 1rpx solid #eef3f0;
|
|
}
|
|
|
|
.sheet-item-create {
|
|
color: #047857;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sheet-empty {
|
|
padding: 24rpx 8rpx;
|
|
font-size: 26rpx;
|
|
color: #6b7c74;
|
|
}
|
|
|
|
/* ── 新建商品表单(B,2026-11-02)────────────────── */
|
|
.np-form {
|
|
padding: 8rpx 0 0;
|
|
}
|
|
|
|
.np-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
padding: 14rpx 0;
|
|
border-bottom: 1rpx solid #eef2f0;
|
|
}
|
|
|
|
.np-row picker {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.np-label {
|
|
flex-shrink: 0;
|
|
width: 140rpx;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #52525b;
|
|
}
|
|
|
|
.np-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 62rpx;
|
|
padding: 0 12rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 10rpx;
|
|
background: #f4f4f5;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.np-pick {
|
|
height: 62rpx;
|
|
line-height: 62rpx;
|
|
padding: 0 12rpx;
|
|
border-radius: 10rpx;
|
|
background: #f4f4f5;
|
|
font-size: 28rpx;
|
|
color: #0a0a0b;
|
|
}
|
|
|
|
.np-foot {
|
|
display: flex;
|
|
gap: 16rpx;
|
|
margin-top: 24rpx;
|
|
}
|
|
|
|
.np-btn {
|
|
flex: 1;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
border-radius: 16rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.np-btn.ghost {
|
|
color: #047857;
|
|
background: #fff;
|
|
border: 2rpx solid #059669;
|
|
}
|
|
|
|
.np-btn.primary {
|
|
color: #fff;
|
|
background: linear-gradient(135deg, #047857 0%, #059669 100%);
|
|
}
|
|
|
|
.np-btn.is-disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|