库存日志

This commit is contained in:
sxu 2024-08-05 10:57:32 +08:00
parent 30763bfd81
commit 6de9144844
6 changed files with 17 additions and 5 deletions

View File

@ -131,6 +131,9 @@ public class BmNumLogs extends BaseEntity {
@Excel(name = "报废数量") @Excel(name = "报废数量")
private String scrapNum; private String scrapNum;
@Excel(name = "操作后库存")
private String postStoreNum;
@Excel(name = "出库类型 0编码出库 1数量出库 2成套出库") @Excel(name = "出库类型 0编码出库 1数量出库 2成套出库")
private String manageType; private String manageType;

View File

@ -236,4 +236,7 @@ public class BackApplyInfo {
/**0:未完成退料,可以撤回 1:已完成退料,不能撤回*/ /**0:未完成退料,可以撤回 1:已完成退料,不能撤回*/
private Integer isFinished; private Integer isFinished;
/** 操作后库存 */
private String postStoreNum;
} }

View File

@ -259,6 +259,8 @@ public class BackReceiveServiceImpl implements BackReceiveService {
record.setPassNum(passNum); record.setPassNum(passNum);
record.setMaintenanceNum(maintenanceNum); record.setMaintenanceNum(maintenanceNum);
record.setScrapNum(scrapNum); record.setScrapNum(scrapNum);
int postStoreNum = backReceiveMapper.getmaChineByCt(record);
record.setPostStoreNum(String.valueOf(postStoreNum));
} }
} else { } else {
throw new RuntimeException("typeId为空"); throw new RuntimeException("typeId为空");

View File

@ -45,6 +45,7 @@ public class BmNumLogsService{
record.setPassNum(des.getPassNum()); //退料合格数量 record.setPassNum(des.getPassNum()); //退料合格数量
record.setMaintenanceNum(des.getMaintenanceNum()); //退料维修数量 record.setMaintenanceNum(des.getMaintenanceNum()); //退料维修数量
record.setScrapNum(des.getScrapNum()); //退料报废数量 record.setScrapNum(des.getScrapNum()); //退料报废数量
record.setPostStoreNum(des.getPostStoreNum()); //操作后库存数
record.setManageType(des.getManageType()); record.setManageType(des.getManageType());
record.setTaskId(des.getTaskId()); record.setTaskId(des.getTaskId());
record.setTypeId(des.getTypeId()); record.setTypeId(des.getTypeId());

View File

@ -21,6 +21,7 @@
<result column="pass_num" jdbcType="VARCHAR" property="passNum" /> <result column="pass_num" jdbcType="VARCHAR" property="passNum" />
<result column="maintenance_num" jdbcType="VARCHAR" property="maintenanceNum" /> <result column="maintenance_num" jdbcType="VARCHAR" property="maintenanceNum" />
<result column="scrap_num" jdbcType="VARCHAR" property="scrapNum" /> <result column="scrap_num" jdbcType="VARCHAR" property="scrapNum" />
<result column="post_store_num" jdbcType="VARCHAR" property="postStoreNum" />
<result column="description" jdbcType="VARCHAR" property="description" /> <result column="description" jdbcType="VARCHAR" property="description" />
<result column="json_result" jdbcType="VARCHAR" property="jsonResult" /> <result column="json_result" jdbcType="VARCHAR" property="jsonResult" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
@ -39,7 +40,7 @@
select select
bnl.id, bnl.model_title, bnl.`method`, bnl.task_id, bnl.type_id, bnl.pre_num, bnl.audit_num, bnl.pre_store_num, bnl.in_num, bnl.out_num, bnl.id, bnl.model_title, bnl.`method`, bnl.task_id, bnl.type_id, bnl.pre_num, bnl.audit_num, bnl.pre_store_num, bnl.in_num, bnl.out_num,
bnl.back_num, bnl.pass_num, bnl.maintenance_num, bnl.scrap_num, bnl.`description`, bnl.json_result, bnl.create_time, bnl.creator, bnl.manage_type, bnl.back_num, bnl.pass_num, bnl.maintenance_num, bnl.scrap_num, bnl.`description`, bnl.json_result, bnl.create_time, bnl.creator, bnl.manage_type,
bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name, bnl.post_store_num
from bm_num_logs bnl from bm_num_logs bnl
left join ma_type mt on bnl.type_id = mt.type_id left join ma_type mt on bnl.type_id = mt.type_id
inner join ma_type mt1 on mt.parent_id = mt1.type_id inner join ma_type mt1 on mt.parent_id = mt1.type_id
@ -51,7 +52,7 @@
select select
bnl.id, bnl.model_title, bnl.`method`, bnl.task_id, bnl.type_id, bnl.pre_num, bnl.audit_num, bnl.pre_store_num, bnl.in_num, bnl.out_num, bnl.id, bnl.model_title, bnl.`method`, bnl.task_id, bnl.type_id, bnl.pre_num, bnl.audit_num, bnl.pre_store_num, bnl.in_num, bnl.out_num,
bnl.back_num, bnl.pass_num, bnl.maintenance_num, bnl.scrap_num, bnl.`description`, bnl.json_result, bnl.create_time, bnl.creator, bnl.manage_type, bnl.back_num, bnl.pass_num, bnl.maintenance_num, bnl.scrap_num, bnl.`description`, bnl.json_result, bnl.create_time, bnl.creator, bnl.manage_type,
bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name, bnl.post_store_num
from bm_num_logs bnl from bm_num_logs bnl
left join ma_type mt on bnl.type_id = mt.type_id left join ma_type mt on bnl.type_id = mt.type_id
inner join ma_type mt1 on mt.parent_id = mt1.type_id inner join ma_type mt1 on mt.parent_id = mt1.type_id
@ -78,13 +79,14 @@
description, json_result, create_time, creator, remark, description, json_result, create_time, creator, remark,
pre_num, input_num, out_num, audit_num, manage_type, pre_num, input_num, out_num, audit_num, manage_type,
type_name, type_model_name, pre_store_num, in_num, type_name, type_model_name, pre_store_num, in_num,
back_num, pass_num, maintenance_num, scrap_num, `status` back_num, pass_num, maintenance_num, scrap_num, `status`, post_store_num
) )
values (#{modelTitle,jdbcType=VARCHAR}, #{method,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, values (#{modelTitle,jdbcType=VARCHAR}, #{method,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER},
#{description,jdbcType=VARCHAR}, #{jsonResult,jdbcType=VARCHAR}, now(), #{creator,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{jsonResult,jdbcType=VARCHAR}, now(), #{creator,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{preNum,jdbcType=VARCHAR}, #{inputNum,jdbcType=VARCHAR}, #{outNum,jdbcType=VARCHAR}, #{auditNum,jdbcType=VARCHAR}, #{manageType,jdbcType=VARCHAR}, #{preNum,jdbcType=VARCHAR}, #{inputNum,jdbcType=VARCHAR}, #{outNum,jdbcType=VARCHAR}, #{auditNum,jdbcType=VARCHAR}, #{manageType,jdbcType=VARCHAR},
#{typeName,jdbcType=VARCHAR}, #{typeModelName,jdbcType=VARCHAR}, #{preStoreNum,jdbcType=VARCHAR}, #{inNum,jdbcType=VARCHAR}, #{typeName,jdbcType=VARCHAR}, #{typeModelName,jdbcType=VARCHAR}, #{preStoreNum,jdbcType=VARCHAR}, #{inNum,jdbcType=VARCHAR},
#{backNum,jdbcType=VARCHAR}, #{passNum,jdbcType=VARCHAR}, #{maintenanceNum,jdbcType=VARCHAR}, #{scrapNum,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR} #{backNum,jdbcType=VARCHAR}, #{passNum,jdbcType=VARCHAR}, #{maintenanceNum,jdbcType=VARCHAR}, #{scrapNum,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{postStoreNum,jdbcType=VARCHAR}
) )
</insert> </insert>

