2025-06-19 17:33:18 +08:00

384 lines
9.1 KiB
Plaintext

/* pages/vehicleMaintenance/maintainRecord/maintainRecord.wxss */
page {
width: 100vw;
height: 100vh;
position: relative;
.top {
width: 100%;
background: #ffffff;
position: absolute;
top: 0;
z-index: 10;
.search-container {
padding: 10px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
>.number-plate, >.project-select {
// width: calc((100% - 6px) / 2);
width: 100%;
height: 36px;
padding: 8px 10px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid #E6EAF2;
display: flex;
align-items: center;
}
>.number-plate {
.icon {
width: 20px;
height: 20px;
margin-right: 8px;
image {
width: 100%;
height: 100%;
}
}
input {
flex: 1;
font-size: 14px;
}
}
>.project-select {
width: calc((100% - 6px) / 2);
picker {
width: 100%;
position: relative;
.picker {
width: 100%;
height: 38px;
// padding-left: 14px;
box-sizing: border-box;
// border: 1px solid #E6EAF2;
border-radius: 4px;
font-size: 14px;
display: flex;
// justify-content: space-between;
align-items: center;
}
.picker::after {
content: '';
width: 0;
height: 0;
border-top: 6px solid #636B83;
border-right: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid transparent;
position: absolute;
top: 50%;
right: 14px;
transform: translateY(-2px);
}
}
}
}
.tab-container {
width: 100%;
height: 48px;
display: flex;
overflow: hidden;
.tabs {
width: calc(100% - 48px);
// overflow-x: auto;
}
.swicth {
width: 48px;
height: 48px;
box-shadow: -4px 2px 4px -2px rgba(0,0,0,.25);
// border-left: 1px solid rgba(0,0,0,.25);
position: absolute;
right: 0;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
image {
width: 20px;
height: 20px;
display: block;
}
}
}
.more-search {
padding: 8px 14px 12px;
border-radius: 0 0 8px 8px;
background: #fff;
.row {
margin-bottom: 8px;
.label {
margin: 6px;
color: #394458;
font-size: 14px;
}
.date-content {
display: flex;
align-items: center;
justify-content: space-between;
.line {
width: 10px;
height: 1px;
background: #949CB5;
}
.date {
width: calc((100% - 10px - 30px) / 2);
height: 36px;
padding: 8px 10px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid #E6EAF2;
display: flex;
align-items: center;
.icon {
width: 16px;
height: 16px;
margin-left: 8px;
image {
width: 100%;
height: 100%;
}
}
input {
flex: 1;
color: #2E3A4F;
font-size: 14px;
}
}
}
.select-content {
>.project-select {
width: 100%;
border: 1px solid #DBDBDB;
border-radius: 4px;
background: #ffffff;
picker {
width: 100%;
position: relative;
.picker {
width: 100%;
height: 36px;
padding-left: 8px;
box-sizing: border-box;
// border: 1px solid #E6EAF2;
border-radius: 4px;
font-size: 14px;
display: flex;
// justify-content: space-between;
align-items: center;
}
.picker::after {
content: '';
width: 0;
height: 0;
border-top: 6px solid #636B83;
border-right: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid transparent;
position: absolute;
top: 50%;
right: 14px;
transform: translateY(-2px);
}
}
}
}
.checkbox-content {
width: 100%;
max-height: 96px;
overflow-y: auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
.item {
width: 48%;
height: 36px;
line-height: 36px;
margin-bottom: 8px;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E6EAF2;
color: #2E3A4F;
font-size: 14px;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.check {
background: #E9F2FF;
border: 1px solid #24A2FE;
}
}
.btn-content {
display: flex;
justify-content: space-between;
align-items: center;
.btn {
width: 48%;
height: 40px;
line-height: 40px;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 8px;
border: 1px solid #D6D6D6;
color: #2E3A4F;
font-size: 15px;
font-weight: bold;
text-align: center;
}
.btn-confirm {
background: linear-gradient(90deg, #3B7CFC 0%, #548BFC 100%);
border: 0;
color: #fff;
}
}
}
}
}
>.list {
width: 100%;
height: calc(100vh - 104px);
padding: 8px 0;
box-sizing: border-box;
background: #EFF1F4;
position: absolute;
bottom: 0;
// overflow-y: auto;
.scroll-view_H {
height: 100%;
// padding: 0 8px;
box-sizing: border-box;
}
.item {
padding: 12px 10px;
margin: 0 8px 8px;
background: #fff;
border-radius: 8px;
.row:first-child {
margin-bottom: 8px;
}
.row {
color: #2E3A4F;
display: flex;
justify-content: space-between;
align-items: center;
.number-plate {
display: flex;
.status {
padding: 0 4px;
margin: 0 4px;
border-radius: 2px;
color: #FFFFFF;
font-size: 14px;
flex-shrink: 1;
}
.status1 {
background: linear-gradient(90deg, #0D92FF 0%, #38B1FE 100%);
}
.status2 {
background: linear-gradient(270deg, #4CDBAD 0%, #2FCBAB 100%);
}
.status3 {
background: linear-gradient(270deg, #A1A8BB 0%, #838EAA 100%);
}
.val {
font-size: 16px;
font-weight: bold;
flex-shrink: 0;
display: flex;
align-items: center;
}
}
.project-name, .code {
font-size: 14px;
}
.time {
font-size: 14px;
color: #858CA0;
}
.overdue{
font-size: 14px;
color: #EA4955;
margin-right: 5px;
}
}
}
.no-data {
width: 100%;
height: 100%;
background: #fff;
}
}
}
// 时间选择器
.date-btn-box {
// background: #fff;
// border-radius: 4px 4px 0 0;
border-bottom: 2rpx solid #F1F1F1;
font-size: 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
.btn {
padding: 20rpx 36rpx;
color: #888888;
}
.btn-confirm{
color: #3D7EEA;
}
}
.date-title {
padding: 20rpx 36rpx;
font-size: 36rpx;
color: #888888;
border-bottom: 2rpx solid #F1F1F1;
display: flex;
justify-content: space-evenly;
align-items: center;
.line {
width: 10px;
height: 1px;
margin: 0 14px;
background: #949CB5;
}
.date {
width: calc((100% - 10px - 28px) / 2);
height: 36px;
padding: 8px 10px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid #E6EAF2;
display: flex;
align-items: center;
.icon {
width: 16px;
height: 16px;
margin-left: 8px;
image {
width: 100%;
height: 100%;
display: block;
}
}
input {
flex: 1;
color: #2E3A4F;
font-size: 14px;
}
}
.select {
border: 1px solid #1677FF;
input {
color: #1677FF !important;
}
}
}
.picker-box {
width: 100%;
display: flex;
justify-content: space-between;
}