|
@@ -1071,7 +1071,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
waterContentChange(type) {
|
|
waterContentChange(type) {
|
|
- // debugger
|
|
|
|
//客户
|
|
//客户
|
|
if(this.serviceManagementType==3){
|
|
if(this.serviceManagementType==3){
|
|
getcustomer({
|
|
getcustomer({
|
|
@@ -1110,17 +1109,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) {
|
|
@@ -1153,44 +1152,30 @@ 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.deptBudgetList.type == '干粮'){
|
|
|
|
- this.deptBudgetList.dryGrainPrice = response
|
|
|
|
- this.dryGrainPrice = this.deptBudgetList.dryGrainPrice
|
|
|
|
- }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){
|
|
this.deptBudgetList.tidalGrainPrice = response
|
|
this.deptBudgetList.tidalGrainPrice = response
|
|
- this.tidalGrainPrice = this.deptBudgetList.tidalGrainPrice
|
|
|
|
|
|
+ this.tidalGrainPrice = response
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- // 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
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1870,7 +1855,7 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
- }
|
|
|
|
|
|
+ }waterContent
|
|
if (
|
|
if (
|
|
this.deptBudgetList.titleNoOther &&
|
|
this.deptBudgetList.titleNoOther &&
|
|
this.deptBudgetList.titleNoOther.length > 20
|
|
this.deptBudgetList.titleNoOther.length > 20
|
|
@@ -2395,7 +2380,6 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
if (this.value1 == false && this.statusTypetext == '初检') {
|
|
if (this.value1 == false && this.statusTypetext == '初检') {
|
|
this.deptBudgetList.warehouseInOutDetail.grade = this.deptBudgetList.grade
|
|
this.deptBudgetList.warehouseInOutDetail.grade = this.deptBudgetList.grade
|
|
if (!this.deptBudgetList.grade) {
|
|
if (!this.deptBudgetList.grade) {
|