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,8 @@
{
"usingComponents": {
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"van-divider": "@vant/weapp/divider/index"
},
"navigationBarTitleText": "保养详情"
}
@@ -0,0 +1,462 @@
/* pages/vehicleMaintenance/maintainSend/maintainSend.wxss */
.container {
height: 100vh;
padding-top: 2px;
box-sizing: border-box;
background: #EFF1F4;
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;
}
}
}
.detail-container {
padding: 0px 8px 0px;
position: relative;
.tabs {
display: flex;
border-radius: 8px 8px 0 0;
overflow: hidden;
.tabBg {
background-color: #E2F3FE;
}
.tab {
width: 50%;
height: 40px;
line-height: 40px;
color: #959595;
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 {
color: #4381FC;
// background-color: #FFFFFF;
}
.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;
}
.contentHeight1 {
max-height: calc(100vh - 72px - 272px);
}
.contentHeight2 {
max-height: calc(100vh - 72px - 132px);
}
.contentHeight3 {
height: calc(100vh - 72px - 132px);
max-height: calc(100vh - 72px - 132px);
}
.content {
overflow-y: auto;
border-radius: 0px 0px 8px 8px;
.info {
padding: 12px 8px;
border-radius: 0px 0px 8px 8px;
background: #fff;
}
.check-info {
margin-top: 8px;
padding: 12px 8px;
border-radius: 8px;
background: #fff;
.check-title {
color: #4381FC;
font-weight: bold;
font-size: 18px;
margin-bottom: 8px;
}
.check-one {
display: flex;
justify-content: space-between;
.margin-left8 {
margin-left: 8px;
}
}
.check-idea {
display: flex;
justify-content: space-between;
}
.label {
color: #858CA0;
font-size: 14px;
}
.val {
color: #2E3A4F;
font-size: 14px;
}
}
.row {
margin-bottom: 8px;
display: flex;
justify-content: space-between;
// align-items: center;
.label {
color: #858CA0;
font-size: 14px;
}
.val {
color: #2E3A4F;
font-size: 14px;
}
.bold {
color: #2F3B50;
font-weight: bold;
font-size: 16px;
}
.bold-blue {
color: #4381FC;
font-weight: bold;
font-size: 20px;
}
.pic-box {
max-width: 83%;
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
.item {
width: 84px;
height: 84px;
padding-left: 8px;
margin-bottom: 8px;
display: flex;
align-items: center;
image {
width: 100%;
height: 100%;
display: block;
}
}
}
.check-title {
width: 60px;
font-size: 15px;
font-weight: bold;
color: #4381FC;
line-height: 21px;
}
}
.repairList {
max-height: 6000px;
transition: max-height 0.6s ease-in-out;
will-change: height;
overflow: hidden;
// transform-origin: top;
// transform: scaleY(1);
// transition: transform 0.3s ease-in;
}
.repairList-hide {
// transform-origin: top;
// transform: scaleY(0);
// transition: transform 0.3s ease-out;
}
.repairList-item {
padding: 8px 8px 2px 8px;
background: #ECEFF5;
border-radius: 4px;
margin-bottom: 8px;
}
.repair-item {
margin-top: 8px;
padding: 12px 8px;
border-radius: 8px;
background: #fff;
.repair-title {
display: flex;
justify-content: space-between;
.repair-name {
font-weight: bold;
color: #2E3A4F;
}
}
.repair-before,
.repair-after {
margin-top: 8px;
.pic-box {
margin-top: 8px;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
.item {
width: 84px;
height: 84px;
padding-right: 8px;
margin-bottom: 8px;
display: flex;
align-items: center;
image {
width: 100%;
height: 100%;
display: block;
}
}
}
}
.label {
color: #858CA0;
font-size: 14px;
}
}
}
}
.bottom {
width: 100%;
padding: 10px 8px 14px;
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;
.row {
width: 100%;
height: 36px;
padding: 8px 10px;
margin-bottom: 8px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid #E6EAF2;
display: flex;
align-items: center;
.icon {
width: 20px;
height: 20px;
margin-right: 8px;
image {
width: 100%;
height: 100%;
}
}
input {
flex: 1;
font-size: 14px;
}
}
.select-row {
// width: calc((100% - 6px) / 2);
picker {
width: 100%;
position: relative;
.picker {
width: 100%;
height: 38px;
// padding-left: 14px;
box-sizing: border-box;
// border: 1px solid #E6EAF2;
border-radius: 4px;
font-size: 14px;
display: flex;
// justify-content: space-between;
align-items: center;
}
.picker::after {
content: '';
width: 0;
height: 0;
border-top: 6px solid #636B83;
border-right: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid transparent;
position: absolute;
top: 50%;
right: 14px;
transform: translateY(-2px);
}
}
}
.btn-box {
width: 100%;
display: flex;
justify-content: space-between;
.btn {
width: calc(50% - 8px);
height: 40px;
background-color: #FFFFFF;
line-height: 40px;
border-radius: 8px;
color: #2E3A4F;
text-align: center;
border: 1px solid #D6D6D6;
}
.btn-full {
width: calc(100% - 8px);
}
.apply {
background: linear-gradient(90deg, #3B7CFC 0%, #548BFC 100%);
color: #2E3A4F;
color: #fff;
font-size: 15px;
font-weight: bold;
}
}
}
.label-width {
width: 25%;
}
.val-width {
width: 73%;
text-align: right;
word-break: break-all;
}
.collapsed {
display: flex;
image {
width: 16px;
height: 16px;
margin-right: 4px;
margin-top: 2px;
}
}
}
@@ -0,0 +1,259 @@
// pages/vehicleMaintenance/maintainSend/maintainSend.ts
import { getAction } from '../../../api/base';
Page({
/**
* 页面的初始数据
*/
data: {
tabActive: 0,
currentflowStatus: 0,
isCollapsed: false, // 默认为非折叠状态
upkeepObject: {} as any, // 保养单数据
userInfo: {} as any, // 用户信息
userInf: ''
},
getInf() {
// 获取信息
let info = wx.getStorageSync('selectMaintain');
wx.removeStorage({ key: 'selectMaintain' });
let userInfo = wx.getStorageSync('userInfo');
this.setData({
currentflowStatus: info.flowStatus,
userInfo: userInfo
});
this.getupkeepObject(info.id);
},
// 获取保养单数据
getupkeepObject(id: string) {
if (id) {
getAction(`api/vehicles/upkeepBill/getUpkeepObjectById?id=${id}`)
.then((res: any) => {
if (res.code == 200) {
let data = res.result;
if (data.upkeepOffer.beforeUpkeepImgUrl)
data.upkeepOffer.beforeUpkeepImgUrl =
data.upkeepOffer.beforeUpkeepImgUrl.split(',');
if (data.upkeepOffer.inUpkeepImgUrl)
data.upkeepOffer.inUpkeepImgUrl =
data.upkeepOffer.inUpkeepImgUrl.split(',');
if (data.upkeepOffer.afterUpkeepImgUrl)
data.upkeepOffer.afterUpkeepImgUrl =
data.upkeepOffer.afterUpkeepImgUrl.split(',');
this.setData({
upkeepObject: data
});
} else {
wx.showToast({
title: res.message,
icon: 'none'
});
}
})
.catch((err: any) => {
wx.showToast({
title: err.message,
icon: 'none'
});
});
}
},
// 变更tab
changeTab(e: any) {
console.log(e.currentTarget.dataset.tab);
this.setData({
tabActive: e.currentTarget.dataset.tab
});
},
bindCancel() {
// 作废
wx.setStorageSync('upkeepObject', this.data.upkeepObject);
wx.navigateTo({
url: '../operation/cancel/cancel',
fail: e => {
console.log(e);
}
});
},
// 返回
goBack() {
let pageList = getCurrentPages();
if (pageList && pageList.length != 1) wx.navigateBack();
else {
if (this.data.userInfo.type == '1') {
wx.reLaunch({
url: '/pages/index/index'
});
} else if (this.data.userInfo.type == '2') {
wx.reLaunch({
url: '/pages/manufacturerIndex/manufacturerIndex'
});
} else if (this.data.userInfo.type == '3') {
wx.reLaunch({
url: '/pages/projectIndex/projectIndex'
});
} else if (this.data.userInfo.type == '4') {
wx.reLaunch({
url: '/pages/maintenanceIndex/maintenanceIndex'
});
} else {
wx.reLaunch({
url: '/pages/login/login'
});
}
}
},
bindSend() {
// 保养
wx.setStorageSync('upkeepObject', this.data.upkeepObject);
wx.navigateTo({
url: '../operation/upkeep/upkeep',
fail: e => {
console.log(e);
}
});
},
// 保养结果
finished() {
wx.setStorageSync('upkeepObject', this.data.upkeepObject);
wx.navigateTo({
url: '../operation/complete/complete',
fail: e => {
console.log(e);
}
});
},
// 收起保养明细
collapse() {
this.setData({
isCollapsed: !this.data.isCollapsed
});
},
// 图片预览
showImage(event: any) {
let { index, image } = event.currentTarget.dataset;
let list = [] as any;
if (image == 'attachmentList') {
this.data.upkeepObject.upkeepBill.attachmentList.forEach((item: any) => {
list.push(item.fileUrl);
});
} else if (image == 'beforeUpkeepImgUrl') {
list = this.data.upkeepObject.upkeepOffer.beforeUpkeepImgUrl;
} else if (image == 'attachmentUpkeepList') {
this.data.upkeepObject.upkeepOffer.attachmentUpkeepList.forEach(
(item: any) => {
list.push(item.fileUrl);
}
);
} else if (image == 'inUpkeepImgUrl') {
list = this.data.upkeepObject.upkeepOffer.inUpkeepImgUrl;
} else if (image == 'afterUpkeepImgUrl') {
list = this.data.upkeepObject.upkeepOffer.afterUpkeepImgUrl;
}
wx.previewImage({
current: list[index | 0], // 当前显示图片的http链接 默认urls[0]
urls: list // 需要预览的图片http链接列表
});
},
getUserInf() {
this.setData({
userInf: wx.getStorageSync('userInfo')
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
const eventChannel = this.getOpenerEventChannel();
if (eventChannel && !getApp().EventChannel)
getApp().EventChannel = eventChannel;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
this.getInf();
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.getUserInf();
// 不放onReady 是因为有可能切出去然后状态改了得跳转到别的页面
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
let pages = getCurrentPages();
let idx = null,
num = 0;
pages.forEach((item: any, index: number) => {
if (
item.route == 'pages/UpkeepBill/UpkeepBillRecord/UpkeepBillRecord' ||
item.route == 'pages/backlog/backlogList/backlogList'
)
idx = index;
});
if (idx != null) num = pages.length - 2 - idx;
console.log(idx, num);
if (idx != null && num != 0) {
wx.navigateBack({
// delta: num,
delta: 1,
success: function (res) {
// 通过eventChannel向被打开页面传送数据
if (getApp().EventChannel.emit) getApp().EventChannel.emit('refresh');
},
fail: e => {
console.log(e);
}
});
} else if (idx == null) {
if (this.data.userInfo.type == '1') {
wx.reLaunch({
url: '/pages/index/index'
});
} else if (this.data.userInfo.type == '2') {
wx.reLaunch({
url: '/pages/manufacturerIndex/manufacturerIndex'
});
} else if (this.data.userInfo.type == '3') {
wx.reLaunch({
url: '/pages/projectIndex/projectIndex'
});
} else if (this.data.userInfo.type == '4') {
wx.reLaunch({
url: '/pages/maintenanceIndex/maintenanceIndex'
});
} else {
wx.reLaunch({
url: '/pages/login/login'
});
}
}
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
});
@@ -0,0 +1,297 @@
<!--pages/vehicleMaintenance/maintainSend/maintainSend.wxml-->
<wxs module="module" src="../../module/module.wxs"></wxs>
<view class="container">
<view class="bg">
<image src="../../../images/bg_page_blue.png" mode="" />
</view>
<view class="top">
<view class="row">
<view class="code">{{upkeepObject.upkeepBill.orderNo}}</view>
<view class="number-plate">
<view class="status status1" wx:if="{{currentflowStatus == 6}}">保养中</view>
<view class="status status2" wx:if="{{currentflowStatus == 7}}">待确认</view>
<view class="val">{{upkeepObject.upkeepBill.plateNumber}}</view>
</view>
</view>
<view class="row">
<view class="project-name">{{upkeepObject.upkeepBill.projectId_dictText}}</view>
<view class="time">{{upkeepObject.upkeepBill.predictTime}}</view>
</view>
</view>
<view class="detail-container">
<view class="tabs">
<view class="tab {{tabActive == 0 ? 'active' : ''}} {{userInfo.userType != 1 ? 'tabBg' : ''}}" data-tab="0" catch:tap="changeTab">
<view class="bg" wx:if="{{tabActive == 0}}">
<image src="../../../images/btn_l.png" mode="" />
</view>
<view class="value">基本信息</view>
</view>
<view class="tab {{tabActive == 1 ? 'active' : ''}} tabBg" data-tab="1" catch:tap="changeTab" wx:if="{{userInfo.userType != 1}}">
<view class="bg" wx:if="{{tabActive == 1}}">
<image src="../../../images/btn_r.png" mode="" />
</view>
<view class="value">报价信息</view>
</view>
</view>
<view class="contentHeight3 content">
<view class="info" wx:if="{{tabActive == 0}}">
<view class="row">
<view class="label label-width">车架号</view>
<view class="val val-width">{{upkeepObject.upkeepBill.frameNumber || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">交车时间</view>
<view class="val val-width">{{upkeepObject.upkeepBill.deliveryTime || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">车辆品牌</view>
<view class="val val-width">{{upkeepObject.upkeepBill.vehicleBrand_dictText || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">车辆型号</view>
<view class="val val-width">{{upkeepObject.upkeepBill.vehicleModel || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">车辆种类</view>
<view class="val val-width">{{upkeepObject.upkeepBill.vehicleType_dictText || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">VIN码</view>
<view class="val val-width">{{upkeepObject.upkeepBill.vinCode || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">发动机码</view>
<view class="val val-width">{{upkeepObject.upkeepBill.engineNumber || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">提单时间</view>
<view class="val val-width">{{upkeepObject.upkeepBill.createTime || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">上次保养时间</view>
<view class="val val-width">{{upkeepObject.upkeepBill.lastTime || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">上次保养里程</view>
<view class="val val-width">{{upkeepObject.upkeepBill.lastMileage || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">预计保养时间</view>
<view class="val val-width">{{upkeepObject.upkeepBill.predictTime || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">预计保养里程</view>
<view class="val val-width">{{upkeepObject.upkeepBill.predictMileage || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">保养内容</view>
<view class="val val-width">{{upkeepObject.upkeepBill.content || '/'}}</view>
</view>
<view class="row">
<view class="label">附件</view>
<view class="pic-box" wx:if="{{upkeepObject.upkeepBill.attachmentList}}">
<view class="item" wx:for="{{upkeepObject.upkeepBill.attachmentList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item.fileUrl}}" mode="" data-index="{{index}}" data-image="attachmentList" catch:tap="showImage" />
</view>
</view>
<view wx:else class="val">/</view>
</view>
<view>
<van-divider></van-divider>
<view class="row">
<view class="label label-width">指派维修厂</view>
<view class="val val-width">{{upkeepObject.upkeepAssign.repairShop_dictText || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">保养人</view>
<view class="val val-width">{{upkeepObject.upkeepAssign.contact || '/'}}</view>
</view>
<view class="row">
<view class="label label-width">联系电话</view>
<view class="val val-width">{{upkeepObject.upkeepAssign.contactPhone || '/'}}</view>
</view>
</view>
<view>
<van-divider></van-divider>
<view class="row">
<view class="label">实际保养开始时间</view>
<view class="val">{{upkeepObject.upkeepBill.startTime || '/'}}</view>
</view>
</view>
</view>
<view class="info" wx:if="{{tabActive == 1}}">
<view class="row">
<view class="label">保养明细({{upkeepObject.upkeepOffer.repairDetailList.length}}</view>
<view class="val" bindtap="collapse">
<view class="collapsed">
<image wx:if="{{isCollapsed}}" src="../../../images/icon_down.png" mode="" />
<image wx:else src="../../../images/icon_up.png" mode="" />
<view>{{isCollapsed ? '展开' : '收起'}}</view>
</view>
</view>
</view>
<view class="repairList" style="{{isCollapsed ? 'max-height: 0px;' : ''}}">
<view class="repairList-item" wx:for="{{upkeepObject.upkeepOffer.repairDetailList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="row">
<view class="label">保养分类</view>
<view class="val">{{item.repairClass_dictText}}</view>
</view>
<view class="row">
<view class="label label-width">保养内容</view>
<view class="val val-width">{{item.repairContent ? item.repairContent : '/'}}</view>
</view>
<view class="row">
<view class="label">数量</view>
<view class="val">{{item.quantity}}</view>
</view>
<view class="row">
<view class="label">材料单价</view>
<view class="val">{{item.unitPrice}}元</view>
</view>
<view class="row">
<view class="label">工时</view>
<view class="val">{{item.workHours}}小时</view>
</view>
<view class="row">
<view class="label">工时单价</view>
<view class="val">{{item.workHoursCost}}元</view>
</view>
<view class="row">
<view class="label" style="color: #2F3B50;">费用小计</view>
<view class="val">
<text class="bold">{{item.totalCost}}</text>
<text style="margin-left: 8px;">元</text>
</view>
</view>
</view>
</view>
<view class="row">
<view class="label">材料费</view>
<view class="val">{{upkeepObject.upkeepOffer.materialCost}}元</view>
</view>
<view class="row">
<view class="label">工时</view>
<view class="val">{{upkeepObject.upkeepOffer.totalWorkHours}}小时</view>
</view>
<view class="row">
<view class="label">工时费用</view>
<view class="val">{{upkeepObject.upkeepOffer.totalWorkHoursCost}}元</view>
</view>
<view class="row">
<view class="label" style="color: #2F3B50;">保养报价</view>
<view class="val">
<text class="bold-blue">{{upkeepObject.upkeepOffer.totaCost}}</text>
<text style="margin-left: 8px;">元</text>
</view>
</view>
<view>
<van-divider></van-divider>
<view class="row">
<view class="label" style="width: 20%;">内容说明</view>
<view class="val" style="width: 80%;text-align: right;">{{upkeepObject.upkeepOffer.offerContent ? upkeepObject.upkeepOffer.offerContent : '/'}}</view>
</view>
<view class="row" wx:if="{{currentflowStatus == 6}}">
<view class="label">保养前照片</view>
<view class="pic-box" wx:if="{{upkeepObject.upkeepOffer.beforeUpkeepImgUrl}}">
<view class="item" wx:for="{{upkeepObject.upkeepOffer.beforeUpkeepImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item}}" mode="" data-index="{{index}}" data-image="beforeUpkeepImgUrl" catch:tap="showImage" />
</view>
</view>
<view wx:else class="val">/</view>
</view>
<view class="row">
<view class="label">单据附件</view>
<view class="pic-box" wx:if="{{upkeepObject.upkeepOffer.attachmentUpkeepList}}">
<view class="item" wx:for="{{upkeepObject.upkeepOffer.attachmentUpkeepList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item.fileUrl}}" mode="" data-index="{{index}}" data-image="attachmentUpkeepList" catch:tap="showImage" />
</view>
</view>
<view wx:else class="val">/</view>
</view>
</view>
</view>
<view class="repair-item" wx:if="{{currentflowStatus == 7}}">
<view class="repair-title">
<view class="repair-name">保养情况</view>
<view class="repair-time">
<text class="label">提交时间</text>
<text class="val" style="margin-left:8px;">{{upkeepObject.upkeepOffer.updateTime ? upkeepObject.upkeepOffer.updateTime : '/'}}</text>
</view>
</view>
<view class="repair-before">
<view class="label">保养前</view>
<view wx:if="{{upkeepObject.upkeepOffer.beforeUpkeepImgUrl}}">
<view class="pic-box">
<view class="item" wx:for="{{upkeepObject.upkeepOffer.beforeUpkeepImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item}}" mode="" data-index="{{index}}" data-image="beforeUpkeepImgUrl" catch:tap="showImage" />
</view>
</view>
</view>
<view wx:else class="val">/</view>
</view>
<view class="repair-before">
<view class="label">保养中</view>
<view wx:if="{{upkeepObject.upkeepOffer.inUpkeepImgUrl}}">
<view class="pic-box">
<view class="item" wx:for="{{upkeepObject.upkeepOffer.inUpkeepImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item}}" mode="" data-index="{{index}}" data-image="inUpkeepImgUrl" catch:tap="showImage" />
</view>
</view>
</view>
<view wx:else class="val">/</view>
</view>
<view class="repair-after">
<view class="label">保养后</view>
<view wx:if="{{upkeepObject.upkeepOffer.afterUpkeepImgUrl}}">
<view class="pic-box">
<view class="item" wx:for="{{upkeepObject.upkeepOffer.afterUpkeepImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<image src="{{item}}" mode="" data-index="{{index}}" data-image="afterUpkeepImgUrl" catch:tap="showImage" />
</view>
</view>
</view>
<view wx:else class="val">/</view>
</view>
</view>
<view wx:if="{{upkeepObject.upkeepCheckList}}">
<view class="check-info" wx:for="{{upkeepObject.upkeepCheckList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="item">
<view class="check-title" style="color: #4381FC;" wx:if="{{(item.checkType == '1' || item.checkType == '2') && item.checkResult == '1'}}">审核结果:通过</view>
<view class="check-title" style="color: red;" wx:if="{{(item.checkType == '1' || item.checkType == '2') && item.checkResult == '2'}}">审核结果:不通过</view>
<view class="check-title" style="color: #4381FC;" wx:if="{{item.checkType == '4' && item.checkResult == '1'}}">保养结果:保养完成</view>
<view class="check-title" style="color: red;" wx:if="{{item.checkType == '4' && item.checkResult == '2'}}">保养结果:保养未完成</view>
<view class="check-title" style="color: #4381FC;" wx:if="{{item.checkType == '5' && item.checkResult == '1'}}">复核结果:通过</view>
<view class="check-title" style="color: red;" wx:if="{{item.checkType == '5' && item.checkResult == '2'}}">复核结果:不通过</view>
<view class="check-one">
<view class="check-operator">
<text class="label">{{item.checkPeopleType_dictText}}</text>
<text class="val margin-left8">{{item.checkPeople ? item.checkPeople : '/'}}</text>
</view>
<view class="check-time">
<text class="label" wx:if="{{item.checkType == '1' || item.checkType == '2'}}">审核时间</text>
<text class="label" wx:if="{{item.checkType == '4'}}">确认时间</text>
<text class="label" wx:if="{{item.checkType == '5'}}">复核时间</text>
<text class="label" wx:if="{{!item.checkType}}">操作时间</text>
<text class="val margin-left8">{{item.checkTime ? item.checkTime : '/'}}</text>
</view>
</view>
<view class="check-idea">
<text class="label" wx:if="{{item.checkType == '1' || item.checkType == '2'}}">审核意见</text>
<text class="label" wx:if="{{item.checkType == '4'}}">确认意见</text>
<text class="label" wx:if="{{item.checkType == '5'}}">复核意见</text>
<text class="val" style="width: 81%;word-break: break-all;" wx:if="{{item.checkType}}">{{item.checkIdea ? item.checkIdea : '/'}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom">
<view class="btn-box">
<view class="btn cancel" catch:tap="bindCancel" wx:if="{{module.buttonPermissions(userInf.auth,'UpkeepBill:cancel')}}">作废</view>
<view class="btn cancel {{((!module.buttonPermissions(userInf.auth,'UpkeepBill:repairing') && currentflowStatus == 6) || (!module.buttonPermissions(userInf.auth,'UpkeepBill:comfirmResult') && currentflowStatus == 7))? 'btn-full' : ''}}" catch:tap="goBack" wx:else>返回</view>
<view class="btn apply" catch:tap="bindSend" wx:if="{{currentflowStatus == 6 && module.buttonPermissions(userInf.auth,'UpkeepBill:repairing')}}">保养</view>
<view class="btn apply" catch:tap="finished" wx:elif="{{currentflowStatus == 7 && module.buttonPermissions(userInf.auth,'UpkeepBill:comfirmResult')}}">保养结果</view>
<view class="btn cancel" catch:tap="goBack" wx:elif="{{module.buttonPermissions(userInf.auth,'UpkeepBill:cancel')}}">返回</view>
</view>
</view>
</view>