Browse Source

采购退货

master
zhang_li 10 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 })
}
}
// 查询库存余额列表
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) => {
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',
value: 'TRUE',
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',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage,
searchPage: BalanceApi.getBalancePageReturn,
searchCondition:[{
key: 'available',
value: 'TRUE',

Loading…
Cancel
Save