Merge branch 'master' of http://122.51.230.86:3000/dianliang/lanan-repair-app
This commit is contained in:
commit
8149763e0d
@ -314,8 +314,7 @@ export default {
|
||||
const param = {
|
||||
id: this.ticketId,
|
||||
nowRepairId: this.checkedUserId,
|
||||
nowRepairName: this.checkedUserName,
|
||||
operateCode:"sgwczj"
|
||||
nowRepairName: this.checkedUserName
|
||||
}
|
||||
if (type == '1'){
|
||||
param.remark = this.remark
|
||||
|
@ -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()
|
||||
},
|
||||
@ -550,6 +531,9 @@ export default {
|
||||
}else if("done_half"==this.nowChooseOperate){
|
||||
//阶段完成
|
||||
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){
|
||||
//移交总检
|
||||
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;
|
||||
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