From 964a84d26faa7708ae8905c3b8b92a8527c27787 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 10 八月 2021 15:45:29 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
index 8349980..5c5350c 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
@@ -270,14 +270,18 @@
             "hideMethod": "fadeOut"
         };
 
-
-        
-
         var id = '@Model.Id';
 
-        if (id == null || id == '') {
-            $("#GoodsStatus").val("A"); 
-        }
+         $(function () {
+
+             if (id.length > 0) {
+
+             }
+             else {
+                 $("#GoodsStatus").val("A");
+             }
+
+            });
 
         var delPosition = function () {
             if (id == null || id == '') {
@@ -319,7 +323,7 @@
         // 淇濆瓨宀椾綅淇℃伅
         var savePosition = function () {
 
-          
+
 
             if ($("#ClassifyId").val() == '') {
                 toastr.warning("鐗╁搧绫诲埆涓嶈兘涓虹┖");
@@ -333,7 +337,7 @@
                 toastr.warning("鐗╁搧鏁伴噺涓嶈兘涓虹┖");
                 return;
             }
-            
+
             if ($("#GoodsStatus").val() == '') {
                 toastr.warning("鐗╁搧鐘舵�佷笉鑳戒负绌�");
                 return;
@@ -343,7 +347,7 @@
                 toastr.warning("鐗╁搧鍚嶇О涓嶈兘涓虹┖");
                 return;
             }
-            
+
 
 
 
@@ -358,7 +362,7 @@
                 global: false,
                 data: $('form').serializeArray(),
                 success: function (data) {
-                  
+
 
 
                         if (data.Result) {

--
Gitblit v1.9.1