|
|
@ -52,7 +52,6 @@ |
|
|
|
<script> |
|
|
|
import { |
|
|
|
putawayRequestSubmit, |
|
|
|
putawayRecordSubmit, |
|
|
|
validateItemAndLocation, |
|
|
|
getPutawayRecommendLocation |
|
|
|
} from '@/api/request2.js'; |
|
|
@ -61,6 +60,7 @@ |
|
|
|
goHome, |
|
|
|
updateTitle, |
|
|
|
getCurrDateTime, |
|
|
|
deepCopyData, |
|
|
|
getPackingNumberAndBatchByList |
|
|
|
} from '@/common/basic.js'; |
|
|
|
import { |
|
|
@ -286,7 +286,7 @@ |
|
|
|
putawayRequestSubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购上架申请<br>" + res.data, ) |
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成原料上架申请<br>" + res.data, ) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
} |
|
|
@ -308,10 +308,9 @@ |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
if (detail.scaned) { |
|
|
|
var subItem = {}; |
|
|
|
Object.assign(subItem, detail) |
|
|
|
var subItem = deepCopyData(detail); |
|
|
|
subItem.fromLocationCode = detail.locationCode; |
|
|
|
subItem.qty=detail.handleQty; |
|
|
|
subItem.qty = detail.handleQty!=0? detail.handleQty:detail.qty; |
|
|
|
subItem.package = null; |
|
|
|
subList.push(subItem) |
|
|
|
} |
|
|
|