Browse Source

采购退货

master
zhang_li 11 months ago
parent
commit
c5925a6936
  1. 11
      src/api/wms/balance/index.ts
  2. 4
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  3. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

11
src/api/wms/balance/index.ts

@ -41,7 +41,16 @@ export const getBalancePage = async (params) => {
return await request.get({ url: `/wms/balance/page`, params }) return await request.get({ url: `/wms/balance/page`, params })
} }
} }
// 查询库存余额列表
export const getBalancePageReturn= async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/senior', data })
} else {
return await request.get({ url: `/wms/balance/pageReturn`, params })
}
}
// 查询库存余额列表增加物品筛选条件 // 查询库存余额列表增加物品筛选条件
export const getBalanceItemPage = async (params) => { export const getBalanceItemPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {

4
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -217,6 +217,10 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{
key: 'warehouseCode',
value: 'defaultWarehouseCode',
isMainValue: true
}] }]
} }
} }

2
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -483,7 +483,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage, searchPage: BalanceApi.getBalancePageReturn,
searchCondition:[{ searchCondition:[{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

Loading…
Cancel
Save