feat(配卷): 添加配卷记录功能
- 在配卷页面添加记录按钮,点击可查看配卷操作记录 - 新增配卷记录组件,展示钢卷操作历史 - 实现记录弹窗功能,支持分页查询
This commit is contained in:
110
klp-ui/src/views/wms/delivery/components/planRecord.vue
Normal file
110
klp-ui/src/views/wms/delivery/components/planRecord.vue
Normal file
@@ -0,0 +1,110 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="钢卷ID" prop="coilId">
|
||||
<el-input
|
||||
v-model="queryParams.coilId"
|
||||
placeholder="请输入钢卷ID"
|
||||
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-table v-loading="loading" :data="deliveryPlanCoilOperateList">
|
||||
<el-table-column label="钢卷号" align="center" prop="coilDetail.currentCoilNo"></el-table-column>
|
||||
<el-table-column label="操作类型" align="center" prop="operateType" />
|
||||
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||
<el-table-column label="操作时间" align="center" prop="createTime" />
|
||||
<!-- <el-table-column label="操作备注" align="center" prop="remark" /> -->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listDeliveryPlanCoilOperate } from "@/api/wms/deliveryPlanCoilOperate";
|
||||
|
||||
export default {
|
||||
name: "DeliveryPlanCoilOperate",
|
||||
props: {
|
||||
planId: {
|
||||
type: String,
|
||||
default: undefined
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 按钮loading
|
||||
buttonLoading: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 发货计划钢卷操作记录表格数据
|
||||
deliveryPlanCoilOperateList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
planId: undefined,
|
||||
coilId: undefined,
|
||||
operateType: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
planId: {
|
||||
handler(newVal, oldVal) {
|
||||
if (newVal !== oldVal) {
|
||||
this.queryParams.planId = newVal;
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
// immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 查询发货计划钢卷操作记录列表 */
|
||||
getList() {
|
||||
if (!this.planId) {
|
||||
return
|
||||
}
|
||||
this.loading = true;
|
||||
listDeliveryPlanCoilOperate(this.queryParams).then(response => {
|
||||
this.deliveryPlanCoilOperateList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user