import request from '@/utils/request'

// 查询 PLM 接收留痕列表
export function listPlmReceiveLog(query) {
  return request({
    url: '/system/plmReceiveLog/list',
    method: 'get',
    params: query
  })
}

// 查询 PLM 接收留痕详情
export function getPlmReceiveLog(id) {
  return request({
    url: '/system/plmReceiveLog/' + id,
    method: 'get'
  })
}

// 按留痕记录手动将总装同步到 bom_details
export function syncPlmReceiveLogBomDetails(id) {
  return request({
    url: '/system/plmReceiveLog/' + id + '/syncBomDetails',
    method: 'post'
  })
}
