feat(wms): 添加钢卷吞吐记录功能及优化日志查询

- 新增根据钢卷ID查询操作记录的API接口
- 在钢卷管理页面添加吞吐记录查看功能
- 优化日志表格组件,支持按业务类型和出入库类型筛选
- 增加日志删除功能
- 调整ActualWarehouseSelect组件支持清除输入
This commit is contained in:
砂糖
2026-03-06 13:04:17 +08:00
parent bc99d985f5
commit a024be0858
5 changed files with 214 additions and 87 deletions

View File

@@ -233,6 +233,8 @@
@click="handleAbnormal(scope.row)">查看异常</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleCheck(scope.row)"
v-if="showControl">修正</el-button>
<el-button size="mini" type="text" icon="el-icon-time" @click="handleLog(scope.row)"
v-if="showWareLog">吞吐记录</el-button>
<!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-if="showControl">删除</el-button> -->
<el-button size="mini" type="text" icon="el-icon-search" @click="handleTrace(scope.row)">追溯</el-button>
@@ -367,6 +369,11 @@
<el-dialog title="异常信息" :visible.sync="abnormalOpen" width="90%" append-to-body>
<abnormal-list :coil-id="currentCoilId"></abnormal-list>
</el-dialog>
<!-- 吞吐记录 -->
<el-dialog v-if="showWareLog" title="吞吐记录" :visible.sync="logOpen" width="90%" append-to-body>
<log-table :coil-id="currentCoilId"></log-table>
</el-dialog>
</div>
</template>
@@ -408,6 +415,7 @@ import html2canvas from 'html2canvas';
import { PDFDocument } from 'pdf-lib';
import { listUser } from "@/api/system/user";
import AbnormalList from "./abnormal.vue";
import LogTable from "@/views/wms/warehouse/components/LogTable.vue";
export default {
name: "MaterialCoil",
@@ -428,6 +436,7 @@ export default {
MutiSelect,
OuterTagPreview,
AbnormalList,
LogTable,
},
dicts: ['product_coil_status', 'coil_material', 'coil_itemname', 'coil_manufacturer', 'coil_quality_status', 'warehouse_sync'],
props: {
@@ -495,6 +504,10 @@ export default {
type: Boolean,
default: false,
},
showWareLog: {
type: Boolean,
default: false,
},
},
data() {
return {
@@ -661,6 +674,7 @@ export default {
abnormalOpen: false,
currentCoilId: '',
userList: [],
logOpen: false,
};
},
computed: {
@@ -979,6 +993,10 @@ export default {
this.title = "修改钢卷物料";
});
},
handleLog(row) {
this.logOpen = true;
this.currentCoilId = row.coilId;
},
transferCoil() { },
/** 提交按钮 */
submitForm() {

View File

@@ -182,7 +182,7 @@
</el-form-item>
<el-form-item label="真实库区" prop="actualWarehouseId">
<ActualWarehouseSelect v-model="updateForm.actualWarehouseId" placeholder="请选择真实库区" block />
<ActualWarehouseSelect :clearInput="false" clearable v-model="updateForm.actualWarehouseId" placeholder="请选择真实库区" block />
</el-form-item>
<el-form-item label="备注" prop="remark">

View File

@@ -0,0 +1,27 @@
<template>
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideWarehouseQuery="hideWarehouseQuery"
:hideType="hideType" :showControl="showControl" :showWareLog="showWareLog" />
</template>
<script>
import BasePage from './panels/base.vue';
export default {
components: {
BasePage
},
data() {
return {
qrcode: false,
querys: {
// dataType: 1,
},
hideWarehouseQuery: true,
showWareLog: true,
showControl: false,
labelType: '2',
hideType: false,
}
}
}
</script>