Browse Source

修改客户退货申请修改数量问题

wms3.0_pda
lijuncheng 10 months ago
parent
commit
330c94e9f9
  1. 58
      pages/customerReturn/request/customerReturnRequestCreate.vue

58
pages/customerReturn/request/customerReturnRequestCreate.vue

@ -17,14 +17,12 @@
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" :index="index" :isShowLocation="true" <record-com-detail-card :dataContent="item" :index="index" :isShowLocation="true"
:isShowBalanceQty ="false" :isShowBalanceQty="false" :isShowToLocation="false" @removeItem="removeItem(index,item)"
:isShowToLocation="false" @removeItem="removeItem(index,item)" @updateData="updateData" @updateData="updateData" @removePack="removePack">
@removePack="removePack">
</record-com-detail-card> </record-com-detail-card>
</view> </view>
</view> </view>
@ -57,7 +55,9 @@
</template> </template>
<script> <script>
import { calc } from '@/common/calc' import {
calc
} from '@/common/calc'
import { import {
customerReturnRequestSubmit, customerReturnRequestSubmit,
getBasicCustomerList getBasicCustomerList
@ -73,6 +73,7 @@
import { import {
goHome, goHome,
updateTitle, updateTitle,
deepCopyData,
getPackingNumberAndBatchByList getPackingNumberAndBatchByList
} from '@/common/basic.js'; } from '@/common/basic.js';
@ -330,40 +331,47 @@
setParams() { setParams() {
var subList = [] var subList = []
var creator = this.$store.state.user.id var creator = this.$store.state.user.id
this.dataContent.subList = subList;
this.dataContent.creator = creator;
this.dataContent.customerCode = 'CF';
this.dataContent.fromWarehouseCode = this.fromLocation.warehouseCode;
this.dataContent.toWarehouseCode = this.toWarehouseCode;
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.toInventoryStatus = 'HOLD'; submitItem.toInventoryStatus = 'HOLD';
detail.fromPackingNumber = detail.packingNumber; submitItem.fromPackingNumber = detail.packingNumber;
detail.toPackingNumber = detail.packingNumber; submitItem.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.qty = detail.handleQty;
detail.toLocationCode = 'HOLD';
subList.push(detail) submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = 'HOLD';
submitItem.package = ""
subList.push(submitItem)
} }
}) })
}) })
this.dataContent.subList = subList;
this.dataContent.creator = creator;
this.dataContent.customerCode = 'CF';
this.dataContent.fromWarehouseCode = this.fromLocation.warehouseCode;
this.dataContent.toWarehouseCode = this.toWarehouseCode;
return this.dataContent; return this.dataContent;
}, },

Loading…
Cancel
Save