From eddb2808877f45b32c242053b19986589d1c7859 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 30 Aug 2024 09:46:29 +0800 Subject: [PATCH] =?UTF-8?q?HL-5765WMS=20=E4=B8=9A=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=AD=EF=BC=8C=E5=9C=A8=E9=80=94=E5=BA=93=E5=8C=BA?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=81=9A=E6=88=90=E6=94=BE=E5=A4=A7=E9=95=9C?= =?UTF-8?q?=E4=B8=94=E8=BE=93=E5=85=A5=E5=90=8E=E6=A0=A1=E9=AA=8C=E7=9A=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E5=BA=94=E8=AF=A5=E5=92=8C=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=BA=93=E5=8C=BA=E8=8C=83=E5=9B=B4=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../businesstype/businesstype.data.ts | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts index 674fafe5f..ee05b91d9 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts @@ -3,6 +3,8 @@ import { dateFormatter } from '@/utils/formatTime' import * as AreaApi from '@/api/wms/areabasic' import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data' +import * as WorkstationApi from '@/api/wms/workstation' +import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' const { t } = useI18n() // 国际化 @@ -241,12 +243,57 @@ export const Businesstype = useCrudSchemas(reactive([ }, }, { - label: '在途库区', + label: '在途库位', field: 'onTheWayArea', sort: 'custom', table: { width: 150 }, + tableForm:{ + isInpuFocusShow: true, // 开启查询弹窗 + searchListPlaceholder: '请选择在途库位', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "ON_THE_WAY", + isMainValue: false + }] + }, + form: { + componentProps: { + enterSearch: true, + isSearchList: true, + searchListPlaceholder: '请选择在途库位', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "ON_THE_WAY", + isMainValue: false + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true, + }], // 失去焦点校验参数 + } + }, }, { label: '生效时间',