diff --git a/src/views/stockIn/AllocateStockIn/index.vue b/src/views/stockIn/AllocateStockIn/index.vue index c7eb7d8..a9c2922 100644 --- a/src/views/stockIn/AllocateStockIn/index.vue +++ b/src/views/stockIn/AllocateStockIn/index.vue @@ -20,6 +20,7 @@ @@ -32,24 +33,7 @@ - - + { if (day < 10) day = '0' + day state.commitDate = year + '-' + moth + '-' + day - WareList() - getStorageSpecLocationList() + // WareList() + // getStorageSpecLocationList() }) /*****************************************************下面方法******************************************/ @@ -499,9 +483,9 @@ function getBoxList() { // state.formData.ERPRECEIVELOCATION = res.data[0]?.ERPRECEIVELOCATION state.formData.SHIPREQUESTSTATE = res.data[0]?.SHIPREQUESTSTATE - /*if(state.formData.ERPRECEIVEFACTORY) { + if(state.formData.ERPRECEIVEFACTORY) { WareList(state.formData.ERPRECEIVEFACTORY) - }*/ + } }) .catch((error: any) => { @@ -512,14 +496,14 @@ function getBoxList() { // getDetailList() // 之前是列表取的出库单详情 getAllPackingList() } -async function WareList() { +async function WareList(firstLocation: any) { try { - let erpLocation = JSON.parse(localStorage.getItem('orgNo')) + // let erpLocation = JSON.parse(localStorage.getItem('orgNo')) const res = await getQueryList({ queryId: 'GetErpLocationList', version: 'WEB00001', params: { - ERPFACTORYNAME: erpLocation, + ERPFACTORYNAME: firstLocation, SITENAME: 'SDK' }, pageNum: 1, @@ -575,17 +559,8 @@ function getAllPackingList() { }) } -function handleOuterClick(query: any) { - //StorageList(state.formData.ERPRECEIVELOCATION) - let arr = state.locDecListAll.filter((item: any) => { - return item.DESCRIPTION.includes(query) || item.STORAGENAME.includes(query) - }) - // console.log(arr) - if (arr.length > 50) { - state.StorageSelectList = arr.slice(0, 50) - } else { - state.StorageSelectList = arr - } +function handleOuterClick() { + StorageList(state.formData.ERPRECEIVELOCATION) } async function StorageList(firstLocation: any) { @@ -847,7 +822,7 @@ function stockIn() { console.log(res, 'res') }) } - +/* async function getStorageSpecLocationList() { let erpLocation = JSON.parse(localStorage.getItem('orgNo')); request({ @@ -861,7 +836,7 @@ async function getStorageSpecLocationList() { state.locDecListAll = res.resultObj; console.log(state.locDecListAll) }); -} +}*/