| | |
| | | SaveWoBatchInput, |
| | | BizMesWoInput, |
| | | BAS_LABEL_VAR_WO, |
| | | WoFlowCardPrintJson, |
| | | } from '../model/mesModel'; |
| | | import { genAction, Api, genActionPage } from '../system'; |
| | | import { defHttp } from '/@/utils/http/axios'; |
| | |
| | | ); |
| | | return data; |
| | | }; |
| | | |
| | | /** |
| | | * @desc 获取工单备料信息 |
| | | */ |
| | | export function GetWoPickList(code: string) { |
| | | const params = genAction('', code); |
| | | return getPickListApi(params); |
| | | } |
| | | async function getPickListApi(params: ApiAction<string>) { |
| | | const data = await defHttp.post<ApiAction<WoFlowCardPrintJson[]>>( |
| | | { |
| | | url: mesApi.GetWoPickList, |
| | | params, |
| | | }, |
| | | { |
| | | errorMessageMode: 'modal', |
| | | isTransformResponse: false, |
| | | }, |
| | | ); |
| | | return data; |
| | | } |