|
|
@ -47,6 +47,7 @@ |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import SYMonthImportForm from "@/components/ImportForm/src/SYMonthImportForm.vue"; |
|
|
|
import * as LocationApi from "@/api/eam/basic/location"; |
|
|
|
import {LocationArea} from "@/views/eam/basic/locationArea/locationArea.data"; |
|
|
|
|
|
|
|
defineOptions({ name: 'Supplier' }) |
|
|
|
|
|
|
@ -132,6 +133,19 @@ |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type : string, row ?: any) => { |
|
|
|
if(type=='create'){ |
|
|
|
Supplier.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if(type=='update'){ |
|
|
|
Supplier.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|