|
|
@ -5,8 +5,6 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
|
|
|
|
import * as confgiApi from '@/api/infra/config' |
|
|
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
@ -29,8 +27,6 @@ const queryParams = { |
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
const requestsettingData = data?.list[0] || {} |
|
|
|
|
|
|
|
const confgiData = await confgiApi.queryByKey("containerManageRequestScrapLocationCode") |
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
@ -268,9 +264,15 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const ContainerDetailRequestRules = reactive({ |
|
|
|
fromLocationCode: [required], |
|
|
|
toLocationCode: [required], |
|
|
|
concurrencyStamp: [required], |
|
|
|
toLocationCode: [ |
|
|
|
{ required: true, message: '请选择目标库位', trigger: 'blur' } |
|
|
|
], |
|
|
|
containerNumber: [ |
|
|
|
{ required: true, message: '请选择器具号', trigger: 'blur' } |
|
|
|
], |
|
|
|
toQty: [ |
|
|
|
{ required: true, message: '请输入到数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -359,17 +361,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
value: confgiData.locationCode, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -379,17 +371,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
value: confgiData.locationCode, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
searchPage: LocationApi.selectPageItemAreaToLocation, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -420,7 +402,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled:true |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|