库存冻结 入库单据历史 接收单据历史
This commit is contained in:
@@ -558,7 +558,21 @@ export default {
|
||||
this.getDetailList(data.stockinId)
|
||||
this.$modal.msgSuccess("质检成功");
|
||||
});
|
||||
}
|
||||
},/**
|
||||
* 创建入库单
|
||||
* @param row
|
||||
*/
|
||||
handleCreateInStockIn(row) {
|
||||
this.reset()
|
||||
const stockinGuid = row.stockinGuid || this.ids
|
||||
let data = {
|
||||
stockinGuidList: stockinGuid
|
||||
}
|
||||
//console.log(data)
|
||||
createStockin(data).then(response => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
434
ruoyi-ui/src/views/stock/freeze/index.vue
Normal file
434
ruoyi-ui/src/views/stock/freeze/index.vue
Normal file
@@ -0,0 +1,434 @@
|
||||
<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="库存编码" prop="stockId">
|
||||
<el-input
|
||||
v-model="queryParams.stockId"
|
||||
placeholder="请输入库存编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货位编码" prop="cargoSpaceId">
|
||||
<el-input
|
||||
v-model="queryParams.cargoSpaceId"
|
||||
placeholder="请输入货位编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘条码" prop="trayCode">
|
||||
<el-input
|
||||
v-model="queryParams.trayCode"
|
||||
placeholder="请输入托盘条码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物品编码" prop="productId">
|
||||
<el-input
|
||||
v-model="queryParams.productId"
|
||||
placeholder="请输入物品编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物品名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入物品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产日期" prop="printDate">
|
||||
<el-input
|
||||
v-model="queryParams.printDate"
|
||||
placeholder="请输入生产日期"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批号" prop="lotNo">
|
||||
<el-input
|
||||
v-model="queryParams.lotNo"
|
||||
placeholder="请输入批号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作" prop="method">
|
||||
<el-input
|
||||
v-model="queryParams.method"
|
||||
placeholder="请输入操作"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-input
|
||||
v-model="queryParams.warehouseId"
|
||||
placeholder="请输入仓库"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存字表id" prop="stockDetailId">
|
||||
<el-input
|
||||
v-model="queryParams.stockDetailId"
|
||||
placeholder="请输入库存字表id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作目标" prop="operatingTarget">
|
||||
<el-input
|
||||
v-model="queryParams.operatingTarget"
|
||||
placeholder="请输入操作目标"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="条码数量" prop="barCodeOldQuantity">
|
||||
<el-input
|
||||
v-model="queryParams.barCodeOldQuantity"
|
||||
placeholder="请输入条码数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="条码数量" prop="barCodeQuantity">
|
||||
<el-input
|
||||
v-model="queryParams.barCodeQuantity"
|
||||
placeholder="请输入条码数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物料guid" prop="productGuid">
|
||||
<el-input
|
||||
v-model="queryParams.productGuid"
|
||||
placeholder="请输入物料guid"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['stock:freeze:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['stock:freeze:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['stock:freeze:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['stock:freeze:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="freezeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="guid" align="center" prop="whGuid" />
|
||||
<el-table-column label="库存编码" align="center" prop="stockId" />
|
||||
<el-table-column label="货位编码" align="center" prop="cargoSpaceId" />
|
||||
<el-table-column label="托盘条码" align="center" prop="trayCode" />
|
||||
<el-table-column label="物品编码" align="center" prop="productId" />
|
||||
<el-table-column label="物品名称" align="center" prop="productName" />
|
||||
<el-table-column label="生产日期" align="center" prop="printDate" />
|
||||
<el-table-column label="批号" align="center" prop="lotNo" />
|
||||
<el-table-column label="初始状态" align="center" prop="oldStatus" />
|
||||
<el-table-column label="更改状态" align="center" prop="currStatus" />
|
||||
<el-table-column label="操作" align="center" prop="method" />
|
||||
<el-table-column label="仓库" align="center" prop="warehouseId" />
|
||||
<el-table-column label="库存字表id" align="center" prop="stockDetailId" />
|
||||
<el-table-column label="操作目标" align="center" prop="operatingTarget" />
|
||||
<el-table-column label="条码数量" align="center" prop="barCodeOldQuantity" />
|
||||
<el-table-column label="条码数量" align="center" prop="barCodeQuantity" />
|
||||
<el-table-column label="物料guid" align="center" prop="productGuid" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['stock:freeze:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['stock:freeze:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改库存冻结记录对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="库存编码" prop="stockId">
|
||||
<el-input v-model="form.stockId" placeholder="请输入库存编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="货位编码" prop="cargoSpaceId">
|
||||
<el-input v-model="form.cargoSpaceId" placeholder="请输入货位编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘条码" prop="trayCode">
|
||||
<el-input v-model="form.trayCode" placeholder="请输入托盘条码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物品编码" prop="productId">
|
||||
<el-input v-model="form.productId" placeholder="请输入物品编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物品名称" prop="productName">
|
||||
<el-input v-model="form.productName" placeholder="请输入物品名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="生产日期" prop="printDate">
|
||||
<el-input v-model="form.printDate" placeholder="请输入生产日期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="批号" prop="lotNo">
|
||||
<el-input v-model="form.lotNo" placeholder="请输入批号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作" prop="method">
|
||||
<el-input v-model="form.method" placeholder="请输入操作" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" placeholder="请输入仓库" />
|
||||
</el-form-item>
|
||||
<el-form-item label="库存字表id" prop="stockDetailId">
|
||||
<el-input v-model="form.stockDetailId" placeholder="请输入库存字表id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作目标" prop="operatingTarget">
|
||||
<el-input v-model="form.operatingTarget" placeholder="请输入操作目标" />
|
||||
</el-form-item>
|
||||
<el-form-item label="条码数量" prop="barCodeOldQuantity">
|
||||
<el-input v-model="form.barCodeOldQuantity" placeholder="请输入条码数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="条码数量" prop="barCodeQuantity">
|
||||
<el-input v-model="form.barCodeQuantity" placeholder="请输入条码数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料guid" prop="productGuid">
|
||||
<el-input v-model="form.productGuid" placeholder="请输入物料guid" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listFreeze, getFreeze, delFreeze, addFreeze, updateFreeze } from "@/api/stock/freeze"
|
||||
|
||||
export default {
|
||||
name: "Freeze",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 库存冻结记录表格数据
|
||||
freezeList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
stockId: null,
|
||||
cargoSpaceId: null,
|
||||
trayCode: null,
|
||||
productId: null,
|
||||
productName: null,
|
||||
printDate: null,
|
||||
lotNo: null,
|
||||
oldStatus: null,
|
||||
currStatus: null,
|
||||
method: null,
|
||||
warehouseId: null,
|
||||
stockDetailId: null,
|
||||
operatingTarget: null,
|
||||
barCodeOldQuantity: null,
|
||||
barCodeQuantity: null,
|
||||
productGuid: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询库存冻结记录列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
listFreeze(this.queryParams).then(response => {
|
||||
this.freezeList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
whGuid: null,
|
||||
stockId: null,
|
||||
cargoSpaceId: null,
|
||||
trayCode: null,
|
||||
productId: null,
|
||||
productName: null,
|
||||
printDate: null,
|
||||
lotNo: null,
|
||||
oldStatus: null,
|
||||
currStatus: null,
|
||||
method: null,
|
||||
warehouseId: null,
|
||||
createTime: null,
|
||||
stockDetailId: null,
|
||||
operatingTarget: null,
|
||||
barCodeOldQuantity: null,
|
||||
barCodeQuantity: null,
|
||||
productGuid: null
|
||||
}
|
||||
this.resetForm("form")
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm")
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.whGuid)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = "添加库存冻结记录"
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset()
|
||||
const whGuid = row.whGuid || this.ids
|
||||
getFreeze(whGuid).then(response => {
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = "修改库存冻结记录"
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.whGuid != null) {
|
||||
updateFreeze(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addFreeze(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功")
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const whGuids = row.whGuid || this.ids
|
||||
this.$modal.confirm('是否确认删除库存冻结记录编号为"' + whGuids + '"的数据项?').then(function() {
|
||||
return delFreeze(whGuids)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess("删除成功")
|
||||
}).catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('stock/freeze/export', {
|
||||
...this.queryParams
|
||||
}, `freeze_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user