退货补单,多级仓库补单修改,新增灭菌批号,灭菌日期

test
anthonywj 1 year ago
parent f839f4633d
commit 677f368635

@ -151,7 +151,7 @@ public class IoOrderDetailResultController extends BaseController {
response.setHeader("Content-Disposition",
"attachment;filename=" + URLEncoder.encode("出入库明细" + DateUtil.format(new Date(), "yyyy-MM-dd") + ".xlsx", StandardCharsets.UTF_8.name()));
EasyExcel.write(response.getOutputStream(), IoOrderDetailResultResponse.class).sheet().doWrite(orderDetailVos);
EasyExcel.write(response.getOutputStream(), IoOrderDetailVo.class).sheet().doWrite(orderDetailVos);
}
@ -165,7 +165,7 @@ public class IoOrderDetailResultController extends BaseController {
response.setHeader("Content-Disposition",
"attachment;filename=" + URLEncoder.encode("出入库明细" + DateUtil.format(new Date(), "yyyy-MM-dd") + ".xlsx", StandardCharsets.UTF_8.name()));
EasyExcel.write(response.getOutputStream(), IoOrderDetailResultResponse.class).sheet().doWrite(orderDetailVos);
EasyExcel.write(response.getOutputStream(), IoOrderDetailVo.class).sheet().doWrite(orderDetailVos);
}

@ -196,6 +196,19 @@ public class IoOrderDetailBizEntity {
private String checkColdFileName;
/**
*
*/
@TableField(value = "sterBatchNo")
private String sterBatchNo;
/**
*
*/
@TableField(value = "sterDate")
private String sterDate;
@TableField(exist = false)
private boolean checkSuccess;

@ -189,6 +189,18 @@ public class IoOrderDetailCodeEntity {
@TableField(value = "remark5")
private String remark5;
/**
*
*/
@TableField(value = "sterBatchNo")
private String sterBatchNo;
/**
*
*/
@TableField(value = "sterDate")
private String sterDate;
@TableField(exist = false)
private boolean checkSuccess;

@ -190,6 +190,18 @@ public class IoOrderDetailResultEntity {
@TableField(value = "inoutPrintStatus")
private Integer inoutPrintStatus;
/**
*
*/
@TableField(value = "sterBatchNo")
private String sterBatchNo;
/**
*
*/
@TableField(value = "sterDate")
private String sterDate;
@TableField(exist = false)
private String deptCode;
@TableField(exist = false)

@ -1,5 +1,6 @@
package com.glxp.api.res.inout;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
@ -151,6 +152,15 @@ public class IoOrderDetailBizResponse {
* 5
*/
private String remark5;
/**
*
*/
private String sterBatchNo;
/**
*
*/
private String sterDate;
//扫码数量
private int scanCount;
@ -174,7 +184,4 @@ public class IoOrderDetailBizResponse {
private String zczbhhzbapzbh;
}

@ -1,5 +1,6 @@
package com.glxp.api.res.inout;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
@ -159,6 +160,16 @@ public class IoOrderDetailCodeResponse {
*/
private String supName;
/**
*
*/
private String sterBatchNo;
/**
*
*/
private String sterDate;
private int orderCount;
private String invoiceCodes;

@ -170,6 +170,18 @@ public class IoOrderDetailResultResponse {
* 5
*/
private String remark5;
/**
*
*/
private String sterBatchNo;
/**
*
*/
private String sterDate;
private int acceptCount;
private String fromCorpName;
@ExcelProperty(value = "单据类型", index = 9)

@ -240,7 +240,8 @@ public class IoChangeInoutService {
}
if (StrUtil.isNotEmpty(bussinessChangeTypeEntity.getDefaultInvCode())) {
outOrder.setFromInvCode(bussinessChangeTypeEntity.getDefaultInvCode());
outOrder.setFromDeptCode(bussinessChangeTypeEntity.getDefaultDeptCode());
InvWarehouseEntity fromInv = invWarehouseService.findByInvSubByCode(bussinessChangeTypeEntity.getDefaultInvCode());
outOrder.setFromDeptCode(fromInv.getParentId());
}
//原先流程---使用流转单据默认仓库
// outOrder.setFromInvCode(bussinessChangeTypeEntity.getDefaultInvCode());
@ -305,8 +306,13 @@ public class IoChangeInoutService {
//根据单据设置状态 1:草稿
if (bussinessChangeTypeEntity.getAuditStatus() == 1) {
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
orderService.update(orderEntity);
outOrder.setStatus(ConstantStatus.ORDER_STATUS_TEMP_SAVE);
orderService.update(outOrder);
for (IoCodeTempEntity codeTempEntity : codeTempEntities) {
addInoutService.genOrderDetailCode(orderEntity, codeTempEntity);
}
} else if (bussinessChangeTypeEntity.getAuditStatus() == 2 || bussinessChangeTypeEntity.getAuditStatus() == 3) {
addInoutService.dealProcess(outOrder);
if (!ioCheckInoutService.checkManual(outOrder.getBillNo())) {

@ -66,7 +66,6 @@ import java.util.stream.Collectors;
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class IoOrderServiceImpl implements IoOrderService {
@Resource

@ -89,3 +89,13 @@ INSERT ignore INTO sys_param_config(`id`, `parentId`, `paramName`, `paramKey`, `
`paramType`, `paramExplain`, `updateTime`)
VALUES (20088, 0, '单据详情展示方式', 'order_detail_visible', '1', 0, 0, '1:按DI统一排序2按扫码或录入时间排序', NULL);
CALL Pro_Temp_ColumnWork('io_order_detail_biz', 'sterBatchNo', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_biz', 'sterDate', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_code', 'sterBatchNo', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_code', 'sterDate', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterBatchNo', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('io_order_detail_result', 'sterDate', 'varchar(255)', 1);

Loading…
Cancel
Save