diff --git a/components/buns-post-edit-templates/bpe-gooditemsize-tmp.vue b/components/buns-post-edit-templates/bpe-gooditemsize-tmp.vue index a2898f5..2c5d5a2 100644 --- a/components/buns-post-edit-templates/bpe-gooditemsize-tmp.vue +++ b/components/buns-post-edit-templates/bpe-gooditemsize-tmp.vue @@ -29,8 +29,11 @@ - - + + + @@ -61,9 +64,10 @@ let { cargoList, parcelQty } = this.submitVal let curQty = (+this.modelInfo.cargoQty) || 0 let qtMaxNum = parcelQty + curQty - cargoList.map(t=> { - if(t.cargoQty) { - qtMaxNum = qtMaxNum - t.cargoQty + cargoList.map(t=> { + let _itemQty = (+t.cargoQty) || 0 + if(_itemQty) { + qtMaxNum = qtMaxNum - _itemQty } }) if(qtMaxNum < 0) {