Commit 22ebfc25 by yyq1988

对接盘盈入库功能

parent 94e80124
<%@ page contentType="text/html;charset=UTF-8" %>
<script>
var LODOP;
$(document).ready(function() {
$('#profitWarehousingTable').bootstrapTable({
......@@ -293,6 +294,36 @@ $(document).ready(function() {
idx: idx, delBtn: true, row: row
}));
}
function initLodop(){
LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
}
function printQr(id) {
jp.loading('loading...');
try{
if(!LODOP){
initLodop();
}
if(LODOP){
jp.get("${ctx}/warehouse/profitwarehousing/profitWarehousing/printQr?profitWarehousingInfoId="+id, function (res) {
var list = res.body.goodsInfo.qrCodeList;
LODOP.PRINT_INIT("打印货品");
LODOP.SET_PRINT_PAGESIZE(1,400,600,0)
createAllPage(list);
LODOP.PREVIEW();
jp.close();
})
}else{
jp.close();
}
}catch (e){
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
var list = res.body.goodsInfo.qrCodeList;
jp.close();
})
}
}
</script>
<script type="text/template" id="profitWarehousingChildrenTpl">//<!--
......@@ -312,6 +343,7 @@ $(document).ready(function() {
<th>货架</th>
<th>单价</th>
<th>备注</th>
<th>操作</th>
</tr>
</thead>
<tbody id="profitWarehousingChild-{{idx}}-1-List">
......@@ -343,5 +375,13 @@ $(document).ready(function() {
<td>
{{row.remarks}}
</td>
<td>
<button class="btn btn-primary btn-sm" onclick="printQr('{{row.id}}')">
打印二维码
</button>
<button class="btn btn-danger btn-sm" onclick="cleanQr('{{row.id}}')">
清除二维码
</button>
</td>
</tr>//-->
</script>
......@@ -8,6 +8,13 @@
<%@ include file="/webpage/include/bootstraptable.jsp"%>
<%@include file="/webpage/include/treeview.jsp" %>
<%@include file="profitWarehousingList.js" %>
<script>
var projectName = "${ctxStatic}";
</script>
<script type="text/javascript" src="${ctxStatic}/common/js/LodopFuncs.js"></script>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
</head>
<body>
<div class="wrapper wrapper-content">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment