diff --git a/src/api/inout/splitInv.js b/src/api/inout/splitInv.js index 0e1ab65b..4fbcd016 100644 --- a/src/api/inout/splitInv.js +++ b/src/api/inout/splitInv.js @@ -10,6 +10,15 @@ export function splitFifoPage(query) { } +export function getCodeList(query) { + return axios({ + url: "/udiwms/ioSplit/inv/codeList", + method: "get", + params: query + }); +} + + export function remindSet(query) { return axios({ url: "/udiwms/ioSplit/inv/remindSet", diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue index c7164141..c8f206b1 100644 --- a/src/views/collect/IoCreateOrder.vue +++ b/src/views/collect/IoCreateOrder.vue @@ -334,6 +334,7 @@ import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace' import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments' import {filterWorkOptimize} from '@/api/basic/workPlace/sysWorkplaceManage' import {getByCode} from "@/api/basic/workPlace/SysWorkplaceQueue"; +import { getCodeList } from '@/api/inout/splitInv' // 常量定义 const SCAN_TIMEOUT = 1000 @@ -616,6 +617,7 @@ export default { redMesgOld: false, productName: null, orderStatus: false,//是否调用子组件 + workPlaceQueueCode:"" } }, components: { @@ -1694,8 +1696,18 @@ export default { this.errVisible = false this.checkSuccess = true + // this.workPlaceQueueCode = this.scanCode if (this.getDMHotskeyValue(this.scanCode)) { - return + //获取当前工位的所有码 然后批量扫入 + getCodeList({workPlaceQueueCode:this.scanCode}).then((response) => { + if (response.code === 20000) { + let params = { + codeList: response.data + } + this.batchVailCode(params) + return + } + }); } if (this.splitType == 'out') {