瀏覽代碼

小票打印机

zhongtianhaoyuan 2 年之前
父節點
當前提交
732adbc89d
共有 2 個文件被更改,包括 15 次插入6 次删除
  1. 2 2
      config/index.js
  2. 13 4
      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.110.67:9100/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9100/',
 	// 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:8099/',
 	 // baseUrlNew: 'http://192.168.110.82:8090/',
 	 // baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// 上传图片的
 	// 上传图片的
-	// baseUrlNew: 'https://api2.eliangeyun.com/',
+	baseUrlNew: 'https://api2.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 	debug: false
 }
 }

+ 13 - 4
pages/erpbusiness/sendCommand.vue

@@ -159,10 +159,19 @@
 		},
 		},
 		methods: {
 		methods: {
 			clearBlue() {
 			clearBlue() {
-				this.$store.commit('BLEInformationSet', '');
-				uni.showToast({
-					title: '请重新打印质检小票',
-					icon: 'none'
+				
+				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() {
 			goToList() {