Browse Source

剩余未满箱自动提交+返回首页

lijuncheng0816
wangyufei 1 month ago
parent
commit
5fb50d500f
  1. 11
      src/pages/fg/receiptByPlan.vue

11
src/pages/fg/receiptByPlan.vue

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

Loading…
Cancel
Save