add:仓位查看载具修改

This commit is contained in:
zhangzq
2024-07-02 10:22:30 +08:00
parent 3dc49b148c
commit 0a006bb546
7 changed files with 63 additions and 30 deletions

View File

@@ -35,7 +35,7 @@
@change="crud.toQuery"
>
<el-option
v-for="item in dict.d_lock_type"
v-for="item in statusEnum.LOCK"
:label="item.label"
:value="item.value"
/>
@@ -50,6 +50,16 @@
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="是否有货">
<el-switch
v-model="query.has_vehicle"
:active-value=true
:inactive-value=false
active-color="#13ce66"
inactive-color="#ff4949"
@change="hand"
/>
</el-form-item>
<el-form-item label="是否启用">
<el-switch
v-model="query.is_used"
@@ -91,15 +101,9 @@
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="归属库区" prop="sect_id">
<el-cascader
v-model="form.cascader"
style="width: 200px;"
:options="sects"
clearable
@change="sectChange"
/>
</el-form-item>
<<el-form-item label="归属库区" prop="sect_name">
<el-input v-model="form.sect_name" style="width: 200px;" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否临时" prop="is_tempstruct">
@@ -123,7 +127,7 @@
placeholder=""
>
<el-option
v-for="item in dict.d_lock_type"
v-for="item in statusEnum.LOCK"
:key="item.id"
:label="item.label"
:value="item.value"
@@ -215,7 +219,7 @@
</el-table-column>
<el-table-column prop="lock_type" label="锁定类型" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.d_lock_type[scope.row.lock_type] }}
{{ statusEnum.label.LOCK[scope.row.lock_type] }}
</template>
</el-table-column>
<el-table-column label="是否启用" align="center" prop="is_used">
@@ -317,6 +321,7 @@ const defaultForm = {
export default {
name: 'Structattr',
dicts: ['ST_HEIGHT_TYPE', 'is_used', 'd_lock_type', 'SCH_TASK_TYPE_DTL', 'placement_type'],
statusEnums: ['LOCK'],
tableEnums: [ 'st_ivt_bsrealstorattr#stor_name#id' ],
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],