Browse Source

增加WMS查询接口

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
7e172e752d
  1. 12
      src/api/wms/purchaseDetail/index.ts
  2. 5
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

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

@ -43,6 +43,18 @@ export const getPurchaseDetailPage = async (params) => {
} }
} }
// 查询采购订单子列表
export const getPurchaseDetailPageWMS = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchase-detail/seniorWMS', data })
} else {
return await request.get({ url: `/wms/purchase-detail/pageWMS`, 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 })

5
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -5,15 +5,12 @@ import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as PurchaseMainApi from '@/api/wms/purchaseMain' import * as PurchaseMainApi from '@/api/wms/purchaseMain'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import * as PurchasePlanMainApi from '@/api/wms/purchasePlanMain'
import * as LocationApi from '@/api/wms/location' import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import { PurchasePlanMain } from '../../supplierdeliver/purchasePlanMain/purchasePlanMain.data'
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
import * as ItemPackageApi from '@/api/wms/itempackage/index' import * as ItemPackageApi from '@/api/wms/itempackage/index'
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data' import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
@ -70,7 +67,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.getPurchaseDetailPage, // 查询弹窗所需分页方法 searchPage: PurchaseDetailApi.getPurchaseDetailPageWMS, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key:'status', key:'status',
value:'2', value:'2',

Loading…
Cancel
Save