style(business-crud-page): 优化运单详情起终点区域样式
- 将起终点区域改为垂直时间轴风格,左侧显示两个圆点,右侧显示详细地址及省市区信息 - 删除旧的起终点样式类,确认无其他引用,保证代码清晰 - 实现响应式设计,窄屏时垂直时间轴自动变为整行展示 style(master-order-editor): 调整多联总单编辑页收发货信息布局 - 修复竖向时间轴节点图标被压扁问题,增加最小宽高和防止缩小样式 - 优化收发货信息输入区网格布局,地址项独占前两列,宽度加大,支持长地址显示 - 响应式下地址项独占整行,保证小屏幕下不被截断 - 修改搜索栏白底样式,让选择常用地址弹窗搜索栏也使用白底,保持视觉一致性
This commit is contained in:
@@ -108,3 +108,24 @@
|
|||||||
- 间距:沿用全局 `.section-card` 的 `margin-bottom: 12px`。
|
- 间距:沿用全局 `.section-card` 的 `margin-bottom: 12px`。
|
||||||
- 验证:已通过 SFC 解析与模板编译检查。
|
- 验证:已通过 SFC 解析与模板编译检查。
|
||||||
- 原因:用户要求 `/settlement/settlement-adjustment` 页面与预结算单/正式结算单弹窗统一使用白底卡片分隔。
|
- 原因:用户要求 `/settlement/settlement-adjustment` 页面与预结算单/正式结算单弹窗统一使用白底卡片分隔。
|
||||||
|
|
||||||
|
## 运单详情起终点区域改垂直时间轴(方案B)
|
||||||
|
|
||||||
|
- 调整文件:`src/views/business/components/business-crud-page.vue`
|
||||||
|
- 修改内容:在 `isWaybillDetailLayout` 区块,将 `__waybill-route` 的横向“起/终方块+横杠”改为垂直时间轴:左列两个圆点(蓝 `#409eff` / 橙 `#e6a23c`,带白圈光晕),之间用绝对定位的虚线(`repeating-linear-gradient`)连接;右列为“发货地/收货地”标签 + 地名(`-webkit-line-clamp: 2` 允许长名换行)+ 省市区地址(`el-tooltip` 悬浮显示完整地址)。
|
||||||
|
- 删除旧类:`__waybill-route-head`、`__waybill-route-text` 及其样式(已确认全仓无其它引用)。
|
||||||
|
- 响应式:1200px 断点下的 `grid-row:auto; grid-column: 1/-1` 规则仍生效,垂直轴在窄屏自动转为整行。
|
||||||
|
- 原因:用户认为原右上角起终点方块像按钮、地址被挤压截断、层级不清晰,选择方案B(垂直时间轴)。
|
||||||
|
|
||||||
|
## 多联总单编辑页收发货信息布局整改
|
||||||
|
|
||||||
|
- 调整文件:`src/views/business/components/master-order-editor.vue`(仅样式,逻辑未动)
|
||||||
|
- 修改内容:
|
||||||
|
1. `.route-step-icon` 加 `min-width: 32px; min-height: 32px; flex-shrink: 0;`,并给外层 `:deep(.el-step__icon)` 加 `flex-shrink: 0;` —— 修复竖向时间轴「起/经/终」节点(尤其「经」字)被压扁变形。
|
||||||
|
2. `.route-node-form` grid 由 `minmax(360px,1.8fr) minmax(200px,1fr) minmax(260px,1.2fr) minmax(260px,1.2fr)` 改为 `repeat(2, minmax(420px,1fr)) repeat(2, minmax(260px,1fr))`;新增 `:deep(.el-form-item.route-address-form-item) { grid-column: span 2; }` —— 地址项独占前两列(更宽)。
|
||||||
|
3. `.route-address-name`(行政区划 cascader)由 `flex: 0 0 140px` 加宽到 `220px` —— 完整显示「大坡服务区(梧州段)」等较长名称。
|
||||||
|
4. 响应式 `@media (max-width:1440px)` 内 `.route-node-form` 改 `repeat(2, minmax(320px,1fr))` 并同步 `.route-address-form-item { grid-column: span 2 }` —— 小屏地址项独占整行。
|
||||||
|
- 原因:客户反馈该页收发货信息中行政区划/详细地址输入框过窄导致长地址被截断,且左侧时间轴节点变形。改完用户刷新 localhost:2889 查看效果。
|
||||||
|
|
||||||
|
## master-order 弹窗搜索栏白底补齐
|
||||||
|
- `src/views/business/components/master-order-editor.vue` line 1815-1818:把 `.common-cargo-dialog__search` 单条白底规则改写为 `.common-address-dialog__search, .common-cargo-dialog__search { background: #fff }`,让"选择常用地址"弹窗的搜索栏也跟随既有白卡样式(其他 `.route-dialog__search` 默认无该 class,仍保留灰底)。
|
||||||
|
|||||||
@@ -2669,28 +2669,35 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="business-crud-page__waybill-route">
|
<div class="business-crud-page__waybill-route">
|
||||||
<div class="business-crud-page__waybill-route-head">
|
<div class="business-crud-page__waybill-route-item">
|
||||||
<b>起</b
|
<span class="business-crud-page__waybill-route-dot"></span>
|
||||||
><strong>{{
|
<div class="business-crud-page__waybill-route-detail">
|
||||||
|
<span class="business-crud-page__waybill-route-label">发货地</span>
|
||||||
|
<strong class="business-crud-page__waybill-route-name">{{
|
||||||
detailRow.departureName || detailRow.departureAddress || '-'
|
detailRow.departureName || detailRow.departureAddress || '-'
|
||||||
}}</strong
|
}}</strong>
|
||||||
><b class="end">终</b
|
|
||||||
><strong>{{ detailRow.arrivalName || detailRow.arrivalAddress || '-' }}</strong>
|
|
||||||
</div>
|
|
||||||
<div class="business-crud-page__waybill-route-text">
|
|
||||||
<el-tooltip :content="detailRow.departureAddress || '-'" placement="top">
|
<el-tooltip :content="detailRow.departureAddress || '-'" placement="top">
|
||||||
<span>{{
|
<span class="business-crud-page__waybill-route-addr">{{
|
||||||
formatTransportPlanProvinceCityDistrict(detailRow.departureAddress)
|
formatTransportPlanProvinceCityDistrict(detailRow.departureAddress)
|
||||||
}}</span>
|
}}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<span> → </span>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="business-crud-page__waybill-route-item">
|
||||||
|
<span class="business-crud-page__waybill-route-dot is-end"></span>
|
||||||
|
<div class="business-crud-page__waybill-route-detail">
|
||||||
|
<span class="business-crud-page__waybill-route-label">收货地</span>
|
||||||
|
<strong class="business-crud-page__waybill-route-name">{{
|
||||||
|
detailRow.arrivalName || detailRow.arrivalAddress || '-'
|
||||||
|
}}</strong>
|
||||||
<el-tooltip :content="detailRow.arrivalAddress || '-'" placement="top">
|
<el-tooltip :content="detailRow.arrivalAddress || '-'" placement="top">
|
||||||
<span>{{
|
<span class="business-crud-page__waybill-route-addr">{{
|
||||||
formatTransportPlanProvinceCityDistrict(detailRow.arrivalAddress)
|
formatTransportPlanProvinceCityDistrict(detailRow.arrivalAddress)
|
||||||
}}</span>
|
}}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="business-crud-page__waybill-attachments">
|
<div class="business-crud-page__waybill-attachments">
|
||||||
<span class="business-crud-page__waybill-label">附件</span>
|
<span class="business-crud-page__waybill-label">附件</span>
|
||||||
<div>
|
<div>
|
||||||
@@ -15397,62 +15404,86 @@ export default {
|
|||||||
grid-row: 1 / span 3;
|
grid-row: 1 / span 3;
|
||||||
grid-column: 5;
|
grid-column: 5;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 8px 0;
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__waybill-route-head {
|
&__waybill-route-item {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: stretch;
|
||||||
justify-content: space-between;
|
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
|
||||||
b {
|
& + & {
|
||||||
display: inline-flex;
|
margin-top: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__waybill-route-dot {
|
||||||
|
position: relative;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 34px;
|
width: 12px;
|
||||||
height: 34px;
|
margin-top: 2px;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 4px;
|
|
||||||
background: #409eff;
|
|
||||||
|
|
||||||
&.end {
|
|
||||||
background: #e6a23c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
strong {
|
|
||||||
min-width: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
color: #303133;
|
|
||||||
font-size: 18px;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
flex: 1;
|
display: block;
|
||||||
order: 2;
|
width: 12px;
|
||||||
height: 4px;
|
height: 12px;
|
||||||
|
border-radius: 50%;
|
||||||
content: '';
|
content: '';
|
||||||
background: #e4e7ed;
|
background: #409eff;
|
||||||
|
box-shadow: 0 0 0 3px #fff, 0 0 0 4px #c6e0ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
b.end {
|
&.is-end::before {
|
||||||
order: 3;
|
background: #e6a23c;
|
||||||
}
|
box-shadow: 0 0 0 3px #fff, 0 0 0 4px #f5d9b0;
|
||||||
|
|
||||||
strong:last-child {
|
|
||||||
order: 4;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__waybill-route-text {
|
&__waybill-route-item:not(:last-child) &__waybill-route-dot::after {
|
||||||
margin-top: 12px;
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 14px;
|
||||||
|
left: 5px;
|
||||||
|
width: 2px;
|
||||||
|
height: calc(100% + 10px);
|
||||||
|
background: repeating-linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
#c0c4cc 0,
|
||||||
|
#c0c4cc 4px,
|
||||||
|
transparent 4px,
|
||||||
|
transparent 8px
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__waybill-route-detail {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__waybill-route-label {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__waybill-route-name {
|
||||||
|
color: #303133;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.4;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__waybill-route-addr {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: #606266;
|
color: #606266;
|
||||||
text-align: center;
|
font-size: 12px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1812,6 +1812,7 @@ export default {
|
|||||||
padding: 12px 12px 4px;
|
padding: 12px 12px 4px;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||||
}
|
}
|
||||||
|
.common-address-dialog__search,
|
||||||
.common-cargo-dialog__search {
|
.common-cargo-dialog__search {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
@@ -1845,6 +1846,7 @@ export default {
|
|||||||
:deep(.el-step__icon) {
|
:deep(.el-step__icon) {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
flex-shrink: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
@@ -1852,6 +1854,9 @@ export default {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
min-width: 32px;
|
||||||
|
min-height: 32px;
|
||||||
|
flex-shrink: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
@@ -1870,15 +1875,15 @@ export default {
|
|||||||
}
|
}
|
||||||
.route-node-form {
|
.route-node-form {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(360px, 1.8fr) minmax(200px, 1fr) minmax(260px, 1.2fr) minmax(
|
grid-template-columns: repeat(2, minmax(420px, 1fr)) repeat(2, minmax(260px, 1fr));
|
||||||
260px,
|
|
||||||
1.2fr
|
|
||||||
);
|
|
||||||
gap: 0 16px;
|
gap: 0 16px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
:deep(.el-form-item) {
|
:deep(.el-form-item) {
|
||||||
margin: 0 0 12px;
|
margin: 0 0 12px;
|
||||||
}
|
}
|
||||||
|
:deep(.el-form-item.route-address-form-item) {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
:deep(.el-form-item__content) {
|
:deep(.el-form-item__content) {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
@@ -1894,7 +1899,7 @@ export default {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
.route-address-name {
|
.route-address-name {
|
||||||
flex: 0 0 140px;
|
flex: 0 0 220px;
|
||||||
}
|
}
|
||||||
.route-address-detail,
|
.route-address-detail,
|
||||||
.route-contact-actions :deep(.el-input) {
|
.route-contact-actions :deep(.el-input) {
|
||||||
@@ -1961,7 +1966,10 @@ export default {
|
|||||||
}
|
}
|
||||||
@media screen and (max-width: 1440px) {
|
@media screen and (max-width: 1440px) {
|
||||||
.route-node-form {
|
.route-node-form {
|
||||||
grid-template-columns: repeat(2, minmax(280px, 1fr));
|
grid-template-columns: repeat(2, minmax(320px, 1fr));
|
||||||
|
:deep(.el-form-item.route-address-form-item) {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.route-step-title {
|
.route-step-title {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|||||||
Reference in New Issue
Block a user