|
|
@ -134,7 +134,7 @@ |
|
|
<laber style="margin-left: 5px;">条码数:{{detailList.length}}</laber> |
|
|
<laber style="margin-left: 5px;">条码数:{{detailList.length}}</laber> |
|
|
</div> |
|
|
</div> |
|
|
<button class="action-btn primary" style="flex: 0.25; margin: 0;" @click="handleCompleteAssembly" :disabled="completeAssemblyLoading"> |
|
|
<button class="action-btn primary" style="flex: 0.25; margin: 0;" @click="handleCompleteAssembly" :disabled="completeAssemblyLoading"> |
|
|
{{ completeAssemblyLoading ? '处理中...' : '完成组托' }} |
|
|
|
|
|
|
|
|
{{ completeAssemblyLoading ? '处理中...' : '提交分拣' }} |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="detail-table"> |
|
|
<div class="detail-table"> |
|
|
@ -1257,15 +1257,15 @@ export default { |
|
|
palletId: this.palletCode |
|
|
palletId: this.palletCode |
|
|
}).then(({ data }) => { |
|
|
}).then(({ data }) => { |
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
this.$message.success('组托完成,数据已推送到WCS系统'); |
|
|
|
|
|
|
|
|
this.$message.success('数据已推送到WCS系统'); |
|
|
// 清空页面数据,初始化页面 |
|
|
// 清空页面数据,初始化页面 |
|
|
this.resetPage(); |
|
|
|
|
|
|
|
|
// this.resetPage(); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(data.msg || '完成组托失败'); |
|
|
|
|
|
|
|
|
this.$message.error(data.msg || '本次分拣失败'); |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
console.error('完成组托失败:', error); |
|
|
|
|
|
this.$message.error('完成组托失败'); |
|
|
|
|
|
|
|
|
console.error('本次分拣失败:', error); |
|
|
|
|
|
this.$message.error('本次分拣失败'); |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
// 无论成功或失败,都要恢复按钮状态 |
|
|
// 无论成功或失败,都要恢复按钮状态 |
|
|
this.completeAssemblyLoading = false; |
|
|
this.completeAssemblyLoading = false; |
|
|
|