|
|
@ -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) |
|
|
|
} |
|
|
|
|
|
|
|