仓库管理,查询统计-库存明细查询 库存汇总查询 字典 关联查询
This commit is contained in:
@@ -2,49 +2,51 @@
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" :label-width="labelWidthForSearch">
|
||||
<!-- 仓库ID -->
|
||||
<el-form-item :label="$t('cargoSpace.warehouseId')" prop="warehouseId">
|
||||
<el-input
|
||||
v-model="queryParams.warehouseId"
|
||||
:placeholder="$t('cargoSpace.warehouseId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-form-item :label="$t('cargoSpace.warehouseName')" prop="warehouseId"><!-- 仓库id -->
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('cargoSpace.warehouseName')">
|
||||
<el-option
|
||||
v-for="item in warehouseOptions"
|
||||
:key="item.warehouseId"
|
||||
:label="item.warehouseName"
|
||||
:value="item.warehouseId"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 巷道号 -->
|
||||
<el-form-item :label="$t('cargoSpace.roadwayId')" prop="roadwayId">
|
||||
<!-- <el-form-item :label="$t('cargoSpace.roadwayId')" prop="roadwayId">
|
||||
<el-input
|
||||
v-model="queryParams.roadwayId"
|
||||
:placeholder="$t('cargoSpace.roadwayId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!-- 货区编号 -->
|
||||
<el-form-item :label="$t('cargoSpace.cargoAreaId')" prop="cargoAreaId">
|
||||
<!-- <el-form-item :label="$t('cargoSpace.cargoAreaId')" prop="cargoAreaId">
|
||||
<el-input
|
||||
v-model="queryParams.cargoAreaId"
|
||||
:placeholder="$t('cargoSpace.cargoAreaId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!-- 货位类型 -->
|
||||
<el-form-item :label="$t('cargoSpace.cargoSpaceType')" prop="theTypeName">
|
||||
<!-- <el-form-item :label="$t('cargoSpace.cargoSpaceType')" prop="theTypeName">
|
||||
<el-input
|
||||
v-model="queryParams.theTypeName"
|
||||
:placeholder="$t('cargoSpace.cargoSpaceType')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="货位名称" prop="cargoSpaceName">
|
||||
</el-form-item>-->
|
||||
<el-form-item label="货位名称" prop="cargoSpaceName">
|
||||
<el-input
|
||||
v-model="queryParams.cargoSpaceName"
|
||||
placeholder="请输入货位名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
</el-form-item>
|
||||
<!-- 排 -->
|
||||
<el-form-item :label="$t('cargoSpace.platoon')" prop="thePlatoon">
|
||||
<el-input
|
||||
@@ -74,21 +76,25 @@
|
||||
</el-form-item>
|
||||
<!-- 货位状态 -->
|
||||
<el-form-item :label="$t('cargoSpace.status')" prop="status">
|
||||
<el-input
|
||||
v-model="queryParams.status"
|
||||
:placeholder="$t('cargoSpace.status')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('cargoSpace.status')" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.cargo_space_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 是否锁定 -->
|
||||
<el-form-item :label="$t('cargoSpace.locked')" prop="locked">
|
||||
<el-input
|
||||
v-model="queryParams.locked"
|
||||
:placeholder="$t('cargoSpace.locked')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-select v-model="queryParams.locked" :placeholder="$t('cargoSpace.locked')" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.cargo_space_lock_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 托盘编码 -->
|
||||
<el-form-item :label="$t('cargoSpace.trayCode')" prop="trayCode">
|
||||
@@ -99,7 +105,6 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item label="是否双伸 Y N " prop="issDouble">
|
||||
<el-input
|
||||
v-model="queryParams.issDouble"
|
||||
@@ -205,35 +210,43 @@
|
||||
<!-- 仓库ID -->
|
||||
<el-table-column :label="$t('cargoSpace.warehouseId')" align="center" prop="warehouseId" />
|
||||
<!-- 巷道号 -->
|
||||
<el-table-column :label="$t('cargoSpace.roadwayId')" align="center" prop="roadwayId" />
|
||||
<!-- <el-table-column :label="$t('cargoSpace.roadwayId')" align="center" prop="roadwayId" />-->
|
||||
<!-- 货区编号 -->
|
||||
<el-table-column :label="$t('cargoSpace.cargoAreaId')" align="center" prop="cargoAreaId" />
|
||||
<!-- <el-table-column :label="$t('cargoSpace.cargoAreaId')" align="center" prop="cargoAreaId" />-->
|
||||
<!-- 货位类型 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.cargoSpaceType')" align="center" prop="theType" /> -->
|
||||
<!-- 货位类型名称 -->
|
||||
<el-table-column :label="$t('cargoSpace.cargoSpaceTypeName')" align="center" prop="theTypeName" />
|
||||
<!-- <el-table-column :label="$t('cargoSpace.cargoSpaceTypeName')" align="center" prop="theTypeName" />-->
|
||||
<!-- 货位名称 -->
|
||||
<el-table-column :label="$t('cargoSpace.cargoSpaceName')" align="center" prop="cargoSpaceName" />
|
||||
<!-- 排 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.platoon')" align="center" prop="thePlatoon" /> -->
|
||||
<el-table-column :label="$t('cargoSpace.platoon')" align="center" prop="thePlatoon" />
|
||||
<!-- 列 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.column')" align="center" prop="theColumn" /> -->
|
||||
<el-table-column :label="$t('cargoSpace.column')" align="center" prop="theColumn" />
|
||||
<!-- 层 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.floor')" align="center" prop="theFloor" /> -->
|
||||
<el-table-column :label="$t('cargoSpace.floor')" align="center" prop="theFloor" />
|
||||
<!-- 货位编码 -->
|
||||
<el-table-column :label="$t('cargoSpace.status')" align="center" prop="status" />
|
||||
<el-table-column :label="$t('cargoSpace.status')" align="center" prop="status" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.cargo_space_status" :value="scope.row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 是否锁定 -->
|
||||
<el-table-column :label="$t('cargoSpace.locked')" align="center" prop="locked" />
|
||||
<el-table-column :label="$t('cargoSpace.locked')" align="center" prop="locked" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.cargo_space_lock_status" :value="scope.row.locked"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 托盘编码 -->
|
||||
<el-table-column :label="$t('cargoSpace.trayCode')" align="center" prop="trayCode" />
|
||||
<!-- 货物高度 -->
|
||||
<el-table-column :label="$t('cargoSpace.cargoHeight')" align="center" prop="cargoHight" />
|
||||
<!-- 是否双伸 -->
|
||||
<el-table-column :label="$t('cargoSpace.isDouble')" align="center" prop="issDouble" />
|
||||
<!-- <el-table-column :label="$t('cargoSpace.isDouble')" align="center" prop="issDouble" />-->
|
||||
<!-- 双货位分组编码 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.groupCodingNo')" align="center" prop="groupCodingNo" /> -->
|
||||
<!-- 双货位分组编码名称1、2… -->
|
||||
<el-table-column :label="$t('cargoSpace.groupCodingName')" align="center" prop="groupCoding" />
|
||||
<!-- <el-table-column :label="$t('cargoSpace.groupCodingName')" align="center" prop="groupCoding" />-->
|
||||
<!-- 双货位标识 0 外1内 -->
|
||||
<!-- <el-table-column :label="$t('cargoSpace.cargoSpaceLogo')" align="center" prop="cargoSpaceLogo" /> -->
|
||||
<!-- 本仓库区域 1--8 A 9--15 B -->
|
||||
@@ -260,7 +273,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@@ -345,9 +358,11 @@
|
||||
|
||||
<script>
|
||||
import { listCargoSpace, getCargoSpace, delCargoSpace, addCargoSpace, updateCargoSpace } from "@/api/bas/cargoSpace"
|
||||
import {listWarehouse} from "@/api/bas/warehouse"
|
||||
|
||||
export default {
|
||||
name: "CargoSpace",
|
||||
dicts:['cargo_space_status','cargo_space_lock_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@@ -364,6 +379,7 @@ export default {
|
||||
total: 0,
|
||||
// 库存信息表格数据
|
||||
cargoSpaceList: [],
|
||||
warehouseOptions:[],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
@@ -427,9 +443,16 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getWarehouseList();
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 获取仓库列表 */
|
||||
getWarehouseList() {
|
||||
listWarehouse().then(response => {
|
||||
this.warehouseOptions = response.rows;
|
||||
});
|
||||
},
|
||||
/** 查询库存信息列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
@@ -540,11 +563,11 @@ export default {
|
||||
},
|
||||
comped: {
|
||||
labelWidthForSearch() {
|
||||
const lang = this.$i18n.locale;
|
||||
const lang = this.$i18n.locale;
|
||||
return lang.startsWith('en') ? '84px' : '68px';
|
||||
},
|
||||
labelWidthForFunction() {
|
||||
const lang = this.$i18n.locale;
|
||||
const lang = this.$i18n.locale;
|
||||
return lang.startsWith('en') ? '150px' : '120px';
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" :label-width="labelWidthForSearch">
|
||||
<el-form-item :label="$t('warehouse.Id')" prop="warehouseId">
|
||||
<!-- 仓库ID(序号) -->
|
||||
<!-- <el-form-item :label="$t('warehouse.Id')" prop="warehouseId">
|
||||
<!– 仓库ID(序号) –>
|
||||
<el-input
|
||||
v-model="queryParams.warehouseId"
|
||||
:placeholder="$t('warehouse.placeholderId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!-- 仓库编号 -->
|
||||
<el-form-item :label="$t('warehouse.warehouseId')" prop="warehouseNo">
|
||||
<el-input
|
||||
@@ -76,6 +76,17 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label="$t('warehouse.warehouseType')" prop="warehouseType">
|
||||
<el-select v-model="queryParams.warehouseType" :placeholder="$t('warehouse.placeholderWarehouseType')" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.warehouse_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item
|
||||
<el-form-item>
|
||||
<!-- 【查询】按钮 -->
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('warehouse.search') }}</el-button>
|
||||
@@ -152,7 +163,11 @@
|
||||
<!-- 仓库级别 -->
|
||||
<el-table-column :label="$t('warehouse.warehouseKind')" align="center" prop="warehouseKind" />
|
||||
<!-- 仓库类型 -->
|
||||
<el-table-column :label="$t('warehouse.warehouseType')" align="center" prop="warehouseType" />
|
||||
<el-table-column :label="$t('warehouse.warehouseType')" align="center" prop="warehouseType" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.warehouse_type" :value="scope.row.warehouseType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 仓库是否可用 -->
|
||||
<el-table-column :label="$t('warehouse.isCurrent')" align="center" prop="isCurrent">
|
||||
<template slot-scope="scope">
|
||||
@@ -248,7 +263,7 @@ import { listWarehouse, getWarehouse, delWarehouse, addWarehouse, updateWarehous
|
||||
|
||||
export default {
|
||||
name: "Warehouse",
|
||||
dicts: ['sys_yes_no'],
|
||||
dicts: ['sys_yes_no','warehouse_type'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
||||
Reference in New Issue
Block a user