From 6e15c1cc930f1e211f473b132d54a5d3207ebdf0 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 10 七月 2023 15:57:22 +0800
Subject: [PATCH] 1

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

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index 310083a..a62e138 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/09/2023 14:18:56</publishTime>
+      <publishTime>07/10/2023 15:56:48</publishTime>
     </File>
     <File Include="views/椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskReportBillList.html">
       <publishTime>07/09/2023 11:43:49</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 2b30144..cab05a2 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"
@@ -263,6 +263,8 @@
             var HModName = "PM_WorkTaskReportBill";
             //琛ㄦ牸娓叉煋鍙傛暟
             var option = {};            //椤圭洰闃舵琛ㄦ覆鏌撳弬鏁�
+            //璁板綍缁勭粐鐨勫��
+            var HOrgIDBar = 0;
             //鑾峰彇鍙傛暟
             var params = getUrlVars();
             var OperationType = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鏁版嵁绫诲瀷  1娣诲姞 淇濆瓨  2澶嶅埗  3 缂栬緫
@@ -289,6 +291,8 @@
 
             //#region 鍒ゆ柇骞惰缃搷浣滅被鍨嬨�侀〉闈㈠垵濮嬪寲
             if (OperationType == null || OperationType == 1) {                            //鏂板
+                //绂佺敤缁勭粐閫夐」
+                $("#HOrgID").attr("disabled", true);
                 OperationType = 1;
                 //鐢熸垚骞惰缃富琛ㄧ殑鍐呯爜鍜屽崟鎹彿
                 createBillNo();
@@ -319,8 +323,8 @@
             //    });
             //}
             else if (OperationType == 3) {//濡傛灉淇敼鍒欒蛋涓嬮潰 new                                        //缂栬緫
-                ////绂佺敤缁勭粐閫夐」
-                //$("#HOrgID").attr("disabled", true);
+                //绂佺敤缁勭粐閫夐」
+                $("#HOrgID").attr("disabled", true);
                 //鍒濆鍖栭」鐩樁娈佃〃
                 get_InitGrid();
                 RoadBillMain(linterid);
@@ -513,7 +517,10 @@
                                 Organization += '<option  style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
                             }
                             $("#HOrgID").append(Organization);
-                            $("#HOrgID").val(sessionStorage["OrganizationID"])
+                            if (OperationType == 1) {
+                                HOrgIDBar = sessionStorage["OrganizationID"];
+                            }
+                            $("#HOrgID").val(HOrgIDBar);
                             form.render('select');
                         }
                         layer.closeAll("loading");
@@ -712,6 +719,9 @@
                             , "HReportEmpName": tableMain[0]["HReportEmpName"]
                         });
 
+                        //缁勭粐鐨勫�糎OrgID鍙樺寲锛岄噸鏂版覆鏌�
+                        HOrgIDBar = tableMain[0]["HOrgID"];
+
                         //瀛愯〃  璧嬪��
                         option.data = tableSub;
                         table.render(option);

--
Gitblit v1.9.1