|
@ -14,7 +14,7 @@ const userListAll = await UserApi.getSimpleUserList() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const factoryList = await selectAllFactoryArea() |
|
|
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) |
|
|
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) |
|
|
const moldListAll = await MoldAccountsApi.getMoldAccountsAllNoPage({}) |
|
|
const moldListAll = await MoldAccountsApi.getMoldAccountsAllNoPage({}) |
|
|
const moldListByFactory = moldListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.dept.parentId) |
|
|
const moldListByFactory = moldListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.deptId) |
|
|
const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }) |
|
|
const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }) |
|
|
const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }) |
|
|
const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }) |
|
|
const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 2}) |
|
|
const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 2}) |
|
@ -101,7 +101,7 @@ export const MoldInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
search: { |
|
|
search: { |
|
|
show: true, |
|
|
show: true, |
|
|
component: 'Select', |
|
|
component: 'Select', |
|
|
api: () => moldList, |
|
|
api: () => moldListByFactory, |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
optionsAlias: { |
|
|
optionsAlias: { |
|
|
labelField: 'name', |
|
|
labelField: 'name', |
|
|