// 采购管理模块公共样式
|
// 用于统一采购相关页面的样式风格
|
|
// 页面容器样式
|
.sales-account {
|
min-height: 100vh;
|
background: #f8f9fa;
|
position: relative;
|
}
|
|
// 搜索和筛选区域样式
|
.search-section {
|
padding: 10px 20px;
|
background: #ffffff;
|
}
|
|
.search-bar {
|
display: flex;
|
align-items: center;
|
gap: 12px;
|
}
|
|
.search-input {
|
flex: 1;
|
background: #f5f5f5;
|
border-radius: 24px;
|
padding: 0 16px;
|
display: flex;
|
align-items: center;
|
gap: 8px;
|
}
|
|
.search-text {
|
flex: 1;
|
font-size: 14px;
|
color: #333;
|
background: transparent;
|
border: none;
|
outline: none;
|
|
&::placeholder {
|
color: #999;
|
}
|
}
|
|
.filter-button,
|
.search-button {
|
width: 40px;
|
height: 40px;
|
border-radius: 8px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
// 开关行样式
|
.switch-row {
|
padding: 8px;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
margin-top: 8px;
|
}
|
|
.switch-label {
|
font-size: 14px;
|
color: #333;
|
}
|
|
// 列表容器样式
|
.ledger-list,
|
.history-list,
|
.customer-list-container {
|
padding: 20px;
|
}
|
|
.customer-list {
|
display: flex;
|
flex-direction: column;
|
gap: 16px;
|
}
|
|
// 列表项样式
|
.ledger-item,
|
.history-item,
|
.customer-item {
|
background: #ffffff;
|
border-radius: 12px;
|
margin-bottom: 16px;
|
overflow: hidden;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
padding: 0 16px;
|
|
&:active {
|
transform: scale(0.98);
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
}
|
}
|
|
.customer-item {
|
transition: all 0.3s ease;
|
margin-bottom: 0;
|
}
|
|
// 项目头部样式
|
.item-header {
|
padding: 16px 0;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
|
.item-left {
|
display: flex;
|
align-items: center;
|
gap: 8px;
|
}
|
|
.item-right {
|
display: flex;
|
align-items: center;
|
gap: 8px;
|
}
|
|
// 图标样式
|
.document-icon,
|
.customer-icon {
|
width: 24px;
|
height: 24px;
|
background: #2979ff;
|
border-radius: 4px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
// 文本样式
|
.item-id,
|
.customer-name {
|
font-size: 14px;
|
color: #333;
|
font-weight: 500;
|
}
|
|
.item-index {
|
font-size: 12px;
|
color: #999;
|
background: #f5f5f5;
|
padding: 2px 8px;
|
border-radius: 12px;
|
}
|
|
// 标签样式
|
.item-tag {
|
border-radius: 4px;
|
padding: 2px 4px;
|
|
&.tag-electric {
|
background: #4caf50;
|
}
|
|
&.tag-acceptance {
|
background: #ff9800;
|
}
|
|
&.tag-unknown {
|
background: #9e9e9e;
|
}
|
}
|
|
.tag-text {
|
font-size: 11px;
|
color: #ffffff;
|
font-weight: 500;
|
}
|
|
// 详情区域样式
|
.item-details {
|
padding: 16px 0;
|
}
|
|
.detail-row {
|
display: flex;
|
align-items: flex-end;
|
justify-content: space-between;
|
margin-bottom: 8px;
|
|
&:last-child {
|
margin-bottom: 0;
|
}
|
}
|
|
.detail-info {
|
margin-top: 10px;
|
display: flex;
|
align-items: flex-start;
|
justify-content: space-between;
|
}
|
|
.detail-label {
|
font-size: 12px;
|
color: #777777;
|
min-width: 60px;
|
}
|
|
.detail-value {
|
font-size: 12px;
|
color: #000000;
|
text-align: right;
|
flex: 1;
|
margin-left: 16px;
|
|
&.highlight {
|
color: #2979ff;
|
font-weight: 500;
|
}
|
|
&.danger {
|
color: #ee0a24;
|
font-weight: 500;
|
}
|
|
&.redlight {
|
color: red;
|
font-weight: 500;
|
}
|
}
|
|
// 子列表样式
|
.children-list {
|
.children-title {
|
font-size: 14px;
|
font-weight: 500;
|
color: #333;
|
padding: 12px 0 8px 0;
|
border-top: 1px solid #f0f0f0;
|
}
|
}
|
|
.child-item {
|
.child-details {
|
padding: 12px 0;
|
}
|
|
.child-actions {
|
display: flex;
|
gap: 8px;
|
padding: 8px 0 16px 0;
|
justify-content: flex-end;
|
}
|
}
|
|
// 操作按钮样式
|
.action-buttons {
|
display: flex;
|
gap: 12px;
|
padding: 0 0 16px 0;
|
justify-content: space-between;
|
|
&.action-buttons-top {
|
padding: 12px 0 0 0;
|
}
|
}
|
|
.action-btn {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
gap: 8px;
|
}
|
|
// 浮动按钮样式
|
.fab-button {
|
position: fixed;
|
bottom: calc(30px + env(safe-area-inset-bottom));
|
right: 30px;
|
width: 56px;
|
height: 56px;
|
background: #2979ff;
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
box-shadow: 0 4px 16px rgba(41, 121, 255, 0.3);
|
z-index: 1000;
|
}
|
|
// 无数据提示样式
|
.no-data {
|
padding: 40px 0;
|
text-align: center;
|
color: #999;
|
}
|
|
// 汇总信息样式
|
.summary-info {
|
background: #ffffff;
|
margin: 20px 20px 0 20px;
|
border-radius: 12px;
|
padding: 16px;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
}
|
|
.summary-item {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 8px;
|
|
&:last-child {
|
margin-bottom: 0;
|
}
|
}
|
|
.summary-label {
|
font-size: 14px;
|
color: #666;
|
}
|
|
.summary-value {
|
font-size: 14px;
|
color: #333;
|
font-weight: 500;
|
|
&.highlight {
|
color: #2979ff;
|
font-weight: 600;
|
}
|
}
|
|
// 弹窗样式
|
.filter-popup {
|
padding: 12px 12px 20px;
|
}
|
|
.popup-header {
|
padding: 10px 16px;
|
border-bottom: 1px solid #f5f5f5;
|
}
|
|
.popup-title {
|
font-size: 16px;
|
font-weight: 500;
|
color: #333;
|
}
|
|
.uploaded-list {
|
padding: 8px 16px 0 16px;
|
}
|
|
.uploaded-item {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 8px 0;
|
border-bottom: 1px solid #f5f5f5;
|
}
|
|
.file-name {
|
font-size: 12px;
|
color: #333;
|
margin-right: 8px;
|
flex: 1;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.tip-text {
|
padding: 4px 16px 0 16px;
|
font-size: 12px;
|
color: #888;
|
}
|
|
.filter-actions {
|
display: flex;
|
gap: 12px;
|
padding: 12px 16px 16px;
|
justify-content: center;
|
}
|
|
.footer-btns {
|
position: fixed;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
background: #fff;
|
display: flex;
|
justify-content: space-around;
|
align-items: center;
|
padding: 0.75rem 0;
|
box-shadow: 0 -0.125rem 0.5rem rgba(0,0,0,0.05);
|
z-index: 1000;
|
}
|
|
.cancel-btn {
|
font-weight: 400;
|
font-size: 1rem;
|
color: #FFFFFF;
|
width: 6.375rem;
|
background: #C7C9CC;
|
box-shadow: 0 0.25rem 0.625rem 0 rgba(3,88,185,0.2);
|
border-radius: 2.5rem 2.5rem 2.5rem 2.5rem;
|
}
|
|
.save-btn {
|
font-weight: 400;
|
font-size: 1rem;
|
color: #FFFFFF;
|
width: 14rem;
|
background: linear-gradient( 140deg, #00BAFF 0%, #006CFB 100%);
|
box-shadow: 0 0.25rem 0.625rem 0 rgba(3,88,185,0.2);
|
border-radius: 2.5rem 2.5rem 2.5rem 2.5rem;
|
}
|
|
// uView组件样式重置
|
.u-divider {
|
margin: 0 !important;
|
}
|