diff --git a/src/views/Query/StockQuery/StockTransaction/index.vue b/src/views/Query/StockQuery/StockTransaction/index.vue index 281ee76..ce2b58e 100644 --- a/src/views/Query/StockQuery/StockTransaction/index.vue +++ b/src/views/Query/StockQuery/StockTransaction/index.vue @@ -222,7 +222,7 @@ const state = reactive({ locDecList2: [] as any, locDecListAll: [] as any, EVENTOUT: ['BarCodeToTransferIn','调拨出库','MES消耗','auxiliaryStockOut','CompletedShipRequestZL','CompletedShipRequestBL','CompletedShipRequestLL','CompletedShipRequestNLCC'], - EVENTIN: ['AlloctionStockIn','FGStockIn','ReturnStockIn','NormalStockInForSDK','NoChargeStockIn','NoChargeStockIn',], + EVENTIN: ['AlloctionStockIn','FGStockIn','ReturnStockIn','NormalStockInForSDK','NoChargeStockIn','NoChargeStockIn','NormalStockInDelivery'], queryParams: { diff --git a/src/views/stockIn/NoPoStockIn/index.vue b/src/views/stockIn/NoPoStockIn/index.vue index 892903f..e0b394b 100644 --- a/src/views/stockIn/NoPoStockIn/index.vue +++ b/src/views/stockIn/NoPoStockIn/index.vue @@ -59,20 +59,20 @@ default-first-option @focus="getStorageSpec(scope.row.ERPLOCATION)" filterable >--> - + @@ -254,8 +254,8 @@ function handleQuery() { if (res.resultObj) { // 加载库位 if (res.resultObj.length > 0) { - getERPLocation() - //getStorageSpec(res.resultObj[0].ERPFACTORY) + getERPLocation(res.resultObj[0].ERPFACTORY) + getStorageSpec(res.resultObj[0].ERPFACTORY) } state.MATERIALRECEIVEACT = res.resultObj } else { @@ -374,38 +374,26 @@ function formatDate(date: any) { return year + "-" + month + "-" + day; } function getStorageSpec(value: any) { - /*state.POCreateLocationList = [] + state.POCreateLocationList = [] getQueryList({ queryId: "GetLocationForCreatePO", - version: "00002", + version: "00001", params: { SITENAME: "SDK", - //ERPLOCATION: value + ERPLOCATION: value } as any, }).then((res: any) => { state.POCreateLocationList = res.data - })*/ - let erpLocation = JSON.parse(localStorage.get('orgNo')); - request({ - url: '/api/api/storage/getLocationNameForERPLocation', - method: 'post', - data: { - erpLocation: erpLocation, - SITENAME: 'SDK', - }, - }).then((res: any) => { - state.POCreateLocationList = res.resultObj; - }); + }) } -function getERPLocation() { - let erpLocation = JSON.parse(localStorage.get('orgNo')); +function getERPLocation(erpfactory: any) { getQueryList({ - queryId: "GetErpLocationList", - version: "WEB00001", + queryId: "GetERPLocationForCreatePO", + version: "00001", params: { - SITENAME: localStorage.get('siteName') || 'SDK', - ERPFACTORYNAME: erpLocation,//PO + SITENAME: "SDK", + ERPFACTORYNAME: erpfactory,//PO } as any, }).then((res: any) => { state.ERPLocationList = res.data diff --git a/src/views/stockIn/deliveryStockIn/index.vue b/src/views/stockIn/deliveryStockIn/index.vue index 13ae6fb..db00ba2 100644 --- a/src/views/stockIn/deliveryStockIn/index.vue +++ b/src/views/stockIn/deliveryStockIn/index.vue @@ -29,7 +29,7 @@ highlight-current-row row-key="id" @row-click="handle"> - + + + + @@ -883,6 +893,22 @@ function getERPLocation(erpfactory: any) { state.ERPLocationList = res.data }) } + +/** + * 货位卡顿处理 + * @param query + */ +function locatioNFilter(query : any) { + console.log(query) + let arr = state.AllLocationList.filter((item : any) => { + return (item.LABEL.includes(query) || item.VALUE.includes(query)) + }) + if (arr.length > 50) { + state.LocationList = arr.slice(0, 50) + } else { + state.LocationList = arr + } +}