|
@@ -713,11 +713,14 @@
|
|
|
|
|
|
waterContentChange(type) {
|
|
|
if (this.inspect.goodsName&&type!='water') {
|
|
|
- getDryGrainPrice({warehouseId:this.cangid,goodsName:this.inspect.goodsName})
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$set(this.inspect,'dryGrainPrice',response)
|
|
|
- })
|
|
|
+ if(!this.inspect.dryGrainPrice||this.inspect.dryGrainPrice == 0){
|
|
|
+ getDryGrainPrice({warehouseId:this.cangid,goodsName:this.inspect.goodsName})
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$set(this.inspect,'dryGrainPrice',response)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
|
|
|
this.$set(this.inspect,'buckleWeightRatio',this.purchasePriceList[i].deductWeight)
|