From 1cdf3bf6426627ed2d8e4ef03ed2a22a790f16d7 Mon Sep 17 00:00:00 2001 From: bjang03 Date: Wed, 13 Mar 2024 17:05:30 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=B7=A5=E4=BD=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8F=AD=E7=BB=84=E3=80=81=E4=BA=A7=E7=BA=BF?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8F=8A=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workstation/workstation.data.ts | 72 ++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) 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 +})