Browse Source

修改原料上架申请修改数量

wms3.0_pda
lijuncheng 10 months ago
parent
commit
d548a171da
  1. 1
      common/record.js
  2. 4
      pages/purchaseReturn/request/returnRequestCreate.vue
  3. 9
      pages/putaway/request/putawayRequestCreate.vue

1
common/record.js

@ -28,6 +28,7 @@ export function createDetailInfo(data, pack) {
let detail = {};
Object.assign(detail, data)
detail.balanceQty = Number(detail.qty)
detail.qty = Number(detail.qty);
detail.stdPackQty = Number(pack.stdPackQty)
detail.stdPackUnit = pack.stdPackUnit
detail.handleQty =0;

4
pages/purchaseReturn/request/returnRequestCreate.vue

@ -219,9 +219,9 @@
purchaseReturnRequestCreate(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成采购退货申请" + res.data, )
this.showCommitSuccessMessage("提交成功<br>生成采购退货申请<br>" + res.data)
} else {
this.showErrorMessage("提交失败"+res.msg)
this.showErrorMessage("提交失败["+res.msg+"]")
}
}).catch(error => {
uni.hideLoading()

9
pages/putaway/request/putawayRequestCreate.vue

@ -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)
}

Loading…
Cancel
Save