From 37d227dc0aa2971b75bd0684911af2ca69c404b6 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Thu, 10 Jul 2025 09:50:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../accountCenter/account/accountManager/index.vue | 12 ++++++------
.../canteen/accountCenter/account/wallet/index.vue | 4 ++--
.../canteen/accountCenter/butie/butie/index.vue | 8 ++++----
src/views/canteen/dish/menu/detail.vue | 4 ++--
src/views/canteen/dish/menu/edit.vue | 4 ++--
src/views/canteen/order/offlineManagement/index.vue | 2 +-
src/views/canteen/order/reserveManagement/index.vue | 2 +-
.../foodManage/purchaseManage/contractList/edit.vue | 2 +-
.../purchaseManage/purchaseInspection/edit.vue | 2 +-
.../foodManage/purchaseManage/purchaseOrder/edit.vue | 2 +-
.../foodManage/purchaseManage/purchasePlan/edit.vue | 2 +-
.../foodManage/stockManage/warehouseIn/edit.vue | 2 +-
.../foodManage/supplierManage/supplierList/index.vue | 4 ++--
src/views/kitchen/wasteManage/wasteGarbage/index.vue | 4 ++--
14 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/src/views/canteen/accountCenter/account/accountManager/index.vue b/src/views/canteen/accountCenter/account/accountManager/index.vue
index 7f279ff0..6aad7f4d 100644
--- a/src/views/canteen/accountCenter/account/accountManager/index.vue
+++ b/src/views/canteen/accountCenter/account/accountManager/index.vue
@@ -187,11 +187,11 @@
(form.walletLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ @input="(v)=>(form.walletLimitBalance=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
(form.subLimitBalance=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ @input="(v)=>(form.subLimitBalance=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -349,7 +349,7 @@
(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -460,7 +460,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -529,7 +529,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
diff --git a/src/views/canteen/accountCenter/account/wallet/index.vue b/src/views/canteen/accountCenter/account/wallet/index.vue
index 3089ae35..aef20811 100644
--- a/src/views/canteen/accountCenter/account/wallet/index.vue
+++ b/src/views/canteen/accountCenter/account/wallet/index.vue
@@ -171,7 +171,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -241,7 +241,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
diff --git a/src/views/canteen/accountCenter/butie/butie/index.vue b/src/views/canteen/accountCenter/butie/butie/index.vue
index 86d74e09..80453df6 100644
--- a/src/views/canteen/accountCenter/butie/butie/index.vue
+++ b/src/views/canteen/accountCenter/butie/butie/index.vue
@@ -179,7 +179,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -263,7 +263,7 @@
(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -406,7 +406,7 @@
(form.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(form.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
@@ -482,7 +482,7 @@
(batchForm.amount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))">
+ @input="(v)=>(batchForm.amount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))">
元
diff --git a/src/views/canteen/dish/menu/detail.vue b/src/views/canteen/dish/menu/detail.vue
index f6918264..fd564166 100644
--- a/src/views/canteen/dish/menu/detail.vue
+++ b/src/views/canteen/dish/menu/detail.vue
@@ -182,12 +182,12 @@
- (scope.row.price=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.price=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
- (scope.row.salePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.salePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/canteen/dish/menu/edit.vue b/src/views/canteen/dish/menu/edit.vue
index 3b9396f6..dbc3970a 100644
--- a/src/views/canteen/dish/menu/edit.vue
+++ b/src/views/canteen/dish/menu/edit.vue
@@ -182,12 +182,12 @@
- (scope.row.price=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.price=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
- (scope.row.salePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.salePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/canteen/order/offlineManagement/index.vue b/src/views/canteen/order/offlineManagement/index.vue
index c19b9fed..bf18aa20 100644
--- a/src/views/canteen/order/offlineManagement/index.vue
+++ b/src/views/canteen/order/offlineManagement/index.vue
@@ -464,7 +464,7 @@
{{ (rowData.refundAmount/100).toFixed(2) }}
- (rowData.refundMoney=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))" style="width: 200px;"/>
+ (rowData.refundMoney=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))" style="width: 200px;"/>
diff --git a/src/views/canteen/order/reserveManagement/index.vue b/src/views/canteen/order/reserveManagement/index.vue
index 5c229fac..0b4e8af1 100644
--- a/src/views/canteen/order/reserveManagement/index.vue
+++ b/src/views/canteen/order/reserveManagement/index.vue
@@ -434,7 +434,7 @@
{{ (rowData.refundAmount/100).toFixed(2) }}
- (rowData.refundMoney=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))" style="width: 200px;"/>
+ (rowData.refundMoney=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))" style="width: 200px;"/>
diff --git a/src/views/foodManage/purchaseManage/contractList/edit.vue b/src/views/foodManage/purchaseManage/contractList/edit.vue
index 77c177e2..d5d45c39 100644
--- a/src/views/foodManage/purchaseManage/contractList/edit.vue
+++ b/src/views/foodManage/purchaseManage/contractList/edit.vue
@@ -134,7 +134,7 @@
- (scope.row.singlePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.singlePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
index 3ab5b129..22d86d05 100644
--- a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
+++ b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
@@ -90,7 +90,7 @@
- (scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/foodManage/purchaseManage/purchaseOrder/edit.vue b/src/views/foodManage/purchaseManage/purchaseOrder/edit.vue
index b28b6c5b..ce18d6ca 100644
--- a/src/views/foodManage/purchaseManage/purchaseOrder/edit.vue
+++ b/src/views/foodManage/purchaseManage/purchaseOrder/edit.vue
@@ -121,7 +121,7 @@
- (scope.row.singlePrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.singlePrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/foodManage/purchaseManage/purchasePlan/edit.vue b/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
index 852fd87b..33a5bcf6 100644
--- a/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
+++ b/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
@@ -82,7 +82,7 @@
- (scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/foodManage/stockManage/warehouseIn/edit.vue b/src/views/foodManage/stockManage/warehouseIn/edit.vue
index 072624fa..3d411761 100644
--- a/src/views/foodManage/stockManage/warehouseIn/edit.vue
+++ b/src/views/foodManage/stockManage/warehouseIn/edit.vue
@@ -100,7 +100,7 @@
- (scope.row.unitPrice=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ (scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/foodManage/supplierManage/supplierList/index.vue b/src/views/foodManage/supplierManage/supplierList/index.vue
index 40a0ce5d..6dbc4f6f 100644
--- a/src/views/foodManage/supplierManage/supplierList/index.vue
+++ b/src/views/foodManage/supplierManage/supplierList/index.vue
@@ -325,13 +325,13 @@
(form.lastYearOperatingIncome=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ @input="(v)=>(form.lastYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
(form.beforeYearOperatingIncome=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ @input="(v)=>(form.beforeYearOperatingIncome=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
diff --git a/src/views/kitchen/wasteManage/wasteGarbage/index.vue b/src/views/kitchen/wasteManage/wasteGarbage/index.vue
index 7b281830..f947c1f3 100644
--- a/src/views/kitchen/wasteManage/wasteGarbage/index.vue
+++ b/src/views/kitchen/wasteManage/wasteGarbage/index.vue
@@ -180,7 +180,7 @@
(form.weight=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"
+ maxlength="4" @input="(v)=>(form.weight=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"
/>
@@ -196,7 +196,7 @@
(form.saleAmount=v.replace(/^(\d+)(\.\d{0,2})?.*$/, '$1$2'))"/>
+ @input="(v)=>(form.saleAmount=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>