Browse Source

提交栈板

master
常熟吴彦祖 4 months ago
parent
commit
3f8b0e6caa
  1. 67
      src/views/modules/automatedWarehouse/palletPacking.vue

67
src/views/modules/automatedWarehouse/palletPacking.vue

@ -333,7 +333,7 @@
<!-- Call栈板模态框 --> <!-- Call栈板模态框 -->
<el-dialog <el-dialog
title="Call栈板"
title="调用空托盘"
:visible.sync="callPalletModalVisible" :visible.sync="callPalletModalVisible"
width="90%" width="90%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -343,17 +343,6 @@
:append-to-body="true" :append-to-body="true"
> >
<div class="call-modal-content"> <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"> <div class="input-group">
<label class="input-label">目标站点</label> <label class="input-label">目标站点</label>
@ -474,16 +463,11 @@ export default {
}); });
}, },
// Call -
// Call -
handleCallPallet() { handleCallPallet() {
if (!this.palletCode) {
this.$message.error('请先扫描栈板编码');
return;
}
this.callPalletModalVisible = true; this.callPalletModalVisible = true;
this.selectedCallStation = ''; this.selectedCallStation = '';
// AGV // AGV
getAgvStations({}).then(({ data }) => { getAgvStations({}).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {
@ -740,12 +724,12 @@ export default {
this.$message.error('请先扫描栈板'); this.$message.error('请先扫描栈板');
return; return;
} }
this.transportModalVisible = true; this.transportModalVisible = true;
this.selectedStartStation = ''; this.selectedStartStation = '';
this.selectedTargetStation = ''; this.selectedTargetStation = '';
this.targetStationOptions = []; this.targetStationOptions = [];
// AGV // AGV
getAgvStations({}).then(({ data }) => { getAgvStations({}).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {
@ -763,7 +747,7 @@ export default {
handleStartStationChange() { handleStartStationChange() {
this.selectedTargetStation = ''; this.selectedTargetStation = '';
this.targetStationOptions = []; this.targetStationOptions = [];
if (this.selectedStartStation) { if (this.selectedStartStation) {
getTargetStations({ getTargetStations({
startStation: this.selectedStartStation startStation: this.selectedStartStation
@ -827,18 +811,17 @@ export default {
callPalletToStation({ callPalletToStation({
site: this.site, site: this.site,
palletId: this.palletCode,
station: this.selectedCallStation station: this.selectedCallStation
}).then(({ data }) => { }).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {
this.$message.success('Call栈板任务创建成功');
this.$message.success('空托盘调用任务创建成功');
this.closeCallPalletModal(); this.closeCallPalletModal();
} else { } else {
this.$message.error(data.msg || 'Call栈板失败');
this.$message.error(data.msg || '调用空托盘失败');
} }
}).catch(error => { }).catch(error => {
console.error('Call栈板失败:', error);
this.$message.error('Call栈板失败');
console.error('调用空托盘失败:', error);
this.$message.error('调用空托盘失败');
}); });
}, },
@ -849,36 +832,6 @@ export default {
this.callStationOptions = []; 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() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {

Loading…
Cancel
Save