From 45c0e976bd0864dbf103717b45d68a6e0419f456 Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期日, 27 六月 2021 13:09:34 +0800
Subject: [PATCH] 工资核对状态逻辑修改,3天自动确认;物品添加默认启用;

---
 zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
index 4be68de..3ded268 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Edit.cshtml
@@ -270,10 +270,23 @@
             "hideMethod": "fadeOut"
         };
 
+        var id = '@Model.Id';
+
+         $(function () {
+
+             if (id.length > 0) {
+
+             }
+             else {
+                 $("#GoodsStatus").val("A");
+             }
+
+            });
 
 
 
-         var id = '@Model.Id';
+
+
 
         var delPosition = function () {
             if (id == null || id == '') {
@@ -315,7 +328,7 @@
         // 淇濆瓨宀椾綅淇℃伅
         var savePosition = function () {
 
-          
+
 
             if ($("#ClassifyId").val() == '') {
                 toastr.warning("鐗╁搧绫诲埆涓嶈兘涓虹┖");
@@ -329,7 +342,7 @@
                 toastr.warning("鐗╁搧鏁伴噺涓嶈兘涓虹┖");
                 return;
             }
-            
+
             if ($("#GoodsStatus").val() == '') {
                 toastr.warning("鐗╁搧鐘舵�佷笉鑳戒负绌�");
                 return;
@@ -339,7 +352,7 @@
                 toastr.warning("鐗╁搧鍚嶇О涓嶈兘涓虹┖");
                 return;
             }
-            
+
 
 
 
@@ -354,7 +367,7 @@
                 global: false,
                 data: $('form').serializeArray(),
                 success: function (data) {
-                  
+
 
 
                         if (data.Result) {

--
Gitblit v1.9.1