|
|
@ -8,7 +8,7 @@ |
|
|
|
var _Clos = new Array(); |
|
|
|
var _Clos1 = new Array(); |
|
|
|
var flag = '1'; |
|
|
|
var mark = ''; |
|
|
|
var mark = '拣料'; |
|
|
|
var Arguments = ''; |
|
|
|
//var PickID = ''; |
|
|
|
$(function () { |
|
|
@ -741,6 +741,7 @@ |
|
|
|
$.modalAlertNew("WMS00093"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (mark == '合并拣料') { |
|
|
|
|
|
|
|
var arr = []; |
|
|
@ -753,6 +754,10 @@ |
|
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
|
var objArr = ''; |
|
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[i]); |
|
|
|
if (RowData_Item1.IsOccupy!='已占料') { |
|
|
|
$.modalAlert("所选单据未拣料,无法打印!", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
objArr += "'" + RowData_Item1.MergeID + "',"; |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
@ -775,21 +780,21 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
if (mark == '拣料') { |
|
|
|
|
|
|
|
var arr = []; |
|
|
|
var obj_Item1 = $("#gridList2"); |
|
|
|
var rowIds_Item1 = obj_Item1.getDataIDs(); |
|
|
|
var arrayData_Item1 = new Array(); |
|
|
|
var Enables = ''; |
|
|
|
if (rowIds_Item1.length > 0) { |
|
|
|
debugger; |
|
|
|
for (var i = 0; i < rowIds_Item1.length; i++) { |
|
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
|
var objArr = ''; |
|
|
|
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[i]); |
|
|
|
objArr += "'" + RowData_Item1.Code + "',"; |
|
|
|
var rowId = objList[i]; |
|
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
|
if (rowData.IsOccupy == '未占料') { |
|
|
|
$.modalAlert("所选单据未拣料,无法打印!", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
objArr += "'" + rowData.Code + "',"; |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//var arr = []; |
|
|
@ -805,7 +810,7 @@ |
|
|
|
//} |
|
|
|
Arguments = arr; |
|
|
|
mold = 'JL00001'; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
$.modalOpen({ |
|
|
|
id: "PrintLot", |
|
|
|