ysy пре 1 година
родитељ
комит
9f73ac5303
2 измењених фајлова са 26 додато и 17 уклоњено
  1. 9 0
      pages/pda/feeding/details.vue
  2. 17 17
      pages/pda/sample/inspection/index.vue

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

@@ -662,6 +662,15 @@
 			opacity: 0.6;
 			opacity: 0.6;
 		}
 		}
 	}
 	}
+	
+		.operate_box2 { 
+			/deep/ .u-button {
+				margin-top: 20rpx;
+				width: 150rpx;
+	
+		}
+		}
+
 
 
 
 
 
 

+ 17 - 17
pages/pda/sample/inspection/index.vue

@@ -157,12 +157,14 @@
 							this.isLastJob = false
 							this.isLastJob = false
 						}
 						}
 
 
-						if (m.normalQuality == null || m.workOrderType == 2) {
+
+						if (!Object.prototype.hasOwnProperty.call(m, 'normalQuality')) {
 							this.$set(m, 'normalQuality', {})
 							this.$set(m, 'normalQuality', {})
-							m.normalQuality.quantity = 0
-							m.normalQuality.inspectionId = this.inspectionId
-							m.normalQuality.inspectionName = this.inspectionName
 						}
 						}
+						m.normalQuality.quantity = 0
+						m.normalQuality.inspectionId = this.inspectionId
+						m.normalQuality.inspectionName = this.inspectionName
+
 
 
 
 
 						m.lastObj = {
 						m.lastObj = {
@@ -173,7 +175,7 @@
 						m.feedType = 3
 						m.feedType = 3
 
 
 
 
-						console.log(333, m)
+				
 
 
 						delete m.id
 						delete m.id
 
 
@@ -305,21 +307,19 @@
 
 
 				this.List[0].normalQuality.inspectionList = this.inspectionList
 				this.List[0].normalQuality.inspectionList = this.inspectionList
 
 
+				// let _arr = JSON.parse(JSON.stringify(this.List))
+				// _arr.forEach(e => {
+				// 	e.turnover.forEach((o) => {
+				// 		o.extInfo.positionList.forEach(f => {
+				// 			f.quantity = f.quantity - Number(f.sampleNum)
+				// 			f.sampleNum = 0
 
 
-				let _arr = JSON.parse(JSON.stringify(this.List))
-				_arr.forEach(e => {
-					e.turnover.forEach((o) => {
-						o.extInfo.positionList.forEach(f => {
-							f.quantity = f.quantity - Number(f.sampleNum)
-							f.sampleNum = 0
-
-						})
-					})
-
-				})
+				// 		})
+				// 	})
 
 
+				// })
 
 
-				batchSave(_arr).then(res => {
+				batchSave(this.List).then(res => {
 					uni.navigateBack()
 					uni.navigateBack()
 				})
 				})
 			},
 			},