|
@ -333,6 +333,8 @@ import { nextTick } from 'vue'; |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let isAllSubmit = Number(Number(this.dataContent.goodQty)+ Number(this.showList.length))==Number(this.dataContent.planQty) |
|
|
|
|
|
|
|
|
var planeInfo = await getPlanByNumber(queryParams); |
|
|
var planeInfo = await getPlanByNumber(queryParams); |
|
|
if (planeInfo.data && planeInfo.data.list.length > 0) { |
|
|
if (planeInfo.data && planeInfo.data.list.length > 0) { |
|
@ -355,10 +357,15 @@ import { nextTick } from 'vue'; |
|
|
throw new Error("未查找到单据信息") |
|
|
throw new Error("未查找到单据信息") |
|
|
} |
|
|
} |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.showList = []; |
|
|
if(isAllSubmit){ |
|
|
this.allList = []; |
|
|
this.clearData() |
|
|
this.index = 1; |
|
|
}else{ |
|
|
this.dataContent.handleQty = 0; |
|
|
this.showList = []; |
|
|
|
|
|
this.allList = []; |
|
|
|
|
|
this.index = 1; |
|
|
|
|
|
this.dataContent.handleQty = 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nextTick(()=>{ |
|
|
nextTick(()=>{ |
|
@ -450,7 +457,9 @@ import { nextTick } from 'vue'; |
|
|
calcFgQty() { |
|
|
calcFgQty() { |
|
|
this.dataContent.handleQty = this.showList.length; |
|
|
this.dataContent.handleQty = this.showList.length; |
|
|
// this.dataContent.handleQty = this.allList.length; |
|
|
// this.dataContent.handleQty = this.allList.length; |
|
|
if (this.dataContent.handleQty == this.dataContent.packQty) { |
|
|
// dataContent.noGoodQty 未完工 |
|
|
|
|
|
|
|
|
|
|
|
if (this.dataContent.handleQty == this.dataContent.packQty || (this.dataContent.noGoodQty<this.dataContent.packQty&&this.dataContent.handleQty == this.dataContent.noGoodQty)) { |
|
|
if (this.$refs.scanPopup) { |
|
|
if (this.$refs.scanPopup) { |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
} |
|
|
} |
|
|