wsx 10 ماه پیش
والد
کامیت
9aa6e3c41d
1فایلهای تغییر یافته به همراه26 افزوده شده و 26 حذف شده
  1. 26 26
      pages/warehouse/outHouse/QRCode.vue

+ 26 - 26
pages/warehouse/outHouse/QRCode.vue

@@ -110,32 +110,32 @@
 				let _this = this
 				let obj = {}
 				
-				let kk = {
-					"inoutType": "in",
-					"inId": "1956166290880073730",
-					"packageNo": "55408270001",
-					"assetType": "1,9",
-					'batchNo': '827'
-				}
-
-				_this.getCodeProduct(kk)
-
-
-				// uni.scanCode({
-				// 	success: (res) => {
-				// 		res.result.split('&').forEach(
-				// 			(item) =>
-				// 			(obj[item.split('=')[0]] = decodeURIComponent(
-				// 				item.split('=')[1]
-				// 			))
-				// 		);
-				// 		console.log(obj);
-				// 		if (obj.inoutType === 'in') {
-				// 			_this.getCodeProduct(obj)
-				// 		}
-				// 	},
-				// 	complete: (res) => {}
-				// })
+				// let kk = {
+				// 	"inoutType": "in",
+				// 	"inId": "1956166290880073730",
+				// 	"packageNo": "55408270001",
+				// 	"assetType": "1,9",
+				// 	'batchNo': '827'
+				// }
+
+				// _this.getCodeProduct(kk)
+
+
+				uni.scanCode({
+					success: (res) => {
+						res.result.split('&').forEach(
+							(item) =>
+							(obj[item.split('=')[0]] = decodeURIComponent(
+								item.split('=')[1]
+							))
+						);
+						console.log(obj);
+						if (obj.inoutType === 'in') {
+							_this.getCodeProduct(obj)
+						}
+					},
+					complete: (res) => {}
+				})
 
 			},