|
@ -8,6 +8,18 @@ import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/l |
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
import * as PackageunitApi from '@/api/wms/packageunit' |
|
|
import { Packageunit } from '@/views/wms/basicDataManage/itemManage/packageunit/packageunit.data' |
|
|
import { Packageunit } from '@/views/wms/basicDataManage/itemManage/packageunit/packageunit.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
|
|
|
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
|
|
|
|
|
|
|
|
import * as WorkStationApi from '@/api/wms/workstation' |
|
|
|
|
|
import { Workstation } from '@/views/wms/basicDataManage/factoryModeling/workstation/workstation.data' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const CallmaterialsRules = reactive({ |
|
|
export const CallmaterialsRules = reactive({ |
|
|
itemCode: [required], |
|
|
itemCode: [required], |
|
@ -81,12 +93,22 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
|
field: 'uom', |
|
|
field: 'uom', |
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 120 |
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
type: 'Select' |
|
|
}, |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
@ -116,6 +138,126 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '仓库代码', |
|
|
|
|
|
field: 'warehouseCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '车间', |
|
|
|
|
|
field: 'workshopCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择车间代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '车间信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workshop.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkshopApi.getWorkshopPage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '生产线', |
|
|
|
|
|
field: 'productionLineCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择生产线', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ProductionlineApi.getProductionlinePage // 查询弹窗所需分页方法
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工位', |
|
|
|
|
|
field: 'workStationCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择工位', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkStationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'productionLineCode', |
|
|
|
|
|
value:'productionLineCode', |
|
|
|
|
|
message: '请填写生产线代码!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
},{ |
|
|
|
|
|
key:'workshopCode', |
|
|
|
|
|
value:'workshopCode', |
|
|
|
|
|
message: '请填写车间代码!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
},{ |
|
|
|
|
|
key:'available', |
|
|
|
|
|
value:'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择工位', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WorkStationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'productionLineCode', |
|
|
|
|
|
value:'productionLineCode', |
|
|
|
|
|
message: '请填写生产线代码!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
},{ |
|
|
|
|
|
key:'workshopCode', |
|
|
|
|
|
value:'workshopCode', |
|
|
|
|
|
message: '请填写车间代码!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
},{ |
|
|
|
|
|
key:'available', |
|
|
|
|
|
value:'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否确认接收', |
|
|
label: '是否确认接收', |
|
|
field: 'isRecive', |
|
|
field: 'isRecive', |
|
@ -123,7 +265,6 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|