|
|
|
@ -333,7 +333,7 @@ |
|
|
|
|
|
|
|
<!-- Call栈板模态框 --> |
|
|
|
<el-dialog |
|
|
|
title="Call栈板" |
|
|
|
title="调用空托盘" |
|
|
|
:visible.sync="callPalletModalVisible" |
|
|
|
width="90%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
@ -343,17 +343,6 @@ |
|
|
|
:append-to-body="true" |
|
|
|
> |
|
|
|
<div class="call-modal-content"> |
|
|
|
<!-- 栈板号(只读) --> |
|
|
|
<div class="input-group"> |
|
|
|
<label class="input-label">栈板号</label> |
|
|
|
<el-input |
|
|
|
v-model="palletCode" |
|
|
|
placeholder="栈板号" |
|
|
|
class="form-input" |
|
|
|
readonly |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 目标站点选择 --> |
|
|
|
<div class="input-group"> |
|
|
|
<label class="input-label">目标站点</label> |
|
|
|
@ -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(() => { |
|
|
|
|