From c5a146f28935019016d0d0fa93b7e8d91a8388e8 Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期二, 04 十一月 2025 12:22:38 +0800
Subject: [PATCH] 1111

---
 pages/index.vue |   72 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/pages/index.vue b/pages/index.vue
index 9acd8c1..70a133f 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -17,18 +17,18 @@
 			<view class="tab-item" :class="{ active: currentTab === 4 }" @click="changeTab(4)">
 				鐢熶骇鎶ュ伐
 			</view>
-			<view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
+			<!-- <view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)">
 				寮�宸ュ畬宸�
-			</view>
+			</view> -->
 			<view class="tab-item" :class="{ active: currentTab === 5 }" @click="changeTab(5)">
 				e-SOP
 			</view>
 			<view class="tab-item" :class="{ active: currentTab === 6 }" @click="changeTab(6)">
 				宸ヨ壓鍙傛暟
 			</view>
-			<view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)">
+			<!-- <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)">
 				鎵撳嵃鏈鸿缃�
-			</view>
+			</view> -->
 
 		</view>
 		<view class="font"></view>
@@ -398,7 +398,7 @@
 			getPrintInfo() {
 				var mac = "ac:f4:2c:20:0d:b4";
 				
-				mac = "e8:51:9e:7d:dc:95";
+				mac = "74:24:ca:4f:b7:9b";
 				this.$post({
 					url: "/DevMachine/GetDevMachineByPdaMac",
 					data: {
@@ -418,43 +418,43 @@
 				});
 				
 				
-	// 			if (plus.os.name == "Android") {
-	// 				//鑾峰彇鎵嬫満MAC鍦板潃
-	// 				var Context = plus.android.importClass("android.content.Context");
-	// 				var WifiManager = plus.android.importClass("android.net.wifi.WifiManager");
-	// 				var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
-	// 				var WifiInfo = plus.android.importClass("android.net.wifi.WifiInfo");
-	// 				var wifiInfo = wifiManager.getConnectionInfo();
-	// 				mac = wifiInfo.getMacAddress();
+	 			if (plus.os.name == "Android") {
+	 				//鑾峰彇鎵嬫満MAC鍦板潃
+	 				var Context = plus.android.importClass("android.content.Context");
+	 				var WifiManager = plus.android.importClass("android.net.wifi.WifiManager");
+	 				var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
+	 				var WifiInfo = plus.android.importClass("android.net.wifi.WifiInfo");
+	 				var wifiInfo = wifiManager.getConnectionInfo();
+	 				mac = wifiInfo.getMacAddress();
 					
-	// 				//濡傛灉mac涓衡��02:00:00:00:00:00鈥濓紝鍒欏彲鑳芥槸瀹夊崜6.0浠ヤ笂鐗堟湰锛屽垯浣跨敤鍙︿竴绉嶆柟娉曡幏鍙杕ac鍦板潃
-	// 				if (mac == "02:00:00:00:00:00") {
-	// 					mac = this.getMacNew();
-	// 				}
-	// 				//濡傛灉mac浣跨敤鏂版柟娉曚緷鐒舵槸鈥�02:00:00:00:00:00鈥濆垯涓嶈繘琛屼繚瀛�
-	// 				if (mac == "02:00:00:00:00:00") {
-	// 					return;
-	// 				}
-	// 				uni.setStorageSync('pdaMac', mac);
+	 				//濡傛灉mac涓衡��02:00:00:00:00:00鈥濓紝鍒欏彲鑳芥槸瀹夊崜6.0浠ヤ笂鐗堟湰锛屽垯浣跨敤鍙︿竴绉嶆柟娉曡幏鍙杕ac鍦板潃
+	 				if (mac == "02:00:00:00:00:00") {
+	 					mac = this.getMacNew();
+	 				}
+	 				//濡傛灉mac浣跨敤鏂版柟娉曚緷鐒舵槸鈥�02:00:00:00:00:00鈥濆垯涓嶈繘琛屼繚瀛�
+	 				if (mac == "02:00:00:00:00:00") {
+	 					return;
+	 				}
+	 				uni.setStorageSync('pdaMac', mac);
 
-	// 				this.$post({
-	// 					url: "/DevMachine/GetDevMachineByPdaMac",
-	// 					data: {
-	// 						pdaMac: mac,
-	// 					}
-	// 				}).then(res => {
-	// 					let devMachine = res.data.tbBillList;
-	// 					this.machineNo = devMachine.machineNo;
-	// 					this.machineName = "褰撳墠鏈哄彴锛�" + this.machineNo + "鍙锋敞濉戞満";
+	 				this.$post({
+	 					url: "/DevMachine/GetDevMachineByPdaMac",
+	 					data: {
+	 						pdaMac: mac,
+	 					}
+	 				}).then(res => {
+	 					let devMachine = res.data.tbBillList;
+	 					this.machineNo = devMachine.machineNo;
+	 					this.machineName = "褰撳墠鏈哄彴锛�" + this.machineNo + "鍙烽娇杞満";
 
-	// 					uni.setStorageSync('machineNo', this.machineNo);
-	// 					uni.setStorageSync('printMac', devMachine.printMac);
+	 					uni.setStorageSync('machineNo', this.machineNo);
+	 					uni.setStorageSync('printMac', devMachine.printMac);
  
 
-	// 					this.getWomdaaIsShow();
+	 					this.getWomdaaIsShow();
 
-	// 				});
-	// 			}
+	 				});
+	 			}
 			},
 			save() {
 				let data = this.selectedItems();

--
Gitblit v1.9.3