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: '生效时间',