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