From bb2173be928408e05ab7d5dce71d0d565694d42a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com>
Date: Fri, 5 May 2023 20:31:30 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=B4=A8=E6=91=86=E6=94=BE=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/inventory/invPlace.js | 9 ++++++
src/views/inventory/InvPlace.vue | 24 ++++++++-------
src/views/inventory/InvProductPlaceModify.vue | 29 +++++++++++--------
3 files changed, 39 insertions(+), 23 deletions(-)
diff --git a/src/api/inventory/invPlace.js b/src/api/inventory/invPlace.js
index 184d0421..668f65e3 100644
--- a/src/api/inventory/invPlace.js
+++ b/src/api/inventory/invPlace.js
@@ -39,3 +39,12 @@ export function getInvPlaceOrderList(params) {
params: params
});
}
+
+export function getInvPlaceOrderDetailList(params) {
+ return axios({
+ url: "/spms/inv/product/getInvPlaceOrderDetailList",
+ method: "get",
+ params: params
+ });
+}
+
diff --git a/src/views/inventory/InvPlace.vue b/src/views/inventory/InvPlace.vue
index a50f5810..c38cf114 100644
--- a/src/views/inventory/InvPlace.vue
+++ b/src/views/inventory/InvPlace.vue
@@ -112,22 +112,24 @@
border>
-
-
-
-
-
- {{ typeNames[scope.row.type] }}
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
-
+
+
@@ -87,7 +89,7 @@
import {getInvListByUser} from "@/api/system/invWarehouse";
import {getInvSpaceList} from "@/api/inventory/invSpace";
import {isBlank} from "@/utils/strUtil";
-import {bindInvSpace, getInvProductInfo} from "@/api/inventory/invPlace";
+import {bindInvSpace, getInvPlaceOrderDetailList, getInvProductInfo} from "@/api/inventory/invPlace";
export default {
props: {
@@ -105,6 +107,7 @@ export default {
invSpaceName: null,
code: null,
},
+ orderId: null,
list: [],
codeArray: [],
invList: [],
@@ -132,14 +135,11 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- this.list.forEach((item) => {
- this.codeArray.push(item.code);
- });
let params = {
invCode: this.formData.invCode,
invSpaceCode: this.formData.invSpaceCode,
type: 1, //按物资上架
- codeArray: this.codeArray
+ orderId: this.orderId,
};
bindInvSpace(params).then((res) => {
if (res.code === 20000) {
@@ -162,6 +162,7 @@ export default {
invSpaceName: null,
code: null,
};
+ this.orderId=null;
this.codeArray = [];
this.list = [];
//光标切回货位框
@@ -233,7 +234,7 @@ export default {
}
if (isBlank(this.formData.invSpaceCode)) {
- this.$message.error('当前货位不能为空');
+ this.$message.error('上架货位不能为空');
return;
}
@@ -244,16 +245,20 @@ export default {
},
getInvProductInfo(code) {
let params = {
+ orderId: this.orderId,
invCode: this.formData.invCode,
- code: code
+ code: code,
+ invSpaceCode: this.formData.invSpaceCode,
};
getInvProductInfo(params).then((res) => {
- if (res.data !== null) {
- res.data.forEach((item) => {
- this.list.push(item);
+ if (res.code == 20000) {
+ debugger
+ this.orderId=res.data;
+ getInvPlaceOrderDetailList({orderId:this.orderId}).then((res) => {
+ this.list=res.data.list;
});
} else {
- this.$message.warning("未查询到产品信息");
+ this.$message.warning(res.message);
}
})
},