Browse Source

修改采购收货

wms3.0_pda
lijuncheng 1 year ago
parent
commit
c0571cac4f
  1. 4
      mycomponents/balance/balance.vue
  2. 7
      mycomponents/balance/location.vue
  3. 35
      mycomponents/detail/comDetailCard.vue
  4. 3
      mycomponents/qty/balanceQtyEdit.vue
  5. 17
      mycomponents/recommend/recommend.vue
  6. 12
      pages/purchaseReceipt/coms/comReceiptDetailCard.vue
  7. 60
      pages/purchaseReceipt/job/receiptDetail.vue
  8. 35
      pages/purchaseReturn/job/returnDetail.vue
  9. 205
      pages/putaway/job/putawayDetail.vue
  10. 100
      pages/putaway/record/putawayRecord.vue

4
mycomponents/balance/balance.vue

@ -81,7 +81,7 @@
methods: {
copy(){
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HPQ;V1.0;I"+this.detail.itemCode+";P"+this.detail.packingNumber+";B"+this.detail.batch+";Q"+this.detail.qty
var content = "HPQ;V1.0;I"+this.dataContent.itemCode+";P"+this.dataContent.packingNumber+";B"+this.dataContent.batch+";Q"+this.dataContent.qty
this.$copyText(content).then(
res => {
uni.showToast({
@ -93,7 +93,7 @@
},
copyPro(){
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HMQ;V1.0;I"+this.detail.itemCode+";P"+this.detail.packingNumber+";B"+this.detail.batch+";Q"+this.detail.qty
var content = "HMQ;V1.0;I"+this.dataContent.itemCode+";P"+this.dataContent.packingNumber+";B"+this.dataContent.batch+";Q"+this.dataContent.qty
this.$copyText(content).then(
res => {
uni.showToast({

7
mycomponents/balance/location.vue

@ -1,6 +1,6 @@
<template>
<view class="location_view uni-inline-item">
<text class="card_location">库位</text>
<text class="card_location">{{title}}</text>
<text>{{locationCode}}</text>
</view>
</template>
@ -17,6 +17,11 @@
type: String,
default: ''
},
title: {
type: String,
default: '库位'
},
},
}

35
mycomponents/detail/comDetailCard.vue

@ -11,14 +11,16 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="swipeClick($event,item)"
:right-options="item.scaned?scanOptions:detailOptions">
<recommend :detail="item" :isShowPack="isShowPack"
:isShowBatch="isShowBatch" :isShowLocation="isShowLocation"></recommend>
<recommend :detail="item" :isShowToLocation="settingParam.allowModifyLocation=='TRUE'">
</recommend>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
</uni-collapse-item>
</uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'
:locationTypeList="locationTypeList"></win-scan-location>
<com-message ref="message"></com-message>
</view>
</template>
@ -28,10 +30,10 @@
import recommend from '@/mycomponents/recommend/recommend.vue'
import balanceQtyEdit from '@/mycomponents/qty/balanceQtyEdit.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import {
getDetailOption,
getDetailEditRemoveOption,
getDetailRemoveOption
getPurchaseReceiptOption
} from '@/common/array.js';
export default {
@ -41,6 +43,7 @@
recommend,
balanceQtyEdit,
comMessage,
winScanLocation
},
props: {
dataContent: {
@ -63,6 +66,10 @@
type: Boolean,
default: true
},
locationTypeList: {
type: Object,
default: {}
},
},
watch: {
@ -72,8 +79,7 @@
return {
option: [],
showItem: {},
editItem: {
},
editItem: {},
detailOptions: [],
scanOptions: []
}
@ -84,12 +90,8 @@
this.detailOptions = getDetailOption();
}
if (this.scanOptions.length == 0) {
this.scanOptions = getDetailEditRemoveOption();
// if (this.dataContent.allowModifyQty == 1) {
// this.scanOptions = getDetailEditRemoveOption();
// } else {
// this.scanOptions = getDetailRemoveOption();
// }
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
},
@ -119,7 +121,7 @@
if (res) {
item.scaned = false
item.balance = {}
item.inventoryStatus = item.RecommendInventoryStatus
item.handleQty = 0;
this.$forceUpdate()
this.$emit('remove', item)
}
@ -128,7 +130,12 @@
confirm(qty) {
this.editItem.qty = qty;
this.$emit('updateData')
}
},
//
getLocation(location, code) {
this.locatonItem.toLocationCode =code;
this.$emit('updateData')
},
}
}
</script>

3
mycomponents/qty/balanceQtyEdit.vue

@ -127,7 +127,10 @@
this.toInventoryStatus = this.dataContent.toInventoryStatus
this.allQty = Number(handleQty)
console.log("数量",this.allQty)
setTimeout(res=>{
this.$refs.popup.open('bottom')
},500)
},

17
mycomponents/recommend/recommend.vue

@ -4,9 +4,17 @@
<view>
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack>
<batch v-if="isShowBatch" :batch="detail.batch"></batch>
<location v-if="isShowLocation"
:locationCode="detail.fromLocationCode==''?detail.toLocationCode:detail.fromLocationCode">
<location
title="来源库位"
:locationCode="detail.fromLocationCode">
</location>
<view class="">
<location v-if="isShowToLocation"
title="目标库位"
:locationCode="detail.toLocationCode">
</location>
</view>
</view>
<view>
<recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined" :dataContent="detail"
@ -63,6 +71,11 @@
type: Boolean,
default: true
},
isShowToLocation: {
type: Boolean,
default: false
},
locationTitle: {
type: String,
default: '库位'

12
pages/purchaseReceipt/coms/comReceiptDetailCard.vue

@ -10,7 +10,7 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="swipeClick($event,item)"
:right-options="item.scaned?scanOptions:detailOptions">
<recommend :detail="item" :isShowLocation="true"></recommend>
<recommend :detail="item" :isShowToLocation="settingParam.allowModifyLocation=='TRUE'"></recommend>
</uni-swipe-action-item>
</uni-swipe-action>
@ -22,8 +22,8 @@
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam"
@confirm="confirm">
</recommend-qty-edit>
<win-scan-location ref="scanLocationCode" title="库位" @getLocation='getLocation'
:locationTypeList="settingParam.locationTypeList"></win-scan-location>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'
:locationTypeList="locationTypeList"></win-scan-location>
<receipt-detail-info-popup ref="jobDetailPopup" :dataContent="showItem"></receipt-detail-info-popup>
<com-message ref="message"></com-message>
</view>
@ -62,6 +62,12 @@
type: Object,
default: {}
},
locationTypeList: {
type: Object,
default: {}
},
},
watch: {

60
pages/purchaseReceipt/job/receiptDetail.vue

@ -5,7 +5,7 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<com-receipt-detail-card :dataContent="item" :index="index" :settingParam="jobContent"
@remove="updateData" @updateData="updateData">
@remove="updateData" @updateData="updateData" :locationTypeList ='locationTypeList'>
</com-receipt-detail-card>
</view>
<u-line />
@ -246,15 +246,27 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位["+code+"]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
async commit() {
commit() {
this.scanCount = this.getScanCount();
//
if (!this.checkLocation()) {
return
}
if( this.scanCount==0){
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
console.log("校验通过")
@ -349,27 +361,25 @@
return isPass = false;
}
//
var isHaveNullLocation = false;
var nullLocationList = [];
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.toLocationCode == null || detail.toLocationCode == "") {
nullLocationList.push(detail)
}
})
})
if (nullLocationList.length > 0) {
//
this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => {
nullLocationList.forEach(res => {
res.toLocationCode = this.toLocationCode
})
})
isPass = false;
}
// var isHaveNullLocation = false;
// var nullLocationList = [];
// this.detailSource.forEach(item => {
// item.subList.forEach(detail => {
// if (detail.toLocationCode == null || detail.toLocationCode == "") {
// nullLocationList.push(detail)
// }
// })
// })
// if (nullLocationList.length > 0) {
// //
// this.$refs.comMessage.showQuestionMessage("", res => {
// nullLocationList.forEach(res => {
// res.toLocationCode = this.toLocationCode
// })
// })
// isPass = false;
// }
return isPass;
},

