diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index 3b434bc..56625a6 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -12,7 +12,7 @@ - 订单 + 订单详情 diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue index 255ecef..abb8ea3 100644 --- a/pages-order/orderDetail/orderDetail.vue +++ b/pages-order/orderDetail/orderDetail.vue @@ -166,6 +166,32 @@ + + 维修进度记录表 + + + - 待维修 + ○ 维修中 + √ 已完成 + + + + 序号 + 维修项目 + - + + + + + {{ index+1 }} + {{ item.itemName }} + - + + + + + + 维修记录 @@ -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;