Browse Source

HL-5765WMS 业务类型中,在途库区应该做成放大镜且输入后校验的样式,应该和入库库区范围一样

hella_online_20240904
wangyufei 2 months ago
parent
commit
eddb280887
  1. 49
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

49
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 * as AreaApi from '@/api/wms/areabasic'
import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data' 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() // 国际化 const { t } = useI18n() // 国际化
@ -241,12 +243,57 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '在途库', label: '在途库',
field: 'onTheWayArea', field: 'onTheWayArea',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 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: '生效时间', label: '生效时间',

Loading…
Cancel
Save