From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml |   78 ++++++++++++++++++++++++++------------
 1 files changed, 53 insertions(+), 25 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index 17af108..2ac3108 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -40,6 +40,7 @@
 
     List<TChallengeletterDTO> ChallengeletterChosen = ViewData["ChallengeletterChosen"] as List<TChallengeletterDTO>;
 
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @{
     Layout = null;
@@ -989,11 +990,11 @@
         <div class="wrapper wrapper-content" style="margin-top:0px"></div>
         <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
             <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
-                <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;">
                     <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">鍒犻櫎</span>
                 </a>
 
-                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;">
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
                 </a>
             </div>
@@ -1092,8 +1093,8 @@
 
         var id = '@Model.Id';
          var order_type = '@Model.OrderType';
-        var order_type1 = $("#order_type1").val();
-        var order_type2 = $("#order_type2").val();
+        var order_type1 =  '@Html.Raw(Model.OrderType1)';/*$("#order_type1").val();*/
+        var order_type2 =  '@Html.Raw(Model.OrderType2)';/*$("#order_type2").val();*/
 
         var bUpload = false;
         var bAdd = false; // 鏂板鎿嶄綔
@@ -1241,7 +1242,7 @@
                     return;
                 }
 
-                
+
             } else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") {
                 if ($.trim($("#GysName").val()) == '') {
                     toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�");
@@ -1280,11 +1281,11 @@
                     toastr.warning("閲囪喘鏂囦欢鑾峰彇鏃ユ湡涓嶈兘涓虹┖");
                     return;
                 }
-                
-                
-                
-                
-            } 
+
+
+
+
+            }
 
 
 
@@ -1524,6 +1525,7 @@
 
 
         $("#OrderType2").change(function () {
+
             var OrderType = $("#OrderType").val();
             var OrderType1 = $("#OrderType1").val();
             var OrderType2 = $("#OrderType2").val();
@@ -1552,7 +1554,7 @@
 
 
 
-        if (id != null  &&  id != '') {
+        if (order_type != null && order_type != '') {
 
             $.ajax({
                 type: "GET",
@@ -1593,7 +1595,6 @@
                     parent.layer.msg('澶辫触', { icon: 5 });
                 }
             });
-
 
 
 
@@ -1640,7 +1641,9 @@
 
 
 
-
+                    if (id == null || id == '') {
+                        $("#OrderType2").trigger("change");
+                    }
 
 
                 },
@@ -1651,10 +1654,22 @@
                 }
             });
 
+
+            if (order_type == '03' || order_type == '08') {
+                $("#xiangmuxinxi").show();
+            } else {
+                $("#xiangmuxinxi").hide();
+            }
+
+            if (order_type == '08') {
+                $("#jichujine").show();
+            } else {
+                $("#jichujine").hide();
+            }
         }
 
 
-        
+
 
         $(document).ready(function () {
 
@@ -1711,17 +1726,17 @@
             } else {
                 $("#tousushouquan").hide();
             }
-           
+
             var sheng = $("#OrderType").val();
             if (sheng == '08' || sheng == '11' || sheng == '10') {
                 $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴��
             } else {
                 $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly
             }
-            
-            $("#TsrId").chosen();  
 
-        }); 
+            $("#TsrId").chosen();
+
+        });
 
 
         $("#Khdw").change(function () {
@@ -1734,13 +1749,13 @@
                 global: false,
                 data: "",
                 success: function (data) {
-                    
-                   
+
+
                     $("#Shr").val(data.ShrName);
                     $("#ShrAddress").val(data.ShrAddress);
                     $("#ShrTel").val(data.ShrTel);
 
-                    $("#GysName").val(data.Name);  
+                    $("#GysName").val(data.Name);
                     $("#GysAddress").val(data.Address);
                     $("#GysContacts").val(data.FName);
                     $("#GysPhone").val(data.FTel);
@@ -1750,7 +1765,7 @@
                     $("#TsrPostcode").val(data.Postal);
                     $("#TsrCorporation").val(data.FName);
                     $("#TsrPhone").val(data.FTel);
-                   
+
                 },
                 error: function () {
 
@@ -1928,7 +1943,7 @@
                                                 <input class="form-control" label="鐩稿叧渚涘簲鍟哷+ sss + `" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
 
                                             </div>
-                                            
+
 
                                         </div>
 
@@ -1977,7 +1992,7 @@
                 global: false,
                 data: "",
                 success: function (data) {
-                  
+
                     //$('#zhiyishixiang').html(data.GysId);
                     //$("select").chosen();
                     $("#TsrName").val(data.GysName);
@@ -1993,7 +2008,7 @@
                             $("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua);
                             $("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi);
                             $("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian);
-                             
+
                         }
                     }
 
@@ -2061,8 +2076,21 @@
             }
 
         });
+          var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
 
+
+        $(function () {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                if ("@ShouliStatus" == "1") {
+                    $("." + data[o].PageShortcut).show();
+                }
+             
+
+            }
+        });
+
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1