|
@@ -100,6 +100,9 @@
|
|
|
<button class="layui-btn left-bnt1 in-b" id="WarehouseCheckMore">
|
|
|
批量打印出库单(提货单)
|
|
|
</button>
|
|
|
+ <button class="layui-btn left-bnt1 in-b" id="WarehouseCheckMoreNew">
|
|
|
+ 新批量打印出库单(提货单)
|
|
|
+ </button>
|
|
|
<button class="layui-btn left-bnt1 in-b" id="printWarehouseOrder">
|
|
|
打印入库单
|
|
|
</button>
|
|
@@ -194,16 +197,19 @@
|
|
|
$("#batchPrintOut").attr("style","display:none;");
|
|
|
$("#batchPrintCheck").attr("style","display:none;");
|
|
|
$("#WarehouseCheckMore").attr("style","display:none;");
|
|
|
+ $("#WarehouseCheckMoreNew").attr("style","display:none;");
|
|
|
}else{//销售铝---显示
|
|
|
$("#batchPrintOut").attr("style","display:show();");
|
|
|
$("#batchPrintCheck").attr("style","display:show();");
|
|
|
$("#WarehouseCheckMore").attr("style","display:show();");
|
|
|
+ $("#WarehouseCheckMoreNew").attr("style","display:show();");
|
|
|
$("#createDateDiv").show();
|
|
|
}
|
|
|
}else{//隐藏
|
|
|
- $("#batchPrintOut").attr("style","display:none;");
|
|
|
- $("#batchPrintCheck").attr("style","display:none;");
|
|
|
- $("#WarehouseCheckMore").attr("style","display:none;");
|
|
|
+ $("#batchPrintOut").hide();
|
|
|
+ $("#batchPrintCheck").hide();
|
|
|
+ $("#WarehouseCheckMore").hide();
|
|
|
+ $("#WarehouseCheckMoreNew").hide();
|
|
|
}
|
|
|
layui.use(['laydate','form'], function(){
|
|
|
var laydate = layui.laydate;
|
|
@@ -727,7 +733,31 @@
|
|
|
|
|
|
setTempVal('batchPrintOut', datas);
|
|
|
var orderName = encodeURI(encodeURI(datas[0].orderName));
|
|
|
- openMainTabPageParent(tabPageId+'-21', '打印出库单(提货单)', 'stockManage/enteringWarehouseCheckMore.html?orderName='+orderName+'&conType='+conType+'&tabPageId='+tabPageId+'-21','',tabPageId,null);
|
|
|
+ openMainTabPageParent(tabPageId+'-21', '打印出库单(提货单)', 'stockManage/enteringWarehouseCheckMore.html?orderName='+orderName+'&conType='+conType+'&new=0'+'&tabPageId='+tabPageId+'-21','',tabPageId,null);
|
|
|
+ });
|
|
|
+ //出库单(提货单)打印
|
|
|
+ $(document).on('click','#WarehouseCheckMoreNew',function(){
|
|
|
+ var datas = gloable_pm_id;
|
|
|
+ if(datas.length == 0){
|
|
|
+ layer.msg('请勾选订单!', {icon: 5});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log(datas)
|
|
|
+ var warehouseName = null;
|
|
|
+ for (var i = 0; i < datas.length; i ++) {
|
|
|
+ if (!isEmpty(warehouseName)) {
|
|
|
+ if (datas[i].warehouseName != warehouseName) {
|
|
|
+ $.ErrorAlert("请选择相同仓库的数据!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ warehouseName = datas[i].warehouseName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ setTempVal('batchPrintOut', datas);
|
|
|
+ var orderName = encodeURI(encodeURI(datas[0].orderName));
|
|
|
+ openMainTabPageParent(tabPageId+'-22', '打印出库单(提货单新)', 'stockManage/enteringWarehouseCheckMore.html?orderName='+orderName+'&conType='+conType+'&new=1'+'&tabPageId='+tabPageId+'-22','',tabPageId,null);
|
|
|
});
|
|
|
|
|
|
$(document).on('click','#downDetail',function(){
|