refactor(物料管理): 简化库位类型和状态的显示文本
移除库位类型和状态标签中的冗余说明信息,使界面更简洁
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
<dict-tag :options="options.locationTypeOptions" :value="scope.row.locationType" />
|
<dict-tag :options="options.locationTypeOptions" :value="scope.row.locationType" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" label="状态(停用/启用)" align="center" v-if="columns.showColumn('status')">
|
<el-table-column prop="status" label="状态" align="center" v-if="columns.showColumn('status')">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :options="options.statusOptions" :value="scope.row.status" />
|
<dict-tag :options="options.statusOptions" :value="scope.row.status" />
|
||||||
</template>
|
</template>
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
|
|
||||||
<el-col :lg="12">
|
<el-col :lg="12">
|
||||||
<el-form-item label="库位类型" prop="locationType">
|
<el-form-item label="库位类型" prop="locationType">
|
||||||
<el-select v-model="form.locationType" placeholder="请选择库位类型(半成品/成品/临时/返工/报废)">
|
<el-select v-model="form.locationType" placeholder="请选择库位类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options.locationTypeOptions"
|
v-for="item in options.locationTypeOptions"
|
||||||
:key="item.dictValue"
|
:key="item.dictValue"
|
||||||
@@ -223,8 +223,8 @@ const columns = ref([
|
|||||||
{ visible: true, align: 'center', type: '', prop: 'areaName', label: '区域名称', showOverflowTooltip: true },
|
{ visible: true, align: 'center', type: '', prop: 'areaName', label: '区域名称', showOverflowTooltip: true },
|
||||||
{ visible: true, align: 'center', type: '', prop: 'capacity', label: '容量' },
|
{ visible: true, align: 'center', type: '', prop: 'capacity', label: '容量' },
|
||||||
{ visible: false, align: 'center', type: '', prop: 'unit', label: '容量单位', showOverflowTooltip: true },
|
{ visible: false, align: 'center', type: '', prop: 'unit', label: '容量单位', showOverflowTooltip: true },
|
||||||
{ visible: false, align: 'center', type: 'dict', prop: 'locationType', label: '库位类型(半成品/成品/临时/返工/报废)', showOverflowTooltip: true },
|
{ visible: true, align: 'center', type: 'dict', prop: 'locationType', label: '库位类型', showOverflowTooltip: true },
|
||||||
{ visible: false, align: 'center', type: 'dict', prop: 'status', label: '状态(停用/启用)', showOverflowTooltip: true },
|
{ visible: false, align: 'center', type: 'dict', prop: 'status', label: '状态', showOverflowTooltip: true },
|
||||||
{ visible: true, align: 'center', type: '', prop: 'createdTime', label: '创建时间', showOverflowTooltip: true },
|
{ visible: true, align: 'center', type: '', prop: 'createdTime', label: '创建时间', showOverflowTooltip: true },
|
||||||
{ visible: false, align: 'center', type: '', prop: 'updatedTime', label: '更新时间', showOverflowTooltip: true },
|
{ visible: false, align: 'center', type: '', prop: 'updatedTime', label: '更新时间', showOverflowTooltip: true },
|
||||||
{ visible: false, align: 'center', type: '', prop: 'description', label: '描述', showOverflowTooltip: true }
|
{ visible: false, align: 'center', type: '', prop: 'description', label: '描述', showOverflowTooltip: true }
|
||||||
@@ -292,7 +292,7 @@ const state = reactive({
|
|||||||
warehouseCode: [{ required: true, message: '仓库编码不能为空', trigger: 'blur' }]
|
warehouseCode: [{ required: true, message: '仓库编码不能为空', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
// 库位类型(半成品/成品/临时/返工/报废) 选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
|
// 库位类型 选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
|
||||||
locationTypeOptions: [
|
locationTypeOptions: [
|
||||||
{
|
{
|
||||||
dictValue: '原材料',
|
dictValue: '原材料',
|
||||||
|
|||||||
Reference in New Issue
Block a user