Commit 3259561a by 李伟康

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

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