| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥ä½ä¸å¿</label> |
| | | <div class="layui-input-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWorkCenterName" id="HWorkCenterName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HWorkCenterID" id="HWorkCenterID" value="0" hidden> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHWorkCenterID" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | |
| | | //è¡¨å¤´ä¿¡æ¯ è°å
¥ä»åºå¼¹çª |
| | | form.on('submit(HSCWHList)', function () { |
| | | Gy_Warehouse(2); |
| | | }); |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯ å·¥ä½ä¸å¿ |
| | | form.on('submit(btnHWorkCenterID)', function () { |
| | | btnHWorkCenterID(); |
| | | }); |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯ ä¾åºåå¼¹çª |
| | |
| | | }); |
| | | } |
| | | |
| | | //å·¥ä½ä¸å¿ |
| | | function btnHWorkCenterID() { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å·¥ä½ä¸å¿å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_WorkCenter.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | $("#HWorkCenterName").val(checkStatus.data[0].å·¥ä½ä¸å¿åç§°); |
| | | $("#HWorkCenterID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | |
| | | //ä¾åºåå表 |
| | | function Gy_Supplier() { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | , "HSourceName": data.çäº§èµæº |
| | | , "HCheckEmpID": data.HCheckEmpID |
| | | , "HCheckEmpName": data.æ£éªå |
| | | , "HWorkCenterID": data.HWorkCenterID |
| | | , "HWorkCenterName": data.å·¥ä½ä¸å¿ |
| | | }); |
| | | |
| | | } else { |