From 47c5489dcd88a754e847aa02d48c6d899746d9b6 Mon Sep 17 00:00:00 2001 From: zhangli <2235006734@qq.com> Date: Thu, 26 Oct 2023 19:15:30 +0800 Subject: [PATCH] 1 --- src/api/wms/purchaseclaimRequestDetail/index.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/api/wms/purchaseclaimRequestDetail/index.ts b/src/api/wms/purchaseclaimRequestDetail/index.ts index 7896a6fff..3e767be76 100644 --- a/src/api/wms/purchaseclaimRequestDetail/index.ts +++ b/src/api/wms/purchaseclaimRequestDetail/index.ts @@ -1,6 +1,6 @@ import request from '@/config/axios' -export interface PurchaseclaimRequestMainVO { +export interface PurchaseclaimRequestDetailVO { altBatch: string amount: Number batch: Number @@ -31,12 +31,12 @@ export const getPurchaseclaimRequesDetail = async (id: number) => { } // 新增采购索赔申请子 -export const createPurchaseclaimRequestDetail = async (data: PurchaseclaimRequestMainVO) => { +export const createPurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => { return await request.post({ url: `/wms/purchaseclaim-request-detail/create`, data }) } // 修改采购索赔申请子 -export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimRequestMainVO) => { +export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => { return await request.put({ url: `/wms/purchaseclaim-request-detail/update`, data }) } @@ -44,13 +44,3 @@ export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimReques export const deletePurchaseclaimRequestDetail = async (id: number) => { return await request.delete({ url: `/wms/purchaseclaim-request-detail/delete?id=` + id }) } - -// 导出采购索赔申请子 Excel -export const exportPurchaseclaimRequestDetail = async (params) => { - return await request.download({ url: `/wms/purchaseclaim-request-detail/export-excel`, params }) -} - -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/wms/purchaseclaim-request-detail/get-import-template' }) -} \ No newline at end of file