diff --git a/src/api/wms/purchasereceiptJobDetail/index.ts b/src/api/wms/purchasereceiptJobDetail/index.ts index 6020d680f..4163887b2 100644 --- a/src/api/wms/purchasereceiptJobDetail/index.ts +++ b/src/api/wms/purchasereceiptJobDetail/index.ts @@ -44,6 +44,17 @@ export const getPurchasereceiptJobDetailPage = async (params) => { } } +// 查询备件收货任务子列表 +export const getPurchasereceiptJobDetailPageSapre = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchasereceipt-job-detail/seniorSpare', data }) + } else { + return await request.get({ url: `/wms/purchasereceipt-job-detail/pageSpare`, params }) + } +} + // 查询采购收货任务子详情 export const getPurchasereceiptJobDetail = async (id: number) => { return await request.get({ url: `/wms/purchasereceipt-job-detail/get?id=` + id }) diff --git a/src/api/wms/purchasereceiptRecordDetail/index.ts b/src/api/wms/purchasereceiptRecordDetail/index.ts index a7e5c8426..17503b4e7 100644 --- a/src/api/wms/purchasereceiptRecordDetail/index.ts +++ b/src/api/wms/purchasereceiptRecordDetail/index.ts @@ -60,6 +60,19 @@ export const getPurchasereceiptRecordDetailPage = async (params) => { return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params }) } } + +// 查询备件收货记录子列表 +export const getPurchasereceiptRecordDetailPageSpare = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSpare', data }) + } else { + return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSpare`, params }) + } +} + + export const getPurchasereceiptRecordDetailPageSCP = async (params) => { if (params.isSearch) { delete params.isSearch diff --git a/src/api/wms/purchasereceiptRequestDetail/index.ts b/src/api/wms/purchasereceiptRequestDetail/index.ts index ae652347a..13ce13323 100644 --- a/src/api/wms/purchasereceiptRequestDetail/index.ts +++ b/src/api/wms/purchasereceiptRequestDetail/index.ts @@ -46,6 +46,17 @@ export const getPurchasereceiptRequestDetailPage = async (params) => { } } +// 查询备件收货申请子列表 +export const getPurchasereceiptRequestDetailPageSpare = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/purchasereceipt-request-detail/seniorSpare', data }) + } else { + return await request.get({ url: `/wms/purchasereceipt-request-detail/pageSpare`, params }) + } +} + // 查询采购收货申请子详情 export const getPurchasereceiptRequestDetail = async (id: number) => { return await request.get({ url: `/wms/purchasereceipt-request-detail/get?id=` + id }) diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue index 6823bbf1f..81c94d9e7 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue @@ -129,7 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => const Echo = [] const { tableObject, tableMethods } = useTable({ - getListApi: PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPage // 分页接口 + getListApi: PurchasereceiptJobDetailApi.getPurchasereceiptJobDetailPageSapre // 分页接口 }) // 获得表格的各种操作 diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue index e370a3db9..c4f4f8d25 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/index.vue @@ -91,7 +91,7 @@ const updataTableColumns = (val) => { } const { tableObject, tableMethods } = useTable({ - getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage// 分页接口 + getListApi: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPageSpare// 分页接口 }) // 获得表格的各种操作 diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue index 86da21d04..c31af4685 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue @@ -130,7 +130,7 @@ const routeName = ref() routeName.value = route.name const tableColumns = ref([...PurchasereceiptRequestMain.allSchemas.tableColumns,...PurchasereceiptRequestDetail.allSchemas.tableMainColumns]) -const apiPage = ref(PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage) +const apiPage = ref(PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPageSpare) const detailAllSchemas = ref(PurchasereceiptRequestDetail.allSchemas) @@ -243,7 +243,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { } const { tableObject, tableMethods } = useTable({ - getListApi: PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage // 分页接口 + getListApi: PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPageSpare // 分页接口 }) // 获得表格的各种操作