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