From fe50d723e5d050113c4ecc493220e264f39d8e5f Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 02 七月 2025 17:00:29 +0800
Subject: [PATCH] 1

---
 WebTM/views/生产管理/生产叫料平台/JIT_ComplementGoodBillMain.html |  323 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 295 insertions(+), 28 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\217\253\346\226\231\345\271\263\345\217\260/JIT_ComplementGoodBillMain.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\217\253\346\226\231\345\271\263\345\217\260/JIT_ComplementGoodBillMain.html"
index 4359420..f115500 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\217\253\346\226\231\345\271\263\345\217\260/JIT_ComplementGoodBillMain.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\345\217\253\346\226\231\345\271\263\345\217\260/JIT_ComplementGoodBillMain.html"
@@ -28,7 +28,7 @@
                     <div style="padding: 10px; ">
                         <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Bzjjl" id="Bzjjl">鏍囧噯浠跺彨鏂�</button>-->
                         <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Ptjl" id="Ptjl">閰嶅鍙枡</button>
-                        <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Zxbzjl" id="Zxbzjl">鏈�灏忓寘瑁呭彨鏂�</button>
+                        <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Zxbzjl" id="Zxbzjl">鏈�灏忓寘瑁呭彨鏂�</button>-->
                         <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Yce" id="Yce">寮曞嚭Excel</button>
                         <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Xc" id="Xc">涓嬫煡</button>
                         <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cx" id="Cx">鏌ヨ</button>
@@ -49,9 +49,12 @@
                                 </div>
                             </div>
                             <div class="layui-inline">
-                                <label class="layui-form-label" style="width: 85px;">閿�鍞鍗曞彿</label>
-                                <div class="layui-input-block" style="margin-left: 120px;">
-                                    <input type="text" class="layui-input" name="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo">
+                                <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇璁㈠崟</label>
+                                <div class="layui-input-block" style="margin-left: 77px;">
+                                    <input type="text" class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" style="width: 60%;display: inline-block;" >
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnICMOBill" id="btnICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;">
+                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                    </button>
                                 </div>
                             </div>
                             <div class="layui-inline">
@@ -129,13 +132,99 @@
                                 </div>
                                 <div class="layui-row" style="margin-top:10px;">
                                     <div class="layui-inline">
-                                        <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇璁㈠崟</label>
-                                        <div class="layui-input-block" style="margin-left: 77px;">
-                                            <input type="text" class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
-                                            <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnICMOBill" id="btnICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;">
-                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
-                                            </button>
+                                        <label class="layui-form-label" style="width: 85px;">閿�鍞鍗曞彿</label>
+                                        <div class="layui-input-block" style="margin-left: 120px;">
+                                            <input type="text" class="layui-input" name="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo">
                                         </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <div style="padding-left: 50px;">
+                                            <input type="checkbox" name="checkZXBZ" id="checkZXBZ" lay-skin="primary" lay-filter="checkZXBZ" title="鏈�灏忓寘瑁�">
+                                        </div>
+                                    </div>
+                                </div>
+
+                                <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;">
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">杩囨护</label>
+                                        <div class="layui-input-block">
+                                            <select name="ColName" id="ColName" class="ForFilteringSchemes" lay-filter="ColName" style="width:190px;">
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <select name="Comparator" id="Comparator" class="ForFilteringSchemes" lay-filter="Comparator" style="width:190px;">
+                                            <option value="0" selected="selected"></option>
+                                            <option value="=">=</option>
+                                            <option value=">=">>=</option>
+                                            <option value=">">></option>
+                                            <option value="<="><=</option>
+                                            <option value="<"><</option>
+                                            <option value="<>"><></option>
+                                            <option value="7">鍖呭惈</option>
+                                            <option value="8">宸﹀寘鍚�</option>
+                                            <option value="9">鍙冲寘鍚�</option>
+                                            <option value="10">涓嶅寘鍚�</option>
+                                        </select>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent" id="ColContent">
+                                    </div>
+                                </div>
+
+                                <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;">
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">杩囨护</label>
+                                        <div class="layui-input-block">
+                                            <select name="ColName1" id="ColName1" class="ForFilteringSchemes" lay-filter="ColName1" style="width:190px;">
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <select name="Comparator1" id="Comparator1" class="ForFilteringSchemes" lay-filter="Comparator1" style="width:190px;">
+                                            <option value="0" selected="selected"></option>
+                                            <option value="=">=</option>
+                                            <option value=">=">>=</option>
+                                            <option value=">">></option>
+                                            <option value="<="><=</option>
+                                            <option value="<"><</option>
+                                            <option value="<>"><></option>
+                                            <option value="7">鍖呭惈</option>
+                                            <option value="8">宸﹀寘鍚�</option>
+                                            <option value="9">鍙冲寘鍚�</option>
+                                            <option value="10">涓嶅寘鍚�</option>
+                                        </select>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent1" id="ColContent1">
+                                    </div>
+                                </div>
+
+                                <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;">
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">杩囨护</label>
+                                        <div class="layui-input-block">
+                                            <select name="ColName2" id="ColName2" class="ForFilteringSchemes" lay-filter="ColName2" style="width:190px;">
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <select name="Comparator2" id="Comparator2" class="ForFilteringSchemes" lay-filter="Comparator2" style="width:190px;">
+                                            <option value="0" selected="selected"></option>
+                                            <option value="=">=</option>
+                                            <option value=">=">>=</option>
+                                            <option value=">">></option>
+                                            <option value="<="><=</option>
+                                            <option value="<"><</option>
+                                            <option value="<>"><></option>
+                                            <option value="7">鍖呭惈</option>
+                                            <option value="8">宸﹀寘鍚�</option>
+                                            <option value="9">鍙冲寘鍚�</option>
+                                            <option value="10">涓嶅寘鍚�</option>
+                                        </select>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent2" id="ColContent2">
                                     </div>
                                 </div>
                             </div>
