qinqi 3 éve
szülő
commit
73033e270c

+ 2 - 2
wwwroot/App_Code/WCF.cs

@@ -210,9 +210,9 @@ public class WCF
                 jsonStr = "重复提交";
             }
             //成检重复判断 2020-06-28 xuwei
-            else if (json["d"]["Status"].ToString() == "999" && json["d"]["Result"].ToString() != "[]")
+            else if (json["d"]["Status"].ToString() == "666" && json["d"]["Result"].ToString() != "[]")
             {
-                jsonStr = "999:" + json["d"]["Result"].ToString();
+                jsonStr = "666:" + json["d"]["Result"].ToString();
             }
             else
             {

+ 2 - 2
wwwroot/main/Assemble/api/AddCheckBarcode_WCF.ashx

@@ -49,9 +49,9 @@ public class AddCheckBarcode_WCF : IHttpHandler, IReadOnlySessionState
                     {
                         jsonStr = ("{'success':false,'message':'PLC写入失败!','rows':'" + jsonStr + "'}").Replace("'", "\"");
                     }
-                    else if (jsonStr.IndexOf("999") >= 0)
+                    else if (jsonStr.IndexOf("666") >= 0)
                     {
-                        jsonStr = ("{'success':false,'message':'" + jsonStr.Replace("999:","") + "','rows':'" + jsonStr + "'}").Replace("'", "\"");
+                        jsonStr = ("{'success':false,'message':'" + jsonStr.Replace("666:","") + "','rows':'" + jsonStr + "'}").Replace("'", "\"");
                     }
                     else
                     {

+ 3 - 2
wwwroot/main/Assemble/index.html

@@ -526,7 +526,7 @@
         // 成员变量
         var procedureId = request('id'); // 当前页工序ID
         var procedureName = ""; // 当前页工序名称
-        var action = "";            // 操作方式 insert update
+        var action = "insert";            // 操作方式 insert update
         var checkFlag = '1';        // 计件标记变量 1新建 2改判 3冷补后
         var printBarcode = false;   // 是否打印条码
         var productionDataID = 0;   // 已完生产数据ID
@@ -2731,7 +2731,8 @@
                         "LeakFlag6Position": bulies,
                     }];
                 }
-
+                console.log(action);
+                console.log(productionDataEntitys);
                 //提交到接口
                 $.post('api/AddCheckBarcode_WCF.ashx', { 'procedureID': procedureId, 'productionDataEntitys': JSON.stringify(productionDataEntitys), 'barcode': barcode }, function (data) {
                     var json = JSON.parse(data);