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