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