|
|
@ -1,19 +1,12 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { selectAllFactoryArea } from '@/api/system/dept' |
|
|
|
import * as MoldAccountsApi from '@/api/eam/mold/moldAccounts' |
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { selecUserByType } from '@/api/system/dept' |
|
|
|
import * as MoldMaintenanceMainApi from '@/api/eam/mold/moldMaintenanceMain' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { ItemSearchTable } from '../../basic/item/item.data' |
|
|
|
import * as ItemApi from '@/api/eam/basic/item' |
|
|
|
const userStore = useUserStore() |
|
|
|
const factoryList = await selectAllFactoryArea() |
|
|
|
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) |
|
|
|
const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: undefined, flag: 1 }) |
|
|
|
const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: undefined, flag: undefined }) |
|
|
|
const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: undefined, flag: 2}) |
|
|
|
const repairList = await MoldMaintenanceMainApi.getMoldMainTempList('MOLD') |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const MoldMaintainOrderMainRules = reactive({ |
|
|
@ -37,12 +30,6 @@ export const MoldMaintainOrderMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: '150', |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '名称',
|
|
|
|
// field: 'name',
|
|
|
|
// sort: 'custom',
|
|
|
|
// isSearch: true,
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '保养计划单号', |
|
|
|
field: 'planNumber', |
|
|
|