|
@ -1,5 +1,11 @@ |
|
|
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 { Itembasic } from '../itemManage/itembasic/itembasic.data' |
|
|
|
|
|
import * as AreaApi from '@/api/wms/areabasic' |
|
|
|
|
|
import { Area } from '../factoryModeling/areabasic/areabasic.data' |
|
|
|
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
|
|
|
import { Packageunit } from '../itemManage/packageunit/packageunit.data' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const ItemwarehouseRules = reactive({ |
|
|
export const ItemwarehouseRules = reactive({ |
|
@ -11,34 +17,97 @@ export const ItemwarehouseRules = reactive({ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
|
|
|
label: 'id', |
|
|
|
|
|
field: 'id', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '物品代码', |
|
|
field: 'itemCode', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
table:{ |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '区域代码', |
|
|
label: '区域代码', |
|
|
field: 'warehouseCode', |
|
|
field: 'warehouseCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
table:{ |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库区基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '管理精度', |
|
|
label: '管理精度', |
|
|
field: 'manageMode', |
|
|
field: 'manageMode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
dictType: DICT_TYPE.MANAGEMENT_MODE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 120 |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '入库包装规格', |
|
|
label: '入库包装规格', |
|
|
field: 'packUnit', |
|
|
field: 'packUnit', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table:{ |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '包装规格基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
@ -71,11 +140,6 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '备注', |
|
|
|
|
|
field: 'remark', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
@ -89,30 +153,40 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '删除者ID', |
|
|
label: '删除者ID', |
|
|
field: 'deleterId', |
|
|
field: 'deleterId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '扩展属性', |
|
|
label: '扩展属性', |
|
|
field: 'extraProperties', |
|
|
field: 'extraProperties', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '并发乐观锁', |
|
|
label: '并发乐观锁', |
|
|
field: 'concurrencyStamp', |
|
|
field: 'concurrencyStamp', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '地点ID', |
|
|
label: '地点ID', |
|
|
field: 'siteId', |
|
|
field: 'siteId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTable: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '备注', |
|
|
|
|
|
field: 'remark', |
|
|
|
|
|
sort: 'custom', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|