From 38b802f2647e7b5f7e066befedfec9d0aafff437 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 29 七月 2021 16:55:51 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
index 4be68de..5c5350c 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
@@ -270,10 +270,18 @@
             "hideMethod": "fadeOut"
         };
 
+        var id = '@Model.Id';
 
+         $(function () {
 
+             if (id.length > 0) {
 
-         var id = '@Model.Id';
+             }
+             else {
+                 $("#GoodsStatus").val("A");
+             }
+
+            });
 
         var delPosition = function () {
             if (id == null || id == '') {
@@ -315,7 +323,7 @@
         // 淇濆瓨宀椾綅淇℃伅
         var savePosition = function () {
 
-          
+
 
             if ($("#ClassifyId").val() == '') {
                 toastr.warning("鐗╁搧绫诲埆涓嶈兘涓虹┖");
@@ -329,7 +337,7 @@
                 toastr.warning("鐗╁搧鏁伴噺涓嶈兘涓虹┖");
                 return;
             }
-            
+
             if ($("#GoodsStatus").val() == '') {
                 toastr.warning("鐗╁搧鐘舵�佷笉鑳戒负绌�");
                 return;
@@ -339,7 +347,7 @@
                 toastr.warning("鐗╁搧鍚嶇О涓嶈兘涓虹┖");
                 return;
             }
-            
+
 
 
 
@@ -354,21 +362,21 @@
                 global: false,
                 data: $('form').serializeArray(),
                 success: function (data) {
-                  
+
 
 
                         if (data.Result) {
                             //  parent._afterSave(true);
                             parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
-                            //window.location = "/Project/add?id=" + data.ReturnID;
+                            window.location = "/AdmGoodsManage/Edit";
 
 
-                            try {
-                                _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
-                            }
-                            catch (err) {
-                                parent._CloseTab1("/AdmGoodsManage/Edit/");
-                            }
+                            //try {
+                            //    _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            //}
+                            //catch (err) {
+                            //    parent._CloseTab1("/AdmGoodsManage/Edit/");
+                            //}
 
                         }
                         else {

--
Gitblit v1.9.1