ysy 2 gadi atpakaļ
vecāks
revīzija
dadcea8c00
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8 8
      pages/pda/jobBooking/components/jobBom.vue

+ 8 - 8
pages/pda/jobBooking/components/jobBom.vue

@@ -11,11 +11,11 @@
 			<view class="content_table">
 
 
-				<view class="item rx-sc">
-					<view class="rx  ">
+				<view class="item rx-sc"  v-if="Object.prototype.hasOwnProperty.call(item, 'product')">
+					<view class="rx ">
 						<view class="lable lable220 rx-cc ">投料数量</view>
-						<view class="content ">
-							{{ item.formedNumLast}}
+						<view class="content">
+							{{ item.product[0] &&  item.product[0].feedQuantity }}
 						</view>
 					</view>
 				</view>
@@ -189,9 +189,9 @@
 				this.$emit('modeNum', total)
 
 
-				if (this.item.formedNumLast > 0 && Number(this.item.workReportInfo.formedNum)) {
+				if (this.item.product[0] && this.item.product[0].feedQuantity > 0 && Number(this.item.workReportInfo.formedNum)) {
 
-					this.$set(this.notFormedList[0], 'notFormedNum', this.item.formedNumLast - Number(this.item
+					this.$set(this.notFormedList[0], 'notFormedNum', this.item.product[0].feedQuantity - Number(this.item
 						.workReportInfo.formedNum))
 					this.notForme()
 
@@ -226,8 +226,8 @@
 				this.$set(this.notFormedList[0], 'notFormedWeight', weight)
 
 
-				if (this.item.formedNumLast > 0 && Number(this.notFormedList[0].notFormedNum)) {
-					this.$set(this.item.workReportInfo, 'formedNum', this.item.formedNumLast - Number(this.notFormedList[0]
+				if (this.item.product[0].feedQuantity > 0 && Number(this.notFormedList[0].notFormedNum)) {
+					this.$set(this.item.workReportInfo, 'formedNum', this.item.product[0].feedQuantity - Number(this.notFormedList[0]
 						.notFormedNum))