商品打印

master
cez 2022-03-15 16:11:22 +08:00
parent cffb7deb82
commit 2117de9d66
3 changed files with 84 additions and 4 deletions

View File

@ -123,7 +123,40 @@ public class WmImNoticeHController extends BaseController {
public ModelAndView tbatchlist(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wm/wmintqmbatchList");
}
@RequestMapping(params = "doPrintgoods")
public ModelAndView doPrintgoods(String id,HttpServletRequest request) {
WmImNoticeHEntity wmImNoticeHEntity = wmImNoticeHService.getEntity(WmImNoticeHEntity.class, id);
Object id0 = wmImNoticeHEntity.getNoticeId();
List<WmImNoticeIEntity> wmImNoticeIEntitynewList = new ArrayList<>();
String hql0 = "from WmImNoticeIEntity where iM_NOTICE_ID = ? ";
try {
List<WmImNoticeIEntity> wmImNoticeIEntityList = systemService
.findHql(hql0, id0);
for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIEntityList) {
try{
MdGoodsEntity mvgoods = systemService.findUniqueByProperty(
MdGoodsEntity.class, "shpBianMa", wmImNoticeIEntity.getGoodsCode());
if (mvgoods != null) {
wmImNoticeIEntity.setBzhiQi(mvgoods.getBzhiQi());
wmImNoticeIEntity.setShpGuiGe(mvgoods.getShpGuiGe());
wmImNoticeIEntity.setGoodsName(mvgoods.getShpMingCheng());
wmImNoticeIEntity.setBarCode(mvgoods.getShpTiaoMa());
}
}catch (Exception e){
}
wmImNoticeIEntitynewList.add(wmImNoticeIEntity);
}
request.setAttribute("wmImNoticeIList", wmImNoticeIEntitynewList);
}catch (Exception e){
}
return new ModelAndView("com/zzjee/wm/print/imnotice-printgoods");
}
@RequestMapping(params = "doPrintpage")
public ModelAndView doPrint(String id,HttpServletRequest request) {
WmImNoticeHEntity wmImNoticeHEntity = wmImNoticeHService.getEntity(WmImNoticeHEntity.class, id);

View File

@ -0,0 +1,37 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>商品打印</title>
<t:base type="jquery,easyui,tools"></t:base>
<script type="text/javascript" charset="utf-8" src="webpage/com/zzjee/wmjs/jquery.jqprint.js"></script>
<script language="javascript">
function printall(){
$(".printdiv").jqprint();
}
function printview(){
document.all.WebBrowser1.ExecWB(7,1);
}
</script>
<style>
</style>
</head>
<body style="overflow-y:auto" scroll="no">
<a class="easyui-linkbutton" style="margin-top:3px" icon="icon-print" href="javascript:printall()">打印</a>
<div class="printdiv" style="margin-top: 10px">
<c:if test="${fn:length(wmImNoticeIList) > 0 }">
<c:forEach items="${wmImNoticeIList}" var="poVal" varStatus="stuts">
<div style="text-align:center;">
<span>
${poVal.goodsName }
</span>
<div id="printContent" style="page-break-after:always">
<img src="rest/wmBaseController/showOrDownbarcodeByurl?qrvalue=${poVal.barCode }" alt="${poVal.barCode }" style="height:40px;vertical-align:middle;">
</div>
</div>
</c:forEach>
</c:if>
</div>
</body>

View File

@ -31,19 +31,21 @@
<t:dgCol title="备注" field="imBeizhu" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单据状态" field="imSta" query="true" queryMode="single" width="50"></t:dgCol>
<t:dgConfOpt title="删除" url="wmImNoticeHController.do?doDel&id={id}" urlclass="ace_button" message="确定要删除此收货通知" urlfont="fa-trash-o" exp="imSta#eq#计划中"/>
<%--<t:dgFunOpt title="预约通知" funname="print(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>--%>
<t:dgFunOpt title="审核" funname="appor(id)" urlclass="ace_button" exp="imSta#eq#初始化"/>
<t:dgFunOpt title="通知单" funname="doprint(id)" urlclass="ace_button" exp="imSta#ne#已删除" />
<t:dgFunOpt title="货品信息" funname="doPrintgoods(id)" urlclass="ace_button" urlfont=" fa-print" />
<t:dgFunOpt title="打印入库" funname="printrkdpage(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="验收单" funname="printysd(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="导出入库" funname="printrkd(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="打印入库" funname="printrkdpage(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="货品ID" funname="printhpid(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="托盘标签" funname="printhpid(id)" urlclass="ace_button" urlfont=" fa-print" exp="imSta#ne#已删除"/>
<t:dgFunOpt title="审核" funname="appor(id)" urlclass="ace_button" exp="imSta#eq#初始化"/>
<t:dgFunOpt title="完成" funname="closeor(id)" urlclass="ace_button" exp="imSta#ne#已完成"/>
<%-- <t:dgFunOpt title="回写" funname="dopost(id)" urlclass="ace_button" exp="imSta#eq#已完成"/>--%>
<%-- <t:dgToolBar title="test" icon="icon-add" funname="addorder()" width="100%" height="100%"></t:dgToolBar> --%>
<t:dgConfOpt title="删除" url="wmImNoticeHController.do?doDel&id={id}" urlclass="ace_button" message="确定要删除此收货通知" urlfont="fa-trash-o" exp="imSta#eq#计划中"/>
<t:dgToolBar title="录入" icon="icon-add" url="wmImNoticeHController.do?goAdd&orderTypeCode=01" funname="add" width="100%" height="100%"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="wmImNoticeHController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
@ -106,6 +108,14 @@
// window.open(url);
}
function doPrintgoods(id){
var url = "wmImNoticeHController.do?doPrintgoods&id="+id;
createdetailwindow("商品打印(60*40)", url, 250, 600);
// window.open(url);
}
function addorder(){
var url = "wmImNoticeHController.do?goAdd&orderTypeCode=01";
openwindow("添加",url,"进货",770,500);