35
pages/purchaseReturn/job/returnDetail.vue

@ -281,6 +281,11 @@
},
commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
//
if (this.scanCount == this.subList.length) {
@ -309,7 +314,7 @@
mask: true
});
//null,,
if (this.toLocationCode == null) {
if (this.toLocationCode == null||this.toLocationCode == "") {
var params = this.setParams(false)
console.log("提交参数", JSON.stringify(params));
// purchaseReturnJobsubmit( params).then(res => {
@ -365,23 +370,29 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
var subItem = {};
Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = info.batch;
detail.toInventoryStatus = detail.inventoryStatus
detail.toLocationCode = this.toLocationCode
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = info.packingNumber;;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = info.batch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = this.toLocationCode
} else {
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = detail.toBatch;
detail.toInventoryStatus = detail.inventoryStatus
detail.toLocationCode = ""
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = subItem.packingNumber;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = subItem.toBatch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = ""
}
subList.push(detail)
subList.push(subItem)
}
})
})

205
pages/putaway/job/putawayDetail.vue

@ -5,7 +5,8 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<com-detail-card :dataContent="item" :index="index" :settingParam="jobContent"
@remove="updateData" @updateData="updateData" @openDetail="openDetail">
@remove="updateData" @updateData="updateData" @openDetail="openDetail"
:locationTypeList='locationTypeList'>
</com-detail-card>
</view>
<u-line />
@ -14,7 +15,7 @@
</view>
<requiredLocation ref='comScanLocation' title="目标库位" :locationCode="toLocationCode"
@getLocation='getToLocationCode' :isShowEdit="jobContent.allowModifyLocation == 1"
@getLocation='getToLocationCode' :isShowEdit="jobContent.allowModifyLocation == 'TRUE'"
:locationTypeList="tolocationTypeList"></requiredLocation>
<view class="page-footer">
@ -30,7 +31,7 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location>
<putaway-detail-info-popup ref="jobDetailPopup"></putaway-detail-info-popup>
<com-message ref="comMessage"></com-message>
</view>
@ -40,7 +41,7 @@
import {
getManagementPrecisions,
} from '@/common/balance.js';
import {
getPutawayJobDetail,
getBasicLocationByCode,
@ -53,7 +54,7 @@
getCurrDateTime,
getPackingNumberAndBatch,
} from '@/common/basic.js';
import {
getDirectoryItemArray,
getInventoryStatusName
@ -71,7 +72,7 @@
import comDetailCard from "@/mycomponents/detail/comDetailCard.vue"
import putawayDetailInfoPopup from '@/pages/putaway/coms/putawayDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
export default {
components: {
winScanButton,
@ -163,19 +164,19 @@
});
getPutawayJobDetail(that.id).then(res => {
uni.hideLoading();
if(res.data==null){
if (res.data == null) {
that.showMessage('未获取到详情');
}else {
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList)
that.fromLocationCode = that.subList[0].fromLocationCode
that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.getLocationInfo(that.toLocationCode);
} else {
that.showMessage('列表数据为0');
}
@ -284,7 +285,11 @@
']不一致,是否继续上架?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
} else {
this.scanPopupGetFocus();
@ -292,7 +297,11 @@
});
} else {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty);
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty);
itemDetail.balance = result.balance;
itemDetail.balance.balanceQty = result.balance.qty;
itemDetail.balance.stdPackQty =result.package.stdPackQty
itemDetail.balance.stdPackUnit =result.package.stdPackUnit
this.calcHandleQty();
}
}
@ -304,101 +313,165 @@
},
scanLocationCode(location, code) {
this.toLocationCode = code
this.toLocationInfo = location;
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
},
openDetail(item) {
this.$refs.jobDetailPopup.openPopup(item)
},
commit() {
checkLocation() {
var isPass = true;
if (this.toLocationCode == "") {
this.showMessage("请先选择目标库位")
this.showMessageHint('请扫描收货库位', callback => {
this.$refs.comScanLocation.showLocation();
})
return isPass = false;
}
return isPass;
},
showMessageHint(hint, callback) {
this.$refs.comMessage.showErrorMessage(hint, res => {
if (res) {
callback()
}
});
},
commit() {
this.scanCount = getScanCount(this.subList);
if (!this.checkLocation()) {
return
}
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
this.scanCount = getScanCount(this.subList);
if (this.scanCount < this.subList.length) {
} else if (this.scanCount < this.subList.length) {
//
if (this.jobContent.allowPartialComplete == "TRUE") {
//
this.submitJob();
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this.subList.length + "]箱", res => {
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
} else {
this.submitJob();
}
}
},
async submitJob() {
submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
});
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
var param = {
itemCode: itemCodes,
locationCode: this.toLocationCode
//null,,
if (this.toLocationCode == null || this.toLocationCode == "") {
var params = this.setParams(false)
console.log("提交参数", JSON.stringify(params));
// putawayJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
//
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams(true)
console.log("提交参数", JSON.stringify(params));
// putawayJobSubmit( params).then(res => {
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// uni.hideLoading()
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
});
}
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
console.log("提交参数",JSON.stringify(params));
putawayJobSubmit(this.id, params).then(res => {
uni.hideLoading()
if (res.data) {
var hint = res.data.Number;
this.showCommitSuccessMessage("提交成功" + hint)
} else {
this.showErrorMessage("提交失败")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
});
},
setParams() {
setParams(queryModel) {
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber =info.packingNumber;
detail.toBatch =info.batch;
subList.push(detail)
var subItem = {};
Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = info.packingNumber;;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = info.batch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = this.toLocationCode
} else {
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = subItem.packingNumber;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = subItem.toBatch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = ""
}
subList.push(subItem)
}
})
})
this.jobContent.subList = subList
this.jobContent.createTime = createTime;
this.jobContent.creator =creator;
this.jobContent.creator = creator;
return this.jobContent;
},
showMessage(message) {
setTimeout(r => {

100
pages/putaway/record/putawayRecord.vue

@ -17,7 +17,7 @@
</scroll-view>
</view>
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode'
<requiredLocation v-if="showToLoaction" title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode'
:locationTypeList="tolocationTypeList"></requiredLocation>
<view class="page-footer">
@ -47,7 +47,9 @@
import {
goHome,
updateTitle
updateTitle,
getCurrDateTime,
getPackingNumberAndBatch
} from '@/common/basic.js';
import {
getInventoryStatusDesc,
@ -93,7 +95,6 @@
receiptJob: {},
received: false,
jobContent: {}, //
subList: [], //subList
detailSource: [], //
locationTypeList: [],
toLocationInfo: {},
@ -108,12 +109,17 @@
inInventoryStatus: "", //
outInventoryStatus: "", //
businessType: {},
fromType: ""
fromType: "",
showToLoaction:true
};
},
onLoad(option) {
this.fromType = option.fromType
if(this.fromType=="requestType"){ updateTitle("原料上架申请") }else { updateTitle("原料上架记录") }
if(this.fromType=="requestType"){ this.showToLoaction=false
updateTitle("原料上架申请") }else {
updateTitle("原料上架记录")
this.showToLoaction=true
}
var typeCode = "PurchasePutaway"
getBusinessType(typeCode, res => {
if (res.success) {
@ -195,7 +201,6 @@
this.$forceUpdate();
},
updateData() {
this.calcHandleQty();
},
@ -241,7 +246,7 @@
},
commit() {
if (this.toLocationCode == "") {
if (this.showToLoaction &&this.toLocationCode == "") {
this.showMessage("请先选择目标库位")
return;
}
@ -251,9 +256,10 @@
mask: true
});
var params = this.setParams();
console.log("提交" + JSON.stringify(params))
if(this.fromType=="requestType"){
var params = this.setParams(false)
console.log("提交" + JSON.stringify(params))
// putawayRequestSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
@ -266,35 +272,73 @@
// this.showErrorMessage(error)
// })
}else {
// putawayRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
var itemCodes = []
this.detailSource.forEach(item => {
itemCodes.push(item.itemCode)
})
//
getManagementPrecisions(itemCodes, this.toLocationCode, res => {
if (res.success) {
this.managementList = res.list;
var params = this.setParams(true)
console.log("提交参数", JSON.stringify(params));
// putawayRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);
}
});
}
},
setParams() {
setParams(queryModel) {
var subList = []
var createTime = getCurrDateTime();
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
// var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
// detail.packingNumber, detail.batch);
// detail.toPackingNumber =info.packingNumber;
// detail.toBatch =info.batch;
subList.push(detail)
var subItem = {};
Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = info.packingNumber;;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = info.batch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = this.toLocationCode
} else {
subItem.package ="" ;
subItem.balance ="" ;
subItem.toPackingNumber = subItem.packingNumber;
subItem.toContainerNumber = subItem.containerNumber
subItem.toBatch = subItem.toBatch;
subItem.toInventoryStatus = subItem.inventoryStatus
subItem.toLocationCode = ""
}
subList.push(subItem)
}
})
})
return subList;
this.jobContent.subList = subList
this.jobContent.createTime = createTime;
this.jobContent.creator = creator;
return this.jobContent;
},

Loading…
Cancel
Save