Browse Source

器具管理细节修复

master_hella_20240701
chenfang 6 months ago
parent
commit
a92e90fd5f
  1. 1
      src/api/infra/config/index.ts
  2. 6
      src/api/wms/location/index.ts
  3. 18
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts
  4. 12
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts
  5. 9
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  6. 42
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

1
src/api/infra/config/index.ts

@ -13,6 +13,7 @@ export interface ConfigVO {
visible: boolean
remark: string
createTime: Date
locoationCode: string
}
// 查询参数列表

6
src/api/wms/location/index.ts

@ -86,12 +86,12 @@ export const selectBusinessTypeToLocation = async (params) => {
}
export const selectConfigToLocation = async (params) => {
export const selectPageItemAreaToLocation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/location/pageConfigToLocationSenior', data })
return await request.post({ url: '/wms/location/pageItemAreaToLocationSenior', data })
} else {
return request.get({ url: `/wms/location/pageConfigToLocation`, params })
return request.get({ url: `/wms/location/pageItemAreaToLocation`, params })
}
}

18
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/containerMainRequest.data.ts

@ -264,9 +264,18 @@ 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' }
],
toinventoryStatus: [
{ required: true, message: '请选择倒库存状态', trigger: 'blur' }
],
toQty: [
{ required: true, message: '请输入到数量', trigger: 'blur' }
],
})
export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
@ -395,8 +404,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
tableForm: {
type: 'Select',
disabled:true
type: 'Select'
},
},
// {

12
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts

@ -268,9 +268,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[]>([

9
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -129,9 +129,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
nextTick(() => {
if (type == 'tableForm') {
if(formField == 'containerNumber') {
row['containerNumber'] = val[0]['code']
row['containerNumber'] = val[0]['itemCode']
row['uom'] = val[0]['uom']
row['toInventoryStatus'] = 'OK'
row['fromLocationCode'] = val[0]['locationCode']
row['fromInventoryStatus'] = val[0]['inventoryStatus']
row['toInventoryStatus'] = 'SCRAP'
}else if(formField == 'toLocationCode'){
row['toLocationCode'] = val[0]['code']
}else {
@ -149,7 +151,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
if(formField == 'containerNumber') {
setV['containerNumber'] = val[0]['code']
setV['containerNumber'] = val[0]['itemCode']
setV['uom'] = val[0]['uom']
}else if(formField == 'toLocationCode'){
setV['toLocationCode'] = val[0]['code']
@ -162,7 +164,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
// tableform
ContainerDetailRequest.allSchemas.tableFormColumns.map(item => {
if(item.field == 'containerNumber') {
if (fromLocationCode.value == null) {
item.tableForm.searchCondition = [

42
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

@ -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
},
},
// {

Loading…
Cancel
Save