From a5e8fb4e50f285538ad6800d5abdb66ea367db00 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 14 一月 2026 10:59:42 +0800
Subject: [PATCH] 添康获取多车间订单排产;小卫彩盒SN校验标题调整;过站解绑列表添加日期区间过滤;香囊标签打印,添加暂停打印,继续打印功能

---
 WebTM/views/项目管理/工程项目/PM_ProjectMoneyBillMain.html |  139 ++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 121 insertions(+), 18 deletions(-)

diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectMoneyBillMain.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectMoneyBillMain.html"
index 5701864..b14bd45 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectMoneyBillMain.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectMoneyBillMain.html"
@@ -108,7 +108,7 @@
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡埛</label>
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">瀹㈡埛<label style="color:red"> * </label></label>
                                             <div class="layui-input-block" style="margin-left: 77px;">
                                                 <input type="text" class="layui-input" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
                                                 <input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0">
@@ -121,7 +121,7 @@
 
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜や粯鏂�</label>
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜や粯鏂�<label style="color:red"> * </label></label>
                                             <div class="layui-input-block" style="margin-left: 77px;">
                                                 <input type="text" class="layui-input" lay-verify="HPMTeamName" name="HPMTeamName" id="HPMTeamName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
                                                 <input type="hidden" name="HPMTeamID" id="HPMTeamID" lay-verify="HPMTeamID" value="0">
@@ -160,7 +160,7 @@
                                         </div>
                                     </div>
                                     <div class="layui-row">
-                                        <div class="layui-inline" >
+                                        <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px; ">缁勭粐<label style="color:red"> * </label></label>
                                             <div class="layui-input-block" style="margin-left: 120px; width: 501px;">
                                                 <select name="HOrgID" id="HOrgID" lay-verify="HOrgID">
@@ -199,19 +199,19 @@
                                         <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="HMakerDate" id="HMakerDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
                                             </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="HUpdaterDate" id="HUpdaterDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
                                             </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="HCheckerDate" id="HCheckerDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                     </div>
@@ -239,26 +239,26 @@
                                         <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="HCloseManDate" id="HCloseManDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
                                             </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="HDeleteManDate" id="HDeleteManDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
                                             </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="HBackerDate" id="HBackerDate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HBackDate" id="HBackDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px;">閫�鍥炲師鍥�</label>
-                                            <div class="layui-input-block" style="margin-left: 120px; width:500px;">
+                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HBackRemark" id="HBackRemark" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
@@ -314,6 +314,8 @@
             var HModName = "PM_ProjectMoneyBillMain";
             //#region
 
+            //鍏ㄥ眬鍙橀噺
+            window.optiondata = [];
             //璁板綍缁勭粐鐨勫��
             var HOrgIDBar = 0;
             //鑾峰彇鍙傛暟
@@ -407,7 +409,7 @@
 
             //#region 閫夋嫨瀹㈡埛鎸夐挳
             form.on('submit(btnSearchHCusID)', function () {
-                get_checkSearchHSendEmp();
+                get_checkSearchHCus();
             });
             //#endregion
 
@@ -452,7 +454,7 @@
                 //鏂板琛岃〃鏍兼暟鎹�
                  
                 var NewRow = {
-                    "HProMoneyID": "", "HProMoneyName": "", "HQty": "0", "HPrice": "0", "HMoney": "0", 
+                    "HProMoneyID": "0", "HProMoneyName": "", "HQty": "0", "HPrice": "0", "HMoney": "0", 
                     "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0,
                 };
                 switch (obj.event) {
@@ -717,7 +719,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '鍛樺伐琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HPM&HOrgID=' + HOrgID, 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -734,6 +736,7 @@
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
+                    , end: function () { }
                 })
             }
             //#endregion
@@ -747,7 +750,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '鍛樺伐琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HWorker&HOrgID=' + HOrgID, 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -764,10 +767,38 @@
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
+                    , end: function () { }
                 })
             }
             //#endregion
+            //#region 瀹㈡埛閫夋嫨椤甸潰
+            function get_checkSearchHCus() {
+                var HOrgID = $("#HOrgID").val();
+                layer.open({
+                    type: 2//寮圭獥绫诲瀷
+                    , skin: 'layui-layer-rim' //鍔犱笂杈规
+                    , area: ['90%', '90%']//澶у皬
+                    , title: '瀹㈡埛琛�'//鏍囬
+                    , shift: 2//寮瑰嚭鍔ㄧ敾
+                    , content: ['../../鍩虹璧勬枡/閿�鍞熀纭�璧勬枡/Gy_Customer.html?openType=2&HOrgID=' + HOrgID, '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('璇烽�夋嫨鏁版嵁');
+                        }
+                        //鑾峰彇鏁版嵁
+                        $("#HCusID").val(checkStatus.data[0].HItemID);//瀹㈡埛id
+                        $("#HCusName").val(checkStatus.data[0].瀹㈡埛鍚嶇О);//瀹㈡埛鍚嶇О
 
+                        layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                    }
+                    , btn2: function (index, layero) { }
+                    , end: function () { }
+                })
+            }
+            //#endregion
             //#region 绠$悊鍛橀�夋嫨椤甸潰
             function get_checkSearchHManager() {
                 var HOrgID = $("#HOrgID").val();
@@ -777,7 +808,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '鍛樺伐琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+                    , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HManager&HOrgID=' + HOrgID, 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -794,6 +825,7 @@
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
+                    , end: function () { }
                 })
             }
             //#endregion
