修改库存管理 联查 查询条件 字典相关问题
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item :label="$t('stockFreeze.stockId')" prop="stockId"> <!-- 库存编码 -->
|
||||
<el-input
|
||||
v-model="queryParams.stockId"
|
||||
:placeholder="$t('stockFreeze.inputStockId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item :label="$t('stockFreeze.stockId')" prop="stockId"> <!– 库存编码 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.stockId"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputStockId')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label="$t('stockFreeze.cargoSpaceId')" prop="cargoSpaceId"> <!-- 货位编码 -->
|
||||
<el-input
|
||||
v-model="queryParams.cargoSpaceId"
|
||||
@@ -25,14 +25,14 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.productId')" prop="productId"> <!-- 物品编码 -->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.productId')" prop="productId"> <!– 物品编码 –>
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
:placeholder="$t('stockFreeze.inputProductId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item :label="$t('stockFreeze.productName')" prop="productName"> <!-- 物品名称 -->
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
@@ -41,78 +41,80 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.printDate')" prop="printDate"> <!-- 生产日期 -->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.printDate')" prop="printDate"> <!– 生产日期 –>
|
||||
<el-input
|
||||
v-model="queryParams.printDate"
|
||||
:placeholder="$t('stockFreeze.inputPrintDate')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.lotNo')" prop="lotNo"> <!-- 批号 -->
|
||||
<el-input
|
||||
v-model="queryParams.lotNo"
|
||||
:placeholder="$t('stockFreeze.inputLotNo')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.method')" prop="method"> <!-- 操作 -->
|
||||
<el-input
|
||||
v-model="queryParams.method"
|
||||
:placeholder="$t('stockFreeze.inputMethod')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.lotNo')" prop="lotNo"> <!– 批号 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.lotNo"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputLotNo')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.method')" prop="method"> <!– 操作 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.method"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputMethod')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label="$t('stockFreeze.warehouseId')" prop="warehouseId"> <!-- 仓库 -->
|
||||
<el-input
|
||||
v-model="queryParams.warehouseId"
|
||||
:placeholder="$t('stockFreeze.inputWarehouseId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('stockFreeze.warehouseId')">
|
||||
<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('stockFreeze.stockDetailId')" prop="stockDetailId"> <!-- 库存字表id -->
|
||||
<el-input
|
||||
v-model="queryParams.stockDetailId"
|
||||
:placeholder="$t('stockFreeze.inputStockDetailId')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.operatingTarget')" prop="operatingTarget"> <!-- 操作目标 -->
|
||||
<el-input
|
||||
v-model="queryParams.operatingTarget"
|
||||
:placeholder="$t('stockFreeze.inputOperatingTarget')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.barCodeOldQuantity')" prop="barCodeOldQuantity"> <!-- 条码数量 -->
|
||||
<el-input
|
||||
v-model="queryParams.barCodeOldQuantity"
|
||||
:placeholder="$t('stockFreeze.inputBarCodeOldQuantity')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.barCodeQuantity')" prop="barCodeQuantity"> <!-- 条码数量 -->
|
||||
<el-input
|
||||
v-model="queryParams.barCodeQuantity"
|
||||
:placeholder="$t('stockFreeze.inputBarCodeQuantity')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('stockFreeze.productGuid')" prop="productGuid"> <!-- 物料guid -->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.stockDetailId')" prop="stockDetailId"> <!– 库存字表id –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.stockDetailId"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputStockDetailId')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.operatingTarget')" prop="operatingTarget"> <!– 操作目标 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.operatingTarget"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputOperatingTarget')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.barCodeOldQuantity')" prop="barCodeOldQuantity"> <!– 条码数量 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.barCodeOldQuantity"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputBarCodeOldQuantity')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.barCodeQuantity')" prop="barCodeQuantity"> <!– 条码数量 –>-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="queryParams.barCodeQuantity"-->
|
||||
<!-- :placeholder="$t('stockFreeze.inputBarCodeQuantity')"-->
|
||||
<!-- clearable-->
|
||||
<!-- @keyup.enter.native="handleQuery"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label="$t('stockFreeze.productGuid')" prop="productGuid"> <!– 物料guid –>
|
||||
<el-input
|
||||
v-model="queryParams.productGuid"
|
||||
:placeholder="$t('stockFreeze.inputProductGuid')"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{$t('stockFreeze.search')}}</el-button> <!-- 搜索 -->
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{$t('stockFreeze.reset')}}</el-button> <!-- 重置 -->
|
||||
@@ -167,20 +169,32 @@
|
||||
|
||||
<el-table v-loading="loading" :data="freezeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column :label="$t('stockFreeze.stockId')" align="center" prop="stockId" /> <!-- 库存编码 -->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.stockId')" align="center" prop="stockId" /> <!– 库存编码 –>-->
|
||||
<el-table-column :label="$t('stockFreeze.cargoSpaceId')" align="center" prop="cargoSpaceId" /> <!-- 货位编码 -->
|
||||
<el-table-column :label="$t('stockFreeze.cargoSpaceName')" align="center" prop="cargoSpaceName" /> <!-- 货位名称 -->
|
||||
<el-table-column :label="$t('stockFreeze.trayCode')" align="center" prop="trayCode" /> <!-- 托盘条码 -->
|
||||
<el-table-column :label="$t('stockFreeze.productId')" align="center" prop="productId" /> <!-- 物品编码 -->
|
||||
<el-table-column :label="$t('stockFreeze.productName')" align="center" prop="productName" /> <!-- 物品名称 -->
|
||||
<el-table-column :label="$t('stockFreeze.printDate')" align="center" prop="printDate" /> <!-- 生产日期 -->
|
||||
<el-table-column :label="$t('stockFreeze.lotNo')" align="center" prop="lotNo" /> <!-- 批号 -->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.productId')" align="center" prop="productId" /> <!– 物品编码 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.productName')" align="center" prop="productName" /> <!– 物品名称 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.printDate')" align="center" prop="printDate" /> <!– 生产日期 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.lotNo')" align="center" prop="lotNo" /> <!– 批号 –>-->
|
||||
<el-table-column :label="$t('stockFreeze.oldStatus')" align="center" prop="oldStatus" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.cargo_space_status" :value="scope.row.oldStatus"/>
|
||||
</template>
|
||||
</el-table-column><!-- 原库位状态 -->
|
||||
<el-table-column :label="$t('stockFreeze.currStatus')" align="center" prop="currStatus" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.cargo_space_status" :value="scope.row.currStatus"/>
|
||||
</template>
|
||||
</el-table-column><!-- 现库位状态 -->
|
||||
<el-table-column :label="$t('stockFreeze.method')" align="center" prop="method" /> <!-- 操作 -->
|
||||
<el-table-column :label="$t('stockFreeze.warehouseId')" align="center" prop="warehouseId" /> <!-- 仓库 -->
|
||||
<el-table-column :label="$t('stockFreeze.stockDetailId')" align="center" prop="stockDetailId" /> <!-- 库存字表id -->
|
||||
<el-table-column :label="$t('stockFreeze.operatingTarget')" align="center" prop="operatingTarget" /> <!-- 操作目标 -->
|
||||
<el-table-column :label="$t('stockFreeze.barCodeOldQuantity')" align="center" prop="barCodeOldQuantity" /> <!-- 条码数量 -->
|
||||
<el-table-column :label="$t('stockFreeze.barCodeQuantity')" align="center" prop="barCodeQuantity" /> <!-- 条码数量 -->
|
||||
<el-table-column :label="$t('stockFreeze.productGuid')" align="center" prop="productGuid" /> <!-- 物料guid -->
|
||||
<el-table-column :label="$t('stockFreeze.warehouseId')" align="center" prop="warehouseName" /> <!-- 仓库 -->
|
||||
<el-table-column :label="$t('stockFreeze.createTime')" align="center" prop="createTime" /> <!-- 创建时间 -->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.stockDetailId')" align="center" prop="stockDetailId" /> <!– 库存字表id –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.operatingTarget')" align="center" prop="operatingTarget" /> <!– 操作目标 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.barCodeOldQuantity')" align="center" prop="barCodeOldQuantity" /> <!– 条码数量 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.barCodeQuantity')" align="center" prop="barCodeQuantity" /> <!– 条码数量 –>-->
|
||||
<!-- <el-table-column :label="$t('stockFreeze.productGuid')" align="center" prop="productGuid" /> <!– 物料guid –>-->
|
||||
<el-table-column :label="$t('stockFreeze.operation')" align="center" class-name="small-padding fixed-width"> <!-- 操作 -->
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@@ -265,9 +279,11 @@
|
||||
|
||||
<script>
|
||||
import { listFreeze, getFreeze, delFreeze, addFreeze, updateFreeze } from "@/api/stock/freeze"
|
||||
import {listWarehouse} from "@/api/bas/warehouse"
|
||||
|
||||
export default {
|
||||
name: "Freeze",
|
||||
dicts:['cargo_space_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@@ -284,6 +300,7 @@ export default {
|
||||
total: 0,
|
||||
// 库存冻结记录表格数据
|
||||
freezeList: [],
|
||||
warehouseOptions:[],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
@@ -360,8 +377,15 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.getWarehouseList();
|
||||
},
|
||||
methods: {
|
||||
/** 获取仓库列表 */
|
||||
getWarehouseList() {
|
||||
listWarehouse().then(response => {
|
||||
this.warehouseOptions = response.rows;
|
||||
});
|
||||
},
|
||||
/** 查询库存冻结记录列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
|
||||
Reference in New Issue
Block a user