diff --git a/src/views/mes/abilityInfo/index.vue b/src/views/mes/abilityInfo/index.vue
index 945375f6f..85bc873ae 100644
--- a/src/views/mes/abilityInfo/index.vue
+++ b/src/views/mes/abilityInfo/index.vue
@@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue'
+import {MesOrderMonthMain} from "@/views/mes/ordermonthplan/mesOrderMonthMain.data";
defineOptions({ name: 'AbilityInfo' })
@@ -150,6 +151,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ AbilityInfo.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'ablityCode') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/opersteps/index.vue b/src/views/mes/opersteps/index.vue
index 6250e6ef1..48bb42dd9 100644
--- a/src/views/mes/opersteps/index.vue
+++ b/src/views/mes/opersteps/index.vue
@@ -159,7 +159,6 @@ const openForm = (type: string, row?: any) => {
}
})
basicFormRef.value.open(type, row)
- basicFormRef.value.open(type, row)
}
// form表单提交
diff --git a/src/views/mes/ordermonthplan/index.vue b/src/views/mes/ordermonthplan/index.vue
index 6c59a287a..d525dfc0f 100644
--- a/src/views/mes/ordermonthplan/index.vue
+++ b/src/views/mes/ordermonthplan/index.vue
@@ -185,6 +185,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ MesOrderMonthMain.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'planMasterCode' || item.field == 'planSubCode') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/pattern/index.vue b/src/views/mes/pattern/index.vue
index e7a6f128d..459f4190f 100644
--- a/src/views/mes/pattern/index.vue
+++ b/src/views/mes/pattern/index.vue
@@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ Pattern.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'code') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/patternType/index.vue b/src/views/mes/patternType/index.vue
index 6a1ad681a..e0cc50b14 100644
--- a/src/views/mes/patternType/index.vue
+++ b/src/views/mes/patternType/index.vue
@@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ PatternType.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'code') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/qualityclass/index.vue b/src/views/mes/qualityclass/index.vue
index bd691dd60..aa7018cab 100644
--- a/src/views/mes/qualityclass/index.vue
+++ b/src/views/mes/qualityclass/index.vue
@@ -149,7 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
- console.log(row)
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ Qualityclass.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'code') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/qualitygroup/index.vue b/src/views/mes/qualitygroup/index.vue
index 2255e5593..04d6a8e6b 100644
--- a/src/views/mes/qualitygroup/index.vue
+++ b/src/views/mes/qualitygroup/index.vue
@@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ Qualitygroup.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'code') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/mes/workstation/index.vue b/src/views/mes/workstation/index.vue
index 13b6a688f..95255959d 100644
--- a/src/views/mes/workstation/index.vue
+++ b/src/views/mes/workstation/index.vue
@@ -171,6 +171,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
+ let disabledFlag = false
+ if(type==='update'){
+ disabledFlag = true
+ }
+ Workstation.allSchemas.formSchema.forEach(item => {
+ if (item.field == 'code') {
+ item.componentProps.disabled =disabledFlag
+ }
+ })
basicFormRef.value.open(type, row)
}
diff --git a/src/views/system/user/UserForm.vue b/src/views/system/user/UserForm.vue
index ae69d0b0a..d673cdc96 100644
--- a/src/views/system/user/UserForm.vue
+++ b/src/views/system/user/UserForm.vue
@@ -7,6 +7,23 @@
:rules="formRules"
label-width="80px"
>
+
+
+
+
+
+
+
+
+
+
+
+
@@ -38,23 +55,6 @@
-
-
-
-
-
-
-
-
-
-
-
-