Browse Source

WMS ——> bug M类型采购收货默认库位

linshi20240813
gaojs 3 months ago
parent
commit
3bf5572369
  1. 13
      src/api/wms/location/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/purchasereceiptRequestMain.data.ts

13
src/api/wms/location/index.ts

@ -34,6 +34,17 @@ export const getLocationPage = async (params) => {
return await request.get({ url: `/wms/location/page`, params })
}
}
export const getLocationMPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/location/Msenior', data })
} else {
return await request.get({ url: `/wms/location/Mpage`, params })
}
}
export const getLocationPageRepleinsh = async (params) => {
if (params.isSearch) {
delete params.isSearch
@ -139,4 +150,4 @@ export const selectConfigToLocation = async (params) => {
// 根据code获取数据列表
export const getLocationByCodes = async (params) => {
return await request.get({ url: `/wms/location/listByCodes`, params })
}
}

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

@ -997,13 +997,13 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
tableForm: {
enterSearch: true,
enterSearch: false,
isInpuFocusShow: true,
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchPage: LocationApi.getLocationMPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',

Loading…
Cancel
Save