From a624b37159a26c8729f58ce57d114f3d8a2f4664 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Thu, 6 Jun 2024 16:07:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/supplierinvoiceRecordMain/index.ts | 4 +- .../wms/supplierinvoiceRequestMain/index.ts | 16 +-- src/components/Detail/src/Detail.vue | 8 +- .../supplierinvoiceRecordMain/index.vue | 52 +++++++- .../supplierinvoiceRequestMain/index.vue | 113 +++++++++++++++--- .../supplierinvoiceRequestMain.data.ts | 36 +++++- 6 files changed, 196 insertions(+), 33 deletions(-) diff --git a/src/api/wms/supplierinvoiceRecordMain/index.ts b/src/api/wms/supplierinvoiceRecordMain/index.ts index 4f04bdeb2..9ffde26ba 100644 --- a/src/api/wms/supplierinvoiceRecordMain/index.ts +++ b/src/api/wms/supplierinvoiceRecordMain/index.ts @@ -53,8 +53,8 @@ export const deleteSupplierinvoiceRecordMain = async (id: number) => { } // 导出供应商发票记录主 Excel -export const exportSupplierinvoiceRecordMain = async (params) => { - return await request.download({ url: `/wms/supplierinvoice-record-main/export-excel`, params }) +export const exportSupplierinvoiceRecordMain = async (data) => { + return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel`, data }) } // 下载用户导入模板 diff --git a/src/api/wms/supplierinvoiceRequestMain/index.ts b/src/api/wms/supplierinvoiceRequestMain/index.ts index 49298715f..9dd8e60e8 100644 --- a/src/api/wms/supplierinvoiceRequestMain/index.ts +++ b/src/api/wms/supplierinvoiceRequestMain/index.ts @@ -79,8 +79,8 @@ export const appSupplierinvoiceRequestMain = async (id: number) => { return await request.post({ url: `/wms/supplierinvoice-request-main/app?id=` + id }) } // 采购--驳回供应商发货申请主 -export const rejSupplierinvoiceRequestMain = async (id: number) => { - return await request.post({ url: `/wms/supplierinvoice-request-main/rej?id=` + id }) +export const rejSupplierinvoiceRequestMain = async (data) => { + return await request.post({ url: `/wms/supplierinvoice-request-main/rej`,data }) } // 供应商--发票寄出 @@ -93,8 +93,8 @@ export const financeappSupplierinvoiceRequestMain = async (id: number) => { return await request.post({ url: `/wms/supplierinvoice-request-main/financeApp?id=` + id }) } // 财务--驳回供应商发货申请主 -export const financerejSupplierinvoiceRequestMain = async (id: number) => { - return await request.post({ url: `/wms/supplierinvoice-request-main/financeRej?id=` + id }) +export const financerejSupplierinvoiceRequestMain = async (data) => { + return await request.post({ url: `/wms/supplierinvoice-request-main/financeRej`, data }) } // 作废--供应商发货申请主 @@ -118,11 +118,11 @@ export const printSupplierRecordByMasterId = async (masterId:number) => { } // 导出供应商发票申请主 Excel -export const exportSupplierinvoiceRequestMain = async (params) => { - if(params.isSearch){ - return await request.downloadPost({ url: `/wms/supplierinvoice-request-main/export-excel-senior`, params }) +export const exportSupplierinvoiceRequestMain = async (data) => { + if(data.isSearch){ + return await request.downloadPost({ url: `/wms/supplierinvoice-request-main/export-excel-senior`, data }) }else { - return await request.download({ url: `/wms/supplierinvoice-request-main/export-excel`, params }) + return await request.downloadPost({ url: `/wms/supplierinvoice-request-main/export-excel`, data }) } } diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index af528c603..77ba581a2 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -72,8 +72,12 @@ v-model:currentPage="tableObjectRef.currentPage" v-model:sort="tableObjectRef.sort" > - + + + \ No newline at end of file diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 190f3d517..025c41c68 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -1,7 +1,7 @@