From 3f8b0e6caa5a4185170240b2d8aa53c69d0d4be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Mon, 22 Sep 2025 17:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A0=88=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automatedWarehouse/palletPacking.vue | 67 +++---------------- 1 file changed, 10 insertions(+), 57 deletions(-) diff --git a/src/views/modules/automatedWarehouse/palletPacking.vue b/src/views/modules/automatedWarehouse/palletPacking.vue index 69aea12..8c2669d 100644 --- a/src/views/modules/automatedWarehouse/palletPacking.vue +++ b/src/views/modules/automatedWarehouse/palletPacking.vue @@ -333,7 +333,7 @@
- -
- - -
-
@@ -474,16 +463,11 @@ export default { }); }, - // Call栈板 - 选择站点 + // Call栈板 - 调用空托盘 handleCallPallet() { - if (!this.palletCode) { - this.$message.error('请先扫描栈板编码'); - return; - } - this.callPalletModalVisible = true; this.selectedCallStation = ''; - + // 获取AGV站点列表 getAgvStations({}).then(({ data }) => { if (data.code === 0) { @@ -740,12 +724,12 @@ export default { this.$message.error('请先扫描栈板'); return; } - + this.transportModalVisible = true; this.selectedStartStation = ''; this.selectedTargetStation = ''; this.targetStationOptions = []; - + // 获取AGV站点列表 getAgvStations({}).then(({ data }) => { if (data.code === 0) { @@ -763,7 +747,7 @@ export default { handleStartStationChange() { this.selectedTargetStation = ''; this.targetStationOptions = []; - + if (this.selectedStartStation) { getTargetStations({ startStation: this.selectedStartStation @@ -827,18 +811,17 @@ export default { callPalletToStation({ site: this.site, - palletId: this.palletCode, station: this.selectedCallStation }).then(({ data }) => { if (data.code === 0) { - this.$message.success('Call栈板任务创建成功'); + this.$message.success('空托盘调用任务创建成功'); this.closeCallPalletModal(); } else { - this.$message.error(data.msg || 'Call栈板失败'); + this.$message.error(data.msg || '调用空托盘失败'); } }).catch(error => { - console.error('Call栈板失败:', error); - this.$message.error('Call栈板失败'); + console.error('调用空托盘失败:', error); + this.$message.error('调用空托盘失败'); }); }, @@ -849,36 +832,6 @@ export default { this.callStationOptions = []; }, - // 确认Call栈板 - confirmCallPallet() { - if (!this.selectedCallStation) { - this.$message.error('请选择站点'); - return; - } - - callPalletToStation({ - site: this.site, - palletId: this.palletCode, - targetStation: this.selectedCallStation - }).then(({ data }) => { - if (data.code === 0) { - this.$message.success('Call栈板成功'); - this.closeCallPalletModal(); - } else { - this.$message.error(data.msg || 'Call栈板失败'); - } - }).catch(error => { - console.error('Call栈板失败:', error); - this.$message.error('Call栈板失败'); - }); - }, - - // 关闭Call栈板模态框 - closeCallPalletModal() { - this.callPalletModalVisible = false; - this.selectedCallStation = ''; - this.callStationOptions = []; - }, }, mounted() { this.$nextTick(() => {