From c84c8d2fd150a79401a778a73083ba39004940c4 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 28 十二月 2021 13:14:15 +0800
Subject: [PATCH] 订单单价不能修改

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml |   14 ++++++++++++--
 zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml |    4 ++++
 zhengcaioa/Services/SysCodeService.cs               |    1 +
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/Services/SysCodeService.cs b/zhengcaioa/Services/SysCodeService.cs
index 52c1396..97d4b8e 100644
--- a/zhengcaioa/Services/SysCodeService.cs
+++ b/zhengcaioa/Services/SysCodeService.cs
@@ -439,6 +439,7 @@
                         Contents = l.Contents,
                         Sort = l.Sort,
                         Classify1 = l.Classify1,
+                        Classify2 = l.Classify2,
                         Creater = l.Creater,
                         Createtime = l.Createtime,
                         RecStatus = l.RecStatus,
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index 500f0e2..404a19c 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -259,7 +259,7 @@
 
                                     <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍗曚环<i class="red">*</i></label>
                                     <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price"  oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
 
                                     </div>
 
@@ -1194,6 +1194,11 @@
 
         $("#OrderType").change(function () {
             var sheng = $("#OrderType").val();
+            if (sheng == '08' || sheng == '11' || sheng == '10') {
+                $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴��
+            } else {
+                $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly
+            }
             $.ajax({
                 type: "GET",
                 url: "/CooperOrder/getOrderType?OrderType=" + sheng,
@@ -1466,7 +1471,12 @@
                 $("#tousu").hide();
             }
            
-          
+            var sheng = $("#OrderType").val();
+            if (sheng == '08' || sheng == '11' || sheng == '10') {
+                $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴��
+            } else {
+                $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly
+            }
             
 
 
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
index fe12535..f5df10d 100644
--- a/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
@@ -23,6 +23,10 @@
 
             },
             {
+                label: '娉曟潯', name: 'Classify2', labtype: 'txt', hidden: false, width: 100,
+
+            },
+            {
                 label: '鎺掑簭', name: 'Sort', labtype: 'txt', hidden: true, width: 50,
 
             },

--
Gitblit v1.9.1