From b663a8ef1cf91620ebcf8cc752f9c062955c59c5 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Thu, 2 Jan 2025 14:44:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=8E=B7=E5=8F=96=E5=BA=93=E4=BD=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/wm/inPlan/index.vue | 8 ++++--- .../wm/inPlan/wmsInPlanKnifeBackFormCmps.vue | 24 ++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/mes/wm/inPlan/index.vue b/src/views/mes/wm/inPlan/index.vue index fbc3a3b..192d716 100644 --- a/src/views/mes/wm/inPlan/index.vue +++ b/src/views/mes/wm/inPlan/index.vue @@ -405,8 +405,10 @@ export default { const params = { pageNum: 1, pageSize: 100, - // 物料名称 - itemName: areaName + // 库位名称 + areaName: areaName, + // 库区ID 立体库 + locationId: 222 } listArea(params).then(response => { this.areaList = response.rows; @@ -537,7 +539,7 @@ export default { this.form.planTypeCode = filter[0].code; this.form.planTypeName = filter[0].name; } else { - this.$message.error("系统错误,请联系管理员"); + this.$message.error("计划类型查找失败"); console.error("计划类型查找失败") return; } diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index dbb0047..22aef96 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -51,13 +51,18 @@ export default { }, }, methods: { - /** 获取库位列表 */ + /** + * 获取库位列表 + * @param areaName + */ getAreaList(areaName = "") { const params = { pageNum: 1, pageSize: 100, - // 物料名称 - itemName: areaName + // 库位名称 + areaName: areaName, + // 库区ID 立体库 + locationId: 222 } listArea(params).then(response => { this.areaList = response.rows; @@ -131,7 +136,7 @@ export default { this.inPlanTypeList = response.rows; }); }, - handleAreaSelectChange(){ + handleAreaSelectChange() { let result = this.areaList.filter(item => item.areaId == this.wmsInPlanDetailForm.cellId) this.queryParams.areaCode = result[0].areaCode @@ -249,16 +254,19 @@ export default { 库位包含物料 - - - + + + - +