<%@ 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($("#teamId"),"TEAM",false);
|
$.loadComboboxData($("#eqpId"),"ALLROLLERS",false);
|
var eqptype = $("#eqptype option:selected") .text();
|
if(eqptype == '卷接机组'){
|
$('#tscore').show();
|
|
$('#tmassDefect').show();
|
|
$('#tnoInnerLine').hide();
|
$('#tjkDefect').hide();
|
}else if(eqptype == '成型机组'){
|
$('#tscore').show();
|
$('#tmassDefect').show();
|
$('#tnoInnerLine').show();
|
$('#tjkDefect').show();
|
|
|
}
|
|
$("#eqptype").combobox({
|
onSelect: function () {
|
console.info($("#eqptype").combobox('getText'));
|
var selectText = $("#eqptype").combobox('getText');
|
if(selectText=="卷接机组"){
|
$.loadComboboxData($("#eqpId"),"ALLROLLERS",false);
|
$('#tscore').show();
|
|
$('#tmassDefect').show();
|
|
$('#tnoInnerLine').hide();
|
$('#tjkDefect').hide();
|
$("#noInnerLine").val(null);
|
$("#jkDefect").val(null);
|
|
}else if(selectText=="成型机组"){
|
$.loadComboboxData($("#eqpId"),"ALLFILTERS",false);
|
|
$('#tscore').show();
|
$('#tmassDefect').show();
|
$('#tnoInnerLine').show();
|
$('#tjkDefect').show();
|
|
|
|
}
|
}
|
})
|
/*$("#eqptype").on('change',function(){
|
var selectText = $(this).find('option:selected').text();
|
console.log(selectText);
|
|
if(selectText=="卷接机组"){
|
$.loadComboboxData($("#eqpId"),"ALLROLLERS",false);
|
$('#tscore').show();
|
$('#tprocessFault').show();
|
$('#tmassDefect').show();
|
|
$('#tnoInnerLine').hide();
|
$('#tjkDefect').hide();
|
$("#noInnerLine").val(null);
|
$("#jkDefect").val(null);
|
|
}else if(selectText=="成型机组"){
|
$.loadComboboxData($("#eqpId"),"ALLFILTERS",false);
|
|
$('#tscore').show();
|
$('#tmassDefect').show();
|
$('#tnoInnerLine').show();
|
$('#tjkDefect').show();
|
|
$('#tprocessFault').hide();
|
$("#processFault").val(null);
|
|
|
}
|
|
})*/
|
});
|
</script>
|
<div class="easyui-layout" data-options="fit:true,border:false">
|
<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px; height:1000px;">
|
<form id="form" method="post">
|
<fieldset>
|
<!-- <legend>添加</legend> -->
|
<table class="table" style="width: 100%;">
|
<tr>
|
<th>日期</th>
|
<td>
|
<input name="dat" type="text" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:130px"/>
|
</td>
|
</tr>
|
<tr>
|
<th><span class="label">班组</span></th>
|
<td>
|
<select id="teamId" name="team" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false,required:true">
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<tr>
|
<th><span class="label">设备类型:</span></th>
|
<td><select id="eqptype" name="eqpType" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false,required:true">
|
<option value="4028998349c6880e0149c688e9fb0001">卷接机组</option>
|
<option value="4028998349c6880e0149c688e9fb0003">成型机组</option>
|
</select></td>
|
|
</tr>
|
<tr>
|
<th><span class="label">机台</span></th>
|
<td>
|
<select id="eqpId" name="eqp" class="easyui-combobox" data-options="panelHeight:'100',width:130,editable:false,required:true">
|
</select>
|
</td>
|
</tr>
|
<tr id="tscore">
|
<th>检验得分奖罚</th>
|
<td>
|
<input id="score" name="score" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tprocessFault">
|
<th>工序过失奖罚</th>
|
<td>
|
<input id="processFault" name="processFault" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassA">
|
<th>A类质量缺陷</th>
|
<td>
|
<input id="massA" name="massA" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassB">
|
<th>B类质量缺陷</th>
|
<td>
|
<input id="massB" name="massB" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassDefect">
|
<th>C/D类质量缺陷</th>
|
<td>
|
<input id="massDefect" name="massDefect" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<%-- <tr id="tnoInnerLine">
|
<th>无内粘线</th>
|
<td>
|
<input id="noInnerLine" name="noInnerLine" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tjkDefect">
|
<th>胶孔缺陷</th>
|
<td>
|
<input id="jkDefect" name="jkDefect" type="text" style="width:130px" class="easyui-validatebox"/>
|
</td>
|
</tr>--%>
|
|
</table>
|
</fieldset>
|
</form>
|
</div>
|
</div>
|