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/My.js |   73 ++++++++++++++++++++++++++++++------
 1 files changed, 60 insertions(+), 13 deletions(-)

diff --git a/H5/Js/My.js b/H5/Js/My.js
index 3e71506..d4fa6a0 100644
--- a/H5/Js/My.js
+++ b/H5/Js/My.js
@@ -44,7 +44,11 @@
                     img: "../Images/print.png",
                     path: '/H5/Config.aspx'
                 }
-            ]
+            ],
+            actions: [],//鍒楄〃鐨勫��
+            orgName: "",//绾夸綋鍚嶇О
+            orgId: "",//绾夸綋缂栧彿
+            show: false,//鍒楄〃灞曠ず
         }
     },
     mounted() {
@@ -71,24 +75,67 @@
                     // on cancel
                 });
         },
+        //goMsg() {
+        //    var that = this;
+        //    window.location.href = "/H5/Message.aspx";
+        //},
         goMsg() {
             var that = this;
-            window.location.href = "/H5/Message.aspx";
+            uni.navigateTo({
+                url: "/pages/index/test/PrintInit?type=1",
+
+            });
         },
-        goOrg() {
+        changeOrg() {
+            this.show = true;
             var that = this;
-            this.$dialog.confirm({
-                title: '鍙嬫儏鎻愮ず',
-                message: '纭畾鍒囨崲褰撳墠缁勭粐锛�',
-                confirmButtonText: '纭畾',
-                cancelButtonText: '鍙栨秷'
-            })
-                .then(() => {
-                    window.location.href = "/UserLogin.aspx";
+            that.actions = [];
+            that.isLoading = true;
+            that.AxiosHttp("post", 'Login/changeOrg', {
+                userName: that.userInfo.loginAccount
+            }, false)
+                .then(function (res) {
+                    var json = res;
+                    if (json.status == 0) {
+
+                        if (json.data.tbBillList.length <= 0) {
+                            that.$toast.fail("娌℃湁鍙敤鐨勬暟鎹�");
+                            that.$playSound('error');
+                        } else {
+                            that.itemInfo = json.data.tbBillList;
+                            that.actions = json.data.tbBillList.map(item => {
+                                return {
+                                    name: item.orgName,
+                                    orgId: item.orgId,  // 鏂板
+                                    orgNo: item.orgNo  // 鏂板
+                                };
+                            });
+                        }
+                    }
+                    else {
+                        that.$toast.fail(json.message);
+                        that.$playSound('error');
+                    }
+                    that.isLoading = false;
                 })
-                .catch(() => {
-                    // on cancel
+                .catch(function (error) {
+                    that.isLoading = false;
+                    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
+                    console.log(error);
                 });
         },
+
+        onSelect(action) {
+            //this.xtNum = action.lineNo;  // 缁戝畾line_no鍒皒tNum瀛楁
+            //console.log("閫夋嫨鐨勭嚎浣撶紪鍙凤細", this.xtNum);
+            //this.xtName = action.name;  // 缁戝畾name鍒皒tName瀛楁
+            //this.show = false;
+
+            Cookies.set('orgId', action.orgId);
+            Cookies.set('orgNo', action.orgNo);
+            Cookies.set('orgName', action.name);
+            this.show = false;
+        },
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3