|
|
@ -11,6 +11,8 @@ import * as ProcessApi from "@/api/mes/process"; |
|
|
|
import * as AbilityInfoApi from "@/api/mes/abilityInfo"; |
|
|
|
import {AbilityInfo} from "@/views/mes/abilityInfo/abilityInfo.data"; |
|
|
|
import {getOperstepsPage} from "@/api/mes/opersteps"; |
|
|
|
import {Opersteps} from "@/views/mes/opersteps/opersteps.data"; |
|
|
|
import {getPostPage} from "@/api/system/post"; |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const WorkstationRules = reactive({ |
|
|
@ -195,22 +197,6 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
export const searchPop = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '名称', |
|
|
|
field: 'name', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
export const Equipment = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
@ -239,7 +225,7 @@ export const Equipment = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm:true |
|
|
|
} |
|
|
|
])) |
|
|
|
export const Opersteps = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const Post = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
@ -263,34 +249,7 @@ export const Opersteps = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm:true, |
|
|
|
} |
|
|
|
])) |
|
|
|
export const Ability = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '名称', |
|
|
|
field: 'name', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false , |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm:true, |
|
|
|
isTableForm:true |
|
|
|
} |
|
|
|
])) |
|
|
|
export const equipmentPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -307,7 +266,7 @@ export const equipmentPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchListPlaceholder: '选择设备', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择设备', // 查询弹窗标题
|
|
|
|
searchAllSchemas: searchPop.allSchemas, // 查询弹窗所需类
|
|
|
|
searchAllSchemas: Equipment.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.checkEquipmentPageList, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
@ -318,9 +277,9 @@ export const equipmentPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
export const PostList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const stepPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '选择岗位', |
|
|
|
label: '选择操作步骤', |
|
|
|
field: 'list', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
@ -329,11 +288,11 @@ export const PostList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
multiple:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '选择岗位', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择岗位', // 查询弹窗标题
|
|
|
|
searchAllSchemas: searchPop.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.checkProcessPageList, // 查询弹窗所需分页方法
|
|
|
|
searchListPlaceholder: '选择操作步骤', // 输入框占位文本
|
|
|
|
searchField: 'stepsCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择操作步骤', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Opersteps.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: getOperstepsPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
@ -343,9 +302,9 @@ export const PostList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
export const stepPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const abilityPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '选择操作步骤', |
|
|
|
label: '选择能力', |
|
|
|
field: 'list', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
@ -354,11 +313,11 @@ export const stepPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
multiple:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '选择操作步骤', // 输入框占位文本
|
|
|
|
searchField: 'stepsCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择操作步骤', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Opersteps.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: getOperstepsPage, // 查询弹窗所需分页方法
|
|
|
|
searchListPlaceholder: '选择能力', // 输入框占位文本
|
|
|
|
searchField: 'ablityCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择能力', // 查询弹窗标题
|
|
|
|
searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
@ -368,9 +327,9 @@ export const stepPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
export const abilityPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const postPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '选择能力', |
|
|
|
label: '选择岗位', |
|
|
|
field: 'list', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
@ -379,11 +338,11 @@ export const abilityPopList = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
multiple:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '选择能力', // 输入框占位文本
|
|
|
|
searchField: 'ablityCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择能力', // 查询弹窗标题
|
|
|
|
searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法
|
|
|
|
searchListPlaceholder: '选择岗位', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '选择岗位', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Post.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: getPostPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|