Browse Source

修改客户退货提交

wms3.0_pda
lijuncheng 10 months ago
parent
commit
6d0400f6e5
  1. 12
      mycomponents/scan/winScanPackAndLocation.vue
  2. 14
      pages/customerReturn/request/customerReturnRequestCreate.vue
  3. 2
      pages/productionReturn/record/returnToStore.vue

12
mycomponents/scan/winScanPackAndLocation.vue

@ -425,13 +425,13 @@
this.show = e.show this.show = e.show
}, },
isInLocationList(location) { isInLocationList(location) {
var item = this.fromLocationList.filter(res => {
res = location var item = this.fromLocationList.find(res => res == location)
})
if (item != undefined && item.length > 0) { if (item = undefined) {
return true
}
return false return false
}
return true
}, },
addLocationCode(code) { addLocationCode(code) {
if (!this.isInLocationList(code)) { if (!this.isInLocationList(code)) {

14
pages/customerReturn/request/customerReturnRequestCreate.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class=""> <view class="">
<com-blank-view @goScan='getLocation' v-if="detailSource.length==0"></com-blank-view> <com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="uni-flex uni-row padding title u-col-center" @click="showSelect" style="font-size: 35rpx;"> <view class="uni-flex uni-row padding title u-col-center" @click="showSelect" style="font-size: 35rpx;">
@ -272,10 +272,10 @@
}, },
commit() { commit() {
// if (this.toLocationCode == "") { if (this.customerName == ""||this.customerName == "请选择退货客户") {
// this.showMessage("") this.showErrorMessage("请选择退货客户")
// return; return;
// } }
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
// //
uni.showLoading({ uni.showLoading({
@ -368,7 +368,7 @@
this.dataContent.subList = subList; this.dataContent.subList = subList;
this.dataContent.creator = creator; this.dataContent.creator = creator;
this.dataContent.customerCode = 'CF'; this.dataContent.customerCode = this.customerCode;
this.dataContent.fromWarehouseCode = this.fromLocation.warehouseCode; this.dataContent.fromWarehouseCode = this.fromLocation.warehouseCode;
this.dataContent.toWarehouseCode = this.toWarehouseCode; this.dataContent.toWarehouseCode = this.toWarehouseCode;
@ -424,6 +424,8 @@
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
this.toWarehouseCode = "" this.toWarehouseCode = ""
this.customerName ="请选择退货客户"
this.customerCode =""
}, },
updateData() { updateData() {

2
pages/productionReturn/record/returnToStore.vue

@ -223,6 +223,7 @@
}) })
} else { } else {
debugger
var detail = item.subList.find(r => { var detail = item.subList.find(r => {
if (r.packingNumber == label.packingNumber && if (r.packingNumber == label.packingNumber &&
r.batch == label.batch) { r.batch == label.batch) {
@ -235,6 +236,7 @@
let newDetail = this.createDetailInfo(label, pack); let newDetail = this.createDetailInfo(label, pack);
newDetail.toLocationCode = toLocation.code; newDetail.toLocationCode = toLocation.code;
newDetail.fromLocationCode = this.rawLocationCode; newDetail.fromLocationCode = this.rawLocationCode;
newDetail.locationCode = this.rawLocationCode;
newDetail.toWarehouseCode = toLocation.warehouseCode; newDetail.toWarehouseCode = toLocation.warehouseCode;
item.subList.push(newDetail); item.subList.push(newDetail);
this.calcHandleQty(); this.calcHandleQty();

Loading…
Cancel
Save