|
|
@ -8,6 +8,7 @@ import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
import * as UserApi from '@/api/system/user' |
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
|
console.log(userListAll) |
|
|
|
const userStore = useUserStore() |
|
|
|
const factoryList = await selectAllFactoryArea() |
|
|
|
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) |
|
|
@ -173,7 +174,6 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
isSearch: false, |
|
|
|
api: () => userListAll, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return userListAll.find((account) => account.id == cellValue)?.nickname |
|
|
@ -184,11 +184,24 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'name', |
|
|
|
labelField: 'nickname', |
|
|
|
valueField: 'id' |
|
|
|
}, |
|
|
|
placeholder: "请先选择模具" |
|
|
|
}, |
|
|
|
}, |
|
|
|
isSearch:true, |
|
|
|
search:{ |
|
|
|
component: 'Select', |
|
|
|
api: () => userListAll, |
|
|
|
componentProps: { |
|
|
|
collapseTags:true, |
|
|
|
collapseTagsTooltip:true, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'nickname', |
|
|
|
valueField: 'id' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|