|
@ -1,9 +1,18 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { Itembasic } from '../itembasic/itembasic.data' |
|
|
import { Itembasic } from '../itembasic/itembasic.data' |
|
|
|
|
|
|
|
|
import * as AreaApi from '@/api/wms/areabasic' |
|
|
import * as AreaApi from '@/api/wms/areabasic' |
|
|
import { Area } from '../../factoryModeling/areabasic/areabasic.data' |
|
|
import { Area } from '../../factoryModeling/areabasic/areabasic.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as LocationgroupApi from '@/api/wms/locationgroup' |
|
|
|
|
|
import { Locationgroup } from '../../factoryModeling/locationgroup/locationgroup.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
|
|
import { Location } from '../../factoryModeling/location/location.data' |
|
|
|
|
|
|
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
import { Packageunit } from '../packageunit/packageunit.data' |
|
|
import { Packageunit } from '../packageunit/packageunit.data' |
|
|
|
|
|
|
|
@ -637,13 +646,83 @@ export const ItemareaRules = reactive({ |
|
|
export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '库位组', |
|
|
label: '库位组', |
|
|
field: 'locationGroup', |
|
|
field: 'locationGroupCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库位组代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库位组基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Locationgroup.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationgroupApi.getLocationgroupPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库位组代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库位组基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Locationgroup.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationgroupApi.getLocationgroupPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库位代码', |
|
|
label: '库位代码', |
|
|
field: 'locationCode', |
|
|
field: 'locationCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库位基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'locationGroupCode', |
|
|
|
|
|
value: 'locationGroupCode', |
|
|
|
|
|
message: '请选择库位组!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库位基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'locationGroupCode', |
|
|
|
|
|
value: 'locationGroupCode', |
|
|
|
|
|
message: '请选择库位组!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -656,12 +735,14 @@ export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者Id', |
|
|
label: '创建者Id', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -669,12 +750,14 @@ export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者Id', |
|
|
label: '最后更新者Id', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|