This commit is contained in:
PQZ 2024-11-05 12:04:51 +08:00
commit 8149763e0d
2 changed files with 57 additions and 51 deletions

View File

@ -314,8 +314,7 @@ export default {
const param = { const param = {
id: this.ticketId, id: this.ticketId,
nowRepairId: this.checkedUserId, nowRepairId: this.checkedUserId,
nowRepairName: this.checkedUserName, nowRepairName: this.checkedUserName
operateCode:"sgwczj"
} }
if (type == '1'){ if (type == '1'){
param.remark = this.remark param.remark = this.remark

View File

@ -203,6 +203,30 @@
</template> </template>
</view> </view>
</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 v-if="isDetail == '1'" class="card cardInfo projCard">
<view class="projTitle">维修记录</view> <view class="projTitle">维修记录</view>
<view class="projList"> <view class="projList">
@ -340,57 +364,12 @@ export default {
carInfo: {}, carInfo: {},
userInfo: {}, userInfo: {},
loginUser:{}, loginUser:{},
selectedProj: [ 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: []
// }
],
submitData:[], submitData:[],
// //
ifCallCus:false, ifCallCus:false,
//
tableData:[],
// //
callServiceInfo:{ callServiceInfo:{
name:"", name:"",
@ -413,6 +392,8 @@ export default {
onShow(){ onShow(){
// //
this.getOrderDetail() this.getOrderDetail()
//
this.getProjItem()
// //
this.waresByTicket() this.waresByTicket()
}, },
@ -550,6 +531,9 @@ export default {
}else if("done_half"==this.nowChooseOperate){ }else if("done_half"==this.nowChooseOperate){
// //
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"",""); const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"","");
}else if("other"==this.nowChooseOperate){
//
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交下一班组维修",fileStr,"","");
}else if("done"==this.nowChooseOperate){ }else if("done"==this.nowChooseOperate){
// //
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02",""); const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02","");
@ -819,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
}
})
},
/** /**
* 查看订单详情 * 查看订单详情
*/ */
@ -1164,6 +1161,16 @@ export default {
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;