严智鑫
2025-03-14 c41e1c8b82b8f4c7b149e0576c9a37bc5b2dbb85
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<%@ page contentType="text/html;charset=UTF-8"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
 
<html>
<head>
<link rel="stylesheet" href="../static/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="../static/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="../static/AdminLTE/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="../static/AdminLTE/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="../static/AdminLTE/dist/css/skins/skin-blue.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../static/styles/default.css" type="text/css" rel="stylesheet" />
<script src="../static/holder.js" type="text/javascript"></script>
<script type="text/javascript" src="../static/jquery/jquery-3.1.0.min.js"></script>
<title>上片位</title>
<script type="text/javascript">
/*     var interval = setInterval('refreshStatus()', 20000);
 
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
 
    }
 
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    } */
 
    function setRange() {
        disableAutoRefresh();
        $('#modifyRangeModal').modal('toggle');
    }
 
    function setdata() {
        disableAutoRefresh();
        $('#modifyRangeModal1').modal('toggle');
    }
 
     /**
      * 添加固定料架信息
      */
      function modifyraw(){
              disableAutoRefresh()
             $("#add-fix-info").modal('show');
     }
     
     
    /* var text = document.getElementById("floorInput");
    text.onkeyup = function(){
    this.value=this.value.replace(/\D/g,'');
        if(text.value>2){
          text.value = 2;
        }
    } */
</script>
</head>
<body style="padding: 20px;background-color:#D5EAFF;height:100%">
    
    <div id='app'>
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                测量设置
                <!-- <small>测量</small> -->
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 测量</a></li>
            </ol>
        </section>
 
        <!-- Main content -->
        <section class="content container-fluid">
 
            <!--------------------------
        | Your Page Content Here |
        -------------------------->
            <fieldset>
                <br>
                <legend>误差设置</legend>
                <!-- class="modal hide fade" -->
                <div id="modifyRangeModal" tabindex="-1" role="dialog"
                    aria-labelledby="myModalLabel" aria-hidden="true">
                    <form method="post" class="form-horizontal"
                        action="${ctx}/identifymachine/modifyErrorRange/${groups}">
                        <!-- <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"
                                aria-hidden="true">×</button>
                            <h3 id="myModalLabel">修改误差范围</h3>
                        </div> -->
                        <div class="modal-body">
                            <!-- <div class="control-group">
                                <label class="control-label" for="floorInput">误差范围</label> -->
                            <div class="controls">
                                宽&nbsp;
                                
                                <input v-model="shuzu[0][0]" type="text" id="floorInput" name="floor" class="input-mini required" >
                                <!-- <script type="text/javascript">
                                            var text = document.getElementById("floorInput");
                                            text.onkeyup = function(){
                                            this.value=this.value.replace(/\D/g,'');
                                                if(text.value>2.0){
                                                  text.value = 2.0;
                                                }
                                            }
                                        </script> -->
                                &nbsp;&nbsp;&nbsp;&nbsp;<span>~</span> &nbsp;&nbsp;&nbsp;&nbsp;
                                高&nbsp;
                                <input v-model="shuzu[0][1]"  type="text" id="ceilingInput" name="ceiling"
                                    class="input-mini required" > <span>mm</span>
                            </div>
                            <br>
                            <button @click='updateGlass' type="button" class="btn btn-primary">提交</button>
                            <!-- </div> -->
                        </div>
                        <div class="modal-footer"></div>
                    </form>
                </div>
                
                <legend>最小玻璃设置</legend>
                <!-- class="modal hide fade" -->
                <div id="modifyRangeModal" tabindex="-1" role="dialog"
                    aria-labelledby="myModalLabel" aria-hidden="true">
                    <form method="post" class="form-horizontal"
                        action="${ctx}/identifymachine/modifyErrorRange2/${groups}">
 
                        <div class="modal-body">
                            <!-- <div class="control-group">
                                <label class="control-label" for="floorInput">误差范围</label> -->
                            <div class="controls">
                                最小值&nbsp;<input v-model="shuzu[0][2]" type="text" id="floorInput" name="floor"
                                    class="input-mini required" value="${minwidth}">
                                
                                 <span>mm</span>
                            </div>
                            <br>
                            <button @click='updateGlass' type="button" class="btn btn-primary">提交</button>
                            <!-- </div> -->
                        </div>
                        <div class="modal-footer"></div>
                    </form>
                </div>
 
        </section>
        <!-- /.content -->
    </div>
</body>
<script src="../js/vue.min.js"></script>
<script src="../js/mixins.js"></script>
<script>
 let app = new Vue({
      el:'#app',
      mixins:[mixin],
      data:{
          shuzu:[],
      },
      methods:{
          updateGlass:function(){
             this.shuzu[0]["3"]='<%= request.getParameter("line") %>';
              sql="{call AXJ_celiangguanli_oneLineUpdate(?,?,?,?,?)}~"+JSON.stringify(this.shuzu[0]);
              //console.log(sql);
              this.connects(<%= request.getParameter("line") %>+"号线误差设置",sql,1,1);
          }
      },
      mounted:function(){
          
          let sql="{call AXJ_celiangguanli_oneLineSet(?,?)}~"+"{'lines':'"+<%= request.getParameter("line") %>+"'}";
         //this.connect('仓储任务查询',sql,2);
         let flag=2;
         loadAjxs('测量进入查询',sql,flag,"shuzu");
      }
 
})
</script>
</html>