Commit 3259561a by 李伟康

feat(usedCar): 优化交付管理页面样式与逻辑

- 调整步骤组件中序号显示样式,使用 flex 布局并优化选中状态样式
- 在 Step1 中调整箭头图标方向,增强视觉指引
- 在 Step2 中新增 block 占位元素、优化文字行高及图标样式
- 在 Step3 中对备注信息增加空值默认显示 "-"
- 在详情信息组件中增加 detail.id 判断,避免无效数据渲染
- 优化搜索框样式与提示文案,明确输入内容范围
- 统一交付流程各步骤组件的展示逻辑与样式细节
1 parent 2cd794c1
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
position: absolute; position: absolute;
right: calc(100% + #{toRpx(8)}); right: calc(100% + #{toRpx(8)});
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%) rotate(180deg);
} }
} }
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
> >
<uni-icons <uni-icons
type="plusempty" type="plusempty"
:size="24" :size="22"
color="#347BFF" color="#347BFF"
class="icon" class="icon"
></uni-icons> ></uni-icons>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</view> </view>
</template> </template>
</view> </view>
<view class="img-tips">*单个文件不超过10M,最多可上传10张。</view> <view class="img-tips">单个文件不超过10M,最多可上传10张。</view>
</view> </view>
<view class="remark-box box"> <view class="remark-box box">
<view class="title">交付备注</view> <view class="title">交付备注</view>
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
@click="comfirm" @click="comfirm"
>确认提车</view> >确认提车</view>
</view> </view>
<view class="block"></view>
</view> </view>
</template> </template>
...@@ -202,6 +203,7 @@ export default { ...@@ -202,6 +203,7 @@ export default {
margin: toRpx(4) 0 toRpx(28); margin: toRpx(4) 0 toRpx(28);
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
line-height: toRpx(36);
} }
.img-list { .img-list {
flex-wrap: wrap; flex-wrap: wrap;
...@@ -213,6 +215,7 @@ export default { ...@@ -213,6 +215,7 @@ export default {
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
.icon { .icon {
font-weight: 700;
margin-bottom: toRpx(22); margin-bottom: toRpx(22);
} }
} }
...@@ -247,6 +250,9 @@ export default { ...@@ -247,6 +250,9 @@ export default {
} }
.remark-box { .remark-box {
padding-bottom: toRpx(28); padding-bottom: toRpx(28);
.title{
padding-bottom: toRpx(24);
}
.remark { .remark {
height: toRpx(200); height: toRpx(200);
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -306,5 +312,9 @@ export default { ...@@ -306,5 +312,9 @@ export default {
opacity: 0.5; opacity: 0.5;
} }
} }
.block{
width: 100%;
height: toRpx(24);
}
} }
</style> </style>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<view class="remark-box box"> <view class="remark-box box">
<view class="title">交付备注</view> <view class="title">交付备注</view>
<view class="remark"> <view class="remark">
<rich-text :nodes="detail.remark"></rich-text> <rich-text :nodes="detail.remark || '-'"></rich-text>
</view> </view>
</view> </view>
<view class="btn-box box flex"> <view class="btn-box box flex">
...@@ -140,6 +140,7 @@ export default { ...@@ -140,6 +140,7 @@ export default {
.btn-box { .btn-box {
box-sizing: border-box; box-sizing: border-box;
height: toRpx(144); height: toRpx(144);
margin-bottom: 0;
.info { .info {
margin-left: toRpx(24); margin-left: toRpx(24);
color: #333333; color: #333333;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<template v-if="index != 0"> <template v-if="index != 0">
<view class="line"></view> <view class="line"></view>
</template> </template>
<view class="serial-num"> <view class="serial-num flex">
<view class="num flex"> <view class="num flex">
<template v-if="index >= stepNum"> <template v-if="index >= stepNum">
{{index + 1}} {{index + 1}}
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
...@@ -68,19 +67,37 @@ export default { ...@@ -68,19 +67,37 @@ export default {
width: toRpx(46); width: toRpx(46);
height: toRpx(46); height: toRpx(46);
border-radius: 50%; border-radius: 50%;
border: toRpx(2) solid #979797;
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(2);
margin-right: toRpx(12); margin-right: toRpx(12);
position: relative;
.num { .num {
width: 100%; position: absolute;
height: 100%; top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: toRpx(38);
height: toRpx(38);
background: #b1b1b1; background: #b1b1b1;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
justify-content: center; justify-content: center;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 700; font-weight: 700;
overflow: hidden;
z-index: 3;
}
&::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
transform: translate(-50%, -50%);
border-radius: 100%;
z-index: 2;
box-sizing: border-box;
border: toRpx(2) solid #b1b1b1;
} }
} }
.line { .line {
...@@ -93,13 +110,15 @@ export default { ...@@ -93,13 +110,15 @@ export default {
.active-item { .active-item {
color: #4673ff; color: #4673ff;
.serial-num { .serial-num {
border-color: #4673ff; &::after {
box-shadow: toRpx(2) toRpx(2) toRpx(2) #d7e3ff; border-color: #4673ff;
}
box-shadow: toRpx(3) toRpx(3) toRpx(4) #d7e3ff;
.num { .num {
background: #4673ff; background: #4673ff;
} }
} }
.line{ .line {
border-color: #4673ff; border-color: #4673ff;
} }
} }
......
<template> <template>
<view class="delivery-steps-box"> <view class="delivery-steps-box">
<steps <template v-if="detail.id">
:step="step" <steps
:list="stepList" :step="step"
/> :list="stepList"
/>
</template>
<view class="step-component"> <view class="step-component">
<template v-for="(i,index) in stepList"> <template v-for="(i,index) in stepList">
<view <view
......
<template> <template>
<view class="detail-info-box"> <view class="detail-info-box">
<view class="pay-info box"> <template v-if="detail.id">
<view class="title">财务信息</view> <view class="pay-info box">
<view class="item"> <view class="title">财务信息</view>
<view class="label">付款状态</view> <view class="item">
<view :class="['value await',{'success':detail.paymentStatus == 1}]">{{PAYMENT_STATUS[detail.paymentStatus]}}</view> <view class="label">付款状态</view>
</view> <view :class="['value await',{'success':detail.paymentStatus == 1}]">{{PAYMENT_STATUS[detail.paymentStatus]}}</view>
<template v-if="detail.paymentStatus != 1">
<view class="tips">
<view class="icon">
<uni-icons
type="info"
:size="16"
color="#F59619"
></uni-icons>
</view>
中拍人现场看车后支付,请门店人员确认客户完成车款支付。
</view>
</template>
</view>
<view class="car-info box">
<view class="title">车辆与客户信息</view>
<template v-for="(i,index) in carInfo">
<view
class="item-box"
:key="index"
>
<view class="item">
<view class="label">{{i.label}}</view>
<view class="value">{{detail[i.key] || '-'}}</view>
</view>
<template v-if="i.hasLine">
<view class="line"></view>
</template>
</view> </view>
</template> <template v-if="detail.paymentStatus != 1">
<template v-if="detail.paymentStatus != 1"> <view class="tips">
<view class="tips"> <view class="icon">
<view class="icon"> <uni-icons
<uni-icons type="info"
type="info" :size="16"
:size="16" color="#F59619"
color="#F59619" ></uni-icons>
></uni-icons> </view>
中拍人现场看车后支付,请门店人员确认客户完成车款支付。
</view> </view>
交付专员需确认交付车辆信息,与买家信息无误后才可交付。 </template>
</view> </view>
</template> <view class="car-info box">
</view> <view class="title">车辆与客户信息</view>
<view class="log-info box"> <template v-for="(i,index) in carInfo">
<view class="title">操作日志</view>
<view class="log-box">
<template v-for="(i,index) in logList">
<view <view
class="log-item" class="item-box"
:key="index" :key="index"
> >
<view class="log-title">{{OP_TYPE[i.opType]}}</view>
<view class="item"> <view class="item">
<view class="label">操作人</view> <view class="label">{{i.label}}</view>
<view class="value">{{i.opUserName}}</view> <view class="value">{{detail[i.key] || '-'}}</view>
</view> </view>
<view class="item"> <template v-if="i.hasLine">
<view class="label">时间</view> <view class="line"></view>
<view class="value">{{i.createdDate}}</view> </template>
</view> </view>
<view class="item-mark"> </template>
<view :class="['circle',{first:index == 0}]"></view> <template v-if="detail.paymentStatus != 1">
<template v-if="index != logList.length - 1"> <view class="tips">
<view class="mark-line"></view> <view class="icon">
</template> <uni-icons
type="info"
:size="16"
color="#F59619"
></uni-icons>
</view> </view>
交付专员需确认交付车辆信息,与买家信息无误后才可交付。
</view> </view>
</template> </template>
</view> </view>
</view> <view class="log-info box">
<view class="title">操作日志</view>
<view class="log-box">
<template v-for="(i,index) in logList">
<view
class="log-item"
:key="index"
>
<view class="log-title">{{OP_TYPE[i.opType]}}</view>
<view class="item">
<view class="label">操作人</view>
<view class="value">{{i.opUserName}}</view>
</view>
<view class="item">
<view class="label">时间</view>
<view class="value">{{i.createdDate}}</view>
</view>
<view class="item-mark">
<view :class="['circle',{first:index == 0}]"></view>
<template v-if="index != logList.length - 1">
<view class="mark-line"></view>
</template>
</view>
</view>
</template>
</view>
</view>
</template>
</view> </view>
</template> </template>
...@@ -197,6 +199,7 @@ export default { ...@@ -197,6 +199,7 @@ export default {
position: absolute; position: absolute;
top: toRpx(16); top: toRpx(16);
left: toRpx(16); left: toRpx(16);
transform: rotate(180deg);
} }
} }
.item { .item {
......
...@@ -37,14 +37,14 @@ ...@@ -37,14 +37,14 @@
</template> </template>
</view> </view>
</view> </view>
<view :class="['form-item', {active:focusIndex == 1}]"> <view :class="['form-item form-item-input', {active:focusIndex == 1}]">
<view class="form-item-box"> <view class="form-item-box">
<input <input
:maxlength="50" :maxlength="50"
v-model="searchText" v-model="searchText"
class="input" class="input"
@input="inputCustomer" @input="inputCustomer"
placeholder="请输入搜索内容" placeholder="请输入车型/客户姓名/客户联系方式"
@focus="focusIndex = 1" @focus="focusIndex = 1"
@blur="resetFocusIndex" @blur="resetFocusIndex"
placeholder-class="placeholder" placeholder-class="placeholder"
...@@ -324,6 +324,9 @@ export default { ...@@ -324,6 +324,9 @@ export default {
} }
} }
} }
.form-item-input{
width: toRpx(452);
}
.active { .active {
position: relative; position: relative;
&::after { &::after {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!