diff --git a/src/views/modules/book/book-add-or-update.vue b/src/views/modules/book/book-add-or-update.vue index 917b490..e369aea 100644 --- a/src/views/modules/book/book-add-or-update.vue +++ b/src/views/modules/book/book-add-or-update.vue @@ -462,9 +462,9 @@ this.$refs['dataForm'].validate((valid) => { if (valid) { //价格逻辑 - let abroadPrice = this.dataForm.abroadPrice; - if(abroadPrice){ - abroadPrice = this.formatNumber(Number(abroadPrice)); + let abroadPrice = this.formatNumber(Number(this.dataForm.abroadPrice)); + if(!abroadPrice&&abroadPrice!=0){ + return } this.$http({ url: this.$http.adornUrl(`/book/book/${!this.dataForm.id ? 'save' : 'update'}`), diff --git a/src/views/modules/book/book.vue b/src/views/modules/book/book.vue index f17658f..0977605 100644 --- a/src/views/modules/book/book.vue +++ b/src/views/modules/book/book.vue @@ -33,6 +33,9 @@ + + +