diff --git a/src/views/inStorage/inspectionGoods/inspectionGoodsAdd.vue b/src/views/inStorage/inspectionGoods/inspectionGoodsAdd.vue
index 25527d4..a50a4ba 100644
--- a/src/views/inStorage/inspectionGoods/inspectionGoodsAdd.vue
+++ b/src/views/inStorage/inspectionGoods/inspectionGoodsAdd.vue
@@ -85,7 +85,7 @@
diff --git a/src/views/inStorage/receivingGoods/inStorageAdd.vue b/src/views/inStorage/receivingGoods/inStorageAdd.vue
index fb79863..c843be3 100644
--- a/src/views/inStorage/receivingGoods/inStorageAdd.vue
+++ b/src/views/inStorage/receivingGoods/inStorageAdd.vue
@@ -52,7 +52,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
@@ -63,7 +63,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/outStorage/alreadyOutStorage/index.vue b/src/views/outStorage/alreadyOutStorage/index.vue
index 4b047ff..fa8bb92 100644
--- a/src/views/outStorage/alreadyOutStorage/index.vue
+++ b/src/views/outStorage/alreadyOutStorage/index.vue
@@ -345,7 +345,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/outStorage/toAllocated/index.vue b/src/views/outStorage/toAllocated/index.vue
index 602f26a..5631f59 100644
--- a/src/views/outStorage/toAllocated/index.vue
+++ b/src/views/outStorage/toAllocated/index.vue
@@ -344,7 +344,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/outStorage/toOutStorage/index.vue b/src/views/outStorage/toOutStorage/index.vue
index b1bab92..0e73363 100644
--- a/src/views/outStorage/toOutStorage/index.vue
+++ b/src/views/outStorage/toOutStorage/index.vue
@@ -345,7 +345,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/outStorage/zeroPicking/index.vue b/src/views/outStorage/zeroPicking/index.vue
index 0ffaa6b..e9a019a 100644
--- a/src/views/outStorage/zeroPicking/index.vue
+++ b/src/views/outStorage/zeroPicking/index.vue
@@ -345,7 +345,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue b/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue
index 159b217..e0ec5e4 100644
--- a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue
+++ b/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue
@@ -209,7 +209,7 @@
value = value.replace(/(-)0+(\d+)/g, '$1$2') // 不能出现-01,-02类似
value = value.replace(/^0+(\d)/, '$1') // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
value = value.replace(/(\d{15})\d*/, '$1') // 最多保留15位整数
- value = value.replace(/(\.\d{2})\d*/, '$1') // 最多保留2位小数
+ value = value.replace(/(\.\d{3})\d*/, '$1') // 最多保留2位小数
return value
},
showAdd() {
diff --git a/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue b/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue
index 14edc39..93e4aec 100644
--- a/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue
+++ b/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue
@@ -232,7 +232,7 @@
value = value.replace(/(-)0+(\d+)/g, '$1$2') // 不能出现-01,-02类似
value = value.replace(/^0+(\d)/, '$1') // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
value = value.replace(/(\d{15})\d*/, '$1') // 最多保留15位整数
- value = value.replace(/(\.\d{2})\d*/, '$1') // 最多保留2位小数
+ value = value.replace(/(\.\d{3})\d*/, '$1') // 最多保留2位小数
return value
},
// 搜索条件效果
diff --git a/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue b/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue
index 6dc0f06..f78b294 100644
--- a/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue
+++ b/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue
@@ -80,7 +80,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
@@ -88,7 +88,7 @@
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
@@ -123,13 +123,13 @@
* 可用上限
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
* 可用下限
+ oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
diff --git a/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue b/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue
index 5eedbb4..12abffe 100644
--- a/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue
+++ b/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue
@@ -61,7 +61,7 @@
+ placeholder="" />
@@ -132,6 +132,7 @@
value = value.replace(/-(0+)/g, "0"); // 不能出现-0,-001,-0001类似
value = value.replace(/^0+(\d)/, "$1"); // 第一位0开头,0后面为数字,则过滤掉,取后面的数字
value = value.replace(/(-?\d{15})\d*/, '$1') // 最多保留15位整数
+ value = value.replace(/(\.\d{3})\d*/, '$1') // 最多保留2位小数
// this.height = value
},
showAdd() {