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
+ }
}
}