Browse Source

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

wms3.0_pda
lijuncheng 1 year 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 = {}; let detail = {};
Object.assign(detail, data) Object.assign(detail, data)
detail.balanceQty = Number(detail.qty) detail.balanceQty = Number(detail.qty)
detail.qty = Number(detail.qty);
detail.stdPackQty = Number(pack.stdPackQty) detail.stdPackQty = Number(pack.stdPackQty)
detail.stdPackUnit = pack.stdPackUnit detail.stdPackUnit = pack.stdPackUnit
detail.handleQty =0; detail.handleQty =0;

4
pages/purchaseReturn/request/returnRequestCreate.vue

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

9
pages/putaway/request/putawayRequestCreate.vue

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

Loading…
Cancel
Save