This commit is contained in:
Vinjor 2024-11-05 11:43:07 +08:00
parent 02e4b3e811
commit 01a4c18e36

View File

@ -203,6 +203,30 @@
</template>
</view>
</view>
<view v-if="isDetail == '1'" 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="100" align="center" colspan="3">维修状态</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 v-if="isDetail == '1'" class="card cardInfo projCard">
<view class="projTitle">维修记录</view>
<view class="projList">
@ -340,57 +364,12 @@ export default {
carInfo: {},
userInfo: {},
loginUser:{},
selectedProj: [
// {
// projName: '',
// amount: '280',
// date: '2024-10-20 12:00',
// desc: '',
// imageList: [{filePath: ''}, {filePath: ''}, {filePath: ''}, {filePath: ''}, {filePath: ''}],
// isSend: true,
// //
// examinePart: [],
// id: 'projId1',
// //
// salesman: [
// {
// name: '',
// id: '11111'
// }
// ],
// //
// constructor: []
// },
// {
// projName: '',
// amount: '280',
// date: '2024-10-20 12:00',
// desc: '',
// imageList: [{filePath: ''}, {filePath: ''}, {filePath: ''}, {filePath: ''}, {filePath: ''}],
// isSend: false,
// //
// hasNoReviewPart: false,
// id: 'projId2',
// salesman: [],
// constructor: []
// },
// {
// projName: '',
// amount: '280',
// date: '2024-10-20 12:00',
// desc: '',
// imageList: [],
// isSend: false,
// //
// hasNoReviewPart: true,
// id: 'projId3',
// salesman: [],
// constructor: []
// }
],
selectedProj: [],
submitData:[],
//
ifCallCus:false,
//
tableData:[],
//
callServiceInfo:{
name:"",
@ -413,6 +392,8 @@ export default {
onShow(){
//
this.getOrderDetail()
//
this.getProjItem()
//
this.waresByTicket()
},
@ -822,7 +803,20 @@ export default {
})
})
},
/**
* 查看维修进度记录
*/
getProjItem(){
request({
url: '/admin-api/repair/titem/getProjList',
method: 'get',
params:{ticketId:this.ticketId}
}).then((res)=>{
if(res.code==200){
this.tableData = res.data
}
})
},
/**
* 查看订单详情
*/
@ -1167,6 +1161,16 @@ export default {
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;