diff --git a/src/api/wms/purchasereturnRequestDetail/index.ts b/src/api/wms/purchasereturnRequestDetail/index.ts index a50d8fcce..9a7a46f64 100644 --- a/src/api/wms/purchasereturnRequestDetail/index.ts +++ b/src/api/wms/purchasereturnRequestDetail/index.ts @@ -38,6 +38,18 @@ export const getPurchasereturnRequestDetailPage = async (params) => { } } + +// 查询采购退货申请子列表 +export const getPurchasereturnRequestDetailPageSpare = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchasereturn-request-detail/seniorSpare', data }) + } else { + return await request.get({ url: `/wms/purchasereturn-request-detail/pageSpare`, params }) + } +} + // 查询采购退货申请子详情 export const getPurchasereturnRequestDetail = async (id: number) => { return await request.get({ url: `/wms/purchasereturn-request-detail/get?id=` + id }) diff --git a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue index 74f26175a..08379c3f4 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue @@ -85,7 +85,7 @@ :detailAllSchemasRules="PurchasereturnRequestDetailRules" :apiCreate="PurchasereturnRequestDetailApi.createPurchasereturnRequestDetail" :apiUpdate="PurchasereturnRequestDetailApi.updatePurchasereturnRequestDetail" - :apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage" + :apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare" :apiDelete="PurchasereturnRequestDetailApi.deletePurchasereturnRequestDetail" :Echo="Echo" @searchTableSuccessDetail="searchTableSuccessDetail" @@ -188,7 +188,7 @@ const onEnter = async (field, value) => { const isCreateLabel = ref(false) const formLabelRef = ref() const { tableObject: detatableData, tableMethods: detatableMethods } = useTable({ - getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage + getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare }) const { getList: getDetailList } = detatableMethods @@ -411,7 +411,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { const Echo = [] const { tableObject, tableMethods } = useTable({ - getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage // 分页接口 + getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare // 分页接口 }) // 获得表格的各种操作