diff --git a/mycomponents/qty/CountQtyEdit.vue b/mycomponents/qty/CountQtyEdit.vue index 645ad726..efaf99f3 100644 --- a/mycomponents/qty/CountQtyEdit.vue +++ b/mycomponents/qty/CountQtyEdit.vue @@ -98,7 +98,7 @@ data() { return { allQty: 0, - stdCount: 1, + stdCount: 0, stateData: 0, balanceQty: 0, inventoryStatus: "", @@ -192,7 +192,9 @@ }, 1000) }, calcQty(val) { - this.allQty = val * this.dataContent.stdPackQty; + if(val>0){ + this.allQty = val * Number(this.dataContent.stdPackQty); + } }, setValue() { this.dataContent.handleQty = Number(this.allQty) diff --git a/mycomponents/qty/compareQty.vue b/mycomponents/qty/compareQty.vue index 1d4f7e8b..28023229 100644 --- a/mycomponents/qty/compareQty.vue +++ b/mycomponents/qty/compareQty.vue @@ -3,7 +3,7 @@ - + {{Number(handleQty)}} diff --git a/pages/count/coms/comCountDetailCard.vue b/pages/count/coms/comCountDetailCard.vue index 0cfd55ea..b01ec5d0 100644 --- a/pages/count/coms/comCountDetailCard.vue +++ b/pages/count/coms/comCountDetailCard.vue @@ -131,7 +131,7 @@ if (res) { // this.dataContent.subList.splice(index, 1) item.scaned = false; - item.record = null; + item.handleQty = 0; this.$emit('removePack') } }); diff --git a/pages/count/job/countDetail.vue b/pages/count/job/countDetail.vue index 375e14b7..a91c833b 100644 --- a/pages/count/job/countDetail.vue +++ b/pages/count/job/countDetail.vue @@ -514,17 +514,17 @@ }); var params = this.setParams() console.log("提交参数", JSON.stringify(params)); - countJobSubmit(params).then(res => { - uni.hideLoading() - if (res.data) { - this.showCommitSuccessMessage("提交成功
生成盘点记录
" + res.data) - } else { - this.showErrorMessage("提交失败[" + res.msg + "]") - } - }).catch(error => { - uni.hideLoading() - this.showErrorMessage(error) - }) + // countJobSubmit(params).then(res => { + // uni.hideLoading() + // if (res.data) { + // this.showCommitSuccessMessage("提交成功
生成盘点记录
" + res.data) + // } else { + // this.showErrorMessage("提交失败[" + res.msg + "]") + // } + // }).catch(error => { + // uni.hideLoading() + // this.showErrorMessage(error) + // }) },