|
|
@ -85,9 +85,9 @@ |
|
|
|
|
|
|
|
|
<!-- 底部操作按钮 --> |
|
|
<!-- 底部操作按钮 --> |
|
|
<div class="bottom-actions"> |
|
|
<div class="bottom-actions"> |
|
|
<button class="action-btn secondary" @click="confirmIssue" :disabled="scannedLabels.length === 0"> |
|
|
|
|
|
|
|
|
<el-button class="action-btn secondary" :loading="loading" @click="confirmIssue" :disabled="scannedLabels.length === 0"> |
|
|
确定 |
|
|
确定 |
|
|
</button> |
|
|
|
|
|
|
|
|
</el-button> |
|
|
<!-- <button class="action-btn secondary" style="margin-left: 10px;"> |
|
|
<!-- <button class="action-btn secondary" style="margin-left: 10px;"> |
|
|
打印 |
|
|
打印 |
|
|
</button> --> |
|
|
</button> --> |
|
|
@ -118,6 +118,7 @@ export default { |
|
|
requiredQty: 0, |
|
|
requiredQty: 0, |
|
|
issuedQty: 0, |
|
|
issuedQty: 0, |
|
|
itemNo: '', |
|
|
itemNo: '', |
|
|
|
|
|
loading: false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -227,6 +228,7 @@ export default { |
|
|
materialCode: l.materialCode, |
|
|
materialCode: l.materialCode, |
|
|
})), |
|
|
})), |
|
|
} |
|
|
} |
|
|
|
|
|
this.loading = true |
|
|
confirmDirectIssue(params) |
|
|
confirmDirectIssue(params) |
|
|
.then(({ data }) => { |
|
|
.then(({ data }) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
@ -238,6 +240,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
this.$message.error('发料失败') |
|
|
this.$message.error('发料失败') |
|
|
|
|
|
}).finally(()=>{ |
|
|
|
|
|
this.loading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
initFromRoute() { |
|
|
initFromRoute() { |
|
|
|