ysy 2 роки тому
батько
коміт
0594839f9e

+ 3 - 3
pages/home/home.vue

@@ -107,10 +107,10 @@
 			},
 			// 相机扫码
 			HandlScanCode() {
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
-						_this.Scancodedate(res.result)
+					success: (res) => {
+						this.Scancodedate(res.result)
 					}
 				})
 				//_this.Scancodedate('res')

+ 2 - 2
pages/pda/feeding/components/productsBom.vue

@@ -1,11 +1,11 @@
 <template>
 	<view>
 
-		<view class="title_box rx-bc">
+		<view class="title_box rx-bc" v-if="productsObj.name != 'undefined' && productsObj.feedQuantity != 'undefined' ">
 			<view class="name">在制品</view>
 		</view>
 
-		<view class="material rx-ss">
+		<view class="material rx-ss" v-if="productsObj.name != 'undefined' && productsObj.feedQuantity != 'undefined' ">
 
 			<view class="content_table">
 

+ 9 - 9
pages/pda/feeding/details.vue

@@ -353,10 +353,10 @@
 				// this.scanData('SCJHGD20240117002', type, id)
 				// return false
 
-				let _this = this
+			
 				uni.scanCode({
-					success: function(res) {
-						_this.scanData(res.result, type, id)
+				   success: (res) => {
+						this.scanData(res.result, type, id)
 					}
 				})
 
@@ -394,10 +394,10 @@
 			scanIt(id) {
 				console.log(id)
 
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItData(res.result, id)
+					 success: (res) => {
+						this.scanItData(res.result, id)
 						console.log(res.result, id)
 					}
 				})
@@ -491,10 +491,10 @@
 			handlScanCode() {
 
 
-				let _this = this
+			
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItAllData(res.result)
+					 success: (res) => {
+						 this.scanItAllData(res.result)
 
 					}
 				})

+ 2 - 2
pages/pda/feeding/index/index.vue

@@ -277,9 +277,9 @@
 
 			// 相机扫码
 			HandlScanCode() {
-				let _this = this
+		
 				uni.scanCode({
-					success: function(res) {
+				 success: (res) => {
 						console.log(res)
 					}
 				})

+ 6 - 6
pages/pda/jobBooking/index/index.vue

@@ -273,10 +273,10 @@
 
 
 
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItAllData(res.result)
+				 success: (res) => {
+						this.scanItAllData(res.result)
 					}
 				})
 
@@ -340,10 +340,10 @@
 
 			handleScan(id, type) {
 
-				let _this = this
+		
 				uni.scanCode({
-					success: function(res) {
-						_this.scanData(res.result, type, id)
+					 success: (res) => {
+						this.scanData(res.result, type, id)
 					}
 				})
 			},

+ 2 - 2
pages/pda/picking/index/index.vue

@@ -280,9 +280,9 @@
 
 			// 相机扫码
 			HandlScanCode() {
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
+				 success: (res) => {
 						console.log(res)
 					}
 				})

+ 3 - 3
pages/pda/sample/index/index.vue

@@ -184,10 +184,10 @@
 
 
 
-				let _this = this
+		
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItAllData(res.result)
+				 success: (res) => {
+						this.scanItAllData(res.result)
 					}
 				})
 

+ 3 - 4
pages/pda/sample/inspection/index.vue

@@ -228,11 +228,10 @@
 
 			scanIt(id) {
 
-
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItData(res.result, id)
+		          success: (res) => {
+						this.scanItData(res.result, id)
 					}
 				})
 			},

+ 6 - 6
pages/pda/turnover/components/qualityTurnoverBom.vue

@@ -175,14 +175,14 @@
 				this.wordInfo.categoryCode = arr[0].categoryCode
 
 
-				this.$refs.turnoverRef.open('w0300000003217001', this.wordInfo, this.newList, this.wordItem, index)
-				return false
+				// this.$refs.turnoverRef.open('SL-020-SB-001011003', this.wordInfo, this.newList, this.wordItem, index)
+				// return false
+		
 
-				let _this = this
+				
 				uni.scanCode({
-					success: function(res) {
-						_this.$refs.turnoverRef.open(res.result, this.wordInfo, this.newList, this.wordItem,
-							index)
+					success: (res) => {
+						this.$refs.turnoverRef.open(res.result, this.wordInfo, this.newList, this.wordItem,	index)
 					}
 				})
 

+ 5 - 6
pages/pda/turnover/components/turnoverBom.vue

@@ -198,14 +198,13 @@
 				this.wordInfo.categoryCode = arr[0].categoryCode
 
 
-				this.$refs.turnoverRef.open('w0300000003431001', this.wordInfo, this.newList, this.wordItem, index)
-				return false
+				// this.$refs.turnoverRef.open('w0300000003431001', this.wordInfo, this.newList, this.wordItem, index)
+				// return false
 
-				let _this = this
+		
 				uni.scanCode({
-					success: function(res) {
-
-						_this.$refs.turnoverRef.open(res.result, this.wordInfo, this.newList, this.wordItem,
+				success: (res) => {
+						this.$refs.turnoverRef.open(res.result, this.wordInfo, this.newList, this.wordItem,
 							index)
 					}
 				})

+ 2 - 3
pages/pda/turnover/index/index.vue

@@ -108,10 +108,9 @@
 
 			handleScan(id, type) {
 
-				let _this = this
 				uni.scanCode({
-					success: function(res) {
-						_this.scanData(res.result, type, id)
+				success: (res) => {
+						this.scanData(res.result, type, id)
 					}
 				})
 

+ 4 - 5
pages/pda/turnover/index/quality.vue

@@ -135,13 +135,12 @@
 
 
 			scanIt(id) {
-				console.log(id)
-				let _this = this
-				// 	_this.scanItData('w0300000002579001', id)
+			
+				// 	this.scanItData('w0300000002579001', id)
 				// return false
 				uni.scanCode({
-					success: function(res) {
-						_this.scanItData(res.result, id)
+					success: (res) => {
+						this.scanItData(res.result, id)
 					}
 				})
 			},