|
|
@ -2,7 +2,9 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
|
import { validateHanset,validateNumDot, validateEmail } from '@/utils/validator' |
|
|
|
import * as SupplierApi from '@/api/eam/basic/supplier' |
|
|
|
const factoryList = await selectAllFactoryArea() |
|
|
|
const supplierList = await SupplierApi.getSupplierNoPage() |
|
|
|
// 表单校验
|
|
|
|
export const DeviceAccountsRules = reactive({ |
|
|
|
name: [ |
|
|
@ -202,12 +204,23 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商编号', |
|
|
|
label: '供应商', |
|
|
|
field: 'supplierNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
form:{ |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: supplierList, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'name', |
|
|
|
valueField: 'number' |
|
|
|
}, |
|
|
|
placeholder: "请选择供应商" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '出厂日期', |
|
|
|