From ebf585f09302784e56c1d2ce1dbbb2bc92d91951 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期三, 15 十二月 2021 17:59:22 +0800
Subject: [PATCH] nothing

---
 WebTM/views/设备管理/Sb_EquipDotCheckBillEdit.html |   45 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 43 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
index c3898f3..5ba1349 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
@@ -79,9 +79,13 @@
                                         </div>
                                         <div class="layui-form-item">
                                             <div class="layui-inline">
-                                                <label class="layui-form-label">鐐规璁″垝缂栧彿</label>
+                                                <label class="layui-form-label">鐐规璁″垝缂栧彿<label style="color:red"> * </label></label>
                                                 <div class="layui-input-inline">
-                                                    <input type="text" name="HPlanNo" id="HPlanNo" class="layui-input">
+                                                    <input type="hidden" name="HPlanNo" id="HPlanNo" class="layui-input" value="" style="float:left;width:150px;">
+                                                    <input type="text" name="HPlanName" id="HPlanName" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly">
+                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanList" style="width:40px;">
+                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+                                                    </button>
                                                 </div>
                                             </div>
                                             <div class="layui-inline">
@@ -284,6 +288,42 @@
                     }
                 })
             }
+
+            //琛ㄥご淇℃伅鐐规璁″垝婧愬崟寮圭獥
+            form.on('submit(HPlanList)', function () {
+                //椤甸潰灞�-鑷畾涔�
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '鐐规璁″垝婧愬崟鍒楄〃',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['80%', '80%'],
+                    maxmin: true,
+                    content: ['../璁惧绠$悊/Sb_EquipDotCheckPlanBillEdit.html', 'yes'],
+                    btn: ['纭畾', '鍙栨秷']
+                    , btn1: function (index, layero) {
+                        //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                        var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                        if (checkStatus.data.length === 0) {
+                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                        }
+                        $("#HPlanName").val(checkStatus.data[0].鍗曟嵁鍙�);
+                        $("#HPlanNo").val(checkStatus.data[0].hmainid);
+                        get_MaintainItem();
+                        layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                    }
+                    , btn2: function (index, layero) {
+                        //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                        //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                    },
+                    end: function () {
+                    },
+                    success: function (layero, index) {
+                    }
+                });
+            });
 
             // 鎻愪氦淇濆瓨
             form.on('submit(set_SaveBill)', function (data) {//淇濆瓨
@@ -570,6 +610,7 @@
                                 , "HBeginDate": data.寮�濮嬫棩鏈�             // 寮�濮嬫棩鏈�
                                 , "HEndDate": data.缁撴潫鏃ユ湡               // 缁撴潫鏃ユ湡
                                 , "HPlanNo": data.鐐规璁″垝缂栧彿            //鐐规璁″垝缂栧彿
+                                , "HPlanName": data.鐐规璁″垝            //鐐规璁″垝缂栧彿
                                 , "HRemark": data.琛ㄥご澶囨敞                //澶囨敞
                             });
 

--
Gitblit v1.9.1