Browse Source

2025-09-01 pda 跨区调拨优化

master
fengyuan_yang 5 months ago
parent
commit
3b4f57da45
  1. 9
      src/views/modules/cross-area-transfer/crossAreaTransfer.vue

9
src/views/modules/cross-area-transfer/crossAreaTransfer.vue

@ -293,7 +293,6 @@ export default {
} }
return return
} }
if (targetLocation.length < 2) { if (targetLocation.length < 2) {
this.$message.warning('目标货位格式不正确') this.$message.warning('目标货位格式不正确')
if (this.$refs.locationInput) { if (this.$refs.locationInput) {
@ -301,7 +300,6 @@ export default {
} }
return return
} }
// //
if (this.transferMode === 'label' && targetLocation === this.labelInfo.locationId) { if (this.transferMode === 'label' && targetLocation === this.labelInfo.locationId) {
this.$message.warning('目标库位不能与当前库位相同') this.$message.warning('目标库位不能与当前库位相同')
@ -310,7 +308,6 @@ export default {
} }
return return
} }
if (this.transferMode === 'location' && targetLocation === this.scanCode.trim()) { if (this.transferMode === 'location' && targetLocation === this.scanCode.trim()) {
this.$message.warning('目标库位不能与源库位相同') this.$message.warning('目标库位不能与源库位相同')
if (this.$refs.locationInput) { if (this.$refs.locationInput) {
@ -318,19 +315,15 @@ export default {
} }
return return
} }
const site = localStorage.getItem('site') const site = localStorage.getItem('site')
const warehouseId = localStorage.getItem('selectedWarehouse') const warehouseId = localStorage.getItem('selectedWarehouse')
const operator = localStorage.getItem('userName') const operator = localStorage.getItem('userName')
if (!site || !warehouseId || !operator) { if (!site || !warehouseId || !operator) {
this.$message.error('缺少必要参数,请重新登录') this.$message.error('缺少必要参数,请重新登录')
return return
} }
try { try {
this.loading = true this.loading = true
const params = { const params = {
scanCode: this.scanCode.trim(), scanCode: this.scanCode.trim(),
transferMode: this.transferMode, transferMode: this.transferMode,
@ -341,9 +334,7 @@ export default {
warehouseId: warehouseId, warehouseId: warehouseId,
operator: operator operator: operator
} }
const { data } = await saveCrossAreaTransfer(params) const { data } = await saveCrossAreaTransfer(params)
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message.success('调拨成功') this.$message.success('调拨成功')
this.resetForm() this.resetForm()

Loading…
Cancel
Save