|
|
@ -1839,7 +1839,7 @@ |
|
|
|
viewrecords: true, |
|
|
|
multiselect: true, |
|
|
|
beforeSelectRow: function (rowid, e) { |
|
|
|
|
|
|
|
warehouse |
|
|
|
}, |
|
|
|
subGrid: true, // (1)开启子表格支持 |
|
|
|
subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数 |
|
|
@ -3292,107 +3292,22 @@ |
|
|
|
var mold = ''; |
|
|
|
var objArr = ''; |
|
|
|
var arr = []; |
|
|
|
var obj = $("#gridList").jqGrid("getRowData"); |
|
|
|
if (Type == '1') { mold = '00001'; }//生产退料生成条码 |
|
|
|
if (Type == '2') { mold = '00002'; }//委外退料生成条码 |
|
|
|
if (Type == '3') { |
|
|
|
mold = '00003'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
} |
|
|
|
}//工单成品生成条码 |
|
|
|
if (Type == '4') { |
|
|
|
mold = '00004'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
} |
|
|
|
}//销售退货生成条码 |
|
|
|
if (Type == '5') { |
|
|
|
mold = '00005'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
} |
|
|
|
}//其他入库生成条码 |
|
|
|
if (Type == '6') { mold = '00006'; }//归还单生成条码 |
|
|
|
if (Type == '7') { |
|
|
|
var obj = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
mold = '00007'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
} |
|
|
|
}//普通到货单生成条码 |
|
|
|
if (Type == '8') { mold = '00008'; }//委外到货单生成条码 |
|
|
|
if (Type == '9') { |
|
|
|
mold = '00009'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
} |
|
|
|
}//成品入库单生成条码 |
|
|
|
if (Type == '10') { mold = '00010'; }//拒收单生成条码 |
|
|
|
if (Type == '11') { mold = '00011'; }//委外拒收单生成条码 |
|
|
|
if (Type == '12') { |
|
|
|
mold = '00012'; |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var $SubGird = $("#gridList_" + obj[i].ID + "_t"); |
|
|
|
var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
for (var j = 0; j < rowData.length; j++) { |
|
|
|
objArr += "'" + rowData[j] + "',"; |
|
|
|
} |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
for (var i = 0; i < obj.length; i++) { |
|
|
|
var rowId = obj[i]; |
|
|
|
var rowData = $("#gridList").jqGrid('getRowData', rowId); |
|
|
|
if (rowData != "undefined" && rowData != null) { |
|
|
|
objArr += "'" + rowId + "',"; |
|
|
|
objArr = objArr.slice(0, objArr.length - 1); |
|
|
|
objArr = "" + objArr + "|"; |
|
|
|
arr.push(objArr); |
|
|
|
} |
|
|
|
}//领料申请退料 |
|
|
|
if (Type == '13') { mold = '00013'; }//材料出库退料 |
|
|
|
if (Type == '14') { mold = '00014'; }//委外领料申请退料 |
|
|
|
if (Type == '15') { mold = '00015'; }//委外材料出库退料 |
|
|
|
if (Type == '16') { mold = '00016'; }//返工工单 |
|
|
|
} |
|
|
|
if (objArr == "") { |
|
|
|
$.modalAlertNew("WMS00101"); |
|
|
|
return; |
|
|
|
} |
|
|
|
$.modalOpen({ |
|
|
|
id: "PrintLot", |
|
|
|
title: "打印", |
|
|
@ -3697,6 +3612,7 @@ |
|
|
|
<a id="NF-BatchStockIN" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnBatchStockIN()"><i class="fa fa-pencil-square-o"></i>批量入库</a> |
|
|
|
<a id="NF-Delete" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnDelete()"><i class="fa fa-pencil-square-o"></i>删除条码</a> |
|
|
|
<a id="NF-Print" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnPrint()"><i class="fa fa-pencil-square-o"></i>打印</a> |
|
|
|
<a id="NF-BatchPrint" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnBatchPrint()"><i class="fa fa-pencil-square-o"></i>批量打印</a> |
|
|
|
<a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a> |
|
|
|
|
|
|
|
</div> |
|
|
|