|
@ -78,6 +78,7 @@ import * as AssetsAccountApi from '@/api/eam/basic/assetsAccount' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { checkPermi } from '@/utils/permission' |
|
|
import { checkPermi } from '@/utils/permission' |
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
|
|
|
import {Item} from "@/views/eam/basic/item/item.data"; |
|
|
// 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/src/Detail.vue' |
|
|
// import Detail from '@/components/Detail/src/Detail.vue' |
|
@ -170,7 +171,19 @@ const buttonTableClick = async (val, row) => { |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
|
|
if(type=='create'){ |
|
|
|
|
|
Item.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == "number"){ |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else if(type=='update'){ |
|
|
|
|
|
Item.allSchemas.formSchema.forEach(item =>{ |
|
|
|
|
|
if(item.field == "number"){ |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
if (type == 'view') { |
|
|
if (type == 'view') { |
|
|
showView.value = true |
|
|
showView.value = true |
|
|
urls.value = row.filePathList |
|
|
urls.value = row.filePathList |
|
|