@@ -191,7 +280,7 @@
             var HICMOBillNo = $("#HICMOBillNo").val();
             if (HICMOBillNo == "") {
                 $("#Ptjl").hide();
-                $("#Zxbzjl").hide();
+                //$("#Zxbzjl").hide();
                 $("#Jl").hide();
                 $("#Scjld").hide();
                 $("#Yltl").hide();
@@ -200,7 +289,7 @@
                 $("#Sctld").hide();
             } else {
                 $("#Ptjl").show();
-                $("#Zxbzjl").show();
+                //$("#Zxbzjl").show();
                 $("#Jl").show();
                 $("#Scjld").show();
                 $("#Yltl").show();
@@ -286,6 +375,45 @@
             get_HideColumn();
         })
 
+        //鏈�灏忓寘瑁�
+        form.on('checkbox(checkZXBZ)', function (data) {
+            var checkZXBZ = $("input[name='checkZXBZ']").prop("checked");//澶嶉�夋
+
+            if (checkZXBZ) {
+                for (var i = 0; i < option.cols[0].length; i++) {
+                    if (option.cols[0][i]["field"] == "鍖呮暟") {
+                        option.cols[0][i]["edit"] = "text";
+                    }
+                    if (option.cols[0][i]["field"] == "鍙枡鏁伴噺") {
+                        option.cols[0][i]["edit"] = "";
+                    }
+                }
+            } else {
+                for (var i = 0; i < option.cols[0].length; i++) {
+                    if (option.cols[0][i]["field"] == "鍖呮暟") {
+                        option.cols[0][i]["edit"] = "";
+                    }
+                    if (option.cols[0][i]["field"] == "鍙枡鏁伴噺") {
+                        option.cols[0][i]["edit"] = "text";
+                    }
+                }
+            }
+            table.render(option);
+        })
+
+        //琛屽唴榧犳爣绂诲紑浜嬩欢
+        table.on('edit(mainTable)', function (obj) {
+            var HQty = 0.0;
+
+            if (obj.field == "鍖呮暟") {
+                HQty = parseFloat(obj.data["鍖呮暟"]) * parseFloat(obj.data["鏈�灏忓寘瑁�"])
+                //淇敼鏁版嵁
+                obj.update({
+                    "鍙枡鏁伴噺": HQty
+                });
+            }
+        })
+
         //#endregion
 
         //#region 姝ら〉闈㈡墍鏈夌殑鏂规硶
@@ -294,13 +422,15 @@
         function set_ClearBill()
         {
             NotGeneratedMaterial();
-            set_InitGrid();
-            get_Display(sWhere);
             Organ();
-            DisPlay_HideColumn();
             //璇诲彇杩囨护鏉′欢
             get_ReadConfigFile();
+            set_InitGrid();
+            get_Display(sWhere);
+            DisPlay_HideColumn();
+            ColFilter();
         }
