This commit is contained in:
Vinjor 2024-11-13 17:12:41 +08:00
parent 84b4e6e9a3
commit 919483b1e6
2 changed files with 28 additions and 6 deletions

View File

@ -610,14 +610,27 @@ export default {
data:dataObj data:dataObj
}).then((res) => { }).then((res) => {
}) })
}else if("over"==this.nowChooseOperate){
//
let dataObj = {
id: this.ticketInfo.id,
remark: "交车",
image: fileStr
}
request({
url: '/admin-api/repair/tickets/overOrder',
method: 'POST',
data:dataObj
}).then((res) => {
})
} }
this.$refs.popup.close() this.$refs.popup.close()
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
icon: 'none' icon: 'none'
}) })
if("done"==this.nowChooseOperate || "check"==this.nowChooseOperate || "callCus"==this.nowChooseOperate || "out"==this.nowChooseOperate){ if("done"==this.nowChooseOperate || "check"==this.nowChooseOperate || "callCus"==this.nowChooseOperate || "out"==this.nowChooseOperate || "over"==this.nowChooseOperate){
//| //| |
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
},500) },500)
@ -654,6 +667,12 @@ export default {
text: '通知取车', active: false,code:"callCus" text: '通知取车', active: false,code:"callCus"
}) })
} }
if("06"==this.ticketInfo.ticketsStatus || "02"==this.ticketInfo.ticketsStatus ){
//
this.content.push({
text: '交车', active: false,code:"over"
})
}
// //
this.callServiceInfo.name = this.loginUser.nickname this.callServiceInfo.name = this.loginUser.nickname
this.callServiceInfo.tel = this.loginUser.mobile this.callServiceInfo.tel = this.loginUser.mobile
@ -718,8 +737,8 @@ export default {
console.log(e) console.log(e)
this.content[e.index].active = !e.item.active this.content[e.index].active = !e.item.active
this.nowChooseOperate = e.item.code this.nowChooseOperate = e.item.code
if("working"==e.item.code || "done_half"==e.item.code || "done"==e.item.code || "other"==e.item.code || "check"==e.item.code || "out"==e.item.code){ if("working"==e.item.code || "done_half"==e.item.code || "done"==e.item.code || "other"==e.item.code || "check"==e.item.code || "out"==e.item.code || "over"==e.item.code){
// //
this.fileList=[] this.fileList=[]
this.$refs.popup.open("bottom") this.$refs.popup.open("bottom")
}else if("start" == e.item.code){ }else if("start" == e.item.code){

View File

@ -46,13 +46,16 @@ export function getOrderStatusText(ticketsStatus,workStatus){
str = "待取车结算" str = "待取车结算"
}else if("06"==ticketsStatus){ }else if("06"==ticketsStatus){
//挂单/记账 //挂单/记账
str = "挂单/记账" str = "挂单/记账待交车"
}else if("07"==ticketsStatus){ }else if("07"==ticketsStatus){
//待通知客户取车 //待通知客户取车
str = "待通知客户取车" str = "待通知客户取车"
}else if("08"==ticketsStatus){
//已交车
str = "已交车"
}else if("02"==ticketsStatus){ }else if("02"==ticketsStatus){
//已结账 //已结账
str = "已结账" str = "已结账待交车"
}else if("03"==ticketsStatus){ }else if("03"==ticketsStatus){
//已作废 //已作废
str = "已作废" str = "已作废"