|
@@ -1071,6 +1071,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
waterContentChange(type) {
|
|
waterContentChange(type) {
|
|
|
|
+ // debugger
|
|
//客户
|
|
//客户
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
getcustomer({
|
|
getcustomer({
|
|
@@ -1109,17 +1110,17 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.deptBudgetList.type = '干粮'
|
|
this.deptBudgetList.type = '干粮'
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.dryGrainPrice || this.deptBudgetList.dryGrainPrice == 0) {
|
|
|
|
- getDryGrainPrice({
|
|
|
|
- warehouseId: this.cangid,
|
|
|
|
- goodsName: this.deptBudgetList.goodsName
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
|
- this.dryGrainPrice=response
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.deptBudgetList.dryGrainPrice || this.deptBudgetList.dryGrainPrice == 0) {
|
|
|
|
+ // getDryGrainPrice({
|
|
|
|
+ // warehouseId: this.cangid,
|
|
|
|
+ // goodsName: this.deptBudgetList.goodsName
|
|
|
|
+ // })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
|
+ // this.dryGrainPrice=response
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
// debugger
|
|
// debugger
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
|
|
if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
|
|
@@ -1152,30 +1153,44 @@ export default {
|
|
.buckleMiscellaneous) / 100 * parseFloat(this.deptBudgetList.dryGrainPrice ? this.deptBudgetList
|
|
.buckleMiscellaneous) / 100 * parseFloat(this.deptBudgetList.dryGrainPrice ? this.deptBudgetList
|
|
.dryGrainPrice : 0)).toFixed(4)
|
|
.dryGrainPrice : 0)).toFixed(4)
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.tidalGrainPrice) {
|
|
|
|
+ this.deptBudgetList.tidalGrainPrice = ''
|
|
|
|
+ }
|
|
|
|
+ if(this.deptBudgetList.type == '干粮'){
|
|
|
|
+ this.deptBudgetList.dryGrainPrice = response
|
|
|
|
+ this.dryGrainPrice = this.deptBudgetList.dryGrainPrice
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- if (this.inspect.type == '干粮') {
|
|
|
|
- if (response == 0) {
|
|
|
|
- getDryGrainPrice({
|
|
|
|
- warehouseId: this.cangid,
|
|
|
|
- goodsName: this.deptBudgetList.goodsName
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
|
- this.dryGrainPrice=response
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- if(response>0){
|
|
|
|
- this.deptBudgetList.dryGrainPrice = response
|
|
|
|
- this.dryGrainPrice = response
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if(response>0){
|
|
|
|
|
|
+ if(this.deptBudgetList.type == '干粮'){
|
|
|
|
+ this.deptBudgetList.dryGrainPrice = response
|
|
|
|
+ this.dryGrainPrice = this.deptBudgetList.dryGrainPrice
|
|
|
|
+ }else{
|
|
this.deptBudgetList.tidalGrainPrice = response
|
|
this.deptBudgetList.tidalGrainPrice = response
|
|
- this.tidalGrainPrice = response
|
|
|
|
- }
|
|
|
|
|
|
+ this.tidalGrainPrice = this.deptBudgetList.tidalGrainPrice
|
|
}
|
|
}
|
|
|
|
+ // if (this.inspect.type == '干粮') {
|
|
|
|
+ // if (response == 0) {
|
|
|
|
+ // getDryGrainPrice({
|
|
|
|
+ // warehouseId: this.cangid,
|
|
|
|
+ // goodsName: this.deptBudgetList.goodsName
|
|
|
|
+ // })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.$set(this.deptBudgetList, 'dryGrainPrice', response)
|
|
|
|
+ // this.dryGrainPrice=response
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // if(response>0){
|
|
|
|
+ // this.deptBudgetList.dryGrainPrice = response
|
|
|
|
+ // this.dryGrainPrice = response
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // } else {
|
|
|
|
+ // if(response>0){
|
|
|
|
+ // this.deptBudgetList.tidalGrainPrice = response
|
|
|
|
+ // this.tidalGrainPrice = response
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|