|
@ -6,10 +6,11 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
<view class="page-header"> |
|
|
<view class="page-header"> |
|
|
<view class="header_item" style="font-size:35rpx; padding: 10rpx;" > |
|
|
<view class="header-view"> |
|
|
|
|
|
<view class="header_item" style="font-size:35rpx; padding: 10rpx;"> |
|
|
来源库位 : {{fromLocationCode}} |
|
|
来源库位 : {{fromLocationCode}} |
|
|
</view> |
|
|
</view> |
|
|
<u-line /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<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"> |
|
@ -17,11 +18,9 @@ |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
:isShowFromLocation="false" @removeItem="removeItem(index,item)" |
|
|
:isShowFromLocation="false" @removeItem="removeItem(index,item)" |
|
|
:isShowToLocation="false" |
|
|
:isShowToLocation="false" @updateData="updateData" @removePack="removePack"> |
|
|
@updateData="updateData" @removePack="removePack"> |
|
|
|
|
|
</record-com-detail-card> |
|
|
</record-com-detail-card> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
@ -31,7 +30,8 @@ |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<requiredLocation v-if="showToLoaction" title="目标库位" :locationCode="toLocationCode" |
|
|
<requiredLocation v-if="showToLoaction" title="目标库位" :locationCode="toLocationCode" |
|
|
@getLocation='getToLocationCode' :locationAreaTypeList="toLocationAreaTypeList"></requiredLocation> |
|
|
@getLocation='getToLocationCode' :locationAreaTypeList="toLocationAreaTypeList"> |
|
|
|
|
|
</requiredLocation> |
|
|
</view> |
|
|
</view> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
@ -119,9 +119,9 @@ |
|
|
recommendLocationList: [], //推荐库位列表 |
|
|
recommendLocationList: [], //推荐库位列表 |
|
|
fromWarehouseCode: '', //来源仓库 |
|
|
fromWarehouseCode: '', //来源仓库 |
|
|
businessTypeCode: "Repleinment", |
|
|
businessTypeCode: "Repleinment", |
|
|
toLocationCode:"", |
|
|
toLocationCode: "", |
|
|
resultData:{}, |
|
|
resultData: {}, |
|
|
itemCode:"" |
|
|
itemCode: "" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -145,10 +145,10 @@ |
|
|
mounted() {}, |
|
|
mounted() {}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getBusinessType(){ |
|
|
getBusinessType() { |
|
|
getBusinessType(this.businessTypeCode, res => { |
|
|
getBusinessType(this.businessTypeCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.businessType=res.businessType; |
|
|
this.businessType = res.businessType; |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(res.fromInventoryStatuses); |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(res.fromInventoryStatuses); |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList |
|
|
this.openScanPopup(); |
|
|
this.openScanPopup(); |
|
@ -214,8 +214,11 @@ |
|
|
let balance = result.balance; |
|
|
let balance = result.balance; |
|
|
let label = result.label; |
|
|
let label = result.label; |
|
|
let pack = result.package; |
|
|
let pack = result.package; |
|
|
if(this.fromLocationCode&&this.fromLocationCode!=balance.locationCode){ |
|
|
|
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位["+this.fromLocationCode+"]没有库存余额") |
|
|
|
|
|
|
|
|
if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) { |
|
|
|
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this |
|
|
|
|
|
.fromLocationCode + "]没有库存余额") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -234,17 +237,17 @@ |
|
|
} |
|
|
} |
|
|
var itemp = createItemInfo(balance, pack); |
|
|
var itemp = createItemInfo(balance, pack); |
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
newDetail.parentNumber =pack.parentNumber; |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.packingNumber =pack.number |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packUnit =pack.packUnit; |
|
|
newDetail.packUnit = pack.packUnit; |
|
|
newDetail.packQty=pack.packQty; |
|
|
newDetail.packQty = pack.packQty; |
|
|
if(balance.lableQty){ |
|
|
if (balance.lableQty) { |
|
|
newDetail.handleQty =balance.lableQty |
|
|
newDetail.handleQty = balance.lableQty |
|
|
} |
|
|
} |
|
|
itemp.subList.push(newDetail); |
|
|
itemp.subList.push(newDetail); |
|
|
this.detailSource.push(itemp) |
|
|
this.detailSource.push(itemp) |
|
|
this.itemCode = balance.itemCode; |
|
|
this.itemCode = balance.itemCode; |
|
|
this.fromLocationCode =balance.locationCode |
|
|
this.fromLocationCode = balance.locationCode |
|
|
this.scanPopupGetFocus() |
|
|
this.scanPopupGetFocus() |
|
|
} else { |
|
|
} else { |
|
|
var detail = item.subList.find(r => { |
|
|
var detail = item.subList.find(r => { |
|
@ -257,12 +260,12 @@ |
|
|
}) |
|
|
}) |
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
newDetail.parentNumber =pack.parentNumber; |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.packingNumber =pack.number |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packUnit =pack.packUnit; |
|
|
newDetail.packUnit = pack.packUnit; |
|
|
newDetail.packQty=pack.packQty; |
|
|
newDetail.packQty = pack.packQty; |
|
|
if(balance.lableQty){ |
|
|
if (balance.lableQty) { |
|
|
newDetail.handleQty =balance.lableQty |
|
|
newDetail.handleQty = balance.lableQty |
|
|
} |
|
|
} |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail); |
|
|
this.scanPopupGetFocus() |
|
|
this.scanPopupGetFocus() |
|
@ -314,9 +317,9 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openScanPopup() { |
|
|
openScanPopup() { |
|
|
if(this.businessType){ |
|
|
if (this.businessType) { |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType); |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType); |
|
|
}else { |
|
|
} else { |
|
|
this.getBusinessType() |
|
|
this.getBusinessType() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -339,15 +342,15 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
if(this.toLocationCode==""){ |
|
|
if (this.toLocationCode == "") { |
|
|
this.showMessage("请输入目标库位") |
|
|
this.showMessage("请输入目标库位") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.detailSource.forEach(item=>{ |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail=>{ |
|
|
item.subList.forEach(detail => { |
|
|
detail.toLocationCode=this.toLocationCode |
|
|
detail.toLocationCode = this.toLocationCode |
|
|
detail.fromLocation =this.fromLocationCode |
|
|
detail.fromLocation = this.fromLocationCode |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -408,25 +411,23 @@ |
|
|
// detail.toLocationCode = detail.toLocationCode |
|
|
// detail.toLocationCode = detail.toLocationCode |
|
|
submitItem.qty = detail.handleQty; |
|
|
submitItem.qty = detail.handleQty; |
|
|
submitItem.package = ""; |
|
|
submitItem.package = ""; |
|
|
submitItem.recordList=[ |
|
|
submitItem.recordList = [{ |
|
|
{ |
|
|
toInventoryStatus: detail.inventoryStatus, |
|
|
toInventoryStatus:detail.inventoryStatus, |
|
|
fromPackingNumber: info.packingNumber, |
|
|
fromPackingNumber:info.packingNumber, |
|
|
|
|
|
fromParentPackingNumber: detail.parentNumber, |
|
|
fromParentPackingNumber: detail.parentNumber, |
|
|
fromBatch:info.batch, |
|
|
fromBatch: info.batch, |
|
|
|
|
|
|
|
|
toPackingNumber:info.packingNumber, |
|
|
toPackingNumber: info.packingNumber, |
|
|
|
|
|
|
|
|
toBatch:info.batch, |
|
|
toBatch: info.batch, |
|
|
fromLocationCode:detail.locationCode, |
|
|
fromLocationCode: detail.locationCode, |
|
|
toLocationCode:detail.toLocationCode, |
|
|
toLocationCode: detail.toLocationCode, |
|
|
handleQty:detail.handleQty, |
|
|
handleQty: detail.handleQty, |
|
|
fromPackUnit:detail.packUnit, |
|
|
fromPackUnit: detail.packUnit, |
|
|
toPackUnit:detail.packUnit, |
|
|
toPackUnit: detail.packUnit, |
|
|
fromPackQty:detail.packQty, |
|
|
fromPackQty: detail.packQty, |
|
|
toPackQty:detail.packQty |
|
|
toPackQty: detail.packQty |
|
|
} |
|
|
}] |
|
|
] |
|
|
|
|
|
subList.push(submitItem) |
|
|
subList.push(submitItem) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -480,7 +481,7 @@ |
|
|
this.toWarehouseCode = ''; |
|
|
this.toWarehouseCode = ''; |
|
|
this.detailSource = []; |
|
|
this.detailSource = []; |
|
|
this.toLocationCode = ""; |
|
|
this.toLocationCode = ""; |
|
|
this.itemCode="" |
|
|
this.itemCode = "" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|