·
This commit is contained in:
parent
2cfe5993b7
commit
3c6c07fd11
@ -12,7 +12,7 @@
|
||||
<image mode="aspectFit" src="@/static/icons/tabbar/order.png" v-show="aindex != 2"></image>
|
||||
<image mode="aspectFit" src="@/static/icons/tabbar/order-checked.png" v-show="aindex == 2"></image>
|
||||
</view>
|
||||
<view class="">订单</view>
|
||||
<view class="">订单详情</view>
|
||||
</view>
|
||||
<view class="box" :class="{active: aindex == 3}" @click="getgogo(3)">
|
||||
<view class="imgs">
|
||||
|
@ -166,6 +166,32 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card cardInfo projCard">
|
||||
<view class="projTitle">维修进度记录表</view>
|
||||
<view class="projList">
|
||||
<view class="tushi-box">
|
||||
<view class="tushi-item">- 待维修 </view>
|
||||
<view class="tushi-item" style="color: #E8A321">○ 维修中 </view>
|
||||
<view class="tushi-item" style="color: #17DBB1;">√ 已完成</view>
|
||||
</view>
|
||||
<uni-table ref="table" :loading="false" border stripe emptyText="暂无数据">
|
||||
<uni-tr>
|
||||
<uni-th width="50" align="center">序号</uni-th>
|
||||
<uni-th align="center">维修项目</uni-th>
|
||||
<uni-th width="30" align="center" >-</uni-th>
|
||||
<uni-th width="30" align="center" >○</uni-th>
|
||||
<uni-th width="30" align="center" >√</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item, index) in tableData" :key="index">
|
||||
<uni-td align="center">{{ index+1 }}</uni-td>
|
||||
<uni-td>{{ item.itemName }}</uni-td>
|
||||
<uni-td align="center"><text v-if="item.itemStatus=='01'">-</text></uni-td>
|
||||
<uni-td align="center"><text v-if="item.itemStatus=='02'" style="color: #E8A321">○</text></uni-td>
|
||||
<uni-td align="center"><text v-if="item.itemStatus=='03'" style="color: #17DBB1;">√</text></uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card cardInfo projCard">
|
||||
<view class="projTitle">维修记录</view>
|
||||
<view class="projList">
|
||||
@ -224,6 +250,8 @@
|
||||
carInfo: {},
|
||||
userInfo: {},
|
||||
imgUrlPrex:config.baseImageUrl,
|
||||
//维修项目进度记录表
|
||||
tableData:[],
|
||||
};
|
||||
},
|
||||
onLoad(data){
|
||||
@ -231,6 +259,8 @@
|
||||
this.ticketsId = data.ticketsId
|
||||
}
|
||||
this.getTicketsInfo()
|
||||
//查维修进度记录
|
||||
this.getProjItem()
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
@ -262,11 +292,27 @@
|
||||
this.ticketInfo = resultObj
|
||||
console.log(this.ticketInfo,"this.ticketInfo")
|
||||
},
|
||||
/**
|
||||
* 查看维修进度记录
|
||||
*/
|
||||
getProjItem(){
|
||||
request({
|
||||
url: '/app-api/repair/titem/getProjList',
|
||||
method: 'get',
|
||||
params:{ticketId:this.ticketsId},
|
||||
tenantIdFlag:false
|
||||
}).then((res)=>{
|
||||
if(res.code==200){
|
||||
this.tableData = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
getTicketsInfo(){
|
||||
request({
|
||||
url: '/userClient/repair/tickets/get',
|
||||
method: 'get',
|
||||
params:{id:this.ticketsId}
|
||||
params:{id:this.ticketsId},
|
||||
tenantIdFlag:false
|
||||
}).then((res)=>{
|
||||
let resultObj = res.data
|
||||
resultObj.statusStr = getOrderStatusText(res.data.ticketsStatus)
|
||||
@ -527,6 +573,16 @@
|
||||
flex-direction: column;
|
||||
gap: 20rpx;
|
||||
|
||||
.tushi-box{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.tushi-item{
|
||||
padding: 0 20rpx;
|
||||
color: #606266;
|
||||
}
|
||||
|
||||
.projItem {
|
||||
background: #FFFFFF;
|
||||
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
||||
|
Loading…
Reference in New Issue
Block a user