-
+
{
if (!valid) {
return;
@@ -1797,6 +1809,31 @@ export default {
}
.driver-form {
+ :deep(.el-form-item__label) {
+ flex: 0 0 calc(4em + 24px) !important;
+ width: calc(4em + 24px) !important;
+ height: auto;
+ white-space: normal !important;
+ word-break: break-all;
+ overflow-wrap: anywhere;
+ line-height: 18px;
+ }
+
+ :deep(.el-form-item) {
+ align-items: center;
+ }
+
+ :deep(.el-form-item.is-required .el-form-item__label) {
+ align-items: flex-start;
+ }
+
+ :deep(.el-form-item.is-required .el-form-item__label::before) {
+ display: inline-block;
+ height: 18px;
+ line-height: 18px;
+ margin-right: 4px;
+ }
+
:deep(.el-date-editor.el-input),
:deep(.el-date-editor.el-input__wrapper),
:deep(.el-cascader),
@@ -1809,6 +1846,12 @@ export default {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 8px;
+ width: 100%;
+ }
+
+ .date-range :deep(.el-date-editor) {
+ width: 100%;
+ min-width: 0;
}
}
diff --git a/src/views/transportCapacity/vehicle.vue b/src/views/transportCapacity/vehicle.vue
index 6e1f59a..912afa8 100644
--- a/src/views/transportCapacity/vehicle.vue
+++ b/src/views/transportCapacity/vehicle.vue
@@ -127,7 +127,11 @@
top="4vh"
class="certification-audit-dialog"
>
-
+
@@ -353,7 +357,7 @@
v-if="showRejectReason"
class="certification-audit__reason"
label-position="right"
- label-width="auto"
+ label-width="calc(7em + 24px)"
>
@@ -1632,6 +1638,50 @@ export default {
}
// 车辆认证审核弹窗:与编辑弹窗一致,灰底 + section-card 白卡分组
+.certification-audit,
+.certification-audit__reason,
+.vehicle-form {
+ :deep(.el-form-item__label) {
+ height: auto;
+ padding-right: 12px;
+ white-space: normal !important;
+ word-break: break-all;
+ overflow-wrap: anywhere;
+ line-height: 18px;
+ text-align: right;
+ }
+
+ :deep(.el-form-item) {
+ align-items: center;
+ }
+
+ :deep(.el-form-item.is-required .el-form-item__label) {
+ align-items: flex-start;
+ }
+
+ :deep(.el-form-item.is-required .el-form-item__label::before) {
+ display: inline-block;
+ height: 18px;
+ line-height: 18px;
+ margin-right: 4px;
+ }
+}
+
+.certification-audit,
+.certification-audit__reason {
+ :deep(.el-form-item__label) {
+ flex: 0 0 calc(7em + 24px) !important;
+ width: calc(7em + 24px) !important;
+ }
+}
+
+.vehicle-form {
+ :deep(.el-form-item__label) {
+ flex: 0 0 calc(4em + 24px) !important;
+ width: calc(4em + 24px) !important;
+ }
+}
+
.certification-audit {
&__value {
display: block;
@@ -1679,6 +1729,7 @@ export default {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
align-items: center;
+ width: 100%;
}
.dimension-group__item {
@@ -1688,6 +1739,12 @@ export default {
min-width: 0;
}
+ .dimension-group__item :deep(.el-input) {
+ flex: 1 1 auto;
+ min-width: 0;
+ width: 100%;
+ }
+
.dimension-group__label {
flex-shrink: 0;
color: #303133;
@@ -1697,11 +1754,13 @@ export default {
display: flex;
align-items: center;
gap: 8px;
+ width: 100%;
}
.date-with-flag :deep(.el-date-editor) {
- flex: 1;
+ flex: 1 1 auto;
min-width: 0;
+ width: 100%;
}
.date-with-flag :deep(.el-checkbox) {
@@ -1719,9 +1778,6 @@ export default {
gap: 8px;
}
- :deep(.el-form-item__label) {
- white-space: nowrap;
- }
}
// 大尺寸证件照:按身份证 1.586:1 比例缩放(约真实尺寸 75%,240×151),左对齐显示