From b9128a8b8d30864c90ad3afb89eeba194b1a4a32 Mon Sep 17 00:00:00 2001
From: 18110972313 <780768673@qq.com>
Date: Thu, 22 May 2025 16:57:49 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0=E8=B4=A7=E4=BD=8D?=
=?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../StockQuery/StockTransaction/index.vue | 2 +-
src/views/stockIn/NoPoStockIn/index.vue | 48 +++++++------------
src/views/stockIn/deliveryStockIn/index.vue | 28 ++++++++++-
3 files changed, 46 insertions(+), 32 deletions(-)
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">
-
+
@@ -37,6 +37,16 @@
+
+
+
+
+
+
+
@@ -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
+ }
+}