出库明细

master
erzhongxmu 2020-04-20 22:40:28 +08:00
parent 6a4a60914a
commit d565fa3a84
3 changed files with 266 additions and 4 deletions

View File

@ -364,6 +364,29 @@ public class TmsYwDingdanController extends BaseController {
return j;
}
@RequestMapping(params = "doPrintpage")
public ModelAndView doPrint(String ids,HttpServletRequest request) {
List<WmTmsNoticeIEntity> arrayoutlist = new ArrayList<>();
for(String id1:ids.split(",")) {
TmsYwDingdanEntity tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class,
id1
);
try{
String omnoticeid = tmsYwDingdan.getFadh();
List<WmTmsNoticeIEntity> listtemp = systemService.findByProperty(WmTmsNoticeIEntity.class,"omNoticeId",omnoticeid);
for(WmTmsNoticeIEntity t: listtemp){
arrayoutlist.add(t);
}
}catch (Exception e){
}
}
request.setAttribute("arrayoutlist",arrayoutlist);
return new ModelAndView("com/zzjee/tms/chukumingxi");
}
/**
*
*
@ -390,6 +413,8 @@ public class TmsYwDingdanController extends BaseController {
}
@RequestMapping(params = "dopc")
@ResponseBody
public AjaxJson dopc(String id, String siji, String chehao, HttpServletRequest request) {
@ -401,6 +426,7 @@ public class TmsYwDingdanController extends BaseController {
TmsYwDingdanEntity tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class,
id1
);
tmsYwDingdan.setZhuangtai("已派车");
tmsYwDingdan.setSiji(siji);
tmsYwDingdan.setChehao(chehao);

View File

@ -0,0 +1,220 @@
<%@ 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 type="text/javascript" charset="utf-8" src="webpage/com/zzjee/wmjs/qrcode.min.js"></script>
<script language="javascript">
function printall(){
$(".printdiv").jqprint();
}
function printview(){
document.all.WebBrowser1.ExecWB(7,1);
}
function make2DCode() {
$("#qrcode").html("");//清空二维码
var qrcode;
var codesize = 80;
console.log(codesize);
qrcode = new QRCode(document.getElementById("qrcode"), {
width : codesize,
height : codesize
});
qrcode.makeCode(document.getElementById("content").value);
};
// window.onload=function(){
// make2DCode();
// smalltoBIG('jinexx','jinedx');
// };
document.onreadystatechange = function () {
if (document.readyState == "complete") {
console.log("content");
make2DCode();
}
}
function downloadqrcode() {
// 获取base64的图片节点
var img = document.getElementById('qrcode').getElementsByTagName('img')[0];
// 构建画布
var canvas = document.createElement('canvas');
canvas.width = img.width;
canvas.height = img.height;
canvas.getContext('2d').drawImage(img, 0, 0);
// 构造url
url = canvas.toDataURL('image/png');
// 构造a标签并模拟点击
var downloadLink = document.getElementById('downloadLink');
downloadLink.setAttribute('href', url);
downloadLink.setAttribute('download', '二维码.png');
downloadLink.click();
};
</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="${wmOmNoticeHPage.omNoticeId}">
<input id="showlisturl" type="hidden" value="${showlisturl}">
<table border=0 cellpadding=0 cellspacing=0 width=780 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:200pt'>
<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:80pt'>
<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:70pt'>
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:70pt'>
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
<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(wmOmQmIList) > 0 }">
<c:forEach items="${wmOmQmIList}" 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.binId } </td>
<%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsId }</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.baseUnit }</td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.proData }</td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.baseGoodscount }</td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinZhl }</td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinTj }</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.pickNotice }</td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinId }/${poVal.baoZhiq }</td>
<td class=xl65 align="center" valign="middle" style='border:1.0pt solid black'><img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${poVal.goodsId }" alt="${poVal.goodsId }" 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'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>制单: ${wmOmNoticeHPage.createBy}<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>仓管:<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>叉车:<span
style='mso-spacerun:yes'></span></td>
<td></td>
</tr>
</table>
</t:formvalid></div>
</body>

View File

@ -49,6 +49,7 @@
<%--<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" funname="add"></t:dgToolBar>--%>
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tmsYwDingdanController.do?goUpdate" funname="update"></t:dgToolBar>--%>
<t:dgToolBar title="批量派车" funname="pcALLSelect"></t:dgToolBar>
<t:dgToolBar title="订单明细" funname="doprint"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" funname="detail"></t:dgToolBar>
<%--<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
@ -67,6 +68,21 @@
<script type="text/javascript">
$(document).ready(function(){
});
function doprint(){
var rows = $('#tmsYwDingdanList').datagrid('getSelections');
var ids = [];
for (var i = 0; i < rows.length; i++) {
ids.push(rows[i].id);
}
var url = "tmsYwDingdanController.do?doPrintpage&ids="+ids.join(',');;
createdetailwindow(" 订单明细", url, 1200, 1000);
// window.open(url);
}
function pcALLSelect() {
var count=$("#username option").length;
var siji;