Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e538b7f509 | |||
| 8870925c60 |
@@ -108,3 +108,34 @@
|
||||
- 间距:沿用全局 `.section-card` 的 `margin-bottom: 12px`。
|
||||
- 验证:已通过 SFC 解析与模板编译检查。
|
||||
- 原因:用户要求 `/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,仍保留灰底)。
|
||||
|
||||
## 合同管理合同名称列左对齐修复
|
||||
|
||||
- 调整文件:`src/views/business/components/business-crud-page.vue`、`src/option/business/contract-manage.js`
|
||||
- 修改内容:
|
||||
1. 在 `business-crud-page.vue` 的 `#contractName` 插槽内,用 `<div class="business-crud-page__contract-name">` 包裹 `el-link` / `span` 内容。
|
||||
2. 在 `business-crud-page.vue` 的 scoped SCSS 中新增 `.business-crud-page__contract-name { text-align: left; }`。
|
||||
3. 保留 `contract-manage.js` 中 `contractName` 列的 `align: 'left'` / `headerAlign: 'left'` 配置(虽然 Avue slot 列的 align 未生效,作为兜底仍保留)。
|
||||
- 原因:用户反馈 `/business/contract-manage` 的合同名称列文字仍居中。Avue 自定义 slot 列的 `align` 属性似乎没有正确作用到单元格,改由插槽内容自身强制 `text-align: left` 更可靠。
|
||||
- 影响:所有使用 `business-crud-page` 且渲染 `contractName` 插槽的页面,其合同名称单元格内容都会左对齐。
|
||||
|
||||
@@ -251,12 +251,14 @@ export const option = createCrudOption([
|
||||
{
|
||||
label: '合同名称',
|
||||
prop: 'contractName',
|
||||
align: 'left',
|
||||
headerAlign: 'left',
|
||||
search: true,
|
||||
searchOrder: 7,
|
||||
searchPlaceholder: '请输入',
|
||||
order: 180,
|
||||
slot: true,
|
||||
minWidth: 180,
|
||||
minWidth: 240,
|
||||
rules: textRule('合同名称', 100, true),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -126,14 +126,16 @@
|
||||
</template>
|
||||
|
||||
<template #contractName="{ row }">
|
||||
<el-link
|
||||
v-if="config.contractNameDetail && row.contractName"
|
||||
type="primary"
|
||||
@click.stop="openDetail(row)"
|
||||
>
|
||||
{{ row.contractName }}
|
||||
</el-link>
|
||||
<span v-else>{{ row.contractName || '-' }}</span>
|
||||
<div class="business-crud-page__contract-name">
|
||||
<el-link
|
||||
v-if="config.contractNameDetail && row.contractName"
|
||||
type="primary"
|
||||
@click.stop="openDetail(row)"
|
||||
>
|
||||
{{ row.contractName }}
|
||||
</el-link>
|
||||
<span v-else>{{ row.contractName || '-' }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #loadingNo="{ row }">
|
||||
@@ -2669,26 +2671,33 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="business-crud-page__waybill-route">
|
||||
<div class="business-crud-page__waybill-route-head">
|
||||
<b>起</b
|
||||
><strong>{{
|
||||
detailRow.departureName || detailRow.departureAddress || '-'
|
||||
}}</strong
|
||||
><b class="end">终</b
|
||||
><strong>{{ detailRow.arrivalName || detailRow.arrivalAddress || '-' }}</strong>
|
||||
<div class="business-crud-page__waybill-route-item">
|
||||
<span class="business-crud-page__waybill-route-dot"></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.departureName || detailRow.departureAddress || '-'
|
||||
}}</strong>
|
||||
<el-tooltip :content="detailRow.departureAddress || '-'" placement="top">
|
||||
<span class="business-crud-page__waybill-route-addr">{{
|
||||
formatTransportPlanProvinceCityDistrict(detailRow.departureAddress)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div class="business-crud-page__waybill-route-text">
|
||||
<el-tooltip :content="detailRow.departureAddress || '-'" placement="top">
|
||||
<span>{{
|
||||
formatTransportPlanProvinceCityDistrict(detailRow.departureAddress)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
<span> → </span>
|
||||
<el-tooltip :content="detailRow.arrivalAddress || '-'" placement="top">
|
||||
<span>{{
|
||||
formatTransportPlanProvinceCityDistrict(detailRow.arrivalAddress)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
<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">
|
||||
<span class="business-crud-page__waybill-route-addr">{{
|
||||
formatTransportPlanProvinceCityDistrict(detailRow.arrivalAddress)
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="business-crud-page__waybill-attachments">
|
||||
@@ -13642,6 +13651,10 @@ export default {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__contract-name {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&__contract-expiry-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -15397,62 +15410,86 @@ export default {
|
||||
grid-row: 1 / span 3;
|
||||
grid-column: 5;
|
||||
min-width: 0;
|
||||
padding: 8px 0;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
&__waybill-route-head {
|
||||
&__waybill-route-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
align-items: stretch;
|
||||
gap: 12px;
|
||||
|
||||
b {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
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 {
|
||||
flex: 1;
|
||||
order: 2;
|
||||
height: 4px;
|
||||
content: '';
|
||||
background: #e4e7ed;
|
||||
}
|
||||
|
||||
b.end {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
strong:last-child {
|
||||
order: 4;
|
||||
& + & {
|
||||
margin-top: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&__waybill-route-text {
|
||||
margin-top: 12px;
|
||||
&__waybill-route-dot {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
width: 12px;
|
||||
margin-top: 2px;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
background: #409eff;
|
||||
box-shadow: 0 0 0 3px #fff, 0 0 0 4px #c6e0ff;
|
||||
}
|
||||
|
||||
&.is-end::before {
|
||||
background: #e6a23c;
|
||||
box-shadow: 0 0 0 3px #fff, 0 0 0 4px #f5d9b0;
|
||||
}
|
||||
}
|
||||
|
||||
&__waybill-route-item:not(:last-child) &__waybill-route-dot::after {
|
||||
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;
|
||||
color: #606266;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -1812,6 +1812,7 @@ export default {
|
||||
padding: 12px 12px 4px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
.common-address-dialog__search,
|
||||
.common-cargo-dialog__search {
|
||||
background: #fff;
|
||||
}
|
||||
@@ -1845,6 +1846,7 @@ export default {
|
||||
:deep(.el-step__icon) {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex-shrink: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
@@ -1852,6 +1854,9 @@ export default {
|
||||
display: inline-flex;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 6px;
|
||||
@@ -1870,15 +1875,15 @@ export default {
|
||||
}
|
||||
.route-node-form {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(360px, 1.8fr) minmax(200px, 1fr) minmax(260px, 1.2fr) minmax(
|
||||
260px,
|
||||
1.2fr
|
||||
);
|
||||
grid-template-columns: repeat(2, minmax(420px, 1fr)) repeat(2, minmax(260px, 1fr));
|
||||
gap: 0 16px;
|
||||
align-items: start;
|
||||
:deep(.el-form-item) {
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
:deep(.el-form-item.route-address-form-item) {
|
||||
grid-column: span 2;
|
||||
}
|
||||
:deep(.el-form-item__content) {
|
||||
min-width: 0;
|
||||
}
|
||||
@@ -1894,7 +1899,7 @@ export default {
|
||||
gap: 8px;
|
||||
}
|
||||
.route-address-name {
|
||||
flex: 0 0 140px;
|
||||
flex: 0 0 220px;
|
||||
}
|
||||
.route-address-detail,
|
||||
.route-contact-actions :deep(.el-input) {
|
||||
@@ -1961,7 +1966,10 @@ export default {
|
||||
}
|
||||
@media screen and (max-width: 1440px) {
|
||||
.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 {
|
||||
align-items: flex-start;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
:api="api"
|
||||
:config="config"
|
||||
:crud-option="option"
|
||||
:menu-width="252"
|
||||
:menu-width="280"
|
||||
contract-form-page
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -1129,7 +1129,6 @@ export default {
|
||||
color: #303133;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:deep(.score-description-input .el-input__inner) {
|
||||
|
||||
Reference in New Issue
Block a user