init
This commit is contained in:
@@ -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: 90%;
|
||||
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: 21%;
|
||||
}
|
||||
|
||||
.val-width {
|
||||
width: 76%;
|
||||
text-align: right;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.collapsed {
|
||||
display: flex;
|
||||
|
||||
image {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 4px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
// pages/vehicleMaintenance/maintainSend/maintainSend.ts
|
||||
import { getAction } from '../../../api/base';
|
||||
Page({
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
tabActive: 0,
|
||||
currentflowStatus: 0,
|
||||
isCollapsed: false, // 默认为非折叠状态
|
||||
repairObject: {} 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.getRepairObject(info.id);
|
||||
},
|
||||
// 获取维修单数据
|
||||
getRepairObject(id: string) {
|
||||
if (id) {
|
||||
getAction(`api/vehicles/repair/getRepairObjectById?id=${id}`)
|
||||
.then((res: any) => {
|
||||
if (res.code == 200) {
|
||||
let data = res.result;
|
||||
if (data.repairInfo.repairImgUrl)
|
||||
data.repairInfo.repairImgUrl =
|
||||
data.repairInfo.repairImgUrl.split(',');
|
||||
if (data.repairOffer.inRepairImgUrl)
|
||||
data.repairOffer.inRepairImgUrl =
|
||||
data.repairOffer.inRepairImgUrl.split(',');
|
||||
if (data.repairOffer.afterRepairImgUrl)
|
||||
data.repairOffer.afterRepairImgUrl =
|
||||
data.repairOffer.afterRepairImgUrl.split(',');
|
||||
this.setData({
|
||||
repairObject: 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('repairObject', this.data.repairObject);
|
||||
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('repairObject', this.data.repairObject);
|
||||
wx.navigateTo({
|
||||
url: '../operation/repair/repair',
|
||||
fail: e => {
|
||||
console.log(e);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 维修结果
|
||||
finished() {
|
||||
wx.setStorageSync('repairObject', this.data.repairObject);
|
||||
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 == 'repairImgUrl') {
|
||||
list = this.data.repairObject.repairInfo.repairImgUrl;
|
||||
} else if (image == 'attachmentList') {
|
||||
this.data.repairObject.repairOffer.attachmentList.forEach((item: any) => {
|
||||
list.push(item.fileUrl);
|
||||
});
|
||||
} else if (image == 'inRepairImgUrl') {
|
||||
list = this.data.repairObject.repairOffer.inRepairImgUrl;
|
||||
} else if (image == 'afterRepairImgUrl') {
|
||||
list = this.data.repairObject.repairOffer.afterRepairImgUrl;
|
||||
}
|
||||
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();
|
||||
this.getUserInf();
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
// 不放onReady 是因为有可能切出去然后状态改了得跳转到别的页面
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
let pages = getCurrentPages();
|
||||
let idx = null,
|
||||
num = 0;
|
||||
pages.forEach((item: any, index: number) => {
|
||||
if (
|
||||
item.route ==
|
||||
'pages/vehicleMaintenance/maintainRecord/maintainRecord' ||
|
||||
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,274 @@
|
||||
<!--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">{{repairObject.repairInfo.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">{{repairObject.repairInfo.plateNumber}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="project-name">{{repairObject.repairInfo.projectId_dictText}}</view>
|
||||
<view class="time">{{repairObject.repairInfo.repairTime}}</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">{{repairObject.repairInfo.frameNumber || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">交车时间</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.deliveryTime || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">车辆品牌</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.vehicleBrand_dictText || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">车辆型号</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.vehicleModel || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">车辆种类</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.vehicleType_dictText || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">VIN码</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.vinCode || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">发动机码</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.engineNumber || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">报修人</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.repairPeople || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">联系电话</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.phone || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">报修时间</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.repairTime || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">报修分类</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.repairClass_dictText || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">报修内容</view>
|
||||
<view class="val val-width">{{repairObject.repairInfo.repairContent || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label">照片</view>
|
||||
<view class="pic-box" wx:if="{{repairObject.repairInfo.repairImgUrl}}">
|
||||
<view class="item" wx:for="{{repairObject.repairInfo.repairImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<image src="{{item}}" mode="" data-index="{{index}}" data-image="repairImgUrl" catch:tap="showImage" />
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="val">/</view>
|
||||
</view>
|
||||
<view>
|
||||
<van-divider></van-divider>
|
||||
<view class="row">
|
||||
<view class="label" style="width: 25%;">是否质保维修</view>
|
||||
<view class="val val-width">{{repairObject.repairAssign.isGuarantee_dictText || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">指派维修厂</view>
|
||||
<view class="val val-width">{{repairObject.repairAssign.repairShop_dictText || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">保养人</view>
|
||||
<view class="val val-width">{{repairObject.repairAssign.contact || '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label label-width">联系电话</view>
|
||||
<view class="val val-width">{{repairObject.repairAssign.contactPhone || '/'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info" wx:if="{{tabActive == 1}}">
|
||||
<view class="row">
|
||||
<view class="label">维修明细({{repairObject.repairOffer.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="{{repairObject.repairOffer.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">{{repairObject.repairOffer.materialCost}}元</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label">工时</view>
|
||||
<view class="val">{{repairObject.repairOffer.totalWorkHours}}小时</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label">工时费用</view>
|
||||
<view class="val">{{repairObject.repairOffer.totalWorkHoursCost}}元</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label" style="color: #2F3B50;">维修报价</view>
|
||||
<view class="val">
|
||||
<text class="bold-blue">{{repairObject.repairOffer.repairCost}}</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;">{{repairObject.repairOffer.content ? repairObject.repairOffer.content : '/'}}</view>
|
||||
</view>
|
||||
<view class="row">
|
||||
<view class="label">单据附件</view>
|
||||
<view class="pic-box" wx:if="{{repairObject.repairOffer.attachmentList}}">
|
||||
<view class="item" wx:for="{{repairObject.repairOffer.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>
|
||||
</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;">{{repairObject.repairOffer.updateTime ? repairObject.repairOffer.updateTime : '/'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="repair-before">
|
||||
<view class="label">维修中</view>
|
||||
<view wx:if="{{repairObject.repairOffer.inRepairImgUrl}}">
|
||||
<view class="pic-box">
|
||||
<view class="item" wx:for="{{repairObject.repairOffer.inRepairImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<image src="{{item}}" mode="" data-index="{{index}}" data-image="inRepairImgUrl" catch:tap="showImage" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="val">/</view>
|
||||
</view>
|
||||
<view class="repair-after">
|
||||
<view class="label">维修后</view>
|
||||
<view wx:if="{{repairObject.repairOffer.afterRepairImgUrl}}">
|
||||
<view class="pic-box">
|
||||
<view class="item" wx:for="{{repairObject.repairOffer.afterRepairImgUrl}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<image src="{{item}}" mode="" data-index="{{index}}" data-image="afterRepairImgUrl" catch:tap="showImage" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="val">/</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{repairObject.repairCheckList}}">
|
||||
<view class="check-info" wx:for="{{repairObject.repairCheckList}}" 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.checkResult == '1'}}">审核结果:通过</view>
|
||||
<view class="check-title" style="color: red;" wx:if="{{item.checkType == '1' && item.checkResult == '2'}}">审核结果:不通过</view>
|
||||
<view class="check-title" style="color: #4381FC;" wx:if="{{item.checkType == '2' && item.checkResult == '1'}}">审批结果:通过</view>
|
||||
<view class="check-title" style="color: red;" wx:if="{{item.checkType == '2' && item.checkResult == '2'}}">审批结果:不通过</view>
|
||||
<view class="check-title" style="color: #4381FC;" wx:if="{{item.checkType == '3' && item.checkResult == '1'}}">维修结果:维修完成</view>
|
||||
<view class="check-title" style="color: red;" wx:if="{{item.checkType == '3' && 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'}}">审核时间</text>
|
||||
<text class="label" wx:if="{{item.checkType == '2'}}">审批时间</text>
|
||||
<text class="label" wx:if="{{item.checkType == '3'}}">确认时间</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'}}">审核意见</text>
|
||||
<text class="label" wx:if="{{item.checkType == '2'}}">审批意见</text>
|
||||
<text class="label" wx:if="{{item.checkType == '3'}}">确认意见</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,'VehiclesMaintain:cancel')}}">作废</view>
|
||||
<view class="btn cancel {{((!module.buttonPermissions(userInf.auth,'VehiclesMaintain:repairing') && currentflowStatus == 6) || (!module.buttonPermissions(userInf.auth,'VehiclesMaintain:confirmResult') && 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,'VehiclesMaintain:repairing')}}">维修</view>
|
||||
<view class="btn apply" catch:tap="finished" wx:elif="{{currentflowStatus == 7 && module.buttonPermissions(userInf.auth,'VehiclesMaintain:confirmResult')}}">维修结果</view>
|
||||
<view class="btn cancel" catch:tap="goBack" wx:elif="{{module.buttonPermissions(userInf.auth,'VehiclesMaintain:cancel')}}">返回</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user