gjy 2 роки тому
батько
коміт
83182449a4
2 змінених файлів з 19 додано та 2 видалено
  1. 2 2
      config/index.js
  2. 17 0
      pages/erpbusiness/sendCommand.vue

+ 2 - 2
config/index.js

@@ -4,13 +4,13 @@ const dev = {
 	// baseUrlNew: 'http://192.168.110.67:9100/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9100/',
-	baseUrlNew: 'http://192.168.110.138:8090/',
+	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8099/',
 	 // baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// 上传图片的
-	// baseUrlNew: 'https://api2.eliangeyun.com/',
+	baseUrlNew: 'https://api2.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 17 - 0
pages/erpbusiness/sendCommand.vue

@@ -157,6 +157,23 @@
 			//    })	
 		},
 		methods: {
+
+			clearBlue() {
+				
+				let tmp = this.Bluetooth;
+				uni.closeBLEConnection({
+					deviceId:tmp.BLEInformation.deviceId
+				})
+				tmp.BLEInformation.deviceId = ''
+				this.$store.commit('BLEInformationSet', tmp);
+				// uni.showToast({
+				// 	title: '请重新打印质检小票',
+				// 	icon: 'none'
+				// })
+				uni.navigateBack({
+					delta:1
+				})
+			},
 			goToList() {
 				uni.navigateTo({
 					url: '/pages/erpbusiness/quality_testing?managementType=1'