From 0ef786ab0159952057718e5e50785bf50d9ae498 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com>
Date: Wed, 19 Jul 2023 10:37:26 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E6=9C=9F=E5=AD=98=E5=9C=A8=E6=95=B0?=
 =?UTF-8?q?=E6=8D=AE=E4=B8=8D=E5=85=81=E8=AE=B8=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/views/inout/DialogEditCode.vue | 28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/src/views/inout/DialogEditCode.vue b/src/views/inout/DialogEditCode.vue
index ed42f91..dd949a5 100644
--- a/src/views/inout/DialogEditCode.vue
+++ b/src/views/inout/DialogEditCode.vue
@@ -18,7 +18,7 @@
             
+                      :disabled="editType!=1 || !isProduceDate">
           
         
         
@@ -26,19 +26,19 @@
             
+                      :disabled="editType!=1 || !isExpireDate">
           
         
       
       
         
           
-            
+            
           
         
         
           
-            
+            
           
         
       
@@ -75,6 +75,7 @@ import {
   findByCode,
   saveCode
 } from "@/api/inout/code";
+import { isBlank } from '@/utils/strUtil'
 
 export default {
   name: "editCode",
@@ -101,7 +102,11 @@ export default {
   data() {
     return {
       xlhEnable: false,
-      isUseDyCheck: false
+      isUseDyCheck: false,
+      isProduceDate: false,
+      isExpireDate: false,
+      isBatchNo: false,
+      isSerialNo: false,
     };
   },
 
@@ -154,6 +159,19 @@ export default {
 
     this.editData = JSON.parse(JSON.stringify(this.codeDetail));
     this.findByCode();
+    //判断三区有数据的不允许修改
+    if(isBlank(this.editData.produceDate)){
+      this.isProduceDate=true
+    }
+    if(isBlank(this.editData.expireDate)){
+      this.isExpireDate=true
+    }
+    if(isBlank(this.editData.batchNo)){
+      this.isBatchNo=true
+    }
+    if(isBlank(this.editData.serialNo)){
+      this.isSerialNo=true
+    }
   }
 }