From 5ad43f13b7cb41daa4a76ecc6c77f57cbb572313 Mon Sep 17 00:00:00 2001
From: liuyuan <582976274@qq.com>
Date: Thu, 2 Jan 2025 15:45:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E4=BB=98?=
=?UTF-8?q?=E8=B4=B9=E4=BB=B7=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/book/book-add-or-update.vue | 6 +++---
src/views/modules/book/book.vue | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
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 @@
+
+ ${{ scope.row.abroadPrice }}
+