ソースを参照

优化 质检报工

ysy 2 年 前
コミット
9e7fbcc1aa

+ 1 - 1
pages/pda/sample/components/inspectionBom.vue

@@ -128,7 +128,7 @@
 					if(Number(L.quantity) > 0 && Number(L.quantity) != NaN && L.id != -1) {
 							this.count = Number(this.count) + Number(L.quantity)
 							this.inspectionList[this.inspectionList.length - 1]['quantity'] = 	this.count
-					
+					       
 							this.normalQuality['quantity'] = this.count
 					}
 				

+ 21 - 14
pages/pda/sample/components/qualityStat.vue

@@ -17,8 +17,6 @@
 
 
 
-
-
 				<view class="item rx-sc">
 					<view class="rx ww55 ">
 						<view class="lable  rx-cc">废品数量</view>
@@ -37,22 +35,20 @@
 				</view>
 
 
+			</view>
 
 
-
-
-
-
-
-
-
-
-
+			<view class="content_table" v-if='normalQuality.length > 0'>
+				<view class="item">
+					<view class="lable rx-cc">废品总数</view>
+					<view class="content color157">
+						{{ wasteCount }} {{ unit }}
+					</view>
+				</view>
 			</view>
 
 
 
-
 		</view>
 
 
@@ -78,11 +74,18 @@
 		},
 		data() {
 			return {
-
+              wasteCount: 0, //废品总数
+			  unit: null,
 			}
 		},
 		created() {
-
+			this.wasteCount = 0
+            if(this.normalQuality && this.normalQuality.length > 0) {
+				this.normalQuality.forEach(e => {
+					 this.unit = e.unit
+					this.wasteCount =  Number(this.wasteCount) + Number(e.quantity)
+				})
+			}
 		},
 		methods: {
 
@@ -247,4 +250,8 @@
 
 
 	}
+	
+	.color157{
+		color: #157a2c;
+	}
 </style>

+ 0 - 2
pages/pda/sample/index/jobBooking.vue

@@ -109,8 +109,6 @@
 
 
 
-
-
 			save() {