diff --git a/src/views/modules/production/productionInboundStorage.vue b/src/views/modules/production/productionInboundStorage.vue index 6020f88..3a2e445 100644 --- a/src/views/modules/production/productionInboundStorage.vue +++ b/src/views/modules/production/productionInboundStorage.vue @@ -338,9 +338,8 @@ export default { confirmInboundStorage(params).then(({ data }) => { if (data && data.code === 0) { this.$message.success('操作成功'); - this.validateAndAddLabel(this.materialInfo.inboundNo); this.showLocationDialog = false; - //this.$router.back(); + this.$router.back(); } else { this.$message.error(data.msg || '操作失败'); } diff --git a/src/views/modules/purchase-inbound/inboundStorage.vue b/src/views/modules/purchase-inbound/inboundStorage.vue index 9e479ff..c775c92 100644 --- a/src/views/modules/purchase-inbound/inboundStorage.vue +++ b/src/views/modules/purchase-inbound/inboundStorage.vue @@ -337,16 +337,15 @@ export default { }; confirmInboundStorage(params).then(({ data }) => { if (data && data.code === 0) { - this.$message.success('操作成功'); - this.validateAndAddLabel(this.materialInfo.inboundNo); - this.showLocationDialog = false; - //this.$router.back(); + this.$message.success('操作成功') + this.showLocationDialog = false + this.$router.back() } else { - this.$message.error(data.msg || '操作失败'); + this.$message.error(data.msg || '操作失败') } }).catch(error => { - console.error('上架失败:', error); - this.$message.error('操作失败'); + console.error('上架失败:', error) + this.$message.error('操作失败') }); },