|
|
@ -83,14 +83,14 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
api: () => factoryDeptList, |
|
|
|
api: () => factoryList, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return factoryDeptList.find((account) => account.id == cellValue)?.name |
|
|
|
return factoryList.find((account) => account.id == cellValue)?.name |
|
|
|
}, |
|
|
|
search: { |
|
|
|
show: true, |
|
|
|
component: 'Select', |
|
|
|
api: () => factoryDeptList, |
|
|
|
api: () => factoryList, |
|
|
|
componentProps: { |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'name', |
|
|
@ -101,7 +101,7 @@ export const MoldAccounts = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
api: () => factoryDeptList, |
|
|
|
api: () => factoryList, |
|
|
|
componentProps: { |
|
|
|
disabled: false, |
|
|
|
optionsAlias: { |
|
|
|