Browse Source

修改客户退货和报废出库记录修改数量

wms3.0_pda
lijuncheng 10 months ago
parent
commit
7f6036b54d
  1. 38
      pages/customerReturn/record/returnRecord.vue
  2. 41
      pages/scrap/record/scrapRecord.vue

38
pages/customerReturn/record/returnRecord.vue

@ -56,7 +56,8 @@
import { import {
goHome, goHome,
updateTitle, updateTitle,
getPackingNumberAndBatchByList getPackingNumberAndBatchByList,
deepCopyData
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -323,27 +324,32 @@
if (detail.scaned) { if (detail.scaned) {
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.packingNumber, detail.toLocationCode, detail.batch); detail.packingNumber, detail.toLocationCode, detail.batch);
detail.itemCode = detail.itemCode; var submitItem = deepCopyData(detail)
detail.itemName = detail.package.itemName;
detail.itemDesc1 = detail.package.itemDesc1;
detail.itemDesc2 = detail.package.itemDesc2;
detail.inventoryStatus = detail.inventoryStatus; submitItem.itemCode = detail.itemCode;
detail.toInventoryStatus = detail.inventoryStatus; submitItem.itemName = detail.package.itemName;
submitItem.itemDesc1 = detail.package.itemDesc1;
submitItem.itemDesc2 = detail.package.itemDesc2;
detail.fromPackingNumber = info.packingNumber; submitItem.inventoryStatus = detail.inventoryStatus;
detail.toPackingNumber = info.packingNumber; submitItem.toInventoryStatus = detail.inventoryStatus;
detail.fromContainerNumber = detail.containerNumber; submitItem.fromPackingNumber = info.packingNumber;
detail.toContainerNumber = detail.containerNumber submitItem.toPackingNumber = info.packingNumber;
detail.fromBatch = info.batch; submitItem.fromContainerNumber = detail.containerNumber;
detail.toBatch = info.batch; submitItem.toContainerNumber = detail.containerNumber
detail.fromLocationCode = detail.locationCode; submitItem.fromBatch = info.batch;
detail.toLocationCode = detail.toLocationCode; submitItem.toBatch = info.batch;
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = detail.toLocationCode;
submitItem.qty = detail.handleQty!=undefined?detail.handleQty:detail.qty;
submitItem.package ="";
subList.push(submitItem)
subList.push(detail)
} }
}) })
}) })

41
pages/scrap/record/scrapRecord.vue

@ -19,6 +19,7 @@
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" <record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent"
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" :isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData"
:isShowToLocation="false"
@removePack="removePack"> @removePack="removePack">
</record-com-detail-card> </record-com-detail-card>
</view> </view>
@ -55,6 +56,7 @@
import { import {
goHome, goHome,
deepCopyData
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -274,30 +276,34 @@
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
item.subList.forEach(detail => { item.subList.forEach(detail => {
if (detail.scaned) { if (detail.scaned) {
detail.itemCode = detail.itemCode; var submitItem = deepCopyData(detail)
detail.itemName = detail.package.itemName; submitItem.itemCode = detail.itemCode;
detail.itemDesc1 = detail.package.itemDesc1; submitItem.itemName = detail.package.itemName;
detail.itemDesc2 = detail.package.itemDesc2; submitItem.itemDesc1 = detail.package.itemDesc1;
submitItem.itemDesc2 = detail.package.itemDesc2;
detail.inventoryStatus = detail.inventoryStatus; submitItem.inventoryStatus = detail.inventoryStatus;
detail.fromPackingNumber = detail.packingNumber; detail.fromPackingNumber = detail.packingNumber;
detail.toPackingNumber = detail.packingNumber; detail.toPackingNumber = detail.packingNumber;
detail.fromContainerNumber = detail.containerNumber; submitItem.fromContainerNumber = detail.containerNumber;
detail.toContainerNumber = detail.containerNumber submitItem.toContainerNumber = detail.containerNumber
detail.fromBatch = detail.batch; submitItem.fromBatch = detail.batch;
detail.toBatch = detail.batch; submitItem.toBatch = detail.batch;
detail.fromLocationCode = detail.locationCode; submitItem.fromLocationCode = detail.locationCode;
detail.toLocationCode = ""; submitItem.toLocationCode = "";
detail.reason = this.reasonCode; submitItem.reason = this.reasonCode;
subList.push(detail) submitItem.qty = detail.handleQty!=undefined?detail.handleQty:detail.qty;
submitItem.package ="";
subList.push(submitItem)
} }
}) })
}) })
this.dataContent.subList =subList this.dataContent.subList =subList
this.dataContent.creator = creator; this.dataContent.creator = creator;
return this.dataContent; return this.dataContent;
@ -337,12 +343,13 @@
}) })
}, },
clearData(){ clearData(){
this.reasonCode = "" this.reasonCode = "";
this.fromLocationCode = "";
this.reasonText = ""; this.reasonText = "";
this.detailSource = []; this.detailSource = [];
this.subList =[]; this.subList = [];
this.managementList =[]; this.managementList = [];
this.dataContent ={} this.dataContent = {}
}, },
updateData() { updateData() {

Loading…
Cancel
Save