From 33941173a3b33de5dae6db0a7f6adb8a958053e7 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Fri, 18 Jul 2025 17:05:15 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=80=BB=E8=BE=91=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchaseInspection/edit.vue | 21 +++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
index e3a00ee1..12934fb7 100644
--- a/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
+++ b/src/views/foodManage/purchaseManage/purchaseInspection/edit.vue
@@ -126,12 +126,12 @@
- (scope.row.deliveryNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
+
- (scope.row.qualifiedNum=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
+
@@ -760,6 +760,23 @@ export default {
this.attachmentList.splice(sum, 1)
this.baseInfo.inspectAttachmentList.splice(sum, 1)
},
+ patternValue(row){
+ row.deliveryNum = row.deliveryNum.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1')
+ setTimeout(()=>{
+ if(Number(row.deliveryNum)>Number(row.orderNum)){
+ row.deliveryNum = row.orderNum
+ }
+ },500)
+
+ },
+ patternValue2(row){
+ row.qualifiedNum = row.qualifiedNum.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1')
+ setTimeout(()=>{
+ if(Number(row.qualifiedNum)>Number(row.deliveryNum)){
+ row.qualifiedNum = row.deliveryNum
+ }
+ },500)
+ },
//日期
formatDate(date) {
// 格式化为 YYYY-MM-DD