gjy 2 vuotta sitten
vanhempi
commit
dc0ff9d1ab
1 muutettua tiedostoa jossa 13 lisäystä ja 6 poistoa
  1. 13 6
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 13 - 6
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -1130,16 +1130,20 @@ export default {
       if (this.deptBudgetList.goodsName && type != 'water') {
         if (this.deptBudgetList.goodsName.indexOf('潮粮') != -1) {
           this.deptBudgetList.type = '潮粮'
-          this.deptBudgetList.grade = this.gradeList[1].constValue
-				  this.deptBudgetList.gradeKey = this.gradeList[1].constKey
+          if(!this.deptBudgetList.grade){
+            this.deptBudgetList.grade = this.gradeList[1].constValue
+				    this.deptBudgetList.gradeKey = this.gradeList[1].constKey
+          }
           this.deptBudgetList.imperfectGrain=8
 					this.deptBudgetList.impurity=1
 					this.deptBudgetList.mildewGrain=2
 					this.deptBudgetList.jiaorenli=0
         } else {
           this.deptBudgetList.type = '干粮'
-          this.deptBudgetList.grade = this.gradeList[1].constValue
-				  this.deptBudgetList.gradeKey = this.gradeList[1].constKey
+          if(!this.deptBudgetList.grade){
+            this.deptBudgetList.grade = this.gradeList[1].constValue
+				    this.deptBudgetList.gradeKey = this.gradeList[1].constKey
+          }
           this.deptBudgetList.imperfectGrain=8
 					this.deptBudgetList.impurity=1
 					this.deptBudgetList.mildewGrain=2
@@ -1179,7 +1183,7 @@ export default {
         })
           .toPromise()
           .then((response) => {
-            debugger
+            // debugger
             if (this.deptBudgetList.paramType == '1') {
               if(this.deptBudgetList.buckleMiscellaneous){
                 this.deptBudgetList.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(this.deptBudgetList
@@ -4029,9 +4033,12 @@ export default {
       }
     },
     selectpackingMethod(e) {
+      this.$set( this.deptBudgetList,'grade',e)
+      console.log(e,this.deptBudgetList)
       for (var i = 0; i < this.gradeList.length; i++) {
         if (this.gradeList[i].constValue == e) {
-          this.deptBudgetList.gradeKey = this.gradeList[i].constKey
+          console.log(11111)
+          this.$set( this.deptBudgetList,'gradeKey',this.gradeList[i].constKey)
         }
       }
       this.waterContentChange()