|
|
@ -9,6 +9,7 @@ import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
import * as getBusinessTypeApi from '@/api/wms/businesstype/index' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const ContainerMainRequestRules = reactive({ |
|
|
@ -27,6 +28,17 @@ const queryParams = { |
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
const requestsettingData = data?.list[0] || {} |
|
|
|
|
|
|
|
|
|
|
|
const businessTypeQueryParams = { |
|
|
|
pageSize:10, |
|
|
|
pageNo:1, |
|
|
|
code:'ScrapContainerManage', |
|
|
|
name:'器具报废管理' |
|
|
|
} |
|
|
|
|
|
|
|
const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) |
|
|
|
const businessTypeData =businessTypeValue?.list[0]||{} |
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
@ -63,6 +75,49 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '到库位代码',
|
|
|
|
// field: 'toLocationCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// tableForm:{
|
|
|
|
// isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.selectBusinessTypeToLocation,
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'businessType',
|
|
|
|
// value: businessTypeData.code,
|
|
|
|
// },{
|
|
|
|
// key: 'isIn',
|
|
|
|
// value: 'in',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.selectBusinessTypeToLocation,
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'businessType',
|
|
|
|
// value: businessTypeData.code,
|
|
|
|
// },{
|
|
|
|
// key: 'isIn',
|
|
|
|
// value: 'in',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '类型', |
|
|
|
field: 'type', |
|
|
@ -96,16 +151,18 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'mainRemark', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable: true |
|
|
|
isForm: true, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '部门', |
|
|
|
field: 'departmentCode', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return userDeptArray.find((account) => account.id == cellValue)?.name |
|
|
@ -218,7 +275,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
detail: { |
|
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -227,8 +286,6 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -236,8 +293,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: true |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -267,6 +325,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '最后更新者', |
|
|
|
field: 'updater', |
|
|
|
isDetail: true, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
@ -277,8 +336,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '扩展属性', |
|
|
|
field: 'extraProperties', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '并发乐观锁', |
|
|
@ -288,13 +348,15 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
component: 'InputNumber', |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '地点ID', |
|
|
|
field: 'siteId', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
}, |
|
|
@ -357,14 +419,14 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '器具号', |
|
|
|
field: 'containerNumber', |
|
|
|
sort: 'custom', |
|
|
|
tableForm: { |
|
|
|
multiple: true, |
|
|
|
tableForm:{ |
|
|
|
multiple:true, |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择器具号', |
|
|
|
searchField: 'itemCode', |
|
|
|
searchTitle: '库存余额信息', |
|
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
|
searchPage: BalanceApi.selectConfigToBalance, |
|
|
|
searchPage: BalanceApi.getBalanceByQJ, |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -374,7 +436,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchField: 'itemCode', |
|
|
|
searchTitle: '库存余额信息', |
|
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
|
searchPage: BalanceApi.selectConfigToBalance, |
|
|
|
searchPage: BalanceApi.getBalanceByQJ, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -382,6 +444,9 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '来源库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -396,83 +461,70 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '目标库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
enterSearch:true, |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择到库位代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择到库位代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
|
// 失去焦点校验参数
|
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true, |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库存状态', |
|
|
|
field: 'fromInventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'Select' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库存状态', |
|
|
|
field: 'toInventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '目标库位代码',
|
|
|
|
// field: 'toLocationCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// tableForm: {
|
|
|
|
// enterSearch:true,
|
|
|
|
// isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.selectPageItemAreaToLocation,
|
|
|
|
// // 失去焦点校验参数
|
|
|
|
// verificationParams: [{
|
|
|
|
// key: 'code',
|
|
|
|
// action: '==',
|
|
|
|
// value: '',
|
|
|
|
// isMainValue: false,
|
|
|
|
// isSearch: 'true',
|
|
|
|
// isFormModel: true,
|
|
|
|
// }]
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// enterSearch: true,
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择到库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.selectPageItemAreaToLocation,
|
|
|
|
// // 失去焦点校验参数
|
|
|
|
// verificationParams: [{
|
|
|
|
// key: 'code',
|
|
|
|
// action: '==',
|
|
|
|
// value: '',
|
|
|
|
// isMainValue: false,
|
|
|
|
// isSearch: 'true',
|
|
|
|
// isFormModel: true,
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '从库存状态',
|
|
|
|
// field: 'fromInventoryStatus',
|
|
|
|
// dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isForm: false,
|
|
|
|
// isTableForm: false,
|
|
|
|
// isTable: false,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// tableForm: {
|
|
|
|
// disabled: true,
|
|
|
|
// type: 'Select'
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '从数量',
|
|
|
|
// field: 'fromQty',
|
|
|
@ -482,7 +534,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '到数量', |
|
|
|
label: '数量', |
|
|
|
field: 'toQty', |
|
|
|
sort: 'custom', |
|
|
|
form: { |
|
|
@ -514,11 +566,30 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库存状态', |
|
|
|
field: 'toInventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
isTable: false, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '子备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
isTable: true |
|
|
|
isTable: true, |
|
|
|
isForm: false, |
|
|
|
isTableForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|