打印格式调整
parent
f54386cc66
commit
2e2635a435
|
@ -2084,11 +2084,10 @@ public class WmImNoticeHController extends BaseController {
|
|||
printHeader.setHeader10("客户电话: " +md.getDianHua());
|
||||
|
||||
printHeader.setHeader11("打印时间: "+ DateUtils.date2Str(DateUtils.getDate(), DateUtils.datetimeFormat) );
|
||||
printHeader.setHeader14("备注: "+ wmImNoticeH.getImBeizhu() );
|
||||
|
||||
request.setAttribute("printHeader", printHeader);
|
||||
List<PrintItem> listitem = new ArrayList<>();
|
||||
|
||||
request.setAttribute("listitem", listitem);
|
||||
String tsql = "SELECT wq.goods_pro_data as pro_data,wq.goods_unit, (select wmi.rec_deg from wm_in_qm_i wmi where wmi.im_notice_id = wq.order_id and wmi.goods_id = wq.goods_id limit 1) as rec_deg, mg.goods_code, mg.goods_id,mg.shp_ming_cheng,"
|
||||
+ " cast(sum(wq.goods_qua) as signed) as goods_count,truncate(sum(wq.goods_qua*mg.ti_ji_cm),2) tin_tj ,truncate(sum(wq.goods_qua*mg.zhl_kg),2) as tin_zhl,count(*) as tuopan "
|
||||
+ "FROM wm_to_up_goods wq,mv_goods mg where wq.order_id = ? and wq.goods_id = mg.goods_code group by wq.order_id, mg.goods_code,wq.goods_pro_data";
|
||||
|
@ -2156,6 +2155,9 @@ Double sum =0.00;
|
|||
|
||||
printHeader.setHeader12(sum.toString());
|
||||
printHeader.setHeader13(sumzl.toString());
|
||||
request.setAttribute("printHeader", printHeader);
|
||||
|
||||
request.setAttribute("listitem", listitem);
|
||||
|
||||
return new ModelAndView("com/zzjee/wm/print/imnoticerkd-print");
|
||||
}
|
||||
|
|
|
@ -1888,11 +1888,10 @@ public class WmOmNoticeHController extends BaseController {
|
|||
printHeader.setHeader10("收货地址: " +wmOmNoticeH.getDelvAddr());
|
||||
|
||||
printHeader.setHeader11("打印时间: "+DateUtils.date2Str(DateUtils.getDate(), DateUtils.datetimeFormat) );
|
||||
printHeader.setHeader14("备注: " +wmOmNoticeH.getOmBeizhu());
|
||||
|
||||
request.setAttribute("printHeader", printHeader);
|
||||
List<PrintItem> listitem = new ArrayList<>();
|
||||
|
||||
request.setAttribute("listitem", listitem);
|
||||
String tsql = "SELECT wq.goods_pro_data as pro_data,wq.base_unit, mg.goods_code, mg.goods_id,mg.shp_ming_cheng,cast(sum(wq.base_goodscount) as signed) as goods_count,mg.chl_shl,cast(mg.ti_ji_cm/mg.chl_shl as signed) tin_tj ,(mg.zhl_kg/mg.chl_shl ) as tin_zhl "
|
||||
+" FROM wm_to_down_goods wq,mv_goods mg where wq.order_id = ? "
|
||||
+" and wq.goods_id = mg.goods_code group by wq.order_id, mg.goods_code,wq.goods_pro_data";
|
||||
|
@ -1983,6 +1982,8 @@ public class WmOmNoticeHController extends BaseController {
|
|||
|
||||
printHeader.setHeader12(sum.toString());
|
||||
printHeader.setHeader13(sumzl.toString());
|
||||
request.setAttribute("printHeader", printHeader);
|
||||
request.setAttribute("listitem", listitem);
|
||||
|
||||
return new ModelAndView("com/zzjee/wm/print/imnoticeckd-print");
|
||||
}
|
||||
|
|
|
@ -0,0 +1,211 @@
|
|||
<%@ 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>
|
||||
tr
|
||||
{mso-height-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
col
|
||||
{mso-width-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
br
|
||||
{mso-data-placement:same-cell;}
|
||||
ruby
|
||||
{ruby-align:left;}
|
||||
.style0
|
||||
{mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family: 黑体;
|
||||
mso-font-charset:0;
|
||||
border:none;
|
||||
mso-protection:locked visible;
|
||||
mso-style-name:常规;
|
||||
mso-style-id:0;}
|
||||
td
|
||||
{mso-style-parent:style0;
|
||||
padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:黑体;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
border:none;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
mso-protection:locked visible;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;}
|
||||
.xl65
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
text-align:center;
|
||||
border:1.0pt solid black;}
|
||||
.xl66
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;}
|
||||
.xl67
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:18pt;
|
||||
text-align:center;}
|
||||
.xl68
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
white-space:normal;}
|
||||
.xl69
|
||||
{mso-style-parent:style0;
|
||||
text-align:center;}
|
||||
|
||||
</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"><t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" >
|
||||
<input id="content" type="hidden" value="${printHeader.header05}">
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=680 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:438pt;margin-left: 30px;margin-top: -30px'>
|
||||
<col width=102 style='mso-width-source:userset;mso-width-alt:3612;width:76pt'>
|
||||
|
||||
<%--<col width=84 style='mso-width-source:userset;mso-width-alt:2986;width:63pt'>--%>
|
||||
<col width=253 style='mso-width-source:userset;mso-width-alt:4010;width:252pt'>
|
||||
<col width=45 style='mso-width-source:userset;mso-width-alt:1592;width:34pt'>
|
||||
<col width=94 style='mso-width-source:userset;mso-width-alt:2986;
|
||||
width:34pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=102 style='mso-width-source:userset;mso-width-alt:2389;width:60pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
|
||||
<tr height=18 style='height:13.2pt'>
|
||||
<td colspan=9 height=18 width=585 style='height:13.2pt;width:438pt'></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=4 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">${printHeader.header02}</span></td>
|
||||
<td colspan=4 class=xl68 width=168 style='width:126pt'>${printHeader.header04}</td>
|
||||
<td rowspan="3" class=xl69>
|
||||
<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${wmImNoticeHPage.noticeId}" style="width:80px;height:80px;vertical-align:right">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=4 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">${printHeader.header01}</span></td>
|
||||
<td colspan=4 class=xl68 width=168 style='width:126pt'>${printHeader.header05}</td>
|
||||
<td colspan=2 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=4 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>${printHeader.header08}</td>
|
||||
<td colspan=4 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>${printHeader.header09}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=4 class=xl68 width=337 style='width:252pt'>${printHeader.header14}</td>
|
||||
<td colspan=4 >${printHeader.header06}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr height=33 style='mso-height-source:userset;height:25.05pt'>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>--%>
|
||||
<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>商品</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>规格</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>单位</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>生产日期</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>保质期</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>数量</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>体积</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>重量</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>储位</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>二维码</td>
|
||||
|
||||
<td ></td>
|
||||
</tr>
|
||||
|
||||
<c:if test="${fn:length(wmImNoticeIList) > 0 }">
|
||||
<c:forEach items="${wmImNoticeIList}" var="poVal" varStatus="stuts">
|
||||
|
||||
<tr height=33 style='mso-height-source:userset;height:50px'>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsCode } </td>
|
||||
<%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsCode }</td>--%>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center;word-break:break-all;'><span style='word-break:break-all;width: auto;font-size: 14pt'>${poVal.goodsName }</span></td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.shpGuiGe }</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsUnit }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsPrdData }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.bzhiQi }</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsCount }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsFvol }</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsWeight }</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'></td>
|
||||
|
||||
<td class=xl65 align="center" valign="middle" style='border:1.0pt solid black'><img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${poVal.goodsCode }" alt="${poVal.goodsCode }" style="width:40px;height:40px;vertical-align:middle;"> </td>
|
||||
<td ></td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
<tr height=20 style='height:25.0pt'>
|
||||
<td height=20 class=xl66 colspan=8 style='height:15.0pt;mso-ignore:colspan;text-align: justify'>主管:<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>制单: ${wmOmNoticeHPage.createBy}<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>仓管:<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>叉车:<span
|
||||
style='mso-spacerun:yes'></span></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</t:formvalid></div>
|
||||
</body>
|
|
@ -36,7 +36,8 @@
|
|||
<t:dgFunOpt title="通知单" funname="doprint(id)" urlclass="ace_button" 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="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="closeor(id)" urlclass="ace_button" exp="imSta#ne#已完成"/>
|
||||
<t:dgFunOpt title="审核" funname="appor(id)" urlclass="ace_button" exp="imSta#eq#初始化"/>
|
||||
|
@ -122,6 +123,11 @@ function printysd(id){
|
|||
function printrkd(id){
|
||||
var url = "wmImNoticeHController.do?doPrintrkd&id="+id;
|
||||
|
||||
window.open(url);
|
||||
}
|
||||
function printrkdpage(id){
|
||||
var url = "wmImNoticeHController.do?doPrintpagerkd&id="+id;
|
||||
|
||||
window.open(url);
|
||||
}
|
||||
function printhpid(id){
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
|
||||
<%--<t:dgFunOpt title="回写" funname="dopost(id)" urlclass="ace_button" exp="omSta#eq#已完成" />--%>
|
||||
|
||||
<t:dgFunOpt title="出库单" funname="printckd(id)" urlclass="ace_button" urlfont=" fa-print" exp="omSta#ne#已删除"/>
|
||||
<t:dgFunOpt title="导出出库单" funname="printckd(id)" urlclass="ace_button" urlfont="fa-print" exp="omSta#ne#已删除"/>
|
||||
<t:dgFunOpt title="打印出库单" funname="printckdpage(id)" urlclass="ace_button" urlfont="fa-print" exp="omSta#ne#已删除"/>
|
||||
<%--<t:dgFunOpt title="装箱单" funname="printckd(id)" urlclass="ace_button" urlfont=" fa-print" exp="omSta#ne#已删除"/>--%>
|
||||
<t:dgToolBar title="录入" icon="icon-add" url="wmOmNoticeHController.do?goAdd&orderTypeCode=11" funname="add" width="100%" height="100%"></t:dgToolBar>
|
||||
<t:dgToolBar title="编辑" icon="icon-edit" operationCode="omnoedit" url="wmOmNoticeHController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
|
||||
|
@ -143,6 +144,11 @@
|
|||
function printckd(id){
|
||||
var url = "wmOmNoticeHController.do?doPrintckd&id="+id;
|
||||
|
||||
window.open(url);
|
||||
}
|
||||
function printckdpage(id){
|
||||
var url = "wmOmNoticeHController.do?doPrintpageckd&id="+id;
|
||||
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue