|
|
@ -16,14 +16,20 @@ |
|
|
|
gridList(); |
|
|
|
gridList2(flag); |
|
|
|
|
|
|
|
$("#selShow").change(function () { |
|
|
|
//$("#selShow").change(function () { |
|
|
|
|
|
|
|
debugger; |
|
|
|
SetCols(); |
|
|
|
gridList(); |
|
|
|
}); |
|
|
|
// debugger; |
|
|
|
// SetCols(); |
|
|
|
// gridList(); |
|
|
|
//}); |
|
|
|
|
|
|
|
}); |
|
|
|
function Seach() { |
|
|
|
document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid |
|
|
|
SetCols(); |
|
|
|
gridList(); |
|
|
|
|
|
|
|
} |
|
|
|
//function gridList() { |
|
|
|
// document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid |
|
|
|
// var Type = $("#selShow").val(); |
|
|
@ -110,10 +116,10 @@ |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '操作日期', name: 'MTIME', width: 150, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '维护人', name: 'MUSER', width: 80, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
//var collast = { label: '维护人', name: 'MUSER', width: 80, align: 'left' }; |
|
|
|
//cols.push(collast); |
|
|
|
//var collast = { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' }; |
|
|
|
//cols.push(collast); |
|
|
|
var collast = { label: '是否合并拣料', name: 'IsNew', width: 80, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var cols1 = new Array(); |
|
|
@ -173,12 +179,12 @@ |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '物料描述(父项生产订单主物料)', name: 'OrderInvDescribe', width: 150, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '调度工号', name: 'DispatchNumber', width: 120, align: 'left', }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '调度姓名', name: 'DispatcherName', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '收料人工号', name: 'ReceiverNumber', width: 150, align: 'left' }; |
|
|
|
//var collast = { label: '调度工号', name: 'DispatchNumber', width: 120, align: 'left', }; |
|
|
|
//cols.push(collast); |
|
|
|
var collast = { label: '调度人姓名', name: 'DispatcherName', width: 120, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
//var collast = { label: '收料人工号', name: 'ReceiverNumber', width: 150, align: 'left' }; |
|
|
|
//cols.push(collast); |
|
|
|
var collast = { label: '收料人姓名', name: 'ReceiverName', width: 150, align: 'left' }; |
|
|
|
cols.push(collast); |
|
|
|
var collast = { label: '紧急程度', name: 'Urgency', width: 120, align: 'left', }; |
|
|
@ -246,7 +252,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
function gridList() { |
|
|
|
document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid |
|
|
|
|
|
|
|
var Type = $("#selShow").val(); |
|
|
|
|
|
|
|
var $gridList = $("#gridList"); |
|
|
@ -297,6 +303,38 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//$("#warehouse a.btn-default").click(function () { |
|
|
|
// $("#warehouse a.btn-default").removeClass("active"); |
|
|
|
// $(this).addClass("active"); |
|
|
|
// $("#btn_search").unbind("click"); // 取消之前的绑定 |
|
|
|
// $('#btn_search').trigger("click"); |
|
|
|
//}); |
|
|
|
//$("#btn_search").click(function () { |
|
|
|
// debugger; |
|
|
|
// var warehouse = $("#warehouse a.active").attr('data-value'); |
|
|
|
// var Types = $("#selShow").val(); |
|
|
|
// var queryJson = { |
|
|
|
// POCode: $("#txt_POCode").val(), |
|
|
|
// InvCode: $("#txt_InvCode").val(), |
|
|
|
// Area: $("#txt_Area").val(), |
|
|
|
// WHCode: $("#txt_WHCode").val(), |
|
|
|
// CusCode: $("#txt_CusCode").val(), |
|
|
|
// CusName: $("#txt_CusName").val(), |
|
|
|
// AreaType: $("#selShow1").val(), |
|
|
|
// Status: $("#selShow2").val(), |
|
|
|
// Order: $("#txt_Order").val(), |
|
|
|
// Container: $("#txt_Container :checked").val(), |
|
|
|
// CreateDate: $("#txt_CreateDate").val(), |
|
|
|
// NeedDate: $("#txt_NeedDate").val() |
|
|
|
// } |
|
|
|
// $gridList.jqGrid('setGridParam', { |
|
|
|
// postData: { queryJson: JSON.stringify(queryJson), Type: Types }, |
|
|
|
// }).trigger('reloadGrid'); |
|
|
|
// /* sleep(5000);*/ |
|
|
|
//}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function bindSubGrid(subgrid_id, rowid) { |
|
|
|
var Type = $("#selShow").val(); |
|
|
@ -486,33 +524,7 @@ |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
$("#warehouse a.btn-default").click(function () { |
|
|
|
$("#warehouse a.btn-default").removeClass("active"); |
|
|
|
$(this).addClass("active"); |
|
|
|
$('#btn_search').trigger("click"); |
|
|
|
}); |
|
|
|
$("#btn_search").click(function () { |
|
|
|
debugger; |
|
|
|
var warehouse = $("#warehouse a.active").attr('data-value'); |
|
|
|
var Types = $("#selShow").val(); |
|
|
|
var queryJson = { |
|
|
|
POCode: $("#txt_POCode").val(), |
|
|
|
InvCode: $("#txt_InvCode").val(), |
|
|
|
Area: $("#txt_Area").val(), |
|
|
|
WHCode: $("#txt_WHCode").val(), |
|
|
|
CusCode: $("#txt_CusCode").val(), |
|
|
|
CusName: $("#txt_CusName").val(), |
|
|
|
AreaType: $("#selShow1").val(), |
|
|
|
Status: $("#selShow2").val(), |
|
|
|
Order: $("#txt_Order").val(), |
|
|
|
Container: $("#txt_Container :checked").val(), |
|
|
|
CreateDate: $("#txt_CreateDate").val(), |
|
|
|
NeedDate: $("#txt_NeedDate").val() |
|
|
|
} |
|
|
|
$gridList.jqGrid('setGridParam', { |
|
|
|
postData: { queryJson: JSON.stringify(queryJson) ,Type:Types}, |
|
|
|
}).trigger('reloadGrid'); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -564,11 +576,11 @@ |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
$("#warehouse a.btn-default").click(function () { |
|
|
|
$("#warehouse a.btn-default").removeClass("active"); |
|
|
|
$(this).addClass("active"); |
|
|
|
$('#btn_search').trigger("click"); |
|
|
|
}); |
|
|
|
//$("#warehouse a.btn-default").click(function () { |
|
|
|
// $("#warehouse a.btn-default").removeClass("active"); |
|
|
|
// $(this).addClass("active"); |
|
|
|
// $('#btn_search').trigger("click"); |
|
|
|
//}); |
|
|
|
//$("#btn_search").click(function () { |
|
|
|
// var warehouse = $("#warehouse a.active").attr('data-value'); |
|
|
|
// var queryJson = { |
|
|
@ -815,7 +827,7 @@ |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div class="input-group"> |
|
|
|
<select id="selShow" name="F_Target" class="form-control" style="width: 100px;"> |
|
|
|
<select id="selShow" name="F_Target" class="form-control" style="width: 100px;" onchange="Seach()"> |
|
|
|
@*<option value="1" selected="selected">工单备料</option>*@ |
|
|
|
<option value="2" selected="selected" spellcheck="true">工单领料</option> |
|
|
|
<option value="12" selected="selected">售后领料</option> |
|
|
@ -923,7 +935,7 @@ |
|
|
|
|
|
|
|
<td> |
|
|
|
<span class="input-group-btn"> |
|
|
|
<button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button> |
|
|
|
<button id="btn_search" type="button" class="btn btn-primary" onclick="Seach()"><i class="fa fa-search"></i></button> |
|
|
|
</span> |
|
|
|
</td> |
|
|
|
|
|
|
|