1
This commit is contained in:
parent
c1998e6f88
commit
9221129150
@ -3,7 +3,7 @@
|
|||||||
<view class="containerBody">
|
<view class="containerBody">
|
||||||
<VNavigationBar background-color="#fff" title="工单详情" title-color="#333"></VNavigationBar>
|
<VNavigationBar background-color="#fff" title="工单详情" title-color="#333"></VNavigationBar>
|
||||||
<view class="body">
|
<view class="body">
|
||||||
<view v-if="carInfo" class="card cardInfo carCard">
|
<view class="card cardInfo carCard">
|
||||||
<view :class="{'end': orderInfo.flag == 5}" class="orderFlag">
|
<view :class="{'end': orderInfo.flag == 5}" class="orderFlag">
|
||||||
<template>
|
<template>
|
||||||
<image v-if="orderInfo.flag == 5" mode="aspectFit" src="/static/icons/orderEnd.png"
|
<image v-if="orderInfo.flag == 5" mode="aspectFit" src="/static/icons/orderEnd.png"
|
||||||
@ -65,7 +65,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="userInfo" class="card cardInfo userCard">
|
<view v-if="userInfo" class="card cardInfo userCard">
|
||||||
<view class="userTitle">客户信息</view>
|
<view class="userTitle">客户信息</view>
|
||||||
<view class="userContainer">
|
<view class="userContainer">
|
||||||
@ -221,6 +220,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import VNavigationBar from '@/components/VNavigationBar.vue'
|
import VNavigationBar from '@/components/VNavigationBar.vue'
|
||||||
import {bus} from "@/utils/eventBus";
|
import {bus} from "@/utils/eventBus";
|
||||||
|
import request from '@/utils/request';
|
||||||
|
import {getOrderStatusText} from "@/utils/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -231,8 +232,8 @@ export default {
|
|||||||
//是否详情页(0否1是)
|
//是否详情页(0否1是)
|
||||||
isDetail:'1',
|
isDetail:'1',
|
||||||
// role: 'yewu',
|
// role: 'yewu',
|
||||||
orderId: '',
|
ticketId: '',
|
||||||
orderInfo: {},
|
ticketInfo: {},
|
||||||
carInfo: {
|
carInfo: {
|
||||||
licenseNumber: '川A 184AO1',
|
licenseNumber: '川A 184AO1',
|
||||||
carCategory: '一汽奥迪 2024款 A6L',
|
carCategory: '一汽奥迪 2024款 A6L',
|
||||||
@ -305,14 +306,29 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(data) {
|
onLoad(data) {
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
this.orderId = data.id
|
this.ticketId = data.id
|
||||||
}
|
}
|
||||||
if (data.isDetail){
|
if (data.isDetail){
|
||||||
this.isDetail = data.isDetail
|
this.isDetail = data.isDetail
|
||||||
}
|
}
|
||||||
|
// this.getOrderDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查看订单详情
|
||||||
|
*/
|
||||||
|
getOrderDetail(){
|
||||||
|
request({
|
||||||
|
url: '/admin-api/repair/tickets/get',
|
||||||
|
method: 'get',
|
||||||
|
params:{id:this.ticketId}
|
||||||
|
}).then((res)=>{
|
||||||
|
this.ticketInfo = res.data;
|
||||||
|
this.ticketInfo.statusStr = getOrderStatusText()
|
||||||
|
console.log(res.data,327)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
editPeople(type, proj) {
|
editPeople(type, proj) {
|
||||||
bus.$off('choosePeople')
|
bus.$off('choosePeople')
|
||||||
|
Loading…
Reference in New Issue
Block a user