From bbae990ed1f4574fa954753faeae159052d03fba Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期二, 27 一月 2026 16:14:06 +0800
Subject: [PATCH] 待我审核增加销售订单,采购订单

---
 utils/getuiUtils.js |   52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/utils/getuiUtils.js b/utils/getuiUtils.js
index 5268ada..c9e8e10 100644
--- a/utils/getuiUtils.js
+++ b/utils/getuiUtils.js
@@ -1,16 +1,58 @@
+import {
+    CommonUtils
+} from "./common";
+
 class getuiInstance {
     constructor() {
         this.cid = ""
     }
 
-    getClientID() {
+    getClientID(Userbm, UserName) {
         // #ifdef APP-PLUS
-        plus.push.getClientInfoAsync((info) => {
-            this.cid = info["clientid"]
-            console.log('cid: ', this.cid);
-        });
+        const info = plus.push.getClientInfo()
+        this.cid = info["clientid"]
+        console.log('cid: ', this.cid);
+        this.setUserClientIDRelative(Userbm, UserName, this.cid, 1)
         // #endif
+    };
+
+    async setUserClientIDRelative(Userbm, UserName, ClientID, Online) {
+        try {
+            let res = await CommonUtils.doRequest2Async({
+                url: "/Web/SetGy_UserClientIdConnection",
+                method: "POST",
+                data: {
+                    HUserbm: Userbm,
+                    HUserName: UserName,
+                    HClientID: ClientID,
+                    HOnline: Online
+                }
+            })
+            
+
+            let {
+                data,
+                count,
+                Message
+            } = res.data
+            
+            if(count != 1) {
+                CommonUtils.showTips({
+                    title: "娓╅Θ鎻愮ず",
+                    message: Message
+                })
+            }
+        }catch(err) {
+            CommonUtils.showTips({
+                title: "娓╅Θ鎻愮ず",
+                message: err
+            })
+        }
+
     }
 }
 
+
+
+
 export default new getuiInstance()
\ No newline at end of file

--
Gitblit v1.9.1