Browse Source

国强--让更换接口

hella_online_20240816
wangyufei 3 months ago
parent
commit
4f87edc3b3
  1. 9
      src/api/wms/purchaseDetail/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue
  3. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/purchasereceiptRequestMain.data.ts

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

@ -55,6 +55,15 @@ export const getPurchaseDetailPageWMS = async (params) => {
}
}
export const getPurchaseDetailPageWMSTypeM = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchase-detail/seniorM', data })
} else {
return await request.get({ url: `/wms/purchase-detail/pageM`, params })
}
}
// 查询采购订单子列表
export const getPurchaseDetailPageWMSSpare = async (params) => {

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue

@ -518,7 +518,7 @@ const updateTableData = (tableList)=>{
const getSearchTableData = async (number,isEnter=false)=>{
const {tableObject ,tableMethods} = useTable({
defaultParams:{number},
getListApi: PurchaseDetailApi.getPurchaseDetailPageWMS //
getListApi: PurchaseDetailApi.getPurchaseDetailPageWMSTypeM //
})
//
const { getList:getList1 } = tableMethods

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/purchasereceiptRequestMain.data.ts

@ -634,7 +634,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isConcatDetailSchemas:true,//是否是主子表合并 默认false
searchDetailSchemas:PurchaseDetail.allSchemas,
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPageWMS,
searchPage: PurchaseDetailApi.getPurchaseDetailPageWMSTypeM,
searchCondition: [
{
key:'number',
@ -661,7 +661,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
searchTitle: '采购订单信息',
searchDetailSchemas:PurchaseDetail.allSchemas,
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseDetailApi.getPurchaseDetailPageWMS,
searchPage: PurchaseDetailApi.getPurchaseDetailPageWMSTypeM,
searchCondition: [{
key:'supplierCode',
value:'supplierCode',

Loading…
Cancel
Save