ysy 1 tahun lalu
induk
melakukan
43223b0250

+ 7 - 13
pages/pda/jobBooking/components/jobBom.vue

@@ -9,7 +9,7 @@
 
 
 			<view class="content_table">
-             
+
 
 				<view class="item rx-sc" v-if="Object.prototype.hasOwnProperty.call(item, 'product')">
 					<view class="rx ">
@@ -128,17 +128,7 @@
 		},
 
 		watch: {
-			// objItem: {
-			// 	immediate: true,
-			// 	deep: true,
-			// 	handler(newVal) {
-			// 		this.item = newVal
-			// 		 if(this.item.workReportInfo.formedNum) {
-			// 			 this.blurNum()
-			// 		 }
-			// 		this.$forceUpdate()
-			// 	}
-			// },
+
 			notFormed: {
 				immediate: true,
 				deep: true,
@@ -175,7 +165,11 @@
 		methods: {
 
 
-
+			setFormedNum(num) {
+				this.item.workReportInfo.formedNum = num
+				// this.blurNum()
+				this.$forceUpdate()
+			},
 
 
 			penalize() {

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

@@ -22,7 +22,7 @@
 					</modelBom>
 
 
-					<jobBom v-if='isLoad' :item='objData' :notFormed='objData.notFormedList' @penalize='penalize'
+					<jobBom v-if='isLoad' :item='objData' ref='jobRef' :notFormed='objData.notFormedList' @penalize='penalize'
 						@modeNum='modeNum'></jobBom>
 
 					<palletBom v-if="objData.palletList.length != 0" :palletList='objData.palletList'></palletBom>
@@ -385,8 +385,8 @@
 
 
 				formedNumFn(num) {
-					this.objData.workReportInfo.formedNum = num
-					this.$forceUpdate()
+					this.$refs.jobRef.setFormedNum(num)
+					
 				},