|
|
|
|
@ -1,27 +1,27 @@
|
|
|
|
|
package org.dromara.wms.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import jakarta.validation.constraints.*;
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
import org.dromara.wms.domain.bo.WmsInstockPrintBo;
|
|
|
|
|
import org.dromara.wms.domain.vo.WmsInstockPrintVo;
|
|
|
|
|
import org.dromara.wms.service.IWmsInstockPrintService;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
import org.dromara.common.core.validate.EditGroup;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
|
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.wms.domain.bo.WmsInstockPrintBo;
|
|
|
|
|
import org.dromara.wms.domain.vo.WmsInstockPrintVo;
|
|
|
|
|
import org.dromara.wms.service.IWmsInstockPrintService;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 入库单-物料打印条码
|
|
|
|
|
@ -104,9 +104,19 @@ public class WmsInstockPrintController extends BaseController {
|
|
|
|
|
@PathVariable Long[] instockPrintIds) {
|
|
|
|
|
return toAjax(wmsInstockPrintService.deleteWithValidByIds(List.of(instockPrintIds), true));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 入库单-物料打印条码信息
|
|
|
|
|
* 批量打印
|
|
|
|
|
* 调用打印机
|
|
|
|
|
*
|
|
|
|
|
* @param WmsInstockPrintBos 入库单-物料打印条码信息
|
|
|
|
|
* @return 是否打印成功
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/print")
|
|
|
|
|
public R<String> print(@RequestBody WmsInstockPrintBo bo){
|
|
|
|
|
public Boolean print(@RequestBody WmsInstockPrintBo bo){
|
|
|
|
|
List<WmsInstockPrintVo> vos = bo.getVos();
|
|
|
|
|
return null;
|
|
|
|
|
return wmsInstockPrintService.printCOde(vos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|