Browse Source

mes部分功能,编辑的时候,编码不允许修改

master_hella_20240701
TengXF 6 months ago
parent
commit
ceadb799a4
  1. 10
      src/views/mes/abilityInfo/index.vue
  2. 1
      src/views/mes/opersteps/index.vue
  3. 9
      src/views/mes/ordermonthplan/index.vue
  4. 9
      src/views/mes/pattern/index.vue
  5. 9
      src/views/mes/patternType/index.vue
  6. 10
      src/views/mes/qualityclass/index.vue
  7. 9
      src/views/mes/qualitygroup/index.vue
  8. 9
      src/views/mes/workstation/index.vue

10
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 TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '../components/Detail.vue' import Detail from '../components/Detail.vue'
import {MesOrderMonthMain} from "@/views/mes/ordermonthplan/mesOrderMonthMain.data";
defineOptions({ name: 'AbilityInfo' }) defineOptions({ name: 'AbilityInfo' })
@ -150,6 +151,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

1
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)
basicFormRef.value.open(type, row)
} }
// form // form

9
src/views/mes/ordermonthplan/index.vue

@ -185,6 +185,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

9
src/views/mes/pattern/index.vue

@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

9
src/views/mes/patternType/index.vue

@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

10
src/views/mes/qualityclass/index.vue

@ -149,7 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

9
src/views/mes/qualitygroup/index.vue

@ -149,6 +149,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

9
src/views/mes/workstation/index.vue

@ -171,6 +171,15 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { 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) basicFormRef.value.open(type, row)
} }

Loading…
Cancel
Save