diff --git a/src/api/inventory/invPlace.js b/src/api/inventory/invPlace.js
index b53863bd..f0dac60f 100644
--- a/src/api/inventory/invPlace.js
+++ b/src/api/inventory/invPlace.js
@@ -40,6 +40,14 @@ export function getInvProductInfo(params) {
});
}
+export function getCheckInvProductInfo(params) {
+ return axios({
+ url: "/spms/inv/product/getCheckInvProductInfo",
+ method: "get",
+ params: params
+ });
+}
+
export function getInvProductOrderInfo(params) {
return axios({
url: "/spms/inv/product/getInvProductOrderInfo",
diff --git a/src/views/inventory/InvPlaceChangeModify.vue b/src/views/inventory/InvPlaceChangeModify.vue
index 1108560b..b4707165 100644
--- a/src/views/inventory/InvPlaceChangeModify.vue
+++ b/src/views/inventory/InvPlaceChangeModify.vue
@@ -93,6 +93,7 @@
+
@@ -104,7 +105,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, getCheckInvProductInfo} from "@/api/inventory/invPlace";
export default {
props: {
@@ -125,6 +126,7 @@ export default {
code: null,
},
list: [],
+ orderId: null,
codeArray: [],
invList: [],
spaceList: [],
@@ -153,14 +155,12 @@ 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
+ changeSpaceCode: this.formData.changeSpaceCode,
+ type: 3, //按物资上架
+ orderId: this.orderId,
};
bindInvSpace(params).then((res) => {
if (res.code === 20000) {
@@ -196,7 +196,6 @@ export default {
item.invSpaceName = null;
})
this.getSpaceList();
- this.getChangeSpaceList();
},
//查询当前货位
querySearchAsync(queryString, cb) {
@@ -239,6 +238,7 @@ export default {
invProduct.invSpaceCode = item.code;
invProduct.invSpaceName = item.name;
});
+ this.getChangeSpaceList();
},
handleChangeSelect(item) {
@@ -276,7 +276,14 @@ export default {
status: 1
};
getInvSpaceList(params).then((res) => {
- this.changeSpaceList = res.data.list || [];
+ var list=[];
+ console.log(this.formData.invSpaceName)
+ for (var i=0;i {
- if (res.data !== null) {
- res.data.forEach((item) => {
- this.list.push(item);
+ getCheckInvProductInfo(params).then((res) => {
+ if (res.code == 20000) {
+ this.orderId=res.data;
+ getInvPlaceOrderDetailList({orderId:this.orderId}).then((res) => {
+ this.list=res.data.list;
});
} else {
- this.$message.warning("未查询到产品信息");
+ this.$message.warning(res.message);
}
})
},