|
|
@ -130,7 +130,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { scanHandlingUnitLabel, confirmInventoryMove } from '@/api/po/po.js'; |
|
|
|
|
|
|
|
|
import { scanHandlingUnitLabelForYiKu, confirmInventoryMove } from '@/api/po/po.js'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -213,12 +213,14 @@ export default { |
|
|
site: this.site, |
|
|
site: this.site, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
scanHandlingUnitLabel(params).then(({ data }) => { |
|
|
|
|
|
|
|
|
scanHandlingUnitLabelForYiKu(params).then(({ data }) => { |
|
|
if (data && data.code === 0 && data.data) { |
|
|
if (data && data.code === 0 && data.data) { |
|
|
const huInfo = data.data; |
|
|
const huInfo = data.data; |
|
|
this.processHandlingUnit(unitId, huInfo); |
|
|
this.processHandlingUnit(unitId, huInfo); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(data.msg || 'HandlingUnit不存在或查询失败'); |
|
|
|
|
|
|
|
|
this.$alert(data.msg || 'HandlingUnit不存在或查询失败', '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
this.$message.error('扫描失败'); |
|
|
this.$message.error('扫描失败'); |
|
|
|