Browse Source

备件收货申请修改

hella_online_20240829
zhaoxuebing 4 months ago
parent
commit
dd950a6603
  1. 12
      src/api/wms/purchaseDetail/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

12
src/api/wms/purchaseDetail/index.ts

@ -55,6 +55,18 @@ export const getPurchaseDetailPageWMS = async (params) => {
} }
} }
// 查询采购订单子列表
export const getPurchaseDetailPageWMSSpare = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchase-detail/seniorWMS-Spare', data })
} else {
return await request.get({ url: `/wms/purchase-detail/pageWMS-Spare`, params })
}
}
// 校验子表数据 // 校验子表数据
export const getPurchaseDetailPageCheckData = async (params) => { export const getPurchaseDetailPageCheckData = async (params) => {
return await request.get({ url: `/wms/purchase-detail/pageCheckData`, params }) return await request.get({ url: `/wms/purchase-detail/pageCheckData`, params })

2
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

@ -71,7 +71,7 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isConcatDetailSchemas:true,//是否是主子表合并 默认false isConcatDetailSchemas:true,//是否是主子表合并 默认false
searchDetailSchemas:PurchaseDetail.allSchemas, searchDetailSchemas:PurchaseDetail.allSchemas,
searchAllSchemas: PurchaseMain.allSchemas, // 查询弹窗所需类 searchAllSchemas: PurchaseMain.allSchemas, // 查询弹窗所需类
searchPage: PurchaseDetailApi.getPurchaseDetailPageWMS, // 查询弹窗所需分页方法 searchPage: PurchaseDetailApi.getPurchaseDetailPageWMSSpare, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key:'status', key:'status',
value:'2', value:'2',

Loading…
Cancel
Save