| import request from '../../utils/request' | 
|   | 
| // 查询 | 
| export function fetchList (data) { | 
|   return request.post('/ext/workorderExt/page', data, { | 
|     trim: true | 
|   }) | 
| } | 
|   | 
| // 导出Excel | 
| export function exportExcel (data) { | 
|   return request.post('/ext/workorderExt/exportExcel', data, { | 
|     trim: true, | 
|     download: true | 
|   }) | 
| } | 
|   | 
| // 创建 | 
| export function create (data) { | 
|   return request.post('/ext/workorderExt/create', data) | 
| } | 
|   | 
| // 删除 | 
| export function deleteById (id) { | 
|   return request.get(`/ext/workorderExt/delete/${id}`) | 
| } | 
| // 根据ID查询 | 
| export function workorderExt (id) { | 
|   return request.get(`/ext/workorderExt/${id}`) | 
| } | 
| // (批量)备料 | 
| export function preparationWTransfer (ids) { | 
|   return request.get(`/ext/workorderExt/preparationWTransfer?ids=${ids}`) | 
| } | 
|   | 
| // 分页查询生产过程 | 
| export function workorderRecordExtPage (data) { | 
|   return request.post('/ext/workorderRecordExt/page', data) | 
| } | 
| // 分页查询生产检点 | 
| export function workorderCheckAttrExttPage (data) { | 
|   return request.post('/ext/workorderCheckAttrExt/page', data) | 
| } | 
| // 关闭工单 | 
| export function cancelById (data) { | 
|   return request.post('/ext/workorderExt/cancelById', data) | 
| } | 
| // 重分配工单 | 
| export function distributeById (data) { | 
|   return request.post('/ext/workorderExt/distributeById', data) | 
| } |