Browse Source

返修成品和半成品筛选修改

master
zhaoxuebing 11 months ago
parent
commit
29ea8f7af5
  1. 13
      src/api/wms/balance/index.ts
  2. 5
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

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

@ -42,6 +42,17 @@ export const getBalancePage = async (params) => {
}
}
// 查询库存余额列表增加物品筛选条件
export const getBalanceItemPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/balance/seniorItems', data })
} else {
return await request.get({ url: `/wms/balance/pageItems`, params })
}
}
// 查询库存余额详情
export const getBalance = async (id: number) => {
return await request.get({ url: `/wms/balance/get?id=` + id })
@ -70,4 +81,4 @@ export const exportBalance = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/balance/get-import-template' })
}
}

5
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -38,6 +38,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
import * as BomApi from "@/api/wms/bom";
import {getBalanceItemPage} from "@/api/wms/balance";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
@ -598,7 +599,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage,
searchPage: BalanceApi.getBalanceItemPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
@ -617,7 +618,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage,
searchPage: BalanceApi.getBalanceItemPage,
searchCondition: [{
key: 'available',
value: 'TRUE',

Loading…
Cancel
Save