Compare commits

..

No commits in common. "b6f54944f7bc7aefeae8adbd1c3d78e65521e84a" and "a73982e464a81897834956f452291116d11bb15a" have entirely different histories.

2 changed files with 1 additions and 32 deletions

View File

@ -204,22 +204,12 @@ export default {
method: 'get'
})
this.info = res.data
if (this.info.repairWork){
this.getWorkToText()
}
await this.getTicketById(this.info.ticketId)
if (this.info.images && this.info.images.length > 0) {
this.getImageUrls(this.info.images)
}
}catch{}
},
getWorkToText(){
getDictTextByCodeAndValue('repair_work_type', this.info.repairWork).then(value => {
this.info.repairWork = value
}).catch(() => {
this.info.repairWork = "未知"
})
},
getImageUrls(val) {
this.imageUrls = [...val.split(",").map(item => {
return config.baseImageUrl + item

View File

@ -602,28 +602,7 @@ export default {
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"","");
}else if("other"==this.nowChooseOperate){
//
const result = await new Promise((resolve, reject) => {
uni.showModal({
title: '提示', //
content: '是否移交总检?', //
confirmText: '是', //
cancelText: '否', //
success: (res) => {
if (res.confirm) {
//
resolve(saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02",""))
this.nowChooseOperate = 'done'
} else if (res.cancel) {
//
resolve(saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交下一班组维修",fileStr,"",""))
}
},
fail: (err) => {
console.error('我是是否移交总检的弹窗,我报错了', err);
}
});
})
// 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("done"==this.nowChooseOperate){
//
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02","");