|
|
|
@ -94,6 +94,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
<button class="btn-split" @click="confirmSplit" :disabled="!canSplit || isSplitting"> |
|
|
|
{{ isSplitting ? '拆分中...' : '拆分' }} |
|
|
|
@ -213,7 +214,7 @@ export default { |
|
|
|
// 确认拆分 |
|
|
|
confirmSplit() { |
|
|
|
if (this.isSplitting) return; |
|
|
|
|
|
|
|
|
|
|
|
const splitCnt = parseInt(this.splitCount); |
|
|
|
const splitQty = parseFloat(this.splitQuantity); |
|
|
|
const currentQty = parseFloat(this.currentLabel.qtyOnHand); |
|
|
|
@ -231,9 +232,9 @@ export default { |
|
|
|
this.$message.warning('拆分总数量必须小于当前数量'); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.isSplitting = true; |
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
buNo: this.currentLabel.buNo, |
|
|
|
|