Browse Source

修改客户退货提交

wms3.0_pda
lijuncheng 8 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
},
isInLocationList(location) {
var item = this.fromLocationList.filter(res => {
res = location
})
if (item != undefined && item.length > 0) {
return true
var item = this.fromLocationList.find(res => res == location)
if (item = undefined) {
return false
}
return false
return true
},
addLocationCode(code) {
if (!this.isInLocationList(code)) {

14
pages/customerReturn/request/customerReturnRequestCreate.vue

@ -1,7 +1,7 @@
<template>
<view class="page-wraper">
<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 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;">
@ -272,10 +272,10 @@
},
commit() {
// if (this.toLocationCode == "") {
// this.showMessage("")
// return;
// }
if (this.customerName == ""||this.customerName == "请选择退货客户") {
this.showErrorMessage("请选择退货客户")
return;
}
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) {
//
uni.showLoading({
@ -368,7 +368,7 @@
this.dataContent.subList = subList;
this.dataContent.creator = creator;
this.dataContent.customerCode = 'CF';
this.dataContent.customerCode = this.customerCode;
this.dataContent.fromWarehouseCode = this.fromLocation.warehouseCode;
this.dataContent.toWarehouseCode = this.toWarehouseCode;
@ -424,6 +424,8 @@
this.toLocationCode = '';
this.dataContent = {}
this.toWarehouseCode = ""
this.customerName ="请选择退货客户"
this.customerCode =""
},
updateData() {

2
pages/productionReturn/record/returnToStore.vue

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

Loading…
Cancel
Save