This commit is contained in:
2025-06-28 20:03:49 +08:00
parent d0d4c25377
commit b3598f1ba8
2 changed files with 377 additions and 0 deletions

44
src/api/ems/ticket.js Normal file
View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询工单主列表
export function listTicket(query) {
return request({
url: '/ticket/list',
method: 'get',
params: query
})
}
// 查询工单主详细
export function getTicket(id) {
return request({
url: '/ticket/' + id,
method: 'get'
})
}
// 新增工单主
export function addTicket(data) {
return request({
url: '/ticket',
method: 'post',
data: data
})
}
// 修改工单主
export function updateTicket(data) {
return request({
url: '/ticket',
method: 'put',
data: data
})
}
// 删除工单主
export function delTicket(id) {
return request({
url: '/ticket/' + id,
method: 'delete'
})
}