|
|
@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
|
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' |
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
|
import * as ItempackagingApi from '@/api/wms/itempackage' |
|
|
|
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' |
|
|
@ -29,7 +29,8 @@ const queryParams = { |
|
|
|
userDept.id = userDept.id.toString() |
|
|
|
const userDeptArray: any = [userDept] |
|
|
|
|
|
|
|
export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const PackageoverRequestMain = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
@ -39,7 +40,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
@ -76,11 +77,11 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '截止时间', |
|
|
@ -99,60 +100,122 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '从仓库代码', |
|
|
|
field: 'fromWarehouseCode', |
|
|
|
label: '从库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
isForm: true, |
|
|
|
isTable: true, |
|
|
|
isDetail: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
searchListPlaceholder: '请选择从库位代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.selectBusinessTypeToLocation, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: 'HoldToOk', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'isIn', |
|
|
|
value: 'out', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到仓库代码', |
|
|
|
field: 'toWarehouseCode', |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '从仓库代码',
|
|
|
|
// field: 'fromWarehouseCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// isTable: false,
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// enterSearch: true,
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
// searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }],
|
|
|
|
// // 失去焦点校验参数
|
|
|
|
// verificationParams: [{
|
|
|
|
// key: 'code',
|
|
|
|
// action: '==',
|
|
|
|
// value: '',
|
|
|
|
// isMainValue: false,
|
|
|
|
// isSearch: 'true',
|
|
|
|
// isFormModel: true,
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '到仓库代码',
|
|
|
|
// field: 'toWarehouseCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// isTable: false,
|
|
|
|
// form: {
|
|
|
|
// componentProps: {
|
|
|
|
// disabled: true
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '从库区类型范围', |
|
|
|
field: 'fromAreaTypes', |
|
|
@ -164,7 +227,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库区类型范围', |
|
|
@ -244,7 +307,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
@ -363,7 +426,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
@ -375,7 +438,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -385,7 +448,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -404,10 +467,10 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -417,7 +480,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -428,16 +491,16 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const PackageoverRequestMainRules = reactive({ |
|
|
|
fromWarehouseCode: [ |
|
|
|
{ required: true, message: '请选择仓库代码', trigger: 'change' } |
|
|
|
], |
|
|
|
fromWarehouseCode: [{ required: true, message: '请选择仓库代码', trigger: 'change' }] |
|
|
|
}) |
|
|
|
|
|
|
|
export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const PackageoverRequestDetail = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
@ -480,7 +543,8 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'inventoryStatus', |
|
|
|
value: 'OK', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
@ -502,8 +566,9 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
key: 'inventoryStatus', |
|
|
|
value: 'OK', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '品名', |
|
|
@ -602,24 +667,29 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
} |
|
|
|
], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'packUnit', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -630,25 +700,30 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请先选择品番!', // 当前置条件为空时 弹出信息提示
|
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
} |
|
|
|
], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'packUnit', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -669,25 +744,30 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请先选择品番!', // 当前置条件为空时 弹出信息提示
|
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
} |
|
|
|
], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'packUnit', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -698,24 +778,29 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
} |
|
|
|
], |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'packUnit', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -767,38 +852,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '从库位组代码', |
|
|
|
field: 'fromLocationGroupCode', |
|
|
@ -890,7 +944,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -911,10 +965,10 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isTableForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -944,10 +998,10 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isTableForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -957,19 +1011,14 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isTableForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const PackageoverRequestDetailRules = reactive({ |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择品番', trigger: 'change' } |
|
|
|
], |
|
|
|
fromPackUnit: [ |
|
|
|
{ required: true, message: '请选择从包装规格', trigger: 'change' } |
|
|
|
], |
|
|
|
toPackUnit: [ |
|
|
|
{ required: true, message: '请选择到包装规格', trigger: 'change' } |
|
|
|
], |
|
|
|
itemCode: [{ required: true, message: '请选择品番', trigger: 'change' }], |
|
|
|
fromPackUnit: [{ required: true, message: '请选择从包装规格', trigger: 'change' }], |
|
|
|
toPackUnit: [{ required: true, message: '请选择到包装规格', trigger: 'change' }] |
|
|
|
}) |
|
|
|