工单分配,维修人员,报修详情

This commit is contained in:
Zy
2026-05-21 10:55:27 +08:00
parent 5d0819183e
commit ac9379ab8a
14 changed files with 333 additions and 182 deletions

View File

@@ -142,7 +142,7 @@
import { ref } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
import Stops from '@/components/stops/stops.vue'
import { getTicketMainById } from '@/api/ticket.js'
import { getTicketMainById, shareRepairUser } from '@/api/ticket.js'
// --------------------------------------
/** 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成*/
const currentStep = ref(2)
@@ -246,7 +246,31 @@ function handleStop(row) {
/** 选择维修人员 */
function handleSelecthouse() {
uni.navigateTo({
url: '/pageSubPack/ticket/shareUser'
url: '/pageSubPack/ticket/shareUser',
events: {
backData: data => {
const repairid = data.checkoutUserid
if (repairid) {
shareRepairUser({
id: repairInfo.value.id,
repairId: repairid
})
.then(res => {
uni.showToast({
icon: 'success',
title: '分配成功'
})
getTicketById()
})
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
}
}
}
})
}