From 02a44c1cf6a0026656811a9606a4b083e5ec633c Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 10 七月 2023 16:35:39 +0800
Subject: [PATCH] 1

---
 WebTM/Properties/PublishProfiles/JFTM.pubxml.user |    4 +-
 WebTM/views/项目管理/工作任务/PM_WorkTaskReportBill.html  |   83 +++++++++++++++++++++++++++++++++++++----
 2 files changed, 77 insertions(+), 10 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index 25dbe18..ff908cd 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -4278,7 +4278,7 @@
       <publishTime>07/08/2023 23:52:28</publishTime>
     </File>
     <File Include="views/椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskReportBill.html">
-      <publishTime>07/10/2023 15:56:48</publishTime>
+      <publishTime>07/10/2023 16:34:36</publishTime>
     </File>
     <File Include="views/椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskReportBillList.html">
       <publishTime>07/10/2023 16:01:26</publishTime>
@@ -4305,7 +4305,7 @@
       <publishTime>07/06/2023 09:17:28</publishTime>
     </File>
     <File Include="views/椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBill.html">
-      <publishTime>07/10/2023 15:30:19</publishTime>
+      <publishTime>07/10/2023 16:28:51</publishTime>
     </File>
     <File Include="views/椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBillList.html">
       <publishTime>07/10/2023 15:17:20</publishTime>
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
index cab05a2..d71539d 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
@@ -131,7 +131,7 @@
                                         <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="HUpDater" id="hupdater" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HUpdater" id="HUpdater" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
@@ -152,7 +152,7 @@
                                         <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="hupdatedate" style="background-color:#efefef4d;" readonly>
+                                                <input type="text" class="layui-input" name="HUpdaterDate" id="HUpdaterDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
@@ -572,12 +572,12 @@
                         { type: 'checkbox', totalRowText: '鍚堣琛�' }
                         , { type: 'numbers', title: '搴忓彿', totalRow: true }
                         , { field: 'RowID', title: '琛屽彿', hide: true }                                                   //琛屾爣璇嗭紝鐢ㄤ簬涓嬩竴琛屻�佷笂涓�琛岃瘑鍒墍鍦ㄨ
-                        , { field: 'HProNumber', title: '椤圭洰浠g爜', edit: 'text' }
+                        , { field: 'HProNumber', title: '椤圭洰浠g爜', edit: 'text', event: "HProNumber" }
                         , { field: 'HProjectStageID', title: '椤圭洰闃舵ID', hide: true }
                         , { field: 'HProjectStageName', title: '椤圭洰闃舵', edit: 'text', event: "HProjectStageName" }     //f7
-                        , { field: 'HName', title: '浠诲姟鍚嶇О', edit: 'text' }
-                        , { field: 'HTaskNote', title: '浠诲姟鎻忚堪', edit: 'text' }
-                        , { field: 'HType', title: '浠诲姟绫诲瀷', edit: 'text' }
+                        , { field: 'HName', title: '浠诲姟鍚嶇О', edit: 'text', event: "HName" }
+                        , { field: 'HTaskNote', title: '浠诲姟鎻忚堪' }
+                        , { field: 'HType', title: '浠诲姟绫诲瀷'}
                         , { field: 'HRelTimes', title: '鑰楃敤宸ユ椂', edit: 'text' }
                         , { field: 'HReportNote', title: '姹囨姤鍐呭', edit: 'text' }
                         , { field: 'HAdv', title: '浼樺寲寤鸿', edit: 'text' }
@@ -645,9 +645,15 @@
                         num.push(table.cache["mainTable"][i])
                     }
                 }
-
                 //鑾峰彇缁勭粐鏁版嵁
                 data.field.HPRDORGID = sessionStorage["OrganizationID"];//缁勭粐
