From 34f70b69d93447969c0094937a9693f80dde15a3 Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期五, 26 二月 2021 21:24:19 +0800
Subject: [PATCH] 销售出库跳转页签,产品入口解决新增提交问题

---
 WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
index 65db348..1d65e24 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
@@ -253,6 +253,7 @@
             $("#HMakerID").hide();
             $("#HBillerID").val(sessionStorage["HBillerID"]);
             $("#HBillerID").hide();
+            var HSourceFlag = sessionStorage["SourceFlag"];
             //榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new
 
             $("#HBarCode").focus();
@@ -473,7 +474,7 @@
         });
 
         form.on('submit(Cancel)', function () {
-            sessionStorage["SourceFlag"] = false;
+            //sessionStorage["SourceFlag"] = false;
             parent.location.href = "../../../views/index.html"
             //window.close();//鍏抽棴褰撳墠椤�
         })
@@ -629,7 +630,7 @@
                     //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json",
                     url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json",
                     type: "GET",
-                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0 },
+                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0 },
                     success: function (result) {
                         debugger;
                         if (result.count == 1) {
@@ -660,7 +661,7 @@
                                 $("#HDeptName").val(result.data.HDeptName);
                                 $("#HDeptID").val(result.data.HDeptID);
                                 $("#HSourceBillNo").val(result.data.HSourceBillNo);
-                                sessionStorage["SourceFlag"] = true;
+                                HSourceFlag = true;
                                 //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
                                 //if (result.data.HSourceBillType == "3711") {
                                 //    $("#HBillType").val("3711");
@@ -672,7 +673,7 @@
                                 element.tabChange('tab-ProductlnBill', '3');
                             }
                             else {
-                                if (sessionStorage["SourceFlag"] == "true") {
+                                if (HSourceFlag == "true") {
                                     element.tabChange('tab-ProductlnBill', '3');
                                 }
                                 else {
@@ -681,7 +682,7 @@
                                     //$("#HDeptName").val(result.data.HDept);
                                     //$("#HDeptID").val(result.data.HDeptID);
                                     $("#HSourceBillNo").val(result.data.HSourceBillNo);
-                                    sessionStorage["SourceFlag"] = true;
+                                    HSourceFlag = true;
                                     //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
                                     //if (result.data.HSourceBillType == "3711") {
                                     //    $("#HBillType").val("3711");
@@ -763,7 +764,7 @@
                     data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
                     success: function (result) {
                         if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            sessionStorage["SourceFlag"] = true;
+                            HSourceFlag = true;
                             layer.load(3)
                             element.tabChange('tab-ProductlnBill', '2');
                             table.render({

--
Gitblit v1.9.1