<%@ 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);
|
|
|
initTeam();
|
initEqpType();
|
|
$("#eqptype").combobox({
|
onSelect: function () {
|
console.info($("#eqptype").combobox('getText'));
|
var selectText = $("#eqptype").combobox('getText');
|
if(selectText=="卷接机组"){
|
initEqp("ALLROLLERS");
|
$('#tscore').show();
|
|
$('#tmassDefect').show();
|
|
$('#tnoInnerLine').hide();
|
$('#tjkDefect').hide();
|
} else if(selectText=="成型机组"){
|
initEqp("ALLFILTERS");
|
$('#tscore').show();
|
$('#tmassDefect').show();
|
$('#tnoInnerLine').show();
|
$('#tjkDefect').show();
|
|
|
}
|
}
|
})
|
|
var eqptype = $("#eqptype").combobox('getText');
|
|
if(eqptype == '卷接机组'){
|
initEqp("ALLROLLERS");
|
$('#tscore').show();
|
|
$('#tmassDefect').show();
|
|
$('#tnoInnerLine').hide();
|
$('#tjkDefect').hide();
|
}else if(eqptype == '成型机组'){
|
initEqp("ALLFILTERS");
|
$('#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);
|
|
|
}
|
|
})*/
|
});
|
|
|
function initTeam(){
|
var url=$.basePath+"/plugin/combobox/load.do";
|
url+=("?type="+"TEAM"+"&setAll="+false);
|
$("#teamId").combobox({
|
url:url,
|
textField:'name',
|
valueField:'id',
|
required:false,
|
onLoadSuccess: function(data){
|
$('#teamId').combobox('setValue', '${wage.team}');
|
}
|
});
|
}
|
|
function initEqpType(){
|
|
$("#eqptype").combobox({
|
textField:'name',
|
valueField:'id',
|
data: [{
|
name: '卷接机组',
|
id: '4028998349c6880e0149c688e9fb0001'
|
},{
|
name: '成型机组',
|
id: '4028998349c6880e0149c688e9fb0003'
|
} ],
|
onLoadSuccess: function(data){
|
$('#eqptype').combobox('setValue','${wage.eqpType}');
|
}
|
});
|
}
|
|
function initEqp(type){
|
var url2=$.basePath+"/plugin/combobox/load.do";
|
url2+=("?type="+ type+"&setAll="+false);
|
$("#eqpId").combobox({
|
url:url2,
|
textField:'name',
|
valueField:'id',
|
required:false,
|
onLoadSuccess: function(data){
|
$('#eqpId').combobox('setValue','${wage.eqp}');
|
}
|
});
|
}
|
|
|
</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="id" type="hidden" value="${wage.id}"/>
|
<input name="dat" type="text" value="${wage.dat}" 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" disabled="true" class="easyui-combobox" data-options="panelHeight:'100',width:130,editable:false,required:true">
|
</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" value="${wage.score}" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tprocessFault">
|
<th>工序过失奖罚</th>
|
<td>
|
<input id="processFault" value="${wage.processFault}" name="processFault" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassA">
|
<th>A类质量缺陷</th>
|
<td>
|
<input id="massA" value="${wage.massA}" name="massA" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassB">
|
<th>B类质量缺陷</th>
|
<td>
|
<input id="massB" value="${wage.massB}" name="massB" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tmassDefect">
|
<th>C/D类质量缺陷</th>
|
<td>
|
<input id="massDefect" value="${wage.massDefect}" name="massDefect" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<%--<tr id="tnoInnerLine">
|
<th>无内粘线</th>
|
<td>
|
<input id="noInnerLine" value="${wage.noInnerLine}" name="noInnerLine" type="text" style="width:130px" class="easyui-validatebox" />
|
</td>
|
</tr>
|
<tr id="tjkDefect">
|
<th>胶孔缺陷</th>
|
<td>
|
<input id="jkDefect" value="${wage.jkDefect}" name="jkDefect" type="text" style="width:130px" class="easyui-validatebox"/>
|
</td>
|
</tr>--%>
|
|
</table>
|
</fieldset>
|
</form>
|
</div>
|
</div>
|