+
         //鑾峰彇缁勭粐
         function Organ() {
             //鑾峰彇鐧诲綍椤电粍缁囧垪
@@ -308,6 +438,7 @@
             $.ajax({
                 type: "get",
                 url: GetWEBURL() + "/Web/GetOrganizations",
+                async: false,
                 success: function (result) {
                     if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
                         var data = result.data;
@@ -322,7 +453,9 @@
                         if (dataG != null) {
                             var data2 = JSON.parse(dataG);
                             $("#Organization").val(data2["Organization"]);
-                        } 
+                        } else {
+                            $("#Organization").val(sessionStorage["OrganizationID"]);
+                        }
                         form.render('select');
                       
                     }
@@ -337,6 +470,7 @@
                 elem: '#mainTable'
                 //, toolbar: '#toolbarDemo'
                 , height: 'full-150'
+                , totalRow: true
                 , cellMinWidth: 90
                 , limit: 500
                 , cols: [[
@@ -352,20 +486,22 @@
                     , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 160 }
                     , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 160 }
                     , { field: '瀛愰」鍗曚綅', title: '瀛愰」鍗曚綅', width: 160 }
-                    , { field: '鍗曚綅鐢ㄩ噺', title: '鍗曚綅鐢ㄩ噺', width: 160}
-                    , { field: '璁″垝鍙戞枡鏁伴噺', title: '璁″垝鍙戞枡鏁伴噺', width: 160 }
-                    , { field: '鍙枡鏁伴噺', title: '鍙枡鏁伴噺', width: 160, edit: 'text'}
-                    , { field: '閫�鏂欐暟閲�', title: '閫�鏂欐暟閲�', width: 160, edit: 'text'}
+                    , { field: '鍗曚綅鐢ㄩ噺', title: '鍗曚綅鐢ㄩ噺', totalRow: true, width: 160}
+                    , { field: '璁″垝鍙戞枡鏁伴噺', title: '璁″垝鍙戞枡鏁伴噺', totalRow: true, width: 160 }
+                    , { field: '鏈�灏忓寘瑁�', title: '鏈�灏忓寘瑁�', width: 160}
+                    , { field: '鍖呮暟', title: '鍖呮暟', totalRow: true,width: 160}
+                    , { field: '鍙枡鏁伴噺', title: '鍙枡鏁伴噺', totalRow: true, width: 160, edit: 'text'}
+                    , { field: '閫�鏂欐暟閲�', title: '閫�鏂欐暟閲�', totalRow: true,width: 160, edit: 'text'}
                     , { field: '閫�鏂欏師鍥�', title: '閫�鏂欏師鍥�', width: 160, edit: 'text'}
-                    , { field: '宸插彨鏂欐暟閲�', title: '宸插彨鏂欐暟閲�', width: 160}
-                    , { field: '宸查厤閫佹暟閲�', title: '宸查厤閫佹暟閲�', width: 160 }
+                    , { field: '宸插彨鏂欐暟閲�', title: '宸插彨鏂欐暟閲�', totalRow: true, width: 160}
+                    , { field: '宸查厤閫佹暟閲�', title: '宸查厤閫佹暟閲�', totalRow: true,width: 160 }
                     , { field: '璋冨嚭浠撳簱', title: '璋冨嚭浠撳簱', width: 160, edit: 'text', event: 'OutWarehouse' }
                     , { field: '璋冨嚭浠撳簱id', title: '璋冨嚭浠撳簱id', width: 160, hide: true }
                     , { field: '璋冨叆浠撳簱', title: '璋冨叆浠撳簱', width: 160, edit: 'text', event: 'InWarehouse' }
                     , { field: '璋冨叆浠撳簱id', title: '璋冨叆浠撳簱id', width: 160, hide: true }
-                    , { field: '搴撳瓨鏁伴噺', title: '搴撳瓨鏁伴噺', width: 160 }
-                    , { field: '璋冨嚭浠撳簱搴撳瓨鏁伴噺', title: '璋冨嚭浠撳簱搴撳瓨鏁伴噺', width: 160 }
-                    , { field: '璋冨嚭浠撳簱鍙敤搴撳瓨鏁伴噺', title: '璋冨嚭浠撳簱鍙敤搴撳瓨鏁伴噺', width: 160 }
+                    , { field: '搴撳瓨鏁伴噺', title: '搴撳瓨鏁伴噺', totalRow: true, width: 160 }
+                    , { field: '璋冨嚭浠撳簱搴撳瓨鏁伴噺', title: '璋冨嚭浠撳簱搴撳瓨鏁伴噺', totalRow: true, width: 160 }
+                    , { field: '璋冨嚭浠撳簱鍙敤搴撳瓨鏁伴噺', title: '璋冨嚭浠撳簱鍙敤搴撳瓨鏁伴噺', totalRow: true, width: 160 }
                     , { field: '鍙敤搴撳瓨', title: '鍙敤搴撳瓨', width: 160 }
                     , { field: '璋冨嚭缁勭粐', title: '璋冨嚭缁勭粐', width: 160}
                     , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 }
@@ -392,6 +528,7 @@
             $.ajax({
                 url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList',
                 type: "GET",
+                async: false,
                 data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                 success: function (data1) {
                     if (data1.count == 1) {
@@ -504,6 +641,80 @@
             var CPModel = $("#CPModel").val(); //浜у搧瑙勬牸鍨嬪彿
             var HICMOBillNo = $("#HICMOBillNo").val(); //鐢熶骇璁㈠崟鍙�
             var ps = $("#ps").prop("checked"); //浠呮樉绀烘湭瀹屽叏閰嶉��
+
+                      var ColName = $("#ColName").val();//澶嶉�夋
+                var Comparator = $("#Comparator").val()
+                var ColContent = $("#ColContent").val();
+
+                var ColName1 = $("#ColName1").val();//澶嶉�夋
+                var Comparator1 = $("#Comparator1").val()
+                var ColContent1 = $("#ColContent1").val();
+                var ColName2 = $("#ColName2").val();//澶嶉�夋
+                var Comparator2 = $("#Comparator2").val()
+                var ColContent2 = $("#ColContent2").val();
+                if (ColName != 0 && Comparator != 0) {
+                    var com = "";
+                    switch (Comparator) {
+                        case "7":
+                            com = "like'%" + ColContent + "%'";
+                            break;
+                        case "8":
+                            com = "like'%" + ColContent + "'";
+                            break;
+                        case "9":
+                            com = "like'" + ColContent + "%'";
+                            break;
+                        case "10":
+                            com = "not like'%" + ColContent + "%'";
+                            break;
+                        default:
+                            com = "" + Comparator + "'" + ColContent + "'";
+                            break;
+                    }
+                    sWhere += " and " + ColName + " " + com;
+                }
+                if (ColName1 != 0 && Comparator1 != 0) {
+                    var com1 = "";
+                    switch (Comparator1) {
+                        case "7":
+                            com1 = "like'%" + ColContent1 + "%'";
+                            break;
+                        case "8":
+                            com1 = "like'%" + ColContent1 + "'";
+                            break;
+                        case "9":
+                            com1 = "like'" + ColContent1 + "%'";
+                            break;
+                        case "10":
+                            com1 = "not like'%" + ColContent1 + "%'";
+                            break;
+                        default:
+                            com1 = "" + Comparator1 + "'" + ColContent1 + "'";
+                            break;
+                    }
+                    sWhere += " and " + ColName1 + " " + com1;
+                }
+                if (ColName2 != 0 && Comparator2 != 0) {
+                    var com2 = "";
+                    switch (Comparator2) {
+                        case "7":
+                            com2 = "like'%" + ColContent2 + "%'";
+                            break;
+                        case "8":
+                            com2 = "like'%" + ColContent2 + "'";
+                            break;
+                        case "9":
+                            com2 = "like'" + ColContent2 + "%'";
+                            break;
+                        case "10":
+                            com2 = "not like'%" + ColContent2 + "%'";
+                            break;
+                        default:
+                            com2 = "" + Comparator + "'" + ColContent + "'";
+                            break;
+                    }
+                    sWhere += " and " + ColName2 + " " + com2;
+                }
 
             if (DepartmentName=="") {
                 return layer.msg("璇烽�夋嫨鐢熶骇杞﹂棿!");
@@ -748,6 +959,8 @@
             }
         }
 
+
+
         //鏂板鎶ュ簾閫�鏂欑敵璇峰崟
         function set_AddNew_Bftl() {
             if (table.cache['mainTable'].length == 0) {
@@ -792,7 +1005,9 @@
             else {
                 layer.confirm('纭畾瑕佺敓鎴愭嫞鏂欏崟锛�', {
                     btn: ['纭畾', '鍙栨秷'] //鎸夐挳
-                    , btn1: function () {
+                    , btn1: function (index) {
+                        layer.close(index);
+
                         var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"]
 
                         $.ajax(
@@ -833,7 +1048,9 @@
             else {
                 layer.confirm('纭畾瑕佺敓鎴愰��鏂欏崟锛�', {
                     btn: ['纭畾', '鍙栨秷'] //鎸夐挳
-                    , btn1: function () {
+                    , btn1: function (index) {
+                        layer.close(index);
+
                         var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"]
 
                         $.ajax(
@@ -994,6 +1211,7 @@
             $.ajax({
                 url: GetWEBURL() + '/Sc_ComplementGoodBill/NotGeneratedMaterialList',
                 type: "GET",
+                async: false,
                 data: { "sWhere": sessionStorage["OrganizationID"], "user": sessionStorage["HUserName"] },
                 success: function (data1) {
                     if (data1.count == 1) {
@@ -1013,6 +1231,27 @@
             });
         }
 
+        //#region 鐐瑰嚮琛岄�変腑楂樹寒
+        table.on('row(mainTablemainTable)', function (obj) {
+            //閫変腑琛屾敼鍙橀鑹�
+            var flag = !obj.tr.find(':checkbox:first').prop('checked');
+            obj.tr.find(':checkbox').prop('checked', flag);
+            if (flag) {
+                obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked');  //璁剧疆澶嶉�夋閫変腑鏍峰紡
+                $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+            } else {
+                obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//鍙栨秷澶嶉�夋閫変腑鏍峰紡
+                $(obj.tr.selector).attr({ "style": "background:" });//鍙栨秷褰撳墠tr棰滆壊
+            }
+            //mainTable 涓鸿〃鏍糏D   娉ㄦ剰姝ゅ濡傛灉ID涓嶆纭皢瀵艰嚧浣犲湪鐩戝惉澶嶉�夋鏃惰幏鍙栦笉鍒颁綘閫夋嫨鐨勬暟鎹紝鍓嶉潰鐨勫彧鏄坊鍔犳垨鍒犻櫎閫変腑鏈�変腑鏍峰紡浠ュ強璁剧疆鑳屾櫙鑹诧紝瀛椾綋棰滆壊
+            layui.each(table.cache.mainTable, function (i, l) {
+                if (obj.tr.index() == l.LAY_TABLE_INDEX) {
+                    l.LAY_CHECKED = flag;
+                }
+            });
+        })
+            //#endregion
+
         //鐢熶骇璁㈠崟閫夊崟
         function get_btnICMOBill() {
             layer.open({
@@ -1021,7 +1260,7 @@
                 , area: ['90%', '90%']//澶у皬
                 , title: '鐢熶骇璁㈠崟鍒楄〃'//鏍囬
                 , shift: 2//寮瑰嚭鍔ㄧ敾
-                , content: ['../../鐢熶骇绠$悊/鐢熶骇浠诲姟鍗�/Sc_ICMOBillList.html', 'yes']
+                , content: ['../../鐢熶骇绠$悊/鐢熶骇浠诲姟鍗�/Sc_ICMOBillList.html?HDeptID='+ $("#DepartmentID").val(), 'yes']
                 , btn: ['纭畾', '鍙栨秷']
                 , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                     var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -1046,9 +1285,37 @@
             $("#CPName").val("");
             $("#CPModel").val("");
             $("#HICMOBillNo").val("");
+            $("#ColContent").val("");
+            $("#ColName").val("0");
+            $("#Comparator").val("0");
+            $("#ColContent1").val("");
+            $("#ColName1").val("0");
+            $("#Comparator1").val("0");
+            $("#ColContent2").val("");
+            $("#ColName2").val("0");
+            $("#Comparator2").val("0");
+            form.render('select');
             sWhere = "";
         }
 
+
+        //鍒楁槑鏄剧ず涓嬫媺妗�
+        function ColFilter() {
+            var Organization = '<option  value="0" selected="selected" ></option>';
+            for (var i = 1; i < option.cols[0].length; i++) {
+                if (option.cols[0][i].hide != true) {
+                    Organization += '<option  style="color:blue;" value="' + option.cols[0][i].field + '">' + option.cols[0][i].field + '</option>';
+                }
+            }
+            $("#ColName").empty();
+            $("#ColName").append(Organization);
+            $("#ColName1").empty();
+            $("#ColName1").append(Organization);
+            $("#ColName2").empty();
+            $("#ColName2").append(Organization);
+
+            form.render('select');
+        }
         //璇诲彇閰嶇疆鏂囦欢
         function get_ReadConfigFile() {
             //鑾峰彇鏈湴瀛樺偍鐨勬暟鎹�

--
Gitblit v1.9.1