zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<%@ 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">
        $.loadComboboxData($("#matProd1"),"MATPROD",false);
 
        $("#workShop1").combobox({
 
            onChange:function (n) {
                if (n==1){
                    $.loadComboboxData($("#matProd1"),"MATPROD",true);
                } else if (n==2){
                    $.loadComboboxData($("#matProd1"),"MATFILTER",true);
                }
            }
        })
        $('#matName').searchbox({  
            searcher:function(value,name){  
            var dialog = parent.$.modalDialog({
                    title : '选择辅料',
                    width : 600,
                    height : 420,
                    href : '${pageContext.request.contextPath}/pms/md/mat/matPicker.jsp',
                    //href : '${pageContext.request.contextPath}/readme.html',
                    buttons : [ {
                        text : '选择',
                        iconCls:'icon-standard-disk',
                        handler : function() {
                            var row = dialog.find("#matPickGrid").datagrid('getSelected');
                            if(row){
                                 $("#mat").attr("value",row.id);
                                $("#matName").searchbox("setValue",row.name);
                                 dialog.dialog('destroy');
                            }else{
                                $.messager.show('提示', '请选择一条物料信息', 'info');
                            } 
                            
                            
                        }
                    } ]
                });
            }  
        }); 
        $("#form input[name='matName']").attr("readonly","readonly");
</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">
            <fieldset>
                <legend>标准单耗基本信息</legend>
                <table class="table" style="width: 100%;">
                    <tr>
                        <th>车间</th>
                        <td>
                            <select name="workShop1" id="workShop1"
                                    class="easyui-combobox"
                                    data-options="panelHeight:'auto',editable:false,width:177">
                                <option value="1">卷包车间</option>
                                <option value="2">成型车间</option>
                            </select>
                        </td>
 
                    </tr>
                    <tr>
                        <th>牌号</th>
                        <td>
                            <select id="matProd1" name="matProd" class="easyui-combobox" data-options="panelHeight:'auto',width:177,editable:false"></select>
                        </td>
                        <th>辅料</th>
                        <td>
                            <input id="matName"  name="matName" class="easyui-searchbox"  data-options="prompt: '请选择辅料',required:true"/>  
                            <input id="mat" name="mat" type="hidden" value=""/> 
                        </td>
                    </tr>
                    <tr>
                        
                    </tr>
                    <tr>
                        <th>标准值</th>
                        <td>
                            <input name="val" 
                            class="easyui-validatebox"
                            data-options="required:true"
                            />
                        </td>
                        <th>说明</th>
                        <td>
                            <input name="des" 
                            class="easyui-validatebox"
                            />
                        </td>
                    </tr>
                    <tr>
                        <th>标准上限</th>
                        <td>
                            <input name="uval" class="easyui-validatebox"
                            class="easyui-validatebox"
                            data-options="required:true"
                            />
                        </td>
                        <th>标准下限</th>
                        <td>
                            <input name="lval" class="easyui-validatebox"
                            class="easyui-validatebox"
                            data-options="required:true"
                            />
                        </td>
                    </tr>
                    <tr>
                        <th>报警上限</th>
                        <td>
                            <input name="euval"
                            class="easyui-validatebox"
                            data-options="required:true"
                            />
                        </td>
                        <th>报警下限</th>
                        <td>
                            <input name="elval" 
                            class="easyui-validatebox"
                            data-options="required:true"/>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </form>
    </div>
</div>