预制组件列表

This commit is contained in:
2026-06-12 15:14:46 +08:00
parent c749dd6b28
commit 36c7851d39
9 changed files with 1279 additions and 336 deletions
+234 -108
View File
@@ -791,7 +791,7 @@
.page-detail {
min-height: 100vh;
background: #f5f6f8;
padding-bottom: 180rpx;
padding-bottom: 160rpx;
}
// 信息分组
@@ -800,29 +800,40 @@
margin: 24rpx;
border-radius: 16rpx;
overflow: hidden;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
}
// 信息项
.info-item {
display: flex;
align-items: center;
padding: 28rpx 32rpx;
padding: 24rpx 32rpx;
border-bottom: 1rpx solid #f0f0f0;
&:last-child {
border-bottom: none;
}
// 备注字段特殊处理 - 顶部对齐
&.info-textarea {
align-items: flex-start;
}
.info-label {
width: 200rpx;
flex-shrink: 0;
width: 180rpx;
font-size: 28rpx;
color: #666;
flex-shrink: 0;
display: flex;
align-items: center;
line-height: 40rpx;
position: relative;
.required {
color: #ff4d4f;
margin-right: 4rpx;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: -16rpx;
font-size: 24rpx;
color: #fa3534;
}
}
@@ -830,48 +841,56 @@
flex: 1;
font-size: 28rpx;
color: #333;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-tag {
display: inline-block;
padding: 6rpx 16rpx;
padding: 8rpx 20rpx;
border-radius: 20rpx;
font-size: 24rpx;
background: rgba(153, 153, 153, 0.1);
color: #999;
font-weight: 500;
&.status-0 {
background: rgba(153, 153, 153, 0.1);
background: #f5f5f5;
color: #999;
}
&.status-1 {
background: rgba(255, 167, 38, 0.1);
color: #ffa726;
background: #fff7e6;
color: #fa8c16;
}
&.status-2 {
background: rgba(76, 175, 80, 0.1);
color: #4caf50;
background: #f6ffed;
color: #52c41a;
}
&.status-3 {
background: #e6f7ff;
color: #1890ff;
}
}
.u-input {
flex: 1;
background: transparent;
}
// 可点击行(扫码添加)
&.info-link {
.info-value {
color: #999;
.info-label {
flex: 1;
}
.scan-icon {
margin-left: auto;
width: 64rpx;
height: 64rpx;
display: flex;
align-items: center;
justify-content: center;
background: #f5f6f8;
border-radius: 50%;
transition: all 0.2s ease;
&:active {
background: #e8e9eb;
transform: scale(0.95);
}
}
&:active {
@@ -880,6 +899,16 @@
}
}
// 输入框包装
.info-input-wrap {
flex: 1;
min-width: 0;
:deep(.u-input) {
background: transparent;
}
}
// 预制组件列表
.package-group {
margin: 24rpx;
@@ -1080,96 +1109,34 @@
}
}
// 发货管理详情
.page-detail {
min-height: 100vh;
background: #f5f6f8;
padding-bottom: 160rpx;
}
.info-group {
// 底部按钮
.bottom-btns {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
padding: 20rpx 24rpx;
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
background: #ffffff;
margin: 24rpx;
border-radius: 16rpx;
overflow: hidden;
}
box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.06);
gap: 20rpx;
.info-item {
display: flex;
align-items: flex-start;
padding: 28rpx 24rpx;
border-bottom: 1rpx solid #f0f0f0;
&:last-child {
border-bottom: none;
}
}
.info-label {
flex-shrink: 0;
width: 180rpx;
font-size: 28rpx;
color: #666;
line-height: 40rpx;
.required {
color: #fa3534;
margin-right: 4rpx;
}
}
.info-value {
flex: 1;
font-size: 28rpx;
color: #333;
line-height: 40rpx;
}
// 扫码行
.scan-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 24rpx;
border-bottom: 1rpx solid #f0f0f0;
.scan-text {
font-size: 28rpx;
color: #666;
}
.scan-btn {
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
background: #f5f6f8;
border-radius: 50%;
}
}
// 包装列表区域
.package-section {
padding: 24rpx;
.section-title {
display: block;
:deep(.u-button) {
flex: 1;
height: 88rpx;
border-radius: 12rpx;
font-size: 30rpx;
font-weight: 600;
color: #333;
margin-bottom: 16rpx;
}
}
// 包装表格
// 表格样式(保留)
.package-table {
border: 1rpx solid #e5e5e5;
border-radius: 8rpx;
overflow: hidden;
}
// 表格行
.table-hd {
display: flex;
background: #f5f6f8;
@@ -1189,7 +1156,6 @@
}
}
// 表格单元格
.table-td {
flex: 1;
padding: 20rpx;
@@ -1205,7 +1171,167 @@
}
}
// 表格空状态
.table-empty {
padding: 40rpx 0;
}
// 包装详情弹窗样式
.bz-detail-modal {
width: 600rpx;
max-height: 70vh;
background: #ffffff;
border-radius: 24rpx 24rpx 0 0;
overflow: hidden;
display: flex;
flex-direction: column;
.modal-header {
padding: 32rpx 40rpx;
background: linear-gradient(135deg, #3577FF 0%, #2B5FE8 100%);
text-align: center;
flex-shrink: 0;
.modal-title {
font-size: 32rpx;
font-weight: 600;
color: #ffffff;
}
}
.modal-body {
padding: 24rpx;
flex: 1;
overflow-y: auto;
min-height: 0;
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16rpx 0;
border-bottom: 1rpx solid #f0f0f0;
&:last-child {
border-bottom: none;
}
.detail-label {
font-size: 26rpx;
color: #999;
}
.detail-value {
font-size: 28rpx;
color: #333;
font-weight: 500;
}
}
.prepipe-section {
margin-top: 24rpx;
padding-top: 24rpx;
border-top: 1rpx solid #f0f0f0;
.prepipe-title {
font-size: 26rpx;
color: #666;
margin-bottom: 16rpx;
}
.prepipe-list {
.prepipe-card {
background: #f5f6f8;
border-radius: 12rpx;
margin-bottom: 12rpx;
overflow: hidden;
&:last-child {
margin-bottom: 0;
}
.card-header {
padding: 16rpx 20rpx;
background: #e8e9eb;
.card-code {
font-size: 28rpx;
color: #333;
font-weight: 600;
}
}
.card-body {
padding: 16rpx 20rpx;
.card-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8rpx 0;
&:first-child {
padding-top: 0;
}
&:last-child {
padding-bottom: 0;
}
.card-label {
font-size: 24rpx;
color: #999;
}
.card-value {
font-size: 26rpx;
color: #333;
}
}
}
}
}
}
}
.modal-footer {
display: flex;
justify-content: space-between;
padding: 24rpx 40rpx 32rpx;
gap: 24rpx;
flex-shrink: 0;
border-top: 1rpx solid #f0f0f0;
.cancel-btn {
flex: 1;
height: 70rpx;
display: flex;
align-items: center;
justify-content: center;
background: #f5f6f8;
border-radius: 12rpx;
font-size: 28rpx;
color: #666;
&:active {
background: #e8e9eb;
}
}
.confirm-btn {
flex: 1;
height: 70rpx;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #3577FF 0%, #2B5FE8 100%);
border-radius: 12rpx;
font-size: 28rpx;
color: #ffffff;
font-weight: 500;
&:active {
opacity: 0.9;
}
}
}
}