|
|
|
@ -85,7 +85,7 @@ |
|
|
|
|
|
|
|
<!-- 底部操作按钮 --> |
|
|
|
<div class="bottom-actions"> |
|
|
|
<el-button class="action-btn secondary" :loading="loading" @click="confirmIssue" :disabled="scannedLabels.length === 0"> |
|
|
|
<el-button class="action-btn secondary" :loading="loading" @click="confirmIssue"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
<!-- <button class="action-btn secondary" style="margin-left: 10px;"> |
|
|
|
@ -164,12 +164,15 @@ export default { |
|
|
|
this.scannedLabels.push({ |
|
|
|
id: Date.now(), |
|
|
|
labelCode, |
|
|
|
componentPartNo: data.labelInfo.materialCode, |
|
|
|
componentPartNo: data.labelInfo.partNo, |
|
|
|
quantity: data.labelInfo.availableQty, |
|
|
|
batchNo: data.labelInfo.batchNo, |
|
|
|
warehouseId: data.labelInfo.warehouseId, |
|
|
|
locationId: data.labelInfo.locationId, |
|
|
|
wdrNo: data.labelInfo.wdrNo |
|
|
|
}) |
|
|
|
console.log(this.scannedLabels); |
|
|
|
|
|
|
|
this.$message.success('扫描成功') |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg || '标签验证失败') |
|
|
|
@ -208,11 +211,12 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
confirmIssue() { |
|
|
|
console.log('1231', localStorage.getItem('userName')) |
|
|
|
if (this.scannedLabels.length === 0) { |
|
|
|
this.$message.warning('请先扫描材料标签') |
|
|
|
return |
|
|
|
} |
|
|
|
console.log('1231', localStorage.getItem('userName')) |
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
@ -229,6 +233,7 @@ export default { |
|
|
|
warehouseId: l.warehouseId, |
|
|
|
locationId: l.locationId, |
|
|
|
materialCode: l.materialCode, |
|
|
|
wdrNo: l.wdrNo |
|
|
|
})), |
|
|
|
} |
|
|
|
this.loading = true |
|
|
|
|