This commit is contained in:
Vinjor 2024-11-05 14:15:26 +08:00
parent 2cfe5993b7
commit 3c6c07fd11
2 changed files with 58 additions and 2 deletions

View File

@ -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.png" v-show="aindex != 2"></image>
<image mode="aspectFit" src="@/static/icons/tabbar/order-checked.png" v-show="aindex == 2"></image> <image mode="aspectFit" src="@/static/icons/tabbar/order-checked.png" v-show="aindex == 2"></image>
</view> </view>
<view class="">订单</view> <view class="">订单详情</view>
</view> </view>
<view class="box" :class="{active: aindex == 3}" @click="getgogo(3)"> <view class="box" :class="{active: aindex == 3}" @click="getgogo(3)">
<view class="imgs"> <view class="imgs">

View File

@ -166,6 +166,32 @@
</template> </template>
</view> </view>
</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="card cardInfo projCard">
<view class="projTitle">维修记录</view> <view class="projTitle">维修记录</view>
<view class="projList"> <view class="projList">
@ -224,6 +250,8 @@
carInfo: {}, carInfo: {},
userInfo: {}, userInfo: {},
imgUrlPrex:config.baseImageUrl, imgUrlPrex:config.baseImageUrl,
//
tableData:[],
}; };
}, },
onLoad(data){ onLoad(data){
@ -231,6 +259,8 @@
this.ticketsId = data.ticketsId this.ticketsId = data.ticketsId
} }
this.getTicketsInfo() this.getTicketsInfo()
//
this.getProjItem()
}, },
methods: { methods: {
/** /**
@ -262,11 +292,27 @@
this.ticketInfo = resultObj this.ticketInfo = resultObj
console.log(this.ticketInfo,"this.ticketInfo") 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(){ getTicketsInfo(){
request({ request({
url: '/userClient/repair/tickets/get', url: '/userClient/repair/tickets/get',
method: 'get', method: 'get',
params:{id:this.ticketsId} params:{id:this.ticketsId},
tenantIdFlag:false
}).then((res)=>{ }).then((res)=>{
let resultObj = res.data let resultObj = res.data
resultObj.statusStr = getOrderStatusText(res.data.ticketsStatus) resultObj.statusStr = getOrderStatusText(res.data.ticketsStatus)
@ -527,6 +573,16 @@
flex-direction: column; flex-direction: column;
gap: 20rpx; gap: 20rpx;
.tushi-box{
display: flex;
align-items: center;
justify-content: center;
}
.tushi-item{
padding: 0 20rpx;
color: #606266;
}
.projItem { .projItem {
background: #FFFFFF; background: #FFFFFF;
border-radius: 4rpx 4rpx 4rpx 4rpx; border-radius: 4rpx 4rpx 4rpx 4rpx;