zxz 2 年之前
父节点
当前提交
ef44466649
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pages/erpbusiness/edit_quality_testing.vue

+ 5 - 0
pages/erpbusiness/edit_quality_testing.vue

@@ -582,6 +582,7 @@
 						that.value = false
 					}
 					that.gridList = data
+					
 					if(that.gridList.type=='干粮'){
 						if (this.gridList.goodsName &&
 							this.gridList.bulkDensity &&
@@ -798,6 +799,8 @@
 				
 			},
 			deductionchange(){
+				console.log(this.gridList.type,this.tidalGrainPrice,
+				Number(this.tidalGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(3))
 				if(this.gridList.type=='干粮'){
 					if(this.dryGrainPrice!=''){
 						console.log(Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)),Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(2))
@@ -1033,7 +1036,9 @@
 								}
 							} else {
 								that.gridList.tidalGrainPrice = res.data.data
+								
 							}
+							that.tidalGrainPrice = that.gridList.tidalGrainPrice
 						})
 					}