Browse Source

修改直接库存转移

hella_online_20240829
niexiting 5 months ago
parent
commit
9d6f0981ec
  1. 19
      src/pages/inventoryMove/coms/comMoveRecord.vue

19
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -24,7 +24,7 @@
<view class="">
<!-- :isShowEdit="isShowEditLocation" -->
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocation'
:locationAreaTypeList="toLocationAreaTypeList" :isShowEdit='true' ></requiredLocation>
:locationAreaTypeList="toLocationAreaTypeList" :isShowEdit='true'></requiredLocation>
</view>
<view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -124,7 +124,7 @@
dataContent: {},
fromLocationAreaTypeList: [],
toLocationAreaTypeList: [],
isShowEditLocation:false
isShowEditLocation: false
}
},
@ -153,12 +153,12 @@
this.title = "库存转移记录";
this.toInventoryStatus = ""
this.toLocationCode = ""
this.isShowEditLocation =true;
this.isShowEditLocation = true;
} else if (this.businessTypeCode == "HoldToOk") {
this.title = "隔离转合格记录";
this.toInventoryStatus = "OK"
this.toLocationCode = ""
this.isShowEditLocation =true;
this.isShowEditLocation = true;
} else if (this.businessTypeCode == "HoldToScrap") {
this.title = "隔离转报废记录";
this.toInventoryStatus = "SCRAP"
@ -184,7 +184,7 @@
title: this.title
})
},
getLocationInfo(){
getLocationInfo() {
if (this.toLocationCode != "") {
getBasicLocationByCode(this.toLocationCode).then(res => {
if (res.data.total > 0) {
@ -239,8 +239,12 @@
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack);
// newDetail.inventoryStatus = balance.inventoryStatus;
//
if (this.businessTypeCode == "Move") {
newDetail.toInventoryStatus = balance.inventoryStatus;
} else {
newDetail.toInventoryStatus = this.toInventoryStatus;
}
newDetail.toLocationCode = this.toLocationCode;
newDetail.fromLocationCode = result.fromLocationCode
itemp.subList.push(newDetail);
@ -367,8 +371,7 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
if (detail.toLocationCode == '')
{
if (detail.toLocationCode == '') {
detail.toLocationCode = this.toLocationCode;
}
var filterResult = itemList.filter(res => {

Loading…
Cancel
Save