From d4597891bbd03225afd16c724e887febcc04dfb0 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 10 Oct 2024 16:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=A6=BB=E6=95=A3=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=9F=A5=E7=9C=8B--=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierinvoiceRecordMain/index.ts | 10 ++++++++++ .../purchaseDiscreteOrderMain/index.vue | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/api/wms/supplierinvoiceRecordMain/index.ts b/src/api/wms/supplierinvoiceRecordMain/index.ts index adf1adcd1..7442e6f7f 100644 --- a/src/api/wms/supplierinvoiceRecordMain/index.ts +++ b/src/api/wms/supplierinvoiceRecordMain/index.ts @@ -31,6 +31,16 @@ export const getSupplierinvoiceRecordMainPage = async (params) => { return await request.get({ url: `/wms/supplierinvoice-record-main/page`, params }) } } +// 查询供应商发票记录主列表 +export const getSupplierinvoiceRecordMainPageDiscrete = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/supplierinvoice-record-main/seniorDiscrete', data }) + } else { + return await request.get({ url: `/wms/supplierinvoice-record-main/pageDiscrete`, params }) + } +} // 查询供应商发票记录主详情 export const getSupplierinvoiceRecordMain = async (id: number) => { diff --git a/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue b/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue index a3c980593..23e035f6c 100644 --- a/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue +++ b/src/views/wms/supplierManage/purchaseDiscreteOrder/purchaseDiscreteOrderMain/index.vue @@ -191,7 +191,7 @@ } const { tableObject, tableMethods } = useTable({ - getListApi: SupplierinvoiceRecordMainApi.getSupplierinvoiceRecordMainPage // 分页接口 + getListApi: SupplierinvoiceRecordMainApi.getSupplierinvoiceRecordMainPageDiscrete // 分页接口 }) tableObject.params.isLS = 1