|
@ -86,7 +86,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- <win-scan-button @goScan='openScanPopup' v-if="itemList.length>0"></win-scan-button> --> |
|
|
<!-- <win-scan-button @goScan='openScanPopup' v-if="itemList.length>0"></win-scan-button> --> |
|
|
<winScanByPosition ref="scanPopup" @getScanResult='getScanResult'></winScanByPosition> |
|
|
<winScanByPosition ref="scanPopup" @getScanResult='getScanResult' codeType="4"></winScanByPosition> |
|
|
<com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' @afterRescanMessage='afterRescan' |
|
|
<com-message ref="comMessage" @afterCloseScanMessage='closeScanMessage' @afterRescanMessage='afterRescan' |
|
|
@afterCloseCommitMessage='closeCommitMessage'> |
|
|
@afterCloseCommitMessage='closeCommitMessage'> |
|
|
</com-message> |
|
|
</com-message> |
|
@ -152,7 +152,8 @@ |
|
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
this.dataContent = result; |
|
|
this.dataContent = result; |
|
|
result.qty =result.stdPackQty; |
|
|
result.qty = result.stdPackQty; |
|
|
|
|
|
result.defaultHandleQty = result.qty |
|
|
this.itemList.push(result) |
|
|
this.itemList.push(result) |
|
|
this.$forceUpdate() |
|
|
this.$forceUpdate() |
|
|
|
|
|
|
|
@ -206,13 +207,13 @@ |
|
|
this.itemList.forEach(res => { |
|
|
this.itemList.forEach(res => { |
|
|
var data = { |
|
|
var data = { |
|
|
remark: "", |
|
|
remark: "", |
|
|
qty:res.qty, |
|
|
qty: res.qty, |
|
|
itemCode: res.partCode, |
|
|
itemCode: res.partCode, |
|
|
itemName: res.partName, |
|
|
itemName: res.partName, |
|
|
itemDesc1: res.itemDesc2, |
|
|
itemDesc1: res.itemDesc2, |
|
|
uom: res.basicUom, |
|
|
uom: res.basicUom, |
|
|
stdPackQty: res.stdPackQty, |
|
|
stdPackQty: res.stdPackQty, |
|
|
toLocationCode: res.locationCode, |
|
|
toLocationCode: res.locationCode, |
|
|
prodLine: null, |
|
|
prodLine: null, |
|
|
requestStatus: 1, |
|
|
requestStatus: 1, |
|
|
issuedQty: res.qty, |
|
|
issuedQty: res.qty, |
|
@ -220,7 +221,7 @@ |
|
|
status: 1, |
|
|
status: 1, |
|
|
positionCode: this.dataContent.code, |
|
|
positionCode: this.dataContent.code, |
|
|
recommendType: 0, |
|
|
recommendType: 0, |
|
|
boxQty: res.qty |
|
|
boxQty: res.qty |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
param.details.push(data) |
|
|
param.details.push(data) |
|
@ -231,16 +232,11 @@ |
|
|
|
|
|
|
|
|
qtyChanged(value, item, index) { |
|
|
qtyChanged(value, item, index) { |
|
|
if (value <= 0) { |
|
|
if (value <= 0) { |
|
|
|
|
|
item.qty = item.defaultHandleQty |
|
|
|
|
|
this.$refs['comNumberBox_' + index][0].setValue(item.qty); |
|
|
this.showMessage('发料数量不能小于或等于0') |
|
|
this.showMessage('发料数量不能小于或等于0') |
|
|
item.handledQty = item.defaultHandleQty |
|
|
|
|
|
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
// else if (value > item.defaultHandleQty) { |
|
|
|
|
|
// item.handledQty = item.defaultHandleQty |
|
|
|
|
|
// this.showMessage('发料数量不能大于库存数量:' + item.handledQty) |
|
|
|
|
|
// this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); |
|
|
|
|
|
// } |
|
|
|
|
|
}, |
|
|
}, |
|
|
showMessage(message) { |
|
|
showMessage(message) { |
|
|
this.$refs.comMessage.showMessage(message); |
|
|
this.$refs.comMessage.showMessage(message); |
|
|