+                //鑻ヤ负缂栬緫-淇濆瓨锛屽垯鏇存柊淇敼浜哄拰淇敼鏃堕棿
+                if (OperationType == 3) {
+                    data.field.HUpdater = sessionStorage["HUserName"];
+                    data.field.HUpdaterDate = Format(new Date(), "yyyy-MM-dd");
+                    $("#HUpdater").val(sessionStorage["HUserName"]);
+                    $("#HUpdaterDate").val(Format(new Date(), "yyyy-MM-dd"));
+                }
                 //鑾峰彇琛ㄥご鏁版嵁骞跺簭鍒楀寲
                 var sMainStr = JSON.stringify(data.field);              //涓昏〃鏁版嵁
                 //瀛愯〃鏁版嵁搴忓垪鍖�
@@ -979,10 +985,71 @@
                                 }
                             })
                         }
+                        if (obj.event == "HProNumber") {
+                            //宸ョ▼椤圭洰浠g爜
+                            //鎵撳紑宸ョ▼椤圭洰灏忕獥浣�
+                            layer.open({
+                                type: 2
+                                , skin: "layui-layer-rim"                           //鍔犱笂杈规
+                                , title: "宸ョ▼椤圭洰鍒楄〃"                             //鏍囬
+                                , closeBtn: 1                                       //绐椾綋鍙充笂瑙掑叧闂� 鐨� 鏍峰紡
+                                , shift: 2                                          //寮瑰嚭鍔ㄧ敾
+                                , area: ["90%", "90%"]                              //绐椾綋澶у皬
+                                , maxmin: true                                      //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
+                                , content: ["../../椤圭洰绠$悊/宸ョ▼椤圭洰/PM_ProjectBillList.html", "yes"]
+                                , btn: ["纭畾", "鍙栨秷"]
+                                , btn1: function (index, laero) {
+                                    //鎸夐挳涓�  鐨勫洖璋�
+                                    var iframeWindow = window["layui-layer-iframe" + index];//鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//鑾峰彇閫変腑鐨勬暟鎹�
+
+                                    if (checkStatus.data.length != 1) {
+                                        return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+                                    }
+                                    //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                    obj.update({
+                                        "HProNumber": checkStatus.data[0].HProNumber
+                                    })
+                                    layer.close(index);//鍏抽棴寮圭獥
+                                }
+                                , btn2: function (index, layero) { }
+                            })
+                        }
+                        if (obj.event == "HName") {
+                            //宸ヤ綔浠诲姟浠g爜
+                            //鎵撳紑宸ヤ綔浠诲姟灏忕獥浣�
+                            layer.open({
+                                type: 2
+                                , skin: "layui-layer-rim"                           //鍔犱笂杈规
+                                , title: "宸ヤ綔浠诲姟鍒楄〃"                             //鏍囬
+                                , closeBtn: 1                                       //绐椾綋鍙充笂瑙掑叧闂� 鐨� 鏍峰紡
+                                , shift: 2                                          //寮瑰嚭鍔ㄧ敾
+                                , area: ["90%", "90%"]                              //绐椾綋澶у皬
+                                , maxmin: true                                      //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
+                                , content: ["../../椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskBillList.html", "yes"]
+                                , btn: ["纭畾", "鍙栨秷"]
+                                , btn1: function (index, laero) {
+                                    //鎸夐挳涓�  鐨勫洖璋�
+                                    var iframeWindow = window["layui-layer-iframe" + index];//鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//鑾峰彇閫変腑鐨勬暟鎹�
+
+                                    if (checkStatus.data.length != 1) {
+                                        return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+                                    }
+                                    //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                    obj.update({
+                                        "HName": checkStatus.data[0].HName
+                                        , "HTaskNote": checkStatus.data[0].HTaskNote
+                                        , "HType": checkStatus.data[0].HType
+                                    })
+                                    layer.close(index);//鍏抽棴寮圭獥
+                                }
+                                , btn2: function (index, layero) { }
+                            })
+                        }
                         obj.event = "";
                         return false;
                     }
-
                 })
             }
             //#endregion

--
Gitblit v1.9.1