| | |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | |
| | | import { normalizeQcDateFilter } from '../date-filter'; |
| | | |
| | | export namespace MesQcInspectionLedgerApi { |
| | | /** MES 检测结果台账(一行一个检测项结果;检验单未录入检测项时该组字段为空) */ |
| | | export interface Ledger { |
| | |
| | | export function getInspectionLedgerPage(params: PageParam) { |
| | | return requestClient.get<PageResult<MesQcInspectionLedgerApi.Ledger>>( |
| | | '/mes/qc/inspection-ledger/page', |
| | | { params }, |
| | | { params: normalizeQcDateFilter(params) }, |
| | | ); |
| | | } |
| | | |
| | | /** 导出检测结果台账 */ |
| | | export function exportInspectionLedger(params: Record<string, unknown>) { |
| | | return requestClient.download('/mes/qc/inspection-ledger/export-excel', { |
| | | params, |
| | | params: normalizeQcDateFilter(params), |
| | | }); |
| | | } |