diff --git a/src/api/system/invSubWarehouse.js b/src/api/system/invSubWarehouse.js index ef5eadb9..398ac2b4 100644 --- a/src/api/system/invSubWarehouse.js +++ b/src/api/system/invSubWarehouse.js @@ -94,6 +94,16 @@ export function findLyInv(query) { } +export function findSgInv(query) { + return axios({ + url: "/spms/inv/warehouse/findSgInv", + method: "get", + params: query + }); +} + + + export function filterSubByInv(query) { return axios({ url: "/spms/inv/warehouse/findByUser", diff --git a/src/views/purchase/purApply/purApplyEditDiaolog.vue b/src/views/purchase/purApply/purApplyEditDiaolog.vue index 4d5bda64..66c3a7d4 100644 --- a/src/views/purchase/purApply/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApply/purApplyEditDiaolog.vue @@ -213,7 +213,7 @@ import { addApplyId, updateDetail } from "@/api/purchase/purApply"; -import {filterGroupBySpuse, filterSubByInv} from "@/api/system/invSubWarehouse"; +import {filterGroupBySpuse, filterSubByInv, findSgInv} from "@/api/system/invSubWarehouse"; import {addPlanId} from "@/api/purchase/purPlan"; import SelectRecelveListDialog from "@/views/inout/receive/selectReveiceListDialog"; import {parseTime} from "@/utils/coTools"; @@ -454,7 +454,7 @@ export default { }); }, rowChange(val) { - if (this.currentRow != null){ + if (this.currentRow != null) { updateDetail(this.currentRow); } this.currentRow = val; @@ -556,11 +556,8 @@ export default { findSubInvs() { this.subInvList = []; - let query = { - filter: 3, - spUse: true, - }; - filterGroupBySpuse(query) + let query = {}; + findSgInv(query) .then((response) => { this.subInvList = response.data || []; if (this.subInvList != null && this.subInvList.length == 1) { diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue index 4a201c0e..e5d7ee50 100644 --- a/src/views/system/dept/invWarehouse.vue +++ b/src/views/system/dept/invWarehouse.vue @@ -2,14 +2,14 @@