cdk
10 天以前 d27cd18610ef82671bc57151e86158d16877b5a3
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
 
<!doctype html>
<html>
 
    <head>
        <meta charset="UTF-8">
        <title>库位绑定</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <!-- <link rel="stylesheet" href="../../lib/base_js/css/common.css" /> -->
        <script type="text/javascript" src="../../lib/jquery/js/jquery.min.js"></script>
        <script type="text/javascript" src="../../lib/easyui/js/jquery.easyui.min.js" ></script>
        <script src="../../lib/mui/js/mui.min.js"></script>
        <link href="../../lib/mui/css/mui.min.css" rel="stylesheet" />
        <link href="../../lib/mui/css/mui.picker.min.css" rel="stylesheet" />
        <link href="../../lib/mui/css/mui.poppicker.css" rel="stylesheet" />
        <script src="../../lib/mui/js/mui.picker.min.js"></script>
        <script src="../../lib/mui/js/mui.poppicker.js"></script>
        <!--<script type="text/SetInputFoucsjavascript" src="../../lib/base_js/js/common.js" ></script>-->
        <script type="text/javascript" src="../../lib/base_js/js/app.js"></script>
        
        <script type="text/javascript" src="../../lib/base_js/js/common.js" ></script>
        
        <link rel="stylesheet" href="../../lib/base_js/css/common.css" />
        <style>
            #info {
                /*查询信息属性*/
                background-color: #FFE48D;
            }
        </style>
 
    </head>
 
    <body>        
        <div class="mui-input-group mui-content">
            <!-- <div class="mui-input-row  ">
                <div style=" float: left; ">
                    <label class="row-title">人员</label>
                    <input class="row-content-split" type="text" name="txtBillNo" id="txtBillNo" placeholder="请选择报工人员"readonly="readonly">
                </div>            
            </div> -->
                <div class="mui-input-row">
                    <label>查询</label>
                    <input type="text" id="searchInput" placeholder="请输入查询条件">
                </div>
            <div class="mui-input-row" id="row001">
                <label>申请单号</label>
                <select id="QTNO" style="margin:auto; color:#000;font-size: 18px" onchange="GetInfoCGTH()" >
                    <option value="">请点击选择申请单号</option>
                </select>
            </div>
            <!-- <div class="mui-input-row" id="row001">
                <label>库位</label>
                <input id="MBA001" type="text" value="" class="mui-input-clear text-color" placeholder="请扫描库位" onkeypress="GetFOCUS()" />
            </div> -->
        
                <div class="mui-input-row" id="row001">
                    <label>条码</label>
                    <input id="DAB001" type="text" value="" class="mui-input-clear text-color" placeholder="请扫描条码" onkeypress="GetBarInfo()" />
                </div>
                <div class="mui-input-row" id="row001">
                    <label>物料编码</label>
                    <input id="DAB002"  readonly="readonly" type="text" value="" class="mui-input-clear text-color" />
                </div>
                <div class="mui-input-row" id="row001">
                    <label>条码数量</label>
                    <input id="DAB003"  readonly="readonly" type="text" value="" class="mui-input-clear text-color" />
                </div>
                <div class="mui-input-row" id="row001">
                    <label>需退数量</label>
                    <input id="DAB004"    readonly="readonly"  type="text" value="" class="mui-input-clear text-color"/>
                </div>
                <div class="mui-input-row" id="row001">
                    <label>实退数量</label>
                    <input id="DAB005"  placeholder="请输入发料数量"  type="text" value="" class="mui-input-clear text-color"  onkeypress="Is_PrintSplit()"/>
                </div>
                <div id="txtInfo"><!--<div class="mui-input-row" style="height: 350px; margin-top: 10px;">-->
                    <div class="link-area" id="div001">
                        <h4 style="color: #008000; text-align: center;">
                            单据明细
                            <!-- <span id="dgWOMDAG-sum" class="mui-badge mui-badge-success easyui-draggable"
                                style="font-size: 15px;" data-options="onStopDrag:onStopDrag">0</span> -->
                        </h4>
                    </div>
                </div>
                <div class="data-table-container" style="height: 100%; width: 100%;">
                  <table class="data-table" id="myTable" style="height: 100%; width: 100%;">
                    <!-- 表格代码 -->
                    <table class="data-table" id="myTable" style="height:100% width: 100%;">
                      <thead>
                        <tr>
                          <th>物料名称</th>
                          <th>物料代码</th>
                          <th>申请数量</th>
                          <th>已扫数量</th>
                        </tr>
                      </thead>
                      <tbody>
                        <!-- 表格内容将通过 JS 动态生成 -->
                      </tbody>
                    </table>
                  </table>
                </div>
 
                
 
        </div>
        <script type="text/javascript" src="../../js/CangKuManage_js/CGTH.js" ></script>
        <script type="text/javascript" src="../../js/CangKuManage_js/print_template.js" ></script>
        <script type="text/javascript" src="../../js/api.js" ></script>
        <script>//模糊查询
            // 模糊查询函数
            function searchItems() {
                var input, filter, select, option, i, txtValue;
                input = document.getElementById("searchInput");
                filter = input.value.toUpperCase();
                select = document.getElementById("QTNO");
                option = select.getElementsByTagName("option");
            
                // 遍历所有选项,隐藏不匹配的项并显示匹配的项
                for (i = 0; i < option.length; i++) {
                    txtValue = option[i].text || option[i].innerText;
                    if (txtValue.toUpperCase().indexOf(filter) > -1) {
                        option[i].style.display = "";
                    } else {
                        option[i].style.display = "none";
                    }
                }
            }
            
            // 监听输入框的输入事件,触发模糊查询
            document.getElementById("searchInput").addEventListener("input", searchItems);</script>
        
    </body> 
 
</html>
<style>
          /* 添加表格样式 */
          .data-table {
            width: 100%;
            border-collapse: collapse;
            overflow-x: auto; /* 水平滚动条 */
          }
          
        
          .data-table th,
          .data-table td {
            border: 1px solid #ccc;
            padding: 3px;
            text-align: left;
            word-wrap: break-word;
            white-space: pre-wrap;
            text-overflow: ellipsis; /* 文本截断和省略号 */
            overflow: hidden;
            font-size: 10px;
          }
          
          /* 媒体查询 */
          @media (max-width: 768px) {
            .data-table {
              /* 调整表格样式以适应小屏幕 */
            }
          }
          
           option {
               font-size: 25px; /* 调整下拉选项的字体大小 */
               padding: 20px; /* 调整下拉选项的内边距 */
             }
        </style>