Juj 2 years ago
parent
commit
69aefa309c
  1. 2
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs
  2. 37
      WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml

2
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -1737,7 +1737,7 @@ a.Sequence,
#region 其它出库SQL
sqls = @" select
a.OutCode as Code,
a.Sequence
a.Sequence,
a.InvCode,
b.InvName,
b.InvStd,

37
WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml

@ -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,22 +780,22 @@
}
}
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 objArr = '';
var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[i]);
objArr += "'" + RowData_Item1.Code + "',";
objArr = objArr.slice(0, objArr.length - 1);
objArr = "" + objArr + "|";
arr.push(objArr);
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
for (var i = 0; i < objList.length; i++) {
var objArr = '';
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 = [];
//var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
@ -805,7 +810,7 @@
//}
Arguments = arr;
mold = 'JL00001';
}
}
$.modalOpen({
id: "PrintLot",

Loading…
Cancel
Save