From 7ae27d18e908f643d873b5312bf88df5cfdb7503 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 05 九月 2025 08:17:14 +0800
Subject: [PATCH] 1.其他出库拆分+制单人 2.生产领料加开工时间

---
 H5/Js/UserLogin.js |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/H5/Js/UserLogin.js b/H5/Js/UserLogin.js
index 7ab253d..1eb6aaf 100644
--- a/H5/Js/UserLogin.js
+++ b/H5/Js/UserLogin.js
@@ -11,13 +11,14 @@
     },
     mounted() {
         var that = this;
-        if (typeof (Cookies.get('phone')) == "undefined") { }
-        else {
-            that.phone = Cookies.get('phone');
-            that.passwd = Cookies.get('passwd');
+        if (typeof (Cookies.get('loginAccount')) == "undefined") {
         }
-        that.phone = "admin";
-        that.passwd = "123456";
+        else {
+            that.phone = Cookies.get('loginAccount');
+            //that.passwd = Cookies.get('passwd');
+        }
+        //that.phone = "admin";
+        //that.passwd = "123456";
     },
     methods: {
         onSubmit(name) {
@@ -37,9 +38,17 @@
                         var _userGuid = json.data.tbBillList.guid;
                         var _userAccount = json.data.tbBillList.account;
                         var _userName = json.data.tbBillList.userName;
+                        var _orgId = json.data.tbBillList.orgId;
+                        var _orgNo = json.data.tbBillList.orgNo;
+                        var _orgName = json.data.tbBillList.orgName;
                         Cookies.set('loginGuid', _userGuid);
                         Cookies.set('loginAccount', _userAccount);
                         Cookies.set('loginName', _userName);
+                        Cookies.set('orgId', _orgId);
+                        Cookies.set('orgNo', _orgNo);
+                        Cookies.set('orgName', _orgName);
+                        console.log(json.data.tbBillList);
+                        console.log(Cookies);
                         window.location.href = ("/H5/Default.aspx?userGuid=" + _userGuid + "&userAccount=" + _userAccount);
                     }
                     else {

--
Gitblit v1.9.3