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