This commit is contained in:
2025-06-19 17:33:18 +08:00
commit f8f31dc4d9
437 changed files with 103080 additions and 0 deletions
@@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "年检提醒详情"
}
@@ -0,0 +1,207 @@
/* pages/backlog/annualInspection/annualInspection.wxss */
.container {
height: 100vh;
padding-top: 2px;
box-sizing: border-box;
background: #EFF1F4;
overflow: hidden;
position: relative;
.bg {
width: 100%;
height: 250px;
position: absolute;
top: 0;
image {
width: 100%;
height: 100%;
display: block;
}
}
.top {
margin: 8px 8px 10px;
padding: 12px 10px;
margin-bottom: 8px;
background: #fff;
border-radius: 8px;
position: relative;
.row:first-child {
margin-bottom: 8px;
}
.row {
color: #2E3A4F;
display: flex;
justify-content: space-between;
align-items: center;
.number-plate {
display: flex;
.status {
padding: 0 6px;
margin-right: 4px;
border-radius: 2px;
color: #FFFFFF;
font-size: 14px;
}
.status1 {
background: linear-gradient(90deg, #0D92FF 0%, #38B1FE 100%);
}
.status2 {
background: linear-gradient(270deg, #4CDBAD 0%, #2FCBAB 100%);
}
.status3 {
background: linear-gradient(270deg, #A1A8BB 0%, #838EAA 100%);
}
.val {
font-size: 16px;
font-weight: bold;
}
}
.project-name, .code {
font-size: 14px;
}
.time {
font-size: 14px;
color: #858CA0;
}
.type-list {
display: flex;
.type {
height: 22px;
line-height: 22px;
padding: 0 8px;
margin-left: 5px;
background: #FFF1F0;
border-radius: 4px;
border: 1px solid #FFA39E;
color: #FF4D4F;
font-size: 12px;
}
.color-red {
color: #FF4D4F;
}
}
}
}
.detail-container {
max-height: calc(100vh - 72px);
box-sizing: border-box;
padding: 0px 8px 0px;
overflow: hidden;
position: relative;
.tabs {
display: flex;
.tab {
width: 50%;
height: 40px;
line-height: 40px;
// background: #fff;
border-radius: 8px 8px 0 0;
color: #4381FC;
font-size: 16px;
font-weight: 500;
text-align: center;
position: relative;
.bg {
width: 100%;
height: 100%;
position: absolute;
image {
width: 100%;
height: 100%;
display: block;
}
}
.value {
position: relative;
}
}
.active::after {
content: '';
width: 26px;
height: 4px;
background: linear-gradient(90deg, #3B7CFC 0%, #548BFC 100%);
border-radius: 2px;
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
}
}
.content-borderall {
border-radius: 8px;
}
.content {
max-height: calc(100vh - 72px - 40px - 100px);
padding: 12px 10px;
box-sizing: border-box;
border-radius: 0px 8px 8px 8px;
background: #fff;
overflow-y: auto;
.line {
width: 100%;
height: 1px;
margin-bottom: 8px;
background: #EFEFEF;
}
.row {
margin-bottom: 8px;
display: flex;
justify-content: space-between;
// align-items: center;
.label {
margin-right: 4px;
color: #858CA0;
font-size: 14px;
white-space: nowrap;
}
.val {
color: #2E3A4F;
font-size: 14px;
}
.pic-box {
max-width: 70%;
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
.item {
width: 84px;
height: 84px;
padding-left: 8px;
display: flex;
align-items: center;
image {
width: 100%;
height: 100%;
display: block;
}
}
}
}
}
}
.bottom {
width: 100%;
padding: 10px 8px 30px;
background: #fff;
box-sizing: border-box;
border-radius: 8px 8px 0 0;
box-shadow: 0px -2px 12px 0px rgba(0,0,0,0.2);
position: absolute;
bottom: 0;
left: 0;
.btn-box {
width: 100%;
display: flex;
justify-content: space-between;
.btn {
width: 100%;
height: 40px;
line-height: 40px;
border-radius: 8px;
background: linear-gradient(90deg, #3B7CFC 0%, #548BFC 100%);
color: #fff;
font-weight: bold;
text-align: center;
}
}
}
}
@@ -0,0 +1,130 @@
// pages/backlog/annualInspection/annualInspection.ts
import { getAction } from '../../../api/base';
Page({
/**
* 页面的初始数据
*/
data: {
tabActive: 0,
id: '',
item: {} as any
},
// 变更tab
changeTab(e: any) {
console.log(e.currentTarget.dataset.tab);
this.setData({
tabActive: e.currentTarget.dataset.tab
});
},
getDetailInf() {
let parms = {
id: this.data.id
};
getAction('api/vehicles/backlog/getAnnualInspectionById', parms).then(
(res: any) => {
if (res.code == 200) {
console.log(res.result);
res.result.drivingLicenseList = res.result.drivingLicense
? res.result.drivingLicense.split(',')
: [];
res.result.vehicleQualificationMarkList = res.result
.vehicleQualificationMark
? res.result.vehicleQualificationMark.split(',')
: [];
res.result.detailsTableList = res.result.detailsTable
? res.result.detailsTable.split(',')
: [];
res.result.otherList = res.result.other
? res.result.other.split(',')
: [];
this.setData({
item: res.result
});
} else {
wx.showToast({
title: res.message,
icon: 'none'
});
}
}
);
},
previewImg(e: any) {
let that = this;
let { index, key, key2 } = e.currentTarget.dataset;
if (key2) {
wx.previewImage({
current: that.data.item[key][key2][index | 0], // 当前显示图片的http链接 默认urls[0]
urls: that.data.item[key][key2] // 需要预览的图片http链接列表
});
} else {
wx.previewImage({
current: that.data.item[key][index | 0], // 当前显示图片的http链接 默认urls[0]
urls: that.data.item[key] // 需要预览的图片http链接列表
});
}
},
toFeedback() {
let that = this;
// 跳转到反馈
wx.navigateTo({
url: '../annualInspectionFeedback/annualInspectionFeedback',
success: function (res) {
// 通过eventChannel向被打开页面传送数据
res.eventChannel.emit('eventName', { ...that.data.item });
},
fail: e => {
console.log(e);
}
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
const eventChannel = this.getOpenerEventChannel();
getApp().EventChannel = eventChannel;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
let id = wx.getStorageSync('backlogInf').id;
this.setData({
id: id
});
this.getDetailInf();
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
});
@@ -0,0 +1,144 @@
<!--pages/backlog/annualInspection/annualInspection.wxml-->
<view class="container">
<view class="bg">
<image src="../../../images/bg_page_blue.png" mode=""/>
</view>
<view class="top">
<view class="row">
<view class="number-plate">
<view class="val">{{item.plateNumber}}</view>
</view>
<view class="project-name">{{item.projectId_dictText}}</view>
</view>
<view class="row">
<view class="time">年检有效期: {{item.validityPeriod ? item.validityPeriod : '-'}}</view>
<view class="type-list">
<view class="color-red">
{{item.overdueType ? item.overdueType : '已逾期'}}{{(item.overdueDays ? item.overdueDays : item.daysToOverdue)}}天
</view>
</view>
</view>
</view>
<view class="detail-container" wx:if="{{false}}">
<view class="tabs">
<view class="tab {{tabActive == 0 ? 'active' : ''}}" data-tab="0" catch:tap="changeTab">
<view class="bg"><image src="../../../images/btn_l.png" mode=""/></view>
<view class="value">年检信息</view>
</view>
<!-- <view class="tab {{tabActive == 1 ? 'active' : ''}}" data-tab="1" catch:tap="changeTab">报价信息</view> -->
</view>
<view class="content">
<view class="row">
<view class="label">处理人</view>
<view class="val">{{ item.processedPerson ? item.processedPerson : '/'}}</view>
</view>
<view class="row">
<view class="label">年检有效期</view>
<view class="val"> {{ item.validityPeriod ? item.validityPeriod : '/'}}</view>
</view>
<view class="row">
<view class="label">办理日期</view>
<view class="val">{{ item.handlingDate ? item.handlingDate : '/'}}</view>
</view>
<view class="row">
<view class="label">年检地点</view>
<view class="val">{{ item.location ? item.location : '/'}}天</view>
</view>
<view class="row">
<view class="label">备注</view>
<view class="val">{{ item.remark ? item.remark : '/'}}</view>
</view>
<view class="line"></view>
<view class="row">
<view class="label">检测费</view>
<view class="val">{{ item.testingFee ? item.testingFee : '/'}}</view>
</view>
<view class="row">
<view class="label">手续费</view>
<view class="val">{{ item.serviceFee ? item.serviceFee : '/'}}</view>
</view>
<view class="row">
<view class="label">杂费</view>
<view class="val">{{ item.miscellaneousFee ? item.miscellaneousFee : '/'}}</view>
</view>
<view class="row">
<view class="label">费用合计</view>
<view class="val">{{ item.totalFee ? item.totalFee : '/'}}</view>
</view>
<view class="line"></view>
<view class="row">
<view class="label">行驶证</view>
<view class="pic-box">
<view
class="item"
wx:for="{{item.drivingLicenseList}}"
wx:key="index"
wx:for-item="pic"
wx:if="{{item.drivingLicenseList.length > 0}}"
data-index="{{index}}"
data-key="drivingLicenseList"
bindtap="previewImg">
<image src="{{pic}}" mode=""/>
</view>
<view class="val" wx:if="{{item.drivingLicenseList.length == 0}}">/</view>
</view>
</view>
<view class="row">
<view class="label">车辆合格证</view>
<view class="pic-box">
<view
class="item"
wx:for="{{item.vehicleQualificationMarkList}}"
wx:key="index"
wx:for-item="pic"
wx:if="{{item.vehicleQualificationMarkList.length > 0}}"
data-index="{{index}}"
data-key="vehicleQualificationMarkList"
bindtap="previewImg">
<image src="{{pic}}" mode=""/>
</view>
<view class="val" wx:if="{{item.vehicleQualificationMarkList.length == 0}}">/</view>
</view>
</view>
<view class="row">
<view class="label">年检费用明细表</view>
<view class="pic-box">
<view
class="item"
wx:for="{{item.detailsTableList}}"
wx:key="index"
wx:for-item="pic"
wx:if="{{item.detailsTableList.length > 0}}"
data-index="{{index}}"
data-key="detailsTableList"
bindtap="previewImg">
<image src="{{pic}}" mode=""/>
</view>
<view class="val" wx:if="{{item.detailsTableList.length == 0}}">/</view>
</view>
</view>
<view class="row">
<view class="label">其他</view>
<view class="pic-box">
<view
class="item"
wx:for="{{item.otherList}}"
wx:key="index"
wx:for-item="pic"
wx:if="{{item.otherList.length > 0}}"
data-index="{{index}}"
data-key="otherList"
bindtap="previewImg">
<image src="{{pic}}" mode=""/>
</view>
<view class="val" wx:if="{{item.otherList.length == 0}}">/</view>
</view>
</view>
</view>
</view>
<view class="bottom">
<view class="btn-box">
<view class="btn" catch:tap="toFeedback">办理年检</view>
</view>
</view>
</view>