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