Browse Source

去掉console

intex_online20241111
zhang_li 4 weeks ago
parent
commit
5b8ed79ef0
  1. 11
      src/pages/deliver/job/deliverDetailBatch.vue
  2. 6
      src/pages/issue/job/issueDetailBatch.vue

11
src/pages/deliver/job/deliverDetailBatch.vue

@ -203,8 +203,6 @@
that.subList = res.data.subList; that.subList = res.data.subList;
// that.detailSource = res.data; // that.detailSource = res.data;
that.detailSource = getThreeDataSource(that.jobContent) that.detailSource = getThreeDataSource(that.jobContent)
console.log(999,that.detailSource)
that.toLocationCode = that.subList[0].toLocationCode that.toLocationCode = that.subList[0].toLocationCode
that.allowBiggerQty = res.data.allowBiggerQty; that.allowBiggerQty = res.data.allowBiggerQty;
that.resizeCollapse(); that.resizeCollapse();
@ -231,7 +229,6 @@
getScanResult(result, managementTypeParams) { getScanResult(result, managementTypeParams) {
console.log(222,result)
this.managementType = managementTypeParams this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result) this.setDataBatch(result)
@ -253,7 +250,6 @@
this.showMessage("没有库存余额") this.showMessage("没有库存余额")
return; return;
} }
console.log(9558,result)
// var inventoryStatus = "OK"; // var inventoryStatus = "OK";
var detail = this.detailSource.find(r => r.itemCode == itemCode); var detail = this.detailSource.find(r => r.itemCode == itemCode);
@ -285,7 +281,6 @@
if (isExit == undefined) { if (isExit == undefined) {
// this.showErrorMessage("" + batch + "" + result // this.showErrorMessage("" + batch + "" + result
// .fromLocationCode + "") // .fromLocationCode + "")
console.log(222,this.fromLocationCode)
detail.subList.push({ detail.subList.push({
scaned:true, scaned:true,
fromLocationCode:this.fromLocationCode, fromLocationCode:this.fromLocationCode,
@ -306,7 +301,6 @@
// toLocationCode : result.balance.toLocationCode, // toLocationCode : result.balance.toLocationCode,
// }] // }]
}) })
console.log(999,detail)
detail.handleQty = 0 detail.handleQty = 0
detail.qty = 0 detail.qty = 0
detail.subList.forEach(item=>{ detail.subList.forEach(item=>{
@ -369,7 +363,6 @@
detail.handleQty = calc.add(detail.handleQty,item.handleQty) detail.handleQty = calc.add(detail.handleQty,item.handleQty)
}) })
} else { } else {
debugger
itemDetail.scaned = true; itemDetail.scaned = true;
this.detailSource[0].subList.sort(compareAsc('scaned')); // this.detailSource[0].subList.sort(compareAsc('scaned')); //
itemDetail.handleQty = result.label.qty; itemDetail.handleQty = result.label.qty;
@ -432,13 +425,11 @@
this.detailSource.forEach(toLocation => { this.detailSource.forEach(toLocation => {
itemCodes.push(toLocation.itemCode) itemCodes.push(toLocation.itemCode)
}) })
console.log( this.detailSource)
// //
getManagementPrecisions(itemCodes, locationCode, res => { getManagementPrecisions(itemCodes, locationCode, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
console.log(res)
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING' this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING'
this.submitJob(); this.submitJob();
@ -602,7 +593,6 @@
var subList = [] var subList = []
var createTime = getCurrDateTime(); var createTime = getCurrDateTime();
var creator = this.$store.state.user.id var creator = this.$store.state.user.id
console.log(222,this.detailSource)
this.detailSource.forEach(toLocationCode => { this.detailSource.forEach(toLocationCode => {
let obj = {...toLocationCode} let obj = {...toLocationCode}
delete obj.subList delete obj.subList
@ -754,7 +744,6 @@
}) })
} }
this.fromLocationCode = fromLocationCode this.fromLocationCode = fromLocationCode
console.log(this.fromLocationCode)
this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent); this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent);
}, },

6
src/pages/issue/job/issueDetailBatch.vue

@ -221,7 +221,6 @@
that.jobStatus = res.data.status that.jobStatus = res.data.status
that.subList = res.data.subList; that.subList = res.data.subList;
that.detailSource = getThreeDataSource(that.jobContent) that.detailSource = getThreeDataSource(that.jobContent)
console.log(455,that.detailSource)
that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode
that.fromLocationCode = that.subList[0].fromLocationCode that.fromLocationCode = that.subList[0].fromLocationCode
// //
@ -261,7 +260,6 @@
}, },
getScanResult(result, managementTypeParams) { getScanResult(result, managementTypeParams) {
console.log(222,result)
this.managementType = managementTypeParams this.managementType = managementTypeParams
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){
this.setDataBatch(result) this.setDataBatch(result)
@ -283,7 +281,6 @@
this.showMessage("没有库存余额") this.showMessage("没有库存余额")
return; return;
} }
console.log(9558,result)
// var inventoryStatus = "OK"; // var inventoryStatus = "OK";
var detail = this.detailSource.find(r => r.itemCode == itemCode); var detail = this.detailSource.find(r => r.itemCode == itemCode);
@ -335,7 +332,6 @@
// toLocationCode : result.balance.toLocationCode, // toLocationCode : result.balance.toLocationCode,
// }] // }]
}) })
console.log(999,detail)
detail.handleQty = 0 detail.handleQty = 0
detail.qty = 0 detail.qty = 0
detail.subList.forEach(item=>{ detail.subList.forEach(item=>{
@ -592,7 +588,6 @@
let str1="" let str1=""
var totalQty =0; var totalQty =0;
var taskQty =0; var taskQty =0;
console.log(this.detailSource)
this.detailSource.forEach(detail => { this.detailSource.forEach(detail => {
detail.subList.forEach(item => { detail.subList.forEach(item => {
if(item.scaned){ if(item.scaned){
@ -611,7 +606,6 @@
if(str){ if(str){
str = '任务明细未全部完成,是否提交?\n' + str str = '任务明细未全部完成,是否提交?\n' + str
} }
console.log(333,str1)
if(str1){ if(str1){
this.$refs.comMessage.showQuestionMessage1(str1, 'red', res => { this.$refs.comMessage.showQuestionMessage1(str1, 'red', res => {

Loading…
Cancel
Save