diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 11f048de..735d5205 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -14,11 +14,11 @@ - 标包个数 : + 包装数量 : - + @@ -94,9 +94,7 @@ maxlength: 10 } }, - watch: { - - }, + created() { }, @@ -119,6 +117,18 @@ default: false } }, + watch:{ + 'allQty'(newVal){ + if(newVal % Number(this.dataContent.packQty)>0){ + this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty))+1 + + }else{ + this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty)) + + } + console.log('allQty===',newVal) + } + }, methods: { checkNum(e) { let value = e.detail.value; diff --git a/src/mycomponents/status/balanceStatus.vue b/src/mycomponents/status/balanceStatus.vue index 786c4ff9..0fb32b1c 100644 --- a/src/mycomponents/status/balanceStatus.vue +++ b/src/mycomponents/status/balanceStatus.vue @@ -1,6 +1,6 @@