Browse Source

列表查询根据类型过滤

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
0efa274771
  1. 12
      src/api/wms/purchasereturnRequestDetail/index.ts
  2. 6
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

12
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) => { export const getPurchasereturnRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/purchasereturn-request-detail/get?id=` + id }) return await request.get({ url: `/wms/purchasereturn-request-detail/get?id=` + id })

6
src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

@ -85,7 +85,7 @@
:detailAllSchemasRules="PurchasereturnRequestDetailRules" :detailAllSchemasRules="PurchasereturnRequestDetailRules"
:apiCreate="PurchasereturnRequestDetailApi.createPurchasereturnRequestDetail" :apiCreate="PurchasereturnRequestDetailApi.createPurchasereturnRequestDetail"
:apiUpdate="PurchasereturnRequestDetailApi.updatePurchasereturnRequestDetail" :apiUpdate="PurchasereturnRequestDetailApi.updatePurchasereturnRequestDetail"
:apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage" :apiPage="PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare"
:apiDelete="PurchasereturnRequestDetailApi.deletePurchasereturnRequestDetail" :apiDelete="PurchasereturnRequestDetailApi.deletePurchasereturnRequestDetail"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
@ -188,7 +188,7 @@ const onEnter = async (field, value) => {
const isCreateLabel = ref(false) const isCreateLabel = ref(false)
const formLabelRef = ref() const formLabelRef = ref()
const { tableObject: detatableData, tableMethods: detatableMethods } = useTable({ const { tableObject: detatableData, tableMethods: detatableMethods } = useTable({
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare
}) })
const { getList: getDetailList } = detatableMethods const { getList: getDetailList } = detatableMethods
@ -411,7 +411,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
const Echo = [] const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPage // getListApi: PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailPageSpare //
}) })
// //

Loading…
Cancel
Save