update 货位信息查询、新增、编辑功能增加storageUseType(货位属性)字段
This commit is contained in:
parent
6036bf343d
commit
6caeebc44e
@ -13,6 +13,24 @@
|
|||||||
<el-Input v-model="state.queryParams.params.description" placeholder="货位描述查询" clearable/>
|
<el-Input v-model="state.queryParams.params.description" placeholder="货位描述查询" clearable/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-form-item label="货位属性" prop="params.storageUseType">
|
||||||
|
<el-select
|
||||||
|
size="small"
|
||||||
|
filterable
|
||||||
|
v-model="state.queryParams.params.storageUseType"
|
||||||
|
default-first-option
|
||||||
|
placeholder="请选择货位属性"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in state.storageUseTypeList"
|
||||||
|
:key="item.ENUMVALUE"
|
||||||
|
:label="item.ENUMVALUE"
|
||||||
|
:value="item.ENUMVALUE"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="page-search-btns">
|
<div class="page-search-btns">
|
||||||
@ -98,6 +116,22 @@
|
|||||||
<el-form-item label="货位描述" prop="description">
|
<el-form-item label="货位描述" prop="description">
|
||||||
<el-input v-model="formData.description" placeholder="请输入货位描述" />
|
<el-input v-model="formData.description" placeholder="请输入货位描述" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="货位属性" prop="storageUseType">
|
||||||
|
<el-select
|
||||||
|
size="small"
|
||||||
|
filterable
|
||||||
|
v-model="formData.storageUseType"
|
||||||
|
default-first-option
|
||||||
|
placeholder="请选择货位属性"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in state.storageUseTypeList"
|
||||||
|
:key="item.ENUMVALUE"
|
||||||
|
:label="item.ENUMVALUE"
|
||||||
|
:value="item.ENUMVALUE"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
@ -133,6 +167,7 @@ const materialTableConfig = ref({
|
|||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
ERPFactoryList: [] as any, // 组织
|
ERPFactoryList: [] as any, // 组织
|
||||||
|
storageUseTypeList: [] as any, //货位属性
|
||||||
disableds : false,
|
disableds : false,
|
||||||
loadings : false,
|
loadings : false,
|
||||||
rsa: '',
|
rsa: '',
|
||||||
@ -142,6 +177,7 @@ const state = reactive({
|
|||||||
siteName: 'SDK',
|
siteName: 'SDK',
|
||||||
storageName: '',
|
storageName: '',
|
||||||
description: '',
|
description: '',
|
||||||
|
storageUseType: '',
|
||||||
},
|
},
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
@ -159,6 +195,7 @@ const state = reactive({
|
|||||||
rules: {
|
rules: {
|
||||||
storageName: [{ required: true, message: "请输入货位编码", trigger: "blur" }],
|
storageName: [{ required: true, message: "请输入货位编码", trigger: "blur" }],
|
||||||
description: [{ required: true, message: "请输入货位描述", trigger: "blur" }],
|
description: [{ required: true, message: "请输入货位描述", trigger: "blur" }],
|
||||||
|
// storageUseType: [{ required: true, message: "请输入货位属性", trigger: "blur" }],
|
||||||
},
|
},
|
||||||
// 打印机 start
|
// 打印机 start
|
||||||
operateParams: {
|
operateParams: {
|
||||||
@ -189,13 +226,15 @@ const {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
materialTableConfig.value.column = [
|
materialTableConfig.value.column = [
|
||||||
{ header: "货位编码", field: "storageName", hide: false },
|
{ header: "货位编码", field: "storageName", hide: false },
|
||||||
{ header: "货位描述", field: "description", hide: false }
|
{ header: "货位描述", field: "description", hide: false },
|
||||||
|
{ header: "货位属性", field: "storageUseType", hide: false }
|
||||||
]
|
]
|
||||||
handleQuery();
|
handleQuery();
|
||||||
updateTableHeight();
|
updateTableHeight();
|
||||||
// 打印机
|
// 打印机
|
||||||
getPRINTLIST();
|
getPRINTLIST();
|
||||||
window.addEventListener('resize', handleResize);
|
window.addEventListener('resize', handleResize);
|
||||||
|
getStorageUseTypeList()
|
||||||
})
|
})
|
||||||
// 查询
|
// 查询
|
||||||
const queryInfo = () => {
|
const queryInfo = () => {
|
||||||
@ -217,6 +256,7 @@ const resetQuery = () => {
|
|||||||
queryFormRef.value.resetFields();
|
queryFormRef.value.resetFields();
|
||||||
state.queryParams.params.storageName = '';
|
state.queryParams.params.storageName = '';
|
||||||
state.queryParams.params.description = '';
|
state.queryParams.params.description = '';
|
||||||
|
state.queryParams.params.storageUseType = '';
|
||||||
queryInfo()
|
queryInfo()
|
||||||
}
|
}
|
||||||
const updateList = (col: any) => {
|
const updateList = (col: any) => {
|
||||||
@ -232,6 +272,7 @@ function handleAdd() {
|
|||||||
visible: true,
|
visible: true,
|
||||||
type: 'add'
|
type: 'add'
|
||||||
};
|
};
|
||||||
|
getStorageUseTypeList()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -264,9 +305,11 @@ function dialogOpend() {
|
|||||||
formDataRef.value.resetFields();
|
formDataRef.value.resetFields();
|
||||||
state.formData.storageName = ''
|
state.formData.storageName = ''
|
||||||
state.formData.description = ''
|
state.formData.description = ''
|
||||||
|
state.formData.storageUseType = ''
|
||||||
if (state.selectItem && state.dialog.type === 'edit') {
|
if (state.selectItem && state.dialog.type === 'edit') {
|
||||||
state.formData.storageName = state.selectItem.storageName
|
state.formData.storageName = state.selectItem.storageName
|
||||||
state.formData.description = state.selectItem.description
|
state.formData.description = state.selectItem.description
|
||||||
|
state.formData.storageUseType = state.selectItem.storageUseType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -374,4 +417,18 @@ function getPRINTLIST() {
|
|||||||
const handleSelectionChange = (val: any) => {
|
const handleSelectionChange = (val: any) => {
|
||||||
state.multipleSelection = val;
|
state.multipleSelection = val;
|
||||||
}
|
}
|
||||||
|
function getStorageUseTypeList() {
|
||||||
|
getQueryList({
|
||||||
|
queryId: "GetEnumdefValueList",
|
||||||
|
version: "04281",
|
||||||
|
params: {
|
||||||
|
ENUMNAME: 'StorageUseType_Bias'
|
||||||
|
},
|
||||||
|
}).then((res: any) => {
|
||||||
|
state.storageUseTypeList = res.data
|
||||||
|
state.storageUseTypeList.unshift({
|
||||||
|
ENUMVALUE: ''
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user