37 lines
747 B
JavaScript
37 lines
747 B
JavaScript
import request from '@/utils/request'
|
||
|
||
const preUrl= "/repair/soi"
|
||
|
||
// 分页查询
|
||
export function getSoiPage(params){
|
||
return request({
|
||
url: preUrl + "/page",
|
||
method: "get",
|
||
params
|
||
})
|
||
}
|
||
|
||
// 按IDS查
|
||
export function getRepairSoiByIds(ids){
|
||
return request({
|
||
url: preUrl + "/get?ids=" + ids,
|
||
method: "get"
|
||
})
|
||
}
|
||
|
||
// 按主表ID查
|
||
export function getRepairSoiBySoId(soId){
|
||
return request({
|
||
url: preUrl + "/getBySoId?soId=" + soId,
|
||
method: 'get'
|
||
})
|
||
}
|
||
|
||
// 根据主表的ID得到子表的所有数据,按类型区分的map,支持条件查询
|
||
export function getMapBySoIdAndQuery(id, query){
|
||
return request({
|
||
url: preUrl + "/getMapBySoIdAndQuery?id=" + id + "&query=" + query,
|
||
method: 'get'
|
||
})
|
||
}
|