Browse Source

前端库区筛选

master_hella_20240701
chenfang 8 months ago
parent
commit
4e291af855
  1. 2
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  2. 21
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

2
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -135,6 +135,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['outPackUnit'] = val[0]['packUnit'] setV['outPackUnit'] = val[0]['packUnit']
}else if(formField == 'itemCode') { }else if(formField == 'itemCode') {
setV['itemCode'] = val[0]['code'] setV['itemCode'] = val[0]['code']
}else if(formField == 'repleinshFromArea') {
setV['repleinshFromArea'] = val[0]['code']
}else{ }else{
setV[formField] = setV[0][searchField] setV[formField] = setV[0][searchField]
} }

21
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

@ -9,10 +9,10 @@ import { DeliverPlanMain } from '../../deliverplan/deliverPlanMain/deliverPlanMa
import * as locationApi from '@/api/wms/location' import * as locationApi from '@/api/wms/location'
import { Location } from '../../../basicDataManage/factoryModeling/location/location.data' import { Location } from '../../../basicDataManage/factoryModeling/location/location.data'
import * as confgiApi from '@/api/infra/config'
import * as ItemBasicApi from '@/api/wms/itembasic' import * as ItemBasicApi from '@/api/wms/itembasic'
import { Itembasic } from '../../../basicDataManage/itemManage/itembasic/itembasic.data' import { Itembasic } from '../../../basicDataManage/itemManage/itembasic/itembasic.data'
import * as WorkstationApi from '@/api/wms/workstation'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -23,10 +23,9 @@ 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 confgiDataOne = await confgiApi.queryByKey("Stockup-areaType")
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { ItemBasic } from '@/utils/disposition/formFields'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
@ -679,11 +678,16 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'location', searchField: 'location',
searchTitle: '库位基础信息', searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas, searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage, searchPage: WorkstationApi.selectAreaTypeToLocation,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'areaType',
value: confgiDataOne.areaType,
isMainValue: false
}] }]
}, },
form: { form: {
@ -693,11 +697,16 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'location', searchField: 'location',
searchTitle: '库位基础信息', searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas, searchAllSchemas: Location.allSchemas,
searchPage: locationApi.getLocationPage, searchPage: WorkstationApi.selectAreaTypeToLocation,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'areaType',
value: confgiDataOne.areaType,
isMainValue: false
}] }]
} }
} }

Loading…
Cancel
Save