巡检接口

This commit is contained in:
Zy
2026-05-19 17:31:17 +08:00
parent 82200a3617
commit abc8086ad0
15 changed files with 433 additions and 253 deletions

View File

@@ -131,8 +131,9 @@
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { onLoad, onShow } from '@dcloudio/uni-app'
import Stops from '@/components/stops/stops.vue'
import { getTicketMainById } from '@/api/ticket.js'
// --------------------------------------
/** 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成*/
const currentStep = ref(2)
@@ -163,7 +164,6 @@ const repairInfo = ref({
'https://picsum.photos/80',
'https://picsum.photos/80'
],
repairUser: {
name: '盘下但',
status: '正常',
@@ -184,6 +184,19 @@ onLoad(options => {
Showbtn.value = JSON.parse(options.showbtn)
prevPath.value = options.path
})
onShow(() => {
getTicketById()
})
function getTicketById() {
getTicketMainById(queryParams.value.id)
.then(res => {
console.log(res)
})
.catch(err => {
console.log(err)
})
}
// --------------------------------------
/** 选择维修人员 */