diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts index 6ba60cf79..9154437fa 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts @@ -14,6 +14,8 @@ import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/w import * as WorkstationApi from '@/api/wms/workstation' import { validateYS } from '@/utils/validator' +import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data"; +import * as TeamApi from "@/api/wms/team"; const { t } = useI18n() // 国际化 @@ -106,6 +108,74 @@ export const Workstation = useCrudSchemas(reactive([ } } }, + { + label: '班组代码', + field: 'teamCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择班组代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '班组信息', // 查询弹窗标题 + searchAllSchemas: Team.allSchemas, // 查询弹窗所需类 + searchPage: TeamApi.getTeamPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + } + }, + { + label: '设备代码', + field: 'equipmentCode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择设备代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '设备信息', // 查询弹窗标题 + searchAllSchemas: Team.allSchemas, // 查询弹窗所需类 + searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + } + }, + // { + // label: '产品代码', + // field: 'productCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isSearch: true + // }, + // { + // label: '工序代码', + // field: 'processCode', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isSearch: true + // }, { label: '原料库位', field: 'rawLocationCode', @@ -288,4 +358,4 @@ export const WorkstationRules = reactive({ fgLocationCode: [ { required: true, message: '请选择成品库位', trigger: 'change' } ], -}) \ No newline at end of file +})