|
|
@ -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 }; |
|
|
@ -368,6 +374,10 @@ |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '采购订单号', name: 'DNID', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '采购订单行号', name: 'DNDetailID', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '料品编码', name: 'InvCode', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '物料描述', name: 'InvoDescribe', width: 120, align: 'left' }; |
|
|
@ -387,10 +397,7 @@ |
|
|
|
var collast = { label: '供应商名称', name: 'VenName', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
//新增字段 |
|
|
|
var collast = { label: '采购凭证号', name: 'DNID', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '采购凭证的项目', name: 'DNDetailID', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
|
|
|
|
var collast = { label: '站点', name: 'WorkPoint', width: 50, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '检验类型', name: 'InspectionType', width: 50, align: 'left' }; |
|
|
@ -1585,6 +1592,7 @@ |
|
|
|
InvName: $("#txt_InvName").val(), |
|
|
|
BatchCode: $("#txt_BatchCode").val(), |
|
|
|
Container: $("#txt_Container :checked").val(), |
|
|
|
DNID: $("#txt_DNID").val() |
|
|
|
} |
|
|
|
$gridList.dataGrid({ |
|
|
|
url: "/WMS/WMSCreateItemLot/GetGridJsonSHDH" + "?" + Math.random(), |
|
|
@ -1652,6 +1660,7 @@ |
|
|
|
InvName: $("#txt_InvName").val(), |
|
|
|
BatchCode: $("#txt_BatchCode").val(), |
|
|
|
Container: $("#txt_Container :checked").val(), |
|
|
|
DNID: $("#txt_DNID").val() |
|
|
|
} |
|
|
|
$gridList.jqGrid('setGridParam', { |
|
|
|
postData: { queryJson: JSON.stringify(queryJson) }, |
|
|
@ -3190,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"); |
|
|
@ -3219,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"); |
|
|
|
; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@ -3236,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> |
|
|
@ -3388,6 +3361,13 @@ |
|
|
|
</div> |
|
|
|
</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> |
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_VenCode"> 供应商代码</label>:</td> |
|
|
|
<td class="HideItems"> |
|
|
|
<div class="input-group HideItems"> |
|
|
@ -3417,11 +3397,11 @@ |
|
|
|
</td> |
|
|
|
|
|
|
|
@*<td class="Workorder" style="text-align:right;"><label class="lglabel " for="txt_Area9"> 存储区域</label>:</td> |
|
|
|
<td class="Workorder" > |
|
|
|
<div class="input-group "> |
|
|
|
<input id="txt_Area9" type="text" class="form-control " style="width: 100px;"> |
|
|
|
</div> |
|
|
|
</td>*@ |
|
|
|
<td class="Workorder" > |
|
|
|
<div class="input-group "> |
|
|
|
<input id="txt_Area9" type="text" class="form-control " style="width: 100px;"> |
|
|
|
</div> |
|
|
|
</td>*@ |
|
|
|
|
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
xxxxxxxxxx