| | |
| | | import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src'; |
| | | import type { PageParam, PageResult } from '@vben/request'; |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | |
| | |
| | | params, |
| | | }); |
| | | } |
| | | |
| | | /** 根据到货通知单生成采购入库单 */ |
| | | export function generateItemReceiptFromArrivalNotice(arrivalNoticeId: number) { |
| | | return requestClient.post<number>( |
| | | `/mes/wm/item-receipt/generate-from-arrival-notice?arrivalNoticeId=${arrivalNoticeId}`, |
| | | ); |
| | | } |
| | | |
| | | /** 提交采购入库单审批 */ |
| | | export function submitItemReceiptApproval( |
| | | id: number, |
| | | processDefinitionKey: string, |
| | | ) { |
| | | return requestClient.put( |
| | | `/mes/wm/item-receipt/submit-approval?id=${id}&processDefinitionKey=${processDefinitionKey}`, |
| | | ); |
| | | } |