<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<!-- 用户新增 -->
|
<script type="text/javascript" src="${pageContext.request.contextPath }/pms/pub/combobox/comboboxUtil.js" charset="utf-8"></script>
|
<script type="text/javascript">
|
$(function(){
|
$.loadComboboxData($("#eqp"),"ALLPACKERS",true);
|
|
})
|
|
$('#blame_test_items').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择缺陷',
|
width : 530,
|
height : 420,
|
cache: false,//关闭ajax相应的缓存问题
|
href : '${pageContext.request.contextPath}/pms/selfCheckStrip/bzDefectItems.do?temp ='+$("#orderNumber").val(),
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
//$("#blame_test_id").attr("value",row.id);
|
$("#blame_test_id").combobox("setValue",row.id);
|
$("#blame_test_items").searchbox("setValue",row.des);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择工单', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
$('#blame_test_items2').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择缺陷',
|
width : 530,
|
height : 420,
|
cache: false,//关闭ajax相应的缓存问题
|
href : '${pageContext.request.contextPath}/pms/selfCheckStrip/bzDefectItems.do?temp ='+$("#orderNumber").val(),
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
//$("#blame_test_id2").attr("value",row.id);
|
$("#blame_test_id2").combobox("setValue",row.id);
|
$("#blame_test_items2").searchbox("setValue",row.des);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择工单', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
$('#blame_test_items3').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择缺陷',
|
width : 530,
|
height : 420,
|
cache: false,//关闭ajax相应的缓存问题
|
href : '${pageContext.request.contextPath}/pms/selfCheckStrip/bzDefectItems.do?temp ='+$("#orderNumber").val(),
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
//$("#blame_test_id3").attr("value",row.id);
|
$("#blame_test_id3").combobox("setValue",row.id);
|
$("#blame_test_items3").searchbox("setValue",row.des);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择工单', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
$('#blame_test_items4').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择缺陷',
|
width : 530,
|
height : 420,
|
cache: false,//关闭ajax相应的缓存问题
|
href : '${pageContext.request.contextPath}/pms/selfCheckStrip/bzDefectItems.do?temp ='+$("#orderNumber").val(),
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
//$("#blame_test_id4").attr("value",row.id);
|
$("#blame_test_id4").combobox("setValue",row.id);
|
$("#blame_test_items4").searchbox("setValue",row.des);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择工单', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
$('#blame_test_items5').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择缺陷',
|
width : 530,
|
height : 420,
|
cache: false,//关闭ajax相应的缓存问题
|
href : '${pageContext.request.contextPath}/pms/selfCheckStrip/bzDefectItems.do?temp ='+$("#orderNumber").val(),
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
//$("#blame_test_id5").attr("value",row.id);
|
$("#blame_test_id5").combobox("setValue",row.id);
|
$("#blame_test_items5").searchbox("setValue",row.des);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择工单', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
$(function(){
|
//根据设备填充工单信息
|
$("#eqp").combobox({
|
onChange:function(param){
|
|
$.ajax({
|
type : "post",
|
async : false,
|
cache: false,//关闭ajax相应的缓存问题
|
url : "${pageContext.request.contextPath}/pms/selfCheckStrip/queryOrderNumber.do",
|
data : {eqp:param},
|
dataType : "JSON",
|
success : function(result) {
|
if(result !=null && "[]" != result){
|
$("#orderNumber").val(result[0].orderNumber);
|
$("#batchNo").val(result[0].batchNo);
|
$("#createTime").val(result[0].createTime);
|
$("#userName").val(result[0].userName);
|
$("#oid").val(result[0].oid);
|
$("#uid").val(result[0].uid);
|
console.info( "包装 oid="+result[0].oid+" uid="+result[0].uid );
|
}else{
|
$("#form input").val(null);
|
alert("该机台没有工单!");
|
}
|
}
|
});
|
|
|
|
}
|
})
|
});
|
</script>
|
<div class="easyui-layout" data-options="fit:true,border:false">
|
<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px">
|
<form id="form" method="post" enctype = "multipart/form-data" >
|
<input name="oid" id="oid" type="hidden"/>
|
<input name="uid" id="uid" type="hidden"/>
|
<fieldset>
|
<legend>包装机数据信息</legend>
|
<table class="table" style="width: 100%;">
|
<tr>
|
<th>机台</th>
|
<td>
|
<select id="eqp" name="eqp" class="easyui-combobox" data-options="panelHeight:'300',width:100,editable:false"></select>
|
</td>
|
<th>工单号</th>
|
<td>
|
<input type="text" class="easyui-validatebox" name="orderNumber" id="orderNumber" data-options="required:true" readonly="readonly"/>
|
</td>
|
</tr>
|
<tr>
|
<th>批次号</th>
|
<td>
|
<input type="text" name="batchNo" id="batchNo" readonly="readonly"/>
|
</td>
|
<th>检测时间</th>
|
<td>
|
<input name="createTime" id="createTime" readonly="readonly" style="width:175px;height:20px;"></input>
|
</td>
|
</tr>
|
|
<tr>
|
<th>检测项目一</th>
|
<td>
|
<input id="blame_test_items" name="blame_test_items" style="width:175px;" class="easyui-searchbox" data-options="prompt: '添加检测项'"/>
|
|
<input type="hidden" id="blame_test_id" name="blameTestId" class="easyui-combobox" />
|
<input type="hidden" id="createUserName" name="createUserName" value="${sessionInfo.user.name}"/>
|
<input type="hidden" id="createUserId" name="createUserId" value="${sessionInfo.user.id}"/>
|
</td>
|
<th>数量</th>
|
<td>
|
<input name ="num" id="num" />
|
</td>
|
</tr>
|
<tr>
|
|
<th>检测项目二</th>
|
<td>
|
<input id="blame_test_items2" name="blame_test_items2" style="width:175px;" class="easyui-searchbox" data-options="prompt: '添加检测项'"/>
|
<input type="hidden" id="blame_test_id2" name="blameTestId2" class="easyui-combobox" />
|
<input type="hidden" id="createUserName" name="createUserName" value="${sessionInfo.user.name}"/>
|
<input type="hidden" id="createUserId" name="createUserId" value="${sessionInfo.user.id}"/>
|
</td>
|
<th>数量</th>
|
<td>
|
<input name ="num2" id="num2" />
|
</td>
|
</tr>
|
<tr>
|
<th>检测项目三</th>
|
<td>
|
<input id="blame_test_items3" name="blame_test_items3" style="width:175px;" class="easyui-searchbox" data-options="prompt: '添加检测项'"/>
|
<input type="hidden" id="blame_test_id3" name="blameTestId3" class="easyui-combobox" />
|
<input type="hidden" id="createUserName" name="createUserName" value="${sessionInfo.user.name}"/>
|
<input type="hidden" id="createUserId" name="createUserId" value="${sessionInfo.user.id}"/>
|
</td>
|
<th>数量</th>
|
<td>
|
<input name ="num3" id="num3" />
|
</td>
|
</tr>
|
<th>检测项目四</th>
|
<td>
|
<input id="blame_test_items4" name="blame_test_items4" style="width:175px;" class="easyui-searchbox" data-options="prompt: '添加检测项'"/>
|
<input type="hidden" id="blame_test_id4" name="blameTestId4" class="easyui-combobox" />
|
<input type="hidden" id="createUserName" name="createUserName" value="${sessionInfo.user.name}"/>
|
<input type="hidden" id="createUserId" name="createUserId" value="${sessionInfo.user.id}"/>
|
</td>
|
<th>数量</th>
|
<td>
|
<input name ="num4" id="num4" />
|
</td>
|
</tr>
|
<th>检测项目五</th>
|
<td>
|
<input id="blame_test_items5" name="blame_test_items5" style="width:175px;" class="easyui-searchbox" data-options="prompt: '添加检测项'"/>
|
<input type="hidden" id="blame_test_id5" name="blameTestId5" class="easyui-combobox" />
|
<input type="hidden" id="createUserName" name="createUserName" value="${sessionInfo.user.name}"/>
|
<input type="hidden" id="createUserId" name="createUserId" value="${sessionInfo.user.id}"/>
|
</td>
|
<th>数量</th>
|
<td>
|
<input name ="num5" id="num5" />
|
</td>
|
</tr>
|
<tr>
|
<th>检测人</th>
|
<td>
|
<input name ="userName" id="userName" readonly="readonly"/>
|
</td>
|
</tr>
|
<!--
|
<th>20支第一次质量长度</th>
|
<td>
|
<input name ="firstLen" id="firstLen"/>
|
</td>
|
</tr>
|
<tr>
|
|
<th>20支第二次质量长度</th>
|
<td>
|
<input name ="twoLen" id="twoLen" />
|
</td>
|
<th>20支第三次质量长度</th>
|
<td>
|
<input name ="threeLen" id="threeLen" />
|
</td>
|
</tr> -->
|
</table>
|
</fieldset>
|
</form>
|
<s:debug/>
|
</div>
|
</div>
|