@@ -807,7 +839,7 @@
                     , area: ['90%', '90%']//澶у皬
                     , title: '鍛樺伐琛�'//鏍囬
                     , shift: 2//寮瑰嚭鍔ㄧ敾
-                    , content: ['../../鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html?openType=2&HOrgID=' + HOrgID, 'yes']
+                    , content: ['../../鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html?openType=HSup&HOrgID=' + HOrgID, 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
@@ -824,6 +856,7 @@
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
+                    , end: function () { }
                 })
             }
             //#endregion
@@ -859,6 +892,16 @@
                                         , "HProMoneyName": checkStatus.data[0].椤圭洰璐圭敤鍚嶇О
                                     })
                                     layer.close(index);//鍏抽棴寮圭獥
+                                }
+                                , end: function () {
+                                    if (optiondata.length == undefined) {
+                                        obj.update({
+                                            "HProMoneyID": optiondata.HItemID
+                                            , "HProMoneyName": optiondata.椤圭洰璐圭敤鍚嶇О
+                                        })
+                                        optiondata = [];
+                                    }
+                                    
                                 }
                             })
                         }
@@ -1014,7 +1057,7 @@
                     layer.msg("鍗曟嵁鍙蜂笉鑳戒负绌�!");
                     return false;
                 }
-                if ($("#HProID").val() == "0") {
+                if ($("#HProjecID").val() == "0") {
                     layer.msg("椤圭洰浠g爜娌℃湁閫夋嫨!");
                     return false;
                 }
@@ -1022,7 +1065,26 @@
                     layer.msg("鏃ユ湡涓嶈兘涓虹┖!");
                     return false;
                 }
-
+                if($("#HManagerID").val() == "0") {
+                    layer.msg("绠$悊鍛樹笉鑳戒负绌�!");
+                    return false;
+                }
+                if ($("#HWorkEmpID").val() == "0") {
+                    layer.msg("瀹炴柦鎷呭綋涓嶈兘涓虹┖!");
+                    return false;
+                }
+                if ($("#HPMEmpID").val() == "0") {
+                    layer.msg("椤圭洰缁忕悊涓嶈兘涓虹┖!");
+                    return false;
+                }
+                if ($("#HPMTeamID").val() == "0") {
+                    layer.msg("浜や粯鏂逛笉鑳戒负绌�!");
+                    return false;
+                }
+                if ($("#HCusID").val() == "0") {
+                    layer.msg("瀹㈡埛涓嶈兘涓虹┖!");
+                    return false;
+                }
                 return true;
             }
             //#endregion
@@ -1156,7 +1218,48 @@
 
         });
 
+        //宸ョ▼椤圭洰
+        function GetProjectBillValue(obj) {
+            if (obj[0].鍏抽棴浜� == null || obj[0].鍏抽棴浜� == "") {
+                $("#HProjectID").val(obj[0].HInterID);
+                $("#HProNumber").val(obj[0].椤圭洰浠g爜);//宸ョ▼椤圭洰浠g爜
+                $("#HProName").val(obj[0].椤圭洰鍚嶇О);//宸ョ▼椤圭洰鍚嶇О
+                $("#HCusID").val(obj[0].HCusID);//瀹㈡埛id
+                $("#HCusName").val(obj[0].瀹㈡埛);//瀹㈡埛鍚嶇О
 
+                $("#HMainSourceInterID").val(obj[0].HInterID);
+                $("#HMainSourceEntryID").val(obj[0].HEntryID);
+                $("#HMainSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+                $("#HMainSourceBillType").val(obj[0].鍗曟嵁绫诲瀷);
+
+            } else {
+                layer.msg("璇ラ」鐩凡鍏抽棴锛屼笉鍙�夋嫨锛�");
+            }
+        }
+        //绠$悊鍛�
+        function GetHManagerValue(obj) {
+            $("#HManagerID").val(obj[0].HItemID);//绠$悊鍛榠d
+            $("#HManagerName").val(obj[0].鑱屽憳鍚嶇О);//绠$悊鍛樺悕绉�
+        }
+        //椤圭洰缁忕悊
+        function GetHPMValue(obj) {
+            $("#HPMEmpID").val(obj[0].HItemID);//瀹㈡埛id
+            $("#HPMEmpName").val(obj[0].鑱屽憳鍚嶇О);//瀹㈡埛鍚嶇О
+        }
+        //瀹炴柦鎷呭綋
+        function GetHWorkerValue(obj) {
+            $("#HWorkEmpID").val(obj[0].HItemID);//鍛樺伐id
+            $("#HWorkEmpName").val(obj[0].鑱屽憳鍚嶇О);//鍛樺伐鍚嶇О
+        }
+        //渚涘簲鍟�
+        function GetHSupNameValue(obj) {
+            $("#HPMTeamID").val(obj[0].HItemID);//浜や粯鏂筰d
+            $("#HPMTeamName").val(obj[0].渚涘簲鍟嗗悕绉�);//渚涘簲鍟嗗悕绉�
+        }
+        //椤圭洰璐圭敤
+        function GetProjectMoneyValue(obj) {
+            optiondata = obj;
+        }
 
     </script>
 </body>

--
Gitblit v1.9.1