|
|
@ -9,6 +9,9 @@ import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse |
|
|
|
|
|
|
|
import * as LocationgroupApi from '@/api/wms/locationgroup' |
|
|
|
import { Locationgroup } from '@/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data' |
|
|
|
|
|
|
|
import { validateYS } from '@/utils/validator' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
@ -68,7 +71,12 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库区信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Area.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: AreaApi.getAreaPage // 查询弹窗所需分页方法
|
|
|
|
searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'warehouseCode', |
|
|
|
value:'warehouseCode', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -83,11 +91,16 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库区代码', // 输入框占位文本
|
|
|
|
searchListPlaceholder: '请选择库位组代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库区信息', // 查询弹窗标题
|
|
|
|
searchTitle: '库位组信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Locationgroup.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: LocationgroupApi.getLocationgroupPage // 查询弹窗所需分页方法
|
|
|
|
searchPage: LocationgroupApi.getLocationgroupPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'areaCode', |
|
|
|
value:'areaCode', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -349,7 +362,8 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const LocationRules = reactive({ |
|
|
|
code: [ |
|
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} |
|
|
|
], |
|
|
|
name: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|