|
|
@ -18,6 +18,10 @@ |
|
|
|
if (Type != '9') { |
|
|
|
$(".Workorder").css('display', 'none'); |
|
|
|
} |
|
|
|
if (Type != '7') |
|
|
|
{ |
|
|
|
$(".txt_DNID1").css('display', 'none'); |
|
|
|
} |
|
|
|
|
|
|
|
if (Type == '1') { |
|
|
|
gridList(); |
|
|
@ -81,12 +85,14 @@ |
|
|
|
}) |
|
|
|
//显示的列内容 |
|
|
|
function SetCols() { |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "/Print/SelectColumnName?" + Math.random(), |
|
|
|
dataType: "json", |
|
|
|
async: false, |
|
|
|
success: function (data) { |
|
|
|
var cols = new Array(); |
|
|
|
|
|
|
|
|
|
|
|
if (Type == '1') { |
|
|
|
var collast = { label: "主键", name: "ID", hidden: true, key: true }; |
|
|
@ -3193,8 +3199,7 @@ |
|
|
|
$("#PickID").val(''); |
|
|
|
var sign = ''; |
|
|
|
var objID = ''; |
|
|
|
var arr = []; |
|
|
|
|
|
|
|
var status = ''; |
|
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (objList.length <= 0) { |
|
|
|
$.modalAlert("请先选择单据!", "warning"); |
|
|
@ -3222,9 +3227,14 @@ |
|
|
|
param: { |
|
|
|
keyValue: JSON.stringify(objID) |
|
|
|
}, |
|
|
|
success: function () { |
|
|
|
//sign = data.count; |
|
|
|
success: function (data) { |
|
|
|
if (data.state == "success") { |
|
|
|
$.modalMsg(data.message, data.state); |
|
|
|
} else { |
|
|
|
$.modalAlert(data.message, data.state); |
|
|
|
} |
|
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid"); |
|
|
|
; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@ -3239,63 +3249,23 @@ |
|
|
|
keyValue: JSON.stringify(objID) |
|
|
|
}, |
|
|
|
success: function (data) { |
|
|
|
sign = data.count; |
|
|
|
if (data.state == "success") { |
|
|
|
$.modalMsg(data.message, data.state); |
|
|
|
} else { |
|
|
|
$.modalAlert(data.message, data.state); |
|
|
|
} |
|
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid"); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//if (sign > 0) { |
|
|
|
|
|
|
|
// $.modalAlert("操作成功"); |
|
|
|
// return; |
|
|
|
//} |
|
|
|
} |
|
|
|
|
|
|
|
function btnBatchCreateCP() { |
|
|
|
debugger; |
|
|
|
$("#PickID").val(''); |
|
|
|
var sign = ''; |
|
|
|
var objID = ''; |
|
|
|
var arr = []; |
|
|
|
|
|
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
if (objList.length <= 0) { |
|
|
|
$.modalAlert("请先选择单据!", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
|
|
|
|
|
if (objList[i] != undefined) { |
|
|
|
objID += "'" + objList[i] + "',"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//objArr = "" + objArr + "|"; |
|
|
|
//arr.push(objArr); |
|
|
|
} |
|
|
|
objID = objID.substring(0, objID.length - 1); |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "/WMS/WMSCreateItemLot/SubmitKLCPRK?ids=" + objID, |
|
|
|
dataType: "json", |
|
|
|
type: "post", |
|
|
|
async: false, |
|
|
|
param: { |
|
|
|
keyValue: JSON.stringify(objID) |
|
|
|
}, |
|
|
|
success: function (data) { |
|
|
|
sign = data.count; |
|
|
|
} |
|
|
|
}); |
|
|
|
if (sign>0) { |
|
|
|
|
|
|
|
$.modalAlert("操作成功"); |
|
|
|
if (sign != '') { |
|
|
|
$.modalAlertNew('',sign,); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
@ -3391,8 +3361,8 @@ |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
|
|
|
|
<td style="text-align:right;"><label class="lglabel" for="txt_DNID"> 采购订单号</label>:</td> |
|
|
|
<td> |
|
|
|
<td style="text-align:right;"class=" txt_DNID1"><label class="lglabel" for="txt_DNID"> 采购订单号</label>:</td> |
|
|
|
<td class=" txt_DNID1"> |
|
|
|
<div class="input-group"> |
|
|
|
<input id="txt_DNID" type="text" class="form-control" style="width: 100px;"> |
|
|
|
</div> |
|
|
|