View File

@ -43,6 +43,7 @@
<el-table-column show-overflow-tooltip align="center" prop="outNum" label="出库数量" /> <el-table-column show-overflow-tooltip align="center" prop="outNum" label="出库数量" />
<el-table-column show-overflow-tooltip align="center" prop="backNum" label="退库数量" /> <el-table-column show-overflow-tooltip align="center" prop="backNum" label="退库数量" />
<!-- <el-table-column show-overflow-tooltip align="center" prop="description" label="描述" />--> <!-- <el-table-column show-overflow-tooltip align="center" prop="description" label="描述" />-->
<el-table-column show-overflow-tooltip align="center" prop="postStoreNum" label="操作后库存" />
<el-table-column show-overflow-tooltip align="center" prop="createTime" label="日期" /> <el-table-column show-overflow-tooltip align="center" prop="createTime" label="日期" />
<el-table-column align="center" label="状态"> <el-table-column align="center" label="状态">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
@ -50,7 +51,7 @@
<el-tag size="mini" type="warning" v-else>异常</el-tag> <el-tag size="mini" type="warning" v-else>异常</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="creator" label="创建人" /> <!-- <el-table-column align="center" prop="creator" label="创建人" />-->
<!-- <el-table-column align="center" prop="remark" label="备注" />--> <!-- <el-table-column align="center" prop="remark" label="备注" />-->
<el-table-column align="center" label="操作"> <el-table-column align="center" label="操作">
<template slot-scope="{ row }"> <template slot-scope